Undocumented functions of NTDLL

2OOO, 29 December


Gridstore - NonStop Storage

NtCreateFile
NtCreateFile

NTSYSAPI 
NTSTATUS
NTAPI

NtCreateFile(

OUT PHANDLE FileHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PIO_STATUS_BLOCK IoStatusBlock, IN PLARGE_INTEGER AllocationSize OPTIONAL, IN ULONG FileAttributes, IN ULONG ShareAccess, IN ULONG CreateDisposition, IN ULONG CreateOptions, IN PVOID EaBuffer OPTIONAL, IN ULONG EaLength );




(Avaiable also in 2000 DDK.)
  • FileHandle
  •     Result of call - HANDLE to File Object.
  • DesiredAccess
  •     Access mask based on definitions in schema FILE_* from <WinNT.h>.
  • ObjectAttributes
  •     Name of file to create (or open), optionally path in name string. You can also define root directory, security descriptor and attributes OBJ_CASE_INSENSITIVE and OBJ_INHERIT.
  • IoStatusBlock
  •     Pointer to IO_STATUS_BLOCK structure, that receive final status of function call. Can be one of:
  • AllocationSize
  •     File size after creation.
  • FileAttributes
  •     Attributes for newly created file, as follows:
  • ShareAccess
  •     Specifies share method for opened object. Can be set to zero or any combination of flags:
  • CreateDisposition
  •     Specifies disposition how to create or open object and can be one of:
  • CreateOptions
  •     Creation options.
  • EaBuffer
  •     Buffer for Extended Attributes contains one or more of FILE_FULL_EA_INFORMATION structures.
  • EaLength
  •     Length of EaBuffer.


    Documented by:
    Tomasz Nowak



    Requirements:
    Library: ntdll.lib


    See also:
    FILE_FULL_EA_INFORMATION
    NtDeleteFile
    NtOpenFile
    NtSetEaFile