NtCreateSection

[DllImport("ntdll.dll", SetLastError = true)]
public static extern int NtCreateSection(
   out IntPtr SectionHandle,
   uint DesiredAccess,
   IntPtr ObjectAttributes,
   ref LARGE_INTEGER MaximumSize,
   uint SectionPageProtection,
   uint AllocationAttributes,
   IntPtr FileHandle
);

Microsoft documentation: Link

Last updated