Undocumented functions of NTDLL

2OOO, 2O December


NtCreateDirectoryObject
NtCreateDirectoryObject

NTSYSAPI 
NTSTATUS
NTAPI

NtCreateDirectoryObject(
OUT PHANDLE DirectoryHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes );



DirectoryHandle
Pointer to newly created Directory Object after function call.

DesiredAccess
As defined in <ntddk.h> can be one of following:

   #define DIRECTORY_QUERY                 (0x0001)
   #define DIRECTORY_TRAVERSE              (0x0002)
   #define DIRECTORY_CREATE_OBJECT         (0x0004)
   #define DIRECTORY_CREATE_SUBDIRECTORY   (0x0008)
   #define DIRECTORY_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | 0xF)

ObjectAttributes
Pointer to object attributes. Structure must contain valid object name.




Documented by:
Tomasz Nowak
Reactos



Requirements:
Library: ntdll.lib


See also:
NtOpenDirectoryObject
NtQueryDirectoryObject