Undocumented functions of NTDLL

2OOO, 12 October



NtCreateSection
NtCreateSection

NTSYSAPI 
NTSTATUS
NTAPI

NtCreateSection(

OUT PHANDLE SectionHandle, IN ULONG DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN PLARGE_INTEGER MaximumSize OPTIONAL, IN ULONG PageAttributess, IN ULONG SectionAttributes, IN HANDLE FileHandle OPTIONAL );




Function NtCreateSection creates Section Object (virtual memory block with associated file).



  • SectionHandle
  •     Result of call - HANDLE to Section Object.
  • DesiredAccess
  •     Access mask. Can be combination of:
  • ObjectAttributes
  •     Pointer to OBJECT_ATTRIBUTES structure contains section name, in Object Namespace format.
  • MaximumSize
  •     Optionally define maximum size of section. Must be defined when caller create section based on system PageFile.
  • PageAttributess
  •     Can be one or combination of:
  • SectionAttributes
  •     Can be one or combination of:
  • FileHandle
  •     Optionally HANDLE to File Object opened with proper access.


    Documented by:
    Tomasz Nowak



    Requirements:
    Library: ntdll.lib


    See also:
    NtCreateFile
    NtExtendSection
    NtFlushVirtualMemory
    NtMapViewOfSection
    NtOpenFile
    NtOpenSection
    NtQuerySection