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
9extern "C" {
10#endif
11
12PALIMPORT
13int
14PALAPI
15MessageBoxA(
16 IN LPVOID hWnd, // NOTE: diff from winuser.h
17 IN LPCSTR lpText,
18 IN LPCSTR lpCaption,
19 IN UINT uType);
20
21
22PALIMPORT
23HANDLE
24PALAPI
25CreateFileA(
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
34PALIMPORT
35DWORD
36PALAPI
37SearchPathA(
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
46PALIMPORT
47BOOL
48PALAPI
49CopyFileA(
50 IN LPCSTR lpExistingFileName,
51 IN LPCSTR lpNewFileName,
52 IN BOOL bFailIfExists);
53
54
55PALIMPORT
56BOOL
57PALAPI
58DeleteFileA(
59 IN LPCSTR lpFileName);
60
61PALIMPORT
62BOOL
63PALAPI
64MoveFileExA(
65 IN LPCSTR lpExistingFileName,
66 IN LPCSTR lpNewFileName,
67 IN DWORD dwFlags);
68
69PALIMPORT
70BOOL
71PALAPI
72CreateDirectoryA(
73 IN LPCSTR lpPathName,
74 IN LPSECURITY_ATTRIBUTES lpSecurityAttributes);
75
76PALIMPORT
77HANDLE
78PALAPI
79FindFirstFileA(
80 IN LPCSTR lpFileName,
81 OUT LPWIN32_FIND_DATAA lpFindFileData);
82
83PALIMPORT
84BOOL
85PALAPI
86FindNextFileA(
87 IN HANDLE hFindFile,
88 OUT LPWIN32_FIND_DATAA lpFindFileData);
89
90PALIMPORT
91DWORD
92PALAPI
93GetFileAttributesA(
94 IN LPCSTR lpFileName);
95
96PALIMPORT
97BOOL
98PALAPI
99SetFileAttributesA(
100 IN LPCSTR lpFileName,
101 IN DWORD dwFileAttributes);
102
103PALIMPORT
104DWORD
105PALAPI
106GetFullPathNameA(
107 IN LPCSTR lpFileName,
108 IN DWORD nBufferLength,
109 OUT LPSTR lpBuffer,
110 OUT LPSTR *lpFilePart);
111
112PALIMPORT
113UINT
114PALAPI
115GetTempFileNameA(
116 IN LPCSTR lpPathName,
117 IN LPCSTR lpPrefixString,
118 IN UINT uUnique,
119 OUT LPSTR lpTempFileName);
120
121PALIMPORT
122DWORD
123PALAPI
124GetTempPathA(
125 IN DWORD nBufferLength,
126 OUT LPSTR lpBuffer);
127
128PALIMPORT
129DWORD
130PALAPI
131GetCurrentDirectoryA(
132 IN DWORD nBufferLength,
133 OUT LPSTR lpBuffer);
134
135PALIMPORT
136BOOL
137PALAPI
138SetCurrentDirectoryA(
139 IN LPCSTR lpPathName);
140
141PALIMPORT
142HANDLE
143PALAPI
144CreateSemaphoreA(
145 IN LPSECURITY_ATTRIBUTES lpSemaphoreAttributes,
146 IN LONG lInitialCount,
147 IN LONG lMaximumCount,
148 IN LPCSTR lpName);
149
150PALIMPORT
151HANDLE
152PALAPI
153CreateSemaphoreExA(
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
161PALIMPORT
162HANDLE
163PALAPI
164CreateEventA(
165 IN LPSECURITY_ATTRIBUTES lpEventAttributes,
166 IN BOOL bManualReset,
167 IN BOOL bInitialState,
168 IN LPCSTR lpName);
169
170PALIMPORT
171HANDLE
172PALAPI
173CreateMutexA(
174 IN LPSECURITY_ATTRIBUTES lpMutexAttributes,
175 IN BOOL bInitialOwner,
176 IN LPCSTR lpName);
177
178PALIMPORT
179HANDLE
180PALAPI
181OpenMutexA(
182 IN DWORD dwDesiredAccess,
183 IN BOOL bInheritHandle,
184 IN LPCSTR lpName);
185
186PALIMPORT
187BOOL
188PALAPI
189CreateProcessA(
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
201PALIMPORT
202HANDLE
203PALAPI
204CreateFileMappingA(
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
212PALIMPORT
213HANDLE
214PALAPI
215OpenFileMappingA(
216 IN DWORD dwDesiredAccess,
217 IN BOOL bInheritHandle,
218 IN LPCSTR lpName);
219
220PALIMPORT
221HMODULE
222PALAPI
223LoadLibraryA(
224 IN LPCSTR lpLibFileName);
225
226PALIMPORT
227HMODULE
228PALAPI
229LoadLibraryExA(
230 IN LPCSTR lpLibFileName,
231 IN /*Reserved*/ HANDLE hFile,
232 IN DWORD dwFlags);
233
234PALIMPORT
235DWORD
236PALAPI
237GetModuleFileNameA(
238 IN HMODULE hModule,
239 OUT LPSTR lpFileName,
240 IN DWORD nSize);
241
242
243PALIMPORT
244LPSTR
245PALAPI
246GetEnvironmentStringsA(
247 VOID);
248
249PALIMPORT
250BOOL
251PALAPI
252SetEnvironmentVariableA(
253 IN LPCSTR lpName,
254 IN LPCSTR lpValue);
255
256PALIMPORT
257DWORD
258PALAPI
259GetEnvironmentVariableA(
260 IN LPCSTR lpName,
261 OUT LPSTR lpBuffer,
262 IN DWORD nSize);
263
264PALIMPORT
265BOOL
266PALAPI
267FreeEnvironmentStringsA(
268 IN LPSTR);
269
270PALIMPORT
271BOOL
272PALAPI
273RemoveDirectoryA(
274 IN LPCSTR lpPathName);
275
276PALIMPORT
277BOOL
278PALAPI
279PAL_GetPALDirectoryA(
280 OUT LPSTR lpDirectoryName,
281 IN UINT* cchDirectoryName);
282
283#ifdef __cplusplus
284}
285#endif
286
287#endif// __PAL_PRIVATE_H__
288