NtDllNtUnmapViewOfSection(IntPtr, IntPtr) Method

Unmaps a view of a section from the virtual address space of a subject process.

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 NtUnmapViewOfSection(
	IntPtr hProcess,
	IntPtr address
)

Parameters

hProcess  IntPtr
Handle to a process object that was previously passed to NtMapViewOfSection(IntPtr, SafeProcessHandle, IntPtr, IntPtr, IntPtr, Int64, UIntPtr, SectionInherit, MemoryAllocationType, MemoryProtectionOptions).
address  IntPtr
Pointer to the base virtual address of the view to unmap.

This value can be any virtual address within the view.

Return Value

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

Remarks

See Also