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

# NtCreateDirectoryObject(3w)

## NAME

**NtCreateDirectoryObject** (NTDLL.@)

## SYNOPSIS

NTSTATUS NtCreateDirectoryObject\
  (\
   PHANDLE            *DirectoryHandle*,\
   ACCESS\_MASK        *DesiredAccess*,\
   POBJECT\_ATTRIBUTES *ObjectAttributes*\
  )

## DESCRIPTION

Create a namespace directory object.

## PARAMS

*DirectoryHandle* **\[Out\]**  Destination for the new directory handle.

*DesiredAccess* **\[In\]**  Desired access to the directory.

*ObjectAttributes* **\[In\]**  Structure describing the directory.

## RETURNS

**Success:** **ERROR\_SUCCESS**.

**Failure:** An **NTSTATUS** error code.

## IMPLEMENTATION

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

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

Debug channel **"ntdll"**.
