File Mapping ============ Server ------ HANDLE h = CreateFile(... - Create a new file CreateFileMapping(h, ... - Maps the file to the system memory CreateFileMapping(INVALID_HANDLE_VALUE, ... - Allocates system memory for your usage withought any file (act like there's a file) LPVOID p = MapViewOfFile(... - Makes the specified portion of a file visible in the address space of the calling process UnmapViewOfFile(p); - Unmaps a mapped view of a file from the calling process's address space CloseHandle(h); Client ------ HANDLE h = OpenFileMapping(... - Opens a named file mapping object LPVOID p = MapViewOfFile(h, ... - Maps a view of a file mapping into the address space of a calling process UnmapViewOfFile(p); CloseHandle(h);