UnmapViewOfFile2 function
Unmaps a previously mapped view of a file or a pagefile-backed section.
Syntax
WINAPI UnmapViewOfFile2( _In_ HANDLE ProcessHandle, _In_ PVOID BaseAddress, _In_ ULONG UnmapFlags );
Parameters
- ProcessHandle [in]
-
A HANDLE to the process from which the section will be unmapped.
- BaseAddress [in]
-
The base address of a previously mapped view that is to be unmapped. This value must be identical to the value returned by a previous call to MapViewOfFile2.
- UnmapFlags [in]
-
MEM_UNMAP_WITH_TRANSIENT_BOOST or zero (0).
MEM_UNMAP_WITH_TRANSIENT_BOOST should be used if the pages backing this view should be temporarily boosted (with automatic short term decay) because another thread will access them shortly.
Return value
Returns TRUE if sucessful. Otherwise, returns FALSE and extended error status is available using GetLastError.
Requirements
|
Minimum supported client |
Windows 10, version 1703 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also