Group: File Mapping - Library: kernel32
The GetMappedFileName function checks if the specified address is within a memory-mapped file in the address space of the specified process. If so, the function returns the name of the memory-mapped file.
Using File Mapping for enumerating files opened by Visual FoxPro
DWORD GetMappedFileName(
HANDLE hProcess,
LPVOID lpv,
LPTSTR lpFilename,
DWORD nSize
);
DECLARE INTEGER GetMappedFileName IN psapi;
INTEGER hProcess,;
INTEGER lpv,;
STRING @ lpFilename,;
INTEGER nSize
hProcess [in] Handle to the process.
lpv [in] Address to be verified.
lpFilename [out] Pointer to the buffer that receives the name of the memory-mapped file to which the address specified by lpv belongs.
nSize [in] Size of the lpFilename buffer, in characters.
If the function succeeds, the return value specifies the length of the string copied to the buffer, in characters.
See also: EnumProcesses, GetCurrentProcess.