FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
memory/memory.c
1
20#include <winpr/config.h>
21
22#include <winpr/crt.h>
23#include <winpr/wlog.h>
24
25#include <winpr/memory.h>
26
27#ifdef WINPR_HAVE_UNISTD_H
28#include <unistd.h>
29#endif
30
76#ifndef _WIN32
77
78#include "memory.h"
79
80HANDLE CreateFileMappingA(WINPR_ATTR_UNUSED HANDLE hFile,
81 WINPR_ATTR_UNUSED LPSECURITY_ATTRIBUTES lpAttributes,
82 WINPR_ATTR_UNUSED DWORD flProtect,
83 WINPR_ATTR_UNUSED DWORD dwMaximumSizeHigh,
84 WINPR_ATTR_UNUSED DWORD dwMaximumSizeLow, WINPR_ATTR_UNUSED LPCSTR lpName)
85{
86 WLog_ERR("TODO", "TODO: Implement");
87 if (hFile != INVALID_HANDLE_VALUE)
88 {
89 return NULL; /* not yet implemented */
90 }
91
92 return NULL;
93}
94
95HANDLE CreateFileMappingW(WINPR_ATTR_UNUSED HANDLE hFile,
96 WINPR_ATTR_UNUSED LPSECURITY_ATTRIBUTES lpAttributes,
97 WINPR_ATTR_UNUSED DWORD flProtect,
98 WINPR_ATTR_UNUSED DWORD dwMaximumSizeHigh,
99 WINPR_ATTR_UNUSED DWORD dwMaximumSizeLow,
100 WINPR_ATTR_UNUSED LPCWSTR lpName)
101{
102 WLog_ERR("TODO", "TODO: Implement");
103 return NULL;
104}
105
106HANDLE OpenFileMappingA(WINPR_ATTR_UNUSED DWORD dwDesiredAccess,
107 WINPR_ATTR_UNUSED BOOL bInheritHandle, WINPR_ATTR_UNUSED LPCSTR lpName)
108{
109 WLog_ERR("TODO", "TODO: Implement");
110 return NULL;
111}
112
113HANDLE OpenFileMappingW(WINPR_ATTR_UNUSED DWORD dwDesiredAccess,
114 WINPR_ATTR_UNUSED BOOL bInheritHandle, WINPR_ATTR_UNUSED LPCWSTR lpName)
115{
116 WLog_ERR("TODO", "TODO: Implement");
117 return NULL;
118}
119
120LPVOID MapViewOfFile(WINPR_ATTR_UNUSED HANDLE hFileMappingObject,
121 WINPR_ATTR_UNUSED DWORD dwDesiredAccess,
122 WINPR_ATTR_UNUSED DWORD dwFileOffsetHigh,
123 WINPR_ATTR_UNUSED DWORD dwFileOffsetLow,
124 WINPR_ATTR_UNUSED size_t dwNumberOfBytesToMap)
125{
126 WLog_ERR("TODO", "TODO: Implement");
127 return NULL;
128}
129
130LPVOID MapViewOfFileEx(WINPR_ATTR_UNUSED HANDLE hFileMappingObject,
131 WINPR_ATTR_UNUSED DWORD dwDesiredAccess,
132 WINPR_ATTR_UNUSED DWORD dwFileOffsetHigh,
133 WINPR_ATTR_UNUSED DWORD dwFileOffsetLow,
134 WINPR_ATTR_UNUSED size_t dwNumberOfBytesToMap,
135 WINPR_ATTR_UNUSED LPVOID lpBaseAddress)
136{
137 WLog_ERR("TODO", "TODO: Implement");
138 return NULL;
139}
140
141BOOL FlushViewOfFile(WINPR_ATTR_UNUSED LPCVOID lpBaseAddress,
142 WINPR_ATTR_UNUSED size_t dwNumberOfBytesToFlush)
143{
144 WLog_ERR("TODO", "TODO: Implement");
145 return TRUE;
146}
147
148BOOL UnmapViewOfFile(WINPR_ATTR_UNUSED LPCVOID lpBaseAddress)
149{
150 WLog_ERR("TODO", "TODO: Implement");
151 return TRUE;
152}
153
154#endif