UnmapViewOfFileEx function
This is an extended version of UnmapViewOfFile that takes an additional flags parameter.
Syntax
BOOL WINAPI UnmapViewOfFileEx( _In_ LPCVOID lpBaseAddress, _In_ DWORD UnmapFlags );
Parameters
- lpBaseAddress [in]
-
A pointer to the base address of the mapped view of a file that is to be unmapped. This value must be identical to the value returned by a previous call to the MapViewOfFile or MapViewOfFileEx function.
- UnmapFlags [in]
-
The only supported flag is MEM_UNMAP_WITH_TRANSIENT_BOOST, which specifies that the priority of the pages being unmapped should be temporarily boosted because the caller expects that these pages will be accessed again shortly. For more information about memory priorities, see the SetThreadInformation(ThreadMemoryPriority) function.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
For more information about the behavior of this function, see the UnmapViewOfFile function.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
|
DLL |
|