Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 | UWP apps]

Minimum supported server

Windows Server 2012 [desktop apps | UWP apps]

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

 

 

Show: