UnmapViewOfFile
UnmapViewOfFile is a Windows API function in Kernel32.dll that unmaps a mapped view of a file from the calling process’s address space. It is used after a program has mapped a file into memory using MapViewOfFile, MapViewOfFileEx, or related functions such as MapViewOfFile3. The function signature is BOOL UnmapViewOfFile(LPCVOID lpBaseAddress), where lpBaseAddress is the base address of the mapped view returned by the mapping call.
On success, UnmapViewOfFile returns a nonzero value. On failure, it returns zero and extended error information
Common error conditions include passing a pointer that does not refer to a mapped view in the
See also MapViewOfFile, MapViewOfFileEx, MapViewOfFile3, CreateFileMapping, OpenFileMapping.