NtDllNtExtendSection Method

Extends the size of an existing section object.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("NtDll.dll", CallingConvention = CallingConvention.StdCall)]
public static NTStatus NtExtendSection(
	IntPtr hSection,
	ulong newSectionSize
)

Parameters

hSection  IntPtr
Handle to a section object.

The handle must be open with ExtendSize right.

If section points to a mapped file, NtExtendSection(IntPtr, UInt64) fails.

newSectionSize  UInt64
The new size for the section object.

Return Value

NTStatus
Returns SUCCESS on success, or the appropriate NTStatus error code on failure.

Remarks

See Also