Group: File Mapping - Library: kernel32
The UnmapViewOfFile function unmaps a mapped view of a file from the calling process"s address space.
Using File Mapping for enumerating files opened by Visual FoxPro
Using shared memory to exchange data between applications (processes)
BOOL UnmapViewOfFile(
LPCVOID lpBaseAddress
);
DECLARE INTEGER UnmapViewOfFile IN kernel32;
LONG lpBaseAddress
lpBaseAddress [in] Pointer to the base address of the mapped view of a file that is to be unmapped.
If the function succeeds, the return value is nonzero, and all dirty pages within the specified range are written "lazily" to disk.
Although an application may close the file handle used to create a file mapping object, the system holds the corresponding file open until the last view of the file is unmapped.
See also: MapViewOfFile, MapViewOfFileEx.