FreeRDP
memory/memory.c
1 
20 #include <winpr/config.h>
21 
22 #include <winpr/crt.h>
23 
24 #include <winpr/memory.h>
25 
26 #ifdef WINPR_HAVE_UNISTD_H
27 #include <unistd.h>
28 #endif
29 
75 #ifndef _WIN32
76 
77 #include "memory.h"
78 
79 HANDLE CreateFileMappingA(HANDLE hFile, LPSECURITY_ATTRIBUTES lpAttributes, DWORD flProtect,
80  DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCSTR lpName)
81 {
82  if (hFile != INVALID_HANDLE_VALUE)
83  {
84  return NULL; /* not yet implemented */
85  }
86 
87  return NULL;
88 }
89 
90 HANDLE CreateFileMappingW(HANDLE hFile, LPSECURITY_ATTRIBUTES lpAttributes, DWORD flProtect,
91  DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCWSTR lpName)
92 {
93  return NULL;
94 }
95 
96 HANDLE OpenFileMappingA(DWORD dwDesiredAccess, BOOL bInheritHandle, LPCSTR lpName)
97 {
98  return NULL;
99 }
100 
101 HANDLE OpenFileMappingW(DWORD dwDesiredAccess, BOOL bInheritHandle, LPCWSTR lpName)
102 {
103  return NULL;
104 }
105 
106 LPVOID MapViewOfFile(HANDLE hFileMappingObject, DWORD dwDesiredAccess, DWORD dwFileOffsetHigh,
107  DWORD dwFileOffsetLow, size_t dwNumberOfBytesToMap)
108 {
109  return NULL;
110 }
111 
112 LPVOID MapViewOfFileEx(HANDLE hFileMappingObject, DWORD dwDesiredAccess, DWORD dwFileOffsetHigh,
113  DWORD dwFileOffsetLow, size_t dwNumberOfBytesToMap, LPVOID lpBaseAddress)
114 {
115  return NULL;
116 }
117 
118 BOOL FlushViewOfFile(LPCVOID lpBaseAddress, size_t dwNumberOfBytesToFlush)
119 {
120  return TRUE;
121 }
122 
123 BOOL UnmapViewOfFile(LPCVOID lpBaseAddress)
124 {
125  return TRUE;
126 }
127 
128 #endif