NtDllNtExtendSection Method
Extends the size of an existing section object.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("NtDll.dll", CallingConvention := CallingConvention.StdCall>]
Public Shared Function NtExtendSection (
hSection As IntPtr,
newSectionSize As ULong
) As NTStatus
Dim hSection As IntPtr
Dim newSectionSize As ULong
Dim returnValue As NTStatus
returnValue = NtDll.NtExtendSection(hSection,
newSectionSize)
public:
[DllImportAttribute(L"NtDll.dll", CallingConvention = CallingConvention::StdCall)]
static NTStatus NtExtendSection(
IntPtr hSection,
unsigned long long newSectionSize
)
[<DllImportAttribute("NtDll.dll", CallingConvention = CallingConvention.StdCall)>]
static member NtExtendSection :
hSection : IntPtr *
newSectionSize : uint64 -> NTStatus
No code example is currently available or this language may not be supported.
- 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.
NTStatus
Returns
SUCCESS on success, or the appropriate
NTStatus error code on failure.