---
name: "CreateMailslotW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/CreateMailslotW"
---

# CreateMailslotW(3w)

## NAME

**CreateMailslotW** (KERNEL32.@)

## SYNOPSIS

HANDLE CreateMailslotW\
  (\
   LPCWSTR               *lpName*,\
   DWORD                 *nMaxMessageSize*,\
   DWORD                 *lReadTimeout*,\
   LPSECURITY\_ATTRIBUTES *sa*\
  )

## DESCRIPTION

Create a mailslot with specified name.

## PARAMS

*lpName* **\[In\]**  Pointer to string for mailslot name.

*nMaxMessageSize* **\[In\]**  Maximum message size.

*lReadTimeout* **\[In\]**  Milliseconds before read time-out.

*sa* **\[In\]**  Pointer to security structure.

## RETURNS

**Success:** Handle to mailslot

**Failure:** **INVALID\_HANDLE\_VALUE**

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/sync.c"**.

Debug channel **"sync"**.
