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

# NtCreateMailslotFile(3w)

## NAME

**NtCreateMailslotFile** (NTDLL.@)

## SYNOPSIS

NTSTATUS NtCreateMailslotFile\
  (\
   PHANDLE            *pHandle*,\
   ULONG              *DesiredAccess*,\
   POBJECT\_ATTRIBUTES *attr*,\
   PIO\_STATUS\_BLOCK   *IoStatusBlock*,\
   ULONG              *CreateOptions*,\
   ULONG              *MailslotQuota*,\
   ULONG              *MaxMessageSize*,\
   PLARGE\_INTEGER     *TimeOut*\
  )

## DESCRIPTION

## PARAMS

*pHandle* **\[Out\]**  pointer to receive the handle created.

*DesiredAccess* **\[In\]**  access mode (read, write, etc).

ObjectAttributes **\[In\]**  fully qualified **NT** path of the mailslot.

*IoStatusBlock* **\[Out\]**  receives completion status and other info.

*CreateOptions* **\[In\]**  **.**

*MailslotQuota* **\[In\]**  **.**

*MaxMessageSize* **\[In\]**  **.**

*TimeOut* **\[In\]**  **.**

## RETURNS

An **NT** status code

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/file.c"**.

Debug channel **"ntdll"**.
