1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | |
5 | #ifndef __PAL_PRIVATE_H__ |
6 | #define __PAL_PRIVATE_H__ |
7 | |
8 | #ifdef __cplusplus |
9 | extern "C" { |
10 | #endif |
11 | |
12 | PALIMPORT |
13 | int |
14 | PALAPI |
15 | MessageBoxA( |
16 | IN LPVOID hWnd, // NOTE: diff from winuser.h |
17 | IN LPCSTR lpText, |
18 | IN LPCSTR lpCaption, |
19 | IN UINT uType); |
20 | |
21 | |
22 | PALIMPORT |
23 | HANDLE |
24 | PALAPI |
25 | CreateFileA( |
26 | IN LPCSTR lpFileName, |
27 | IN DWORD dwDesiredAccess, |
28 | IN DWORD dwShareMode, |
29 | IN LPSECURITY_ATTRIBUTES lpSecurityAttributes, |
30 | IN DWORD dwCreationDisposition, |
31 | IN DWORD dwFlagsAndAttributes, |
32 | IN HANDLE hTemplateFile); |
33 | |
34 | PALIMPORT |
35 | DWORD |
36 | PALAPI |
37 | SearchPathA( |
38 | IN LPCSTR lpPath, |
39 | IN LPCSTR lpFileName, |
40 | IN LPCSTR lpExtension, |
41 | IN DWORD nBufferLength, |
42 | OUT LPSTR lpBuffer, |
43 | OUT LPSTR *lpFilePart |
44 | ); |
45 | |
46 | PALIMPORT |
47 | BOOL |
48 | PALAPI |
49 | CopyFileA( |
50 | IN LPCSTR lpExistingFileName, |
51 | IN LPCSTR lpNewFileName, |
52 | IN BOOL bFailIfExists); |
53 | |
54 | |
55 | PALIMPORT |
56 | BOOL |
57 | PALAPI |
58 | DeleteFileA( |
59 | IN LPCSTR lpFileName); |
60 | |
61 | PALIMPORT |
62 | BOOL |
63 | PALAPI |
64 | MoveFileExA( |
65 | IN LPCSTR lpExistingFileName, |
66 | IN LPCSTR lpNewFileName, |
67 | IN DWORD dwFlags); |
68 | |
69 | PALIMPORT |
70 | BOOL |
71 | PALAPI |
72 | CreateDirectoryA( |
73 | IN LPCSTR lpPathName, |
74 | IN LPSECURITY_ATTRIBUTES lpSecurityAttributes); |
75 | |
76 | PALIMPORT |
77 | HANDLE |
78 | PALAPI |
79 | FindFirstFileA( |
80 | IN LPCSTR lpFileName, |
81 | OUT LPWIN32_FIND_DATAA lpFindFileData); |
82 | |
83 | PALIMPORT |
84 | BOOL |
85 | PALAPI |
86 | FindNextFileA( |
87 | IN HANDLE hFindFile, |
88 | OUT LPWIN32_FIND_DATAA lpFindFileData); |
89 | |
90 | PALIMPORT |
91 | DWORD |
92 | PALAPI |
93 | GetFileAttributesA( |
94 | IN LPCSTR lpFileName); |
95 | |
96 | PALIMPORT |
97 | BOOL |
98 | PALAPI |
99 | SetFileAttributesA( |
100 | IN LPCSTR lpFileName, |
101 | IN DWORD dwFileAttributes); |
102 | |
103 | PALIMPORT |
104 | DWORD |
105 | PALAPI |
106 | GetFullPathNameA( |
107 | IN LPCSTR lpFileName, |
108 | IN DWORD nBufferLength, |
109 | OUT LPSTR lpBuffer, |
110 | OUT LPSTR *lpFilePart); |
111 | |
112 | PALIMPORT |
113 | UINT |
114 | PALAPI |
115 | GetTempFileNameA( |
116 | IN LPCSTR lpPathName, |
117 | IN LPCSTR lpPrefixString, |
118 | IN UINT uUnique, |
119 | OUT LPSTR lpTempFileName); |
120 | |
121 | PALIMPORT |
122 | DWORD |
123 | PALAPI |
124 | GetTempPathA( |
125 | IN DWORD nBufferLength, |
126 | OUT LPSTR lpBuffer); |
127 | |
128 | PALIMPORT |
129 | DWORD |
130 | PALAPI |
131 | GetCurrentDirectoryA( |
132 | IN DWORD nBufferLength, |
133 | OUT LPSTR lpBuffer); |
134 | |
135 | PALIMPORT |
136 | BOOL |
137 | PALAPI |
138 | SetCurrentDirectoryA( |
139 | IN LPCSTR lpPathName); |
140 | |
141 | PALIMPORT |
142 | HANDLE |
143 | PALAPI |
144 | CreateSemaphoreA( |
145 | IN LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, |
146 | IN LONG lInitialCount, |
147 | IN LONG lMaximumCount, |
148 | IN LPCSTR lpName); |
149 | |
150 | PALIMPORT |
151 | HANDLE |
152 | PALAPI |
153 | CreateSemaphoreExA( |
154 | IN LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, |
155 | IN LONG lInitialCount, |
156 | IN LONG lMaximumCount, |
157 | IN LPCSTR lpName, |
158 | IN /*_Reserved_*/ DWORD dwFlags, |
159 | IN DWORD dwDesiredAccess); |
160 | |
161 | PALIMPORT |
162 | HANDLE |
163 | PALAPI |
164 | CreateEventA( |
165 | IN LPSECURITY_ATTRIBUTES lpEventAttributes, |
166 | IN BOOL bManualReset, |
167 | IN BOOL bInitialState, |
168 | IN LPCSTR lpName); |
169 | |
170 | PALIMPORT |
171 | HANDLE |
172 | PALAPI |
173 | CreateMutexA( |
174 | IN LPSECURITY_ATTRIBUTES lpMutexAttributes, |
175 | IN BOOL bInitialOwner, |
176 | IN LPCSTR lpName); |
177 | |
178 | PALIMPORT |
179 | HANDLE |
180 | PALAPI |
181 | OpenMutexA( |
182 | IN DWORD dwDesiredAccess, |
183 | IN BOOL bInheritHandle, |
184 | IN LPCSTR lpName); |
185 | |
186 | PALIMPORT |
187 | BOOL |
188 | PALAPI |
189 | CreateProcessA( |
190 | IN LPCSTR lpApplicationName, |
191 | IN LPSTR lpCommandLine, |
192 | IN LPSECURITY_ATTRIBUTES lpProcessAttributes, |
193 | IN LPSECURITY_ATTRIBUTES lpThreadAttributes, |
194 | IN BOOL bInheritHandles, |
195 | IN DWORD dwCreationFlags, |
196 | IN LPVOID lpEnvironment, |
197 | IN LPCSTR lpCurrentDirectory, |
198 | IN LPSTARTUPINFOA lpStartupInfo, |
199 | OUT LPPROCESS_INFORMATION lpProcessInformation); |
200 | |
201 | PALIMPORT |
202 | HANDLE |
203 | PALAPI |
204 | CreateFileMappingA( |
205 | IN HANDLE hFile, |
206 | IN LPSECURITY_ATTRIBUTES lpFileMappingAttributes, |
207 | IN DWORD flProtect, |
208 | IN DWORD dwMaximumSizeHigh, |
209 | IN DWORD dwMaximumSizeLow, |
210 | IN LPCSTR lpName); |
211 | |
212 | PALIMPORT |
213 | HANDLE |
214 | PALAPI |
215 | OpenFileMappingA( |
216 | IN DWORD dwDesiredAccess, |
217 | IN BOOL bInheritHandle, |
218 | IN LPCSTR lpName); |
219 | |
220 | PALIMPORT |
221 | HMODULE |
222 | PALAPI |
223 | LoadLibraryA( |
224 | IN LPCSTR lpLibFileName); |
225 | |
226 | PALIMPORT |
227 | HMODULE |
228 | PALAPI |
229 | LoadLibraryExA( |
230 | IN LPCSTR lpLibFileName, |
231 | IN /*Reserved*/ HANDLE hFile, |
232 | IN DWORD dwFlags); |
233 | |
234 | PALIMPORT |
235 | DWORD |
236 | PALAPI |
237 | GetModuleFileNameA( |
238 | IN HMODULE hModule, |
239 | OUT LPSTR lpFileName, |
240 | IN DWORD nSize); |
241 | |
242 | |
243 | PALIMPORT |
244 | LPSTR |
245 | PALAPI |
246 | GetEnvironmentStringsA( |
247 | VOID); |
248 | |
249 | PALIMPORT |
250 | BOOL |
251 | PALAPI |
252 | SetEnvironmentVariableA( |
253 | IN LPCSTR lpName, |
254 | IN LPCSTR lpValue); |
255 | |
256 | PALIMPORT |
257 | DWORD |
258 | PALAPI |
259 | GetEnvironmentVariableA( |
260 | IN LPCSTR lpName, |
261 | OUT LPSTR lpBuffer, |
262 | IN DWORD nSize); |
263 | |
264 | PALIMPORT |
265 | BOOL |
266 | PALAPI |
267 | FreeEnvironmentStringsA( |
268 | IN LPSTR); |
269 | |
270 | PALIMPORT |
271 | BOOL |
272 | PALAPI |
273 | RemoveDirectoryA( |
274 | IN LPCSTR lpPathName); |
275 | |
276 | PALIMPORT |
277 | BOOL |
278 | PALAPI |
279 | PAL_GetPALDirectoryA( |
280 | OUT LPSTR lpDirectoryName, |
281 | IN UINT* cchDirectoryName); |
282 | |
283 | #ifdef __cplusplus |
284 | } |
285 | #endif |
286 | |
287 | #endif// __PAL_PRIVATE_H__ |
288 | |