20 #include <winpr/config.h>
22 #include <winpr/crt.h>
24 #include <winpr/memory.h>
26 #ifdef WINPR_HAVE_UNISTD_H
79 HANDLE CreateFileMappingA(HANDLE hFile, LPSECURITY_ATTRIBUTES lpAttributes, DWORD flProtect,
80 DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCSTR lpName)
82 if (hFile != INVALID_HANDLE_VALUE)
90 HANDLE CreateFileMappingW(HANDLE hFile, LPSECURITY_ATTRIBUTES lpAttributes, DWORD flProtect,
91 DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCWSTR lpName)
96 HANDLE OpenFileMappingA(DWORD dwDesiredAccess, BOOL bInheritHandle, LPCSTR lpName)
101 HANDLE OpenFileMappingW(DWORD dwDesiredAccess, BOOL bInheritHandle, LPCWSTR lpName)
106 LPVOID MapViewOfFile(HANDLE hFileMappingObject, DWORD dwDesiredAccess, DWORD dwFileOffsetHigh,
107 DWORD dwFileOffsetLow,
size_t dwNumberOfBytesToMap)
112 LPVOID MapViewOfFileEx(HANDLE hFileMappingObject, DWORD dwDesiredAccess, DWORD dwFileOffsetHigh,
113 DWORD dwFileOffsetLow,
size_t dwNumberOfBytesToMap, LPVOID lpBaseAddress)
118 BOOL FlushViewOfFile(LPCVOID lpBaseAddress,
size_t dwNumberOfBytesToFlush)
123 BOOL UnmapViewOfFile(LPCVOID lpBaseAddress)