The ZwUnmapViewOfSection routine unmaps a view of a section from the virtual address space of a subject process.
NTSYSAPI NTSTATUS ZwUnmapViewOfSection( HANDLE ProcessHandle, PVOID BaseAddress );
Handle to a process object that was previously passed to ZwMapViewOfSection.
Pointer to the base virtual address of the view to unmap. This value can be any virtual address within the view.
ZwUnmapViewOfSection returns an NTSTATUS value. Possible return values include:
||The routine successfully performed the requested operation.|
||The caller does not have access rights to the process object or to the base virtual address of the view.|
This routine unmaps the entire view of the section that contains BaseAddress from the virtual address space of the specified process—even if BaseAddress does not point to the beginning of the view.
On return from ZwUnmapViewOfSection, the virtual-address region occupied by the view is no longer reserved and is available to map other views or private pages. If the view was also the last reference to the underlying section, all committed pages in the section are decommitted, and the section is deleted.
|Minimum supported client||Available starting with Windows 2000.|
|Header||wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)|
|DDI compliance rules||PowerIrpDDis, HwStorPortProhibitedDDIs|
Send feedback about: