1
|
1 #ifndef __WINE_WINBASE_H
|
|
2 #define __WINE_WINBASE_H
|
|
3
|
|
4 #include "basetsd.h"
|
|
5 #include "winnt.h"
|
|
6 #include "winestring.h"
|
|
7 #include "pshpack1.h"
|
|
8
|
|
9
|
|
10 #ifdef __cplusplus
|
|
11 extern "C" {
|
|
12 #endif
|
|
13
|
|
14 typedef struct tagCOORD {
|
|
15 INT16 x;
|
|
16 INT16 y;
|
|
17 } COORD, *LPCOORD;
|
|
18
|
|
19
|
|
20 /* Windows Exit Procedure flag values */
|
|
21 #define WEP_FREE_DLL 0
|
|
22 #define WEP_SYSTEM_EXIT 1
|
|
23
|
|
24 typedef DWORD CALLBACK (*LPTHREAD_START_ROUTINE)(LPVOID);
|
|
25
|
|
26 #define EXCEPTION_DEBUG_EVENT 1
|
|
27 #define CREATE_THREAD_DEBUG_EVENT 2
|
|
28 #define CREATE_PROCESS_DEBUG_EVENT 3
|
|
29 #define EXIT_THREAD_DEBUG_EVENT 4
|
|
30 #define EXIT_PROCESS_DEBUG_EVENT 5
|
|
31 #define LOAD_DLL_DEBUG_EVENT 6
|
|
32 #define UNLOAD_DLL_DEBUG_EVENT 7
|
|
33 #define OUTPUT_DEBUG_STRING_EVENT 8
|
|
34 #define RIP_EVENT 9
|
|
35
|
|
36 typedef struct _EXCEPTION_DEBUG_INFO {
|
|
37 EXCEPTION_RECORD ExceptionRecord;
|
|
38 DWORD dwFirstChance;
|
|
39 } EXCEPTION_DEBUG_INFO;
|
|
40
|
|
41 typedef struct _CREATE_THREAD_DEBUG_INFO {
|
|
42 HANDLE hThread;
|
|
43 LPVOID lpThreadLocalBase;
|
|
44 LPTHREAD_START_ROUTINE lpStartAddress;
|
|
45 } CREATE_THREAD_DEBUG_INFO;
|
|
46
|
|
47 typedef struct _CREATE_PROCESS_DEBUG_INFO {
|
|
48 HANDLE hFile;
|
|
49 HANDLE hProcess;
|
|
50 HANDLE hThread;
|
|
51 LPVOID lpBaseOfImage;
|
|
52 DWORD dwDebugInfoFileOffset;
|
|
53 DWORD nDebugInfoSize;
|
|
54 LPVOID lpThreadLocalBase;
|
|
55 LPTHREAD_START_ROUTINE lpStartAddress;
|
|
56 LPVOID lpImageName;
|
|
57 WORD fUnicode;
|
|
58 } CREATE_PROCESS_DEBUG_INFO;
|
|
59
|
|
60 typedef struct _EXIT_THREAD_DEBUG_INFO {
|
|
61 DWORD dwExitCode;
|
|
62 } EXIT_THREAD_DEBUG_INFO;
|
|
63
|
|
64 typedef struct _EXIT_PROCESS_DEBUG_INFO {
|
|
65 DWORD dwExitCode;
|
|
66 } EXIT_PROCESS_DEBUG_INFO;
|
|
67
|
|
68 typedef struct _LOAD_DLL_DEBUG_INFO {
|
|
69 HANDLE hFile;
|
|
70 LPVOID lpBaseOfDll;
|
|
71 DWORD dwDebugInfoFileOffset;
|
|
72 DWORD nDebugInfoSize;
|
|
73 LPVOID lpImageName;
|
|
74 WORD fUnicode;
|
|
75 } LOAD_DLL_DEBUG_INFO;
|
|
76
|
|
77 typedef struct _UNLOAD_DLL_DEBUG_INFO {
|
|
78 LPVOID lpBaseOfDll;
|
|
79 } UNLOAD_DLL_DEBUG_INFO;
|
|
80
|
|
81 typedef struct _OUTPUT_DEBUG_STRING_INFO {
|
|
82 LPSTR lpDebugStringData;
|
|
83 WORD fUnicode;
|
|
84 WORD nDebugStringLength;
|
|
85 } OUTPUT_DEBUG_STRING_INFO;
|
|
86
|
|
87 typedef struct _RIP_INFO {
|
|
88 DWORD dwError;
|
|
89 DWORD dwType;
|
|
90 } RIP_INFO;
|
|
91
|
|
92 typedef struct _DEBUG_EVENT {
|
|
93 DWORD dwDebugEventCode;
|
|
94 DWORD dwProcessId;
|
|
95 DWORD dwThreadId;
|
|
96 union {
|
|
97 EXCEPTION_DEBUG_INFO Exception;
|
|
98 CREATE_THREAD_DEBUG_INFO CreateThread;
|
|
99 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo;
|
|
100 EXIT_THREAD_DEBUG_INFO ExitThread;
|
|
101 EXIT_PROCESS_DEBUG_INFO ExitProcess;
|
|
102 LOAD_DLL_DEBUG_INFO LoadDll;
|
|
103 UNLOAD_DLL_DEBUG_INFO UnloadDll;
|
|
104 OUTPUT_DEBUG_STRING_INFO DebugString;
|
|
105 RIP_INFO RipInfo;
|
|
106 } u;
|
|
107 } DEBUG_EVENT, *LPDEBUG_EVENT;
|
|
108
|
|
109 #define OFS_MAXPATHNAME 128
|
|
110 typedef struct
|
|
111 {
|
|
112 BYTE cBytes;
|
|
113 BYTE fFixedDisk;
|
|
114 WORD nErrCode;
|
|
115 BYTE reserved[4];
|
|
116 BYTE szPathName[OFS_MAXPATHNAME];
|
|
117 } OFSTRUCT, *LPOFSTRUCT;
|
|
118
|
|
119 #define OF_READ 0x0000
|
|
120 #define OF_WRITE 0x0001
|
|
121 #define OF_READWRITE 0x0002
|
|
122 #define OF_SHARE_COMPAT 0x0000
|
|
123 #define OF_SHARE_EXCLUSIVE 0x0010
|
|
124 #define OF_SHARE_DENY_WRITE 0x0020
|
|
125 #define OF_SHARE_DENY_READ 0x0030
|
|
126 #define OF_SHARE_DENY_NONE 0x0040
|
|
127 #define OF_PARSE 0x0100
|
|
128 #define OF_DELETE 0x0200
|
|
129 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
|
|
130 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
|
|
131 #define OF_CANCEL 0x0800
|
|
132 #define OF_CREATE 0x1000
|
|
133 #define OF_PROMPT 0x2000
|
|
134 #define OF_EXIST 0x4000
|
|
135 #define OF_REOPEN 0x8000
|
|
136
|
|
137 /* SetErrorMode values */
|
|
138 #define SEM_FAILCRITICALERRORS 0x0001
|
|
139 #define SEM_NOGPFAULTERRORBOX 0x0002
|
|
140 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
|
|
141 #define SEM_NOOPENFILEERRORBOX 0x8000
|
|
142
|
|
143 /* CopyFileEx flags */
|
|
144 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
|
|
145 #define COPY_FILE_RESTARTABLE 0x00000002
|
|
146 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
|
|
147
|
|
148 /* GetTempFileName() Flags */
|
|
149 #define TF_FORCEDRIVE 0x80
|
|
150
|
|
151 #define DRIVE_CANNOTDETERMINE 0
|
|
152 #define DRIVE_DOESNOTEXIST 1
|
|
153 #define DRIVE_REMOVABLE 2
|
|
154 #define DRIVE_FIXED 3
|
|
155 #define DRIVE_REMOTE 4
|
|
156 /* Win32 additions */
|
|
157 #define DRIVE_CDROM 5
|
|
158 #define DRIVE_RAMDISK 6
|
|
159
|
|
160 /* The security attributes structure */
|
|
161 typedef struct _SECURITY_ATTRIBUTES
|
|
162 {
|
|
163 DWORD nLength;
|
|
164 LPVOID lpSecurityDescriptor;
|
|
165 WIN_BOOL bInheritHandle;
|
|
166 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
|
|
167
|
|
168 #ifndef _FILETIME_
|
|
169 #define _FILETIME_
|
|
170 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
|
|
171 typedef struct
|
|
172 {
|
|
173 DWORD dwLowDateTime;
|
|
174 DWORD dwHighDateTime;
|
|
175 } FILETIME, *LPFILETIME;
|
|
176 #endif /* _FILETIME_ */
|
|
177
|
|
178 /* Find* structures */
|
|
179 typedef struct
|
|
180 {
|
|
181 DWORD dwFileAttributes;
|
|
182 FILETIME ftCreationTime;
|
|
183 FILETIME ftLastAccessTime;
|
|
184 FILETIME ftLastWriteTime;
|
|
185 DWORD nFileSizeHigh;
|
|
186 DWORD nFileSizeLow;
|
|
187 DWORD dwReserved0;
|
|
188 DWORD dwReserved1;
|
|
189 CHAR cFileName[260];
|
|
190 CHAR cAlternateFileName[14];
|
|
191 } WIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
|
|
192
|
|
193 typedef struct
|
|
194 {
|
|
195 DWORD dwFileAttributes;
|
|
196 FILETIME ftCreationTime;
|
|
197 FILETIME ftLastAccessTime;
|
|
198 FILETIME ftLastWriteTime;
|
|
199 DWORD nFileSizeHigh;
|
|
200 DWORD nFileSizeLow;
|
|
201 DWORD dwReserved0;
|
|
202 DWORD dwReserved1;
|
|
203 WCHAR cFileName[260];
|
|
204 WCHAR cAlternateFileName[14];
|
|
205 } WIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
|
|
206
|
|
207 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
|
|
208 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
|
|
209
|
|
210 typedef struct
|
|
211 {
|
|
212 LPVOID lpData;
|
|
213 DWORD cbData;
|
|
214 BYTE cbOverhead;
|
|
215 BYTE iRegionIndex;
|
|
216 WORD wFlags;
|
|
217 union {
|
|
218 struct {
|
|
219 HANDLE hMem;
|
|
220 DWORD dwReserved[3];
|
|
221 } Block;
|
|
222 struct {
|
|
223 DWORD dwCommittedSize;
|
|
224 DWORD dwUnCommittedSize;
|
|
225 LPVOID lpFirstBlock;
|
|
226 LPVOID lpLastBlock;
|
|
227 } Region;
|
|
228 } Foo;
|
|
229 } PROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY;
|
|
230
|
|
231 #define PROCESS_HEAP_REGION 0x0001
|
|
232 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
|
|
233 #define PROCESS_HEAP_ENTRY_BUSY 0x0004
|
|
234 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
|
|
235 #define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
|
|
236
|
|
237 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
|
|
238 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
|
|
239
|
|
240 #define TLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
|
|
241
|
|
242 /* comm */
|
|
243
|
|
244 #define CBR_110 0xFF10
|
|
245 #define CBR_300 0xFF11
|
|
246 #define CBR_600 0xFF12
|
|
247 #define CBR_1200 0xFF13
|
|
248 #define CBR_2400 0xFF14
|
|
249 #define CBR_4800 0xFF15
|
|
250 #define CBR_9600 0xFF16
|
|
251 #define CBR_14400 0xFF17
|
|
252 #define CBR_19200 0xFF18
|
|
253 #define CBR_38400 0xFF1B
|
|
254 #define CBR_56000 0xFF1F
|
|
255 #define CBR_128000 0xFF23
|
|
256 #define CBR_256000 0xFF27
|
|
257
|
|
258 #define NOPARITY 0
|
|
259 #define ODDPARITY 1
|
|
260 #define EVENPARITY 2
|
|
261 #define MARKPARITY 3
|
|
262 #define SPACEPARITY 4
|
|
263 #define ONESTOPBIT 0
|
|
264 #define ONE5STOPBITS 1
|
|
265 #define TWOSTOPBITS 2
|
|
266
|
|
267 #define IGNORE 0
|
|
268 #define INFINITE16 0xFFFF
|
|
269 #define INFINITE 0xFFFFFFFF
|
|
270
|
|
271 #define CE_RXOVER 0x0001
|
|
272 #define CE_OVERRUN 0x0002
|
|
273 #define CE_RXPARITY 0x0004
|
|
274 #define CE_FRAME 0x0008
|
|
275 #define CE_BREAK 0x0010
|
|
276 #define CE_CTSTO 0x0020
|
|
277 #define CE_DSRTO 0x0040
|
|
278 #define CE_RLSDTO 0x0080
|
|
279 #define CE_TXFULL 0x0100
|
|
280 #define CE_PTO 0x0200
|
|
281 #define CE_IOE 0x0400
|
|
282 #define CE_DNS 0x0800
|
|
283 #define CE_OOP 0x1000
|
|
284 #define CE_MODE 0x8000
|
|
285
|
|
286 #define IE_BADID -1
|
|
287 #define IE_OPEN -2
|
|
288 #define IE_NOPEN -3
|
|
289 #define IE_MEMORY -4
|
|
290 #define IE_DEFAULT -5
|
|
291 #define IE_HARDWARE -10
|
|
292 #define IE_BYTESIZE -11
|
|
293 #define IE_BAUDRATE -12
|
|
294
|
|
295 #define EV_RXCHAR 0x0001
|
|
296 #define EV_RXFLAG 0x0002
|
|
297 #define EV_TXEMPTY 0x0004
|
|
298 #define EV_CTS 0x0008
|
|
299 #define EV_DSR 0x0010
|
|
300 #define EV_RLSD 0x0020
|
|
301 #define EV_BREAK 0x0040
|
|
302 #define EV_ERR 0x0080
|
|
303 #define EV_RING 0x0100
|
|
304 #define EV_PERR 0x0200
|
|
305 #define EV_CTSS 0x0400
|
|
306 #define EV_DSRS 0x0800
|
|
307 #define EV_RLSDS 0x1000
|
|
308 #define EV_RINGTE 0x2000
|
|
309 #define EV_RingTe EV_RINGTE
|
|
310
|
|
311 #define SETXOFF 1
|
|
312 #define SETXON 2
|
|
313 #define SETRTS 3
|
|
314 #define CLRRTS 4
|
|
315 #define SETDTR 5
|
|
316 #define CLRDTR 6
|
|
317 #define RESETDEV 7
|
|
318 #define SETBREAK 8
|
|
319 #define CLRBREAK 9
|
|
320
|
|
321 #define GETBASEIRQ 10
|
|
322
|
|
323 /* Purge functions for Comm Port */
|
|
324 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
|
|
325 comm port */
|
|
326 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
|
|
327 the comm port */
|
|
328 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
|
|
329 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
|
|
330
|
|
331
|
|
332 /* Modem Status Flags */
|
|
333 #define MS_CTS_ON ((DWORD)0x0010)
|
|
334 #define MS_DSR_ON ((DWORD)0x0020)
|
|
335 #define MS_RING_ON ((DWORD)0x0040)
|
|
336 #define MS_RLSD_ON ((DWORD)0x0080)
|
|
337
|
|
338 #define RTS_CONTROL_DISABLE 0
|
|
339 #define RTS_CONTROL_ENABLE 1
|
|
340 #define RTS_CONTROL_HANDSHAKE 2
|
|
341 #define RTS_CONTROL_TOGGLE 3
|
|
342
|
|
343 #define DTR_CONTROL_DISABLE 0
|
|
344 #define DTR_CONTROL_ENABLE 1
|
|
345 #define DTR_CONTROL_HANDSHAKE 2
|
|
346
|
|
347 #define CSTF_CTSHOLD 0x01
|
|
348 #define CSTF_DSRHOLD 0x02
|
|
349 #define CSTF_RLSDHOLD 0x04
|
|
350 #define CSTF_XOFFHOLD 0x08
|
|
351 #define CSTF_XOFFSENT 0x10
|
|
352 #define CSTF_EOF 0x20
|
|
353 #define CSTF_TXIM 0x40
|
|
354
|
|
355 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
|
|
356 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
|
|
357 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
|
|
358
|
|
359 /* Predefined resource types */
|
|
360 #define RT_CURSORA MAKEINTRESOURCEA(1)
|
|
361 #define RT_CURSORW MAKEINTRESOURCEW(1)
|
|
362 #define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
|
|
363 #define RT_BITMAPA MAKEINTRESOURCEA(2)
|
|
364 #define RT_BITMAPW MAKEINTRESOURCEW(2)
|
|
365 #define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
|
|
366 #define RT_ICONA MAKEINTRESOURCEA(3)
|
|
367 #define RT_ICONW MAKEINTRESOURCEW(3)
|
|
368 #define RT_ICON WINELIB_NAME_AW(RT_ICON)
|
|
369 #define RT_MENUA MAKEINTRESOURCEA(4)
|
|
370 #define RT_MENUW MAKEINTRESOURCEW(4)
|
|
371 #define RT_MENU WINELIB_NAME_AW(RT_MENU)
|
|
372 #define RT_DIALOGA MAKEINTRESOURCEA(5)
|
|
373 #define RT_DIALOGW MAKEINTRESOURCEW(5)
|
|
374 #define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
|
|
375 #define RT_STRINGA MAKEINTRESOURCEA(6)
|
|
376 #define RT_STRINGW MAKEINTRESOURCEW(6)
|
|
377 #define RT_STRING WINELIB_NAME_AW(RT_STRING)
|
|
378 #define RT_FONTDIRA MAKEINTRESOURCEA(7)
|
|
379 #define RT_FONTDIRW MAKEINTRESOURCEW(7)
|
|
380 #define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
|
|
381 #define RT_FONTA MAKEINTRESOURCEA(8)
|
|
382 #define RT_FONTW MAKEINTRESOURCEW(8)
|
|
383 #define RT_FONT WINELIB_NAME_AW(RT_FONT)
|
|
384 #define RT_ACCELERATORA MAKEINTRESOURCEA(9)
|
|
385 #define RT_ACCELERATORW MAKEINTRESOURCEW(9)
|
|
386 #define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
|
|
387 #define RT_RCDATAA MAKEINTRESOURCEA(10)
|
|
388 #define RT_RCDATAW MAKEINTRESOURCEW(10)
|
|
389 #define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
|
|
390 #define RT_MESSAGELISTA MAKEINTRESOURCEA(11)
|
|
391 #define RT_MESSAGELISTW MAKEINTRESOURCEW(11)
|
|
392 #define RT_MESSAGELIST WINELIB_NAME_AW(RT_MESSAGELIST)
|
|
393 #define RT_GROUP_CURSORA MAKEINTRESOURCEA(12)
|
|
394 #define RT_GROUP_CURSORW MAKEINTRESOURCEW(12)
|
|
395 #define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
|
|
396 #define RT_GROUP_ICONA MAKEINTRESOURCEA(14)
|
|
397 #define RT_GROUP_ICONW MAKEINTRESOURCEW(14)
|
|
398 #define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
|
|
399
|
|
400
|
|
401 #define LMEM_FIXED 0
|
|
402 #define LMEM_MOVEABLE 0x0002
|
|
403 #define LMEM_NOCOMPACT 0x0010
|
|
404 #define LMEM_NODISCARD 0x0020
|
|
405 #define LMEM_ZEROINIT 0x0040
|
|
406 #define LMEM_MODIFY 0x0080
|
|
407 #define LMEM_DISCARDABLE 0x0F00
|
|
408 #define LMEM_DISCARDED 0x4000
|
|
409 #define LMEM_LOCKCOUNT 0x00FF
|
|
410
|
|
411 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
|
|
412
|
|
413 #define GMEM_FIXED 0x0000
|
|
414 #define GMEM_MOVEABLE 0x0002
|
|
415 #define GMEM_NOCOMPACT 0x0010
|
|
416 #define GMEM_NODISCARD 0x0020
|
|
417 #define GMEM_ZEROINIT 0x0040
|
|
418 #define GMEM_MODIFY 0x0080
|
|
419 #define GMEM_DISCARDABLE 0x0100
|
|
420 #define GMEM_NOT_BANKED 0x1000
|
|
421 #define GMEM_SHARE 0x2000
|
|
422 #define GMEM_DDESHARE 0x2000
|
|
423 #define GMEM_NOTIFY 0x4000
|
|
424 #define GMEM_LOWER GMEM_NOT_BANKED
|
|
425 #define GMEM_DISCARDED 0x4000
|
|
426 #define GMEM_LOCKCOUNT 0x00ff
|
|
427 #define GMEM_INVALID_HANDLE 0x8000
|
|
428
|
|
429 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
|
|
430 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
|
|
431
|
|
432
|
|
433 typedef struct tagMEMORYSTATUS
|
|
434 {
|
|
435 DWORD dwLength;
|
|
436 DWORD dwMemoryLoad;
|
|
437 DWORD dwTotalPhys;
|
|
438 DWORD dwAvailPhys;
|
|
439 DWORD dwTotalPageFile;
|
|
440 DWORD dwAvailPageFile;
|
|
441 DWORD dwTotalVirtual;
|
|
442 DWORD dwAvailVirtual;
|
|
443 } MEMORYSTATUS, *LPMEMORYSTATUS;
|
|
444
|
|
445
|
|
446 #ifndef NOLOGERROR
|
|
447
|
|
448 /* LogParamError and LogError values */
|
|
449
|
|
450 /* Error modifier bits */
|
|
451 #define ERR_WARNING 0x8000
|
|
452 #define ERR_PARAM 0x4000
|
|
453
|
|
454 #define ERR_SIZE_MASK 0x3000
|
|
455 #define ERR_BYTE 0x1000
|
|
456 #define ERR_WORD 0x2000
|
|
457 #define ERR_DWORD 0x3000
|
|
458
|
|
459 /* LogParamError() values */
|
|
460
|
|
461 /* Generic parameter values */
|
|
462 #define ERR_BAD_VALUE 0x6001
|
|
463 #define ERR_BAD_FLAGS 0x6002
|
|
464 #define ERR_BAD_INDEX 0x6003
|
|
465 #define ERR_BAD_DVALUE 0x7004
|
|
466 #define ERR_BAD_DFLAGS 0x7005
|
|
467 #define ERR_BAD_DINDEX 0x7006
|
|
468 #define ERR_BAD_PTR 0x7007
|
|
469 #define ERR_BAD_FUNC_PTR 0x7008
|
|
470 #define ERR_BAD_SELECTOR 0x6009
|
|
471 #define ERR_BAD_STRING_PTR 0x700a
|
|
472 #define ERR_BAD_HANDLE 0x600b
|
|
473
|
|
474 /* KERNEL parameter errors */
|
|
475 #define ERR_BAD_HINSTANCE 0x6020
|
|
476 #define ERR_BAD_HMODULE 0x6021
|
|
477 #define ERR_BAD_GLOBAL_HANDLE 0x6022
|
|
478 #define ERR_BAD_LOCAL_HANDLE 0x6023
|
|
479 #define ERR_BAD_ATOM 0x6024
|
|
480 #define ERR_BAD_HFILE 0x6025
|
|
481
|
|
482 /* USER parameter errors */
|
|
483 #define ERR_BAD_HWND 0x6040
|
|
484 #define ERR_BAD_HMENU 0x6041
|
|
485 #define ERR_BAD_HCURSOR 0x6042
|
|
486 #define ERR_BAD_HICON 0x6043
|
|
487 #define ERR_BAD_HDWP 0x6044
|
|
488 #define ERR_BAD_CID 0x6045
|
|
489 #define ERR_BAD_HDRVR 0x6046
|
|
490
|
|
491 /* GDI parameter errors */
|
|
492 #define ERR_BAD_COORDS 0x7060
|
|
493 #define ERR_BAD_GDI_OBJECT 0x6061
|
|
494 #define ERR_BAD_HDC 0x6062
|
|
495 #define ERR_BAD_HPEN 0x6063
|
|
496 #define ERR_BAD_HFONT 0x6064
|
|
497 #define ERR_BAD_HBRUSH 0x6065
|
|
498 #define ERR_BAD_HBITMAP 0x6066
|
|
499 #define ERR_BAD_HRGN 0x6067
|
|
500 #define ERR_BAD_HPALETTE 0x6068
|
|
501 #define ERR_BAD_HMETAFILE 0x6069
|
|
502
|
|
503
|
|
504 /* LogError() values */
|
|
505
|
|
506 /* KERNEL errors */
|
|
507 #define ERR_GALLOC 0x0001
|
|
508 #define ERR_GREALLOC 0x0002
|
|
509 #define ERR_GLOCK 0x0003
|
|
510 #define ERR_LALLOC 0x0004
|
|
511 #define ERR_LREALLOC 0x0005
|
|
512 #define ERR_LLOCK 0x0006
|
|
513 #define ERR_ALLOCRES 0x0007
|
|
514 #define ERR_LOCKRES 0x0008
|
|
515 #define ERR_LOADMODULE 0x0009
|
|
516
|
|
517 /* USER errors */
|
|
518 #define ERR_CREATEDLG 0x0040
|
|
519 #define ERR_CREATEDLG2 0x0041
|
|
520 #define ERR_REGISTERCLASS 0x0042
|
|
521 #define ERR_DCBUSY 0x0043
|
|
522 #define ERR_CREATEWND 0x0044
|
|
523 #define ERR_STRUCEXTRA 0x0045
|
|
524 #define ERR_LOADSTR 0x0046
|
|
525 #define ERR_LOADMENU 0x0047
|
|
526 #define ERR_NESTEDBEGINPAINT 0x0048
|
|
527 #define ERR_BADINDEX 0x0049
|
|
528 #define ERR_CREATEMENU 0x004a
|
|
529
|
|
530 /* GDI errors */
|
|
531 #define ERR_CREATEDC 0x0080
|
|
532 #define ERR_CREATEMETA 0x0081
|
|
533 #define ERR_DELOBJSELECTED 0x0082
|
|
534 #define ERR_SELBITMAP 0x0083
|
|
535
|
|
536
|
|
537
|
|
538 /* Debugging support (DEBUG SYSTEM ONLY) */
|
|
539 typedef struct
|
|
540 {
|
|
541 UINT16 flags;
|
|
542 DWORD dwOptions WINE_PACKED;
|
|
543 DWORD dwFilter WINE_PACKED;
|
|
544 CHAR achAllocModule[8] WINE_PACKED;
|
|
545 DWORD dwAllocBreak WINE_PACKED;
|
|
546 DWORD dwAllocCount WINE_PACKED;
|
|
547 } WINDEBUGINFO, *LPWINDEBUGINFO;
|
|
548
|
|
549 /* WINDEBUGINFO flags values */
|
|
550 #define WDI_OPTIONS 0x0001
|
|
551 #define WDI_FILTER 0x0002
|
|
552 #define WDI_ALLOCBREAK 0x0004
|
|
553
|
|
554 /* dwOptions values */
|
|
555 #define DBO_CHECKHEAP 0x0001
|
|
556 #define DBO_BUFFERFILL 0x0004
|
|
557 #define DBO_DISABLEGPTRAPPING 0x0010
|
|
558 #define DBO_CHECKFREE 0x0020
|
|
559
|
|
560 #define DBO_SILENT 0x8000
|
|
561
|
|
562 #define DBO_TRACEBREAK 0x2000
|
|
563 #define DBO_WARNINGBREAK 0x1000
|
|
564 #define DBO_NOERRORBREAK 0x0800
|
|
565 #define DBO_NOFATALBREAK 0x0400
|
|
566 #define DBO_INT3BREAK 0x0100
|
|
567
|
|
568 /* DebugOutput flags values */
|
|
569 #define DBF_TRACE 0x0000
|
|
570 #define DBF_WARNING 0x4000
|
|
571 #define DBF_ERROR 0x8000
|
|
572 #define DBF_FATAL 0xc000
|
|
573
|
|
574 /* dwFilter values */
|
|
575 #define DBF_KERNEL 0x1000
|
|
576 #define DBF_KRN_MEMMAN 0x0001
|
|
577 #define DBF_KRN_LOADMODULE 0x0002
|
|
578 #define DBF_KRN_SEGMENTLOAD 0x0004
|
|
579 #define DBF_USER 0x0800
|
|
580 #define DBF_GDI 0x0400
|
|
581 #define DBF_MMSYSTEM 0x0040
|
|
582 #define DBF_PENWIN 0x0020
|
|
583 #define DBF_APPLICATION 0x0008
|
|
584 #define DBF_DRIVER 0x0010
|
|
585
|
|
586 #endif /* NOLOGERROR */
|
|
587
|
|
588 typedef struct {
|
|
589 WORD wYear;
|
|
590 WORD wMonth;
|
|
591 WORD wDayOfWeek;
|
|
592 WORD wDay;
|
|
593 WORD wHour;
|
|
594 WORD wMinute;
|
|
595 WORD wSecond;
|
|
596 WORD wMilliseconds;
|
|
597 } SYSTEMTIME, *LPSYSTEMTIME;
|
|
598
|
|
599 /* The 'overlapped' data structure used by async I/O functions.
|
|
600 */
|
|
601 typedef struct {
|
|
602 DWORD Internal;
|
|
603 DWORD InternalHigh;
|
|
604 DWORD Offset;
|
|
605 DWORD OffsetHigh;
|
|
606 HANDLE hEvent;
|
|
607 } OVERLAPPED, *LPOVERLAPPED;
|
|
608
|
|
609 /* Process startup information.
|
|
610 */
|
|
611
|
|
612 /* STARTUPINFO.dwFlags */
|
|
613 #define STARTF_USESHOWWINDOW 0x00000001
|
|
614 #define STARTF_USESIZE 0x00000002
|
|
615 #define STARTF_USEPOSITION 0x00000004
|
|
616 #define STARTF_USECOUNTCHARS 0x00000008
|
|
617 #define STARTF_USEFILLATTRIBUTE 0x00000010
|
|
618 #define STARTF_RUNFULLSCREEN 0x00000020
|
|
619 #define STARTF_FORCEONFEEDBACK 0x00000040
|
|
620 #define STARTF_FORCEOFFFEEDBACK 0x00000080
|
|
621 #define STARTF_USESTDHANDLES 0x00000100
|
|
622 #define STARTF_USEHOTKEY 0x00000200
|
|
623
|
|
624 typedef struct {
|
|
625 DWORD cb; /* 00: size of struct */
|
|
626 LPSTR lpReserved; /* 04: */
|
|
627 LPSTR lpDesktop; /* 08: */
|
|
628 LPSTR lpTitle; /* 0c: */
|
|
629 DWORD dwX; /* 10: */
|
|
630 DWORD dwY; /* 14: */
|
|
631 DWORD dwXSize; /* 18: */
|
|
632 DWORD dwYSize; /* 1c: */
|
|
633 DWORD dwXCountChars; /* 20: */
|
|
634 DWORD dwYCountChars; /* 24: */
|
|
635 DWORD dwFillAttribute; /* 28: */
|
|
636 DWORD dwFlags; /* 2c: */
|
|
637 WORD wShowWindow; /* 30: */
|
|
638 WORD cbReserved2; /* 32: */
|
|
639 BYTE *lpReserved2; /* 34: */
|
|
640 HANDLE hStdInput; /* 38: */
|
|
641 HANDLE hStdOutput; /* 3c: */
|
|
642 HANDLE hStdError; /* 40: */
|
|
643 } STARTUPINFOA, *LPSTARTUPINFOA;
|
|
644
|
|
645 typedef struct {
|
|
646 DWORD cb;
|
|
647 LPWSTR lpReserved;
|
|
648 LPWSTR lpDesktop;
|
|
649 LPWSTR lpTitle;
|
|
650 DWORD dwX;
|
|
651 DWORD dwY;
|
|
652 DWORD dwXSize;
|
|
653 DWORD dwYSize;
|
|
654 DWORD dwXCountChars;
|
|
655 DWORD dwYCountChars;
|
|
656 DWORD dwFillAttribute;
|
|
657 DWORD dwFlags;
|
|
658 WORD wShowWindow;
|
|
659 WORD cbReserved2;
|
|
660 BYTE *lpReserved2;
|
|
661 HANDLE hStdInput;
|
|
662 HANDLE hStdOutput;
|
|
663 HANDLE hStdError;
|
|
664 } STARTUPINFOW, *LPSTARTUPINFOW;
|
|
665
|
|
666 DECL_WINELIB_TYPE_AW(STARTUPINFO)
|
|
667 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
|
|
668
|
|
669 typedef struct {
|
|
670 HANDLE hProcess;
|
|
671 HANDLE hThread;
|
|
672 DWORD dwProcessId;
|
|
673 DWORD dwThreadId;
|
|
674 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
|
|
675
|
|
676 typedef struct {
|
|
677 LONG Bias;
|
|
678 WCHAR StandardName[32];
|
|
679 SYSTEMTIME StandardDate;
|
|
680 LONG StandardBias;
|
|
681 WCHAR DaylightName[32];
|
|
682 SYSTEMTIME DaylightDate;
|
|
683 LONG DaylightBias;
|
|
684 } TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
|
|
685
|
|
686 #define TIME_ZONE_ID_UNKNOWN 0
|
|
687 #define TIME_ZONE_ID_STANDARD 1
|
|
688 #define TIME_ZONE_ID_DAYLIGHT 2
|
|
689
|
|
690 /* CreateProcess: dwCreationFlag values
|
|
691 */
|
|
692 #define DEBUG_PROCESS 0x00000001
|
|
693 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
|
|
694 #define CREATE_SUSPENDED 0x00000004
|
|
695 #define DETACHED_PROCESS 0x00000008
|
|
696 #define CREATE_NEW_CONSOLE 0x00000010
|
|
697 #define NORMAL_PRIORITY_CLASS 0x00000020
|
|
698 #define IDLE_PRIORITY_CLASS 0x00000040
|
|
699 #define HIGH_PRIORITY_CLASS 0x00000080
|
|
700 #define REALTIME_PRIORITY_CLASS 0x00000100
|
|
701 #define CREATE_NEW_PROCESS_GROUP 0x00000200
|
|
702 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
|
|
703 #define CREATE_SEPARATE_WOW_VDM 0x00000800
|
|
704 #define CREATE_SHARED_WOW_VDM 0x00001000
|
|
705 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
|
|
706 #define CREATE_NO_WINDOW 0x08000000
|
|
707 #define PROFILE_USER 0x10000000
|
|
708 #define PROFILE_KERNEL 0x20000000
|
|
709 #define PROFILE_SERVER 0x40000000
|
|
710
|
|
711
|
|
712 /* File object type definitions
|
|
713 */
|
|
714 #define FILE_TYPE_UNKNOWN 0
|
|
715 #define FILE_TYPE_DISK 1
|
|
716 #define FILE_TYPE_CHAR 2
|
|
717 #define FILE_TYPE_PIPE 3
|
|
718 #define FILE_TYPE_REMOTE 32768
|
|
719
|
|
720 /* File creation flags
|
|
721 */
|
|
722 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
|
|
723 #define FILE_FLAG_OVERLAPPED 0x40000000L
|
|
724 #define FILE_FLAG_NO_BUFFERING 0x20000000L
|
|
725 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
|
|
726 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
|
|
727 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
|
|
728 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
|
|
729 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
|
|
730 #define CREATE_NEW 1
|
|
731 #define CREATE_ALWAYS 2
|
|
732 #define OPEN_EXISTING 3
|
|
733 #define OPEN_ALWAYS 4
|
|
734 #define TRUNCATE_EXISTING 5
|
|
735
|
|
736 /* Standard handle identifiers
|
|
737 */
|
|
738 #define STD_INPUT_HANDLE ((DWORD) -10)
|
|
739 #define STD_OUTPUT_HANDLE ((DWORD) -11)
|
|
740 #define STD_ERROR_HANDLE ((DWORD) -12)
|
|
741
|
|
742 typedef struct
|
|
743 {
|
|
744 int dwFileAttributes;
|
|
745 FILETIME ftCreationTime;
|
|
746 FILETIME ftLastAccessTime;
|
|
747 FILETIME ftLastWriteTime;
|
|
748 int dwVolumeSerialNumber;
|
|
749 int nFileSizeHigh;
|
|
750 int nFileSizeLow;
|
|
751 int nNumberOfLinks;
|
|
752 int nFileIndexHigh;
|
|
753 int nFileIndexLow;
|
|
754 } BY_HANDLE_FILE_INFORMATION ;
|
|
755
|
|
756
|
|
757 typedef struct _SYSTEM_POWER_STATUS
|
|
758 {
|
|
759 WIN_BOOL16 ACLineStatus;
|
|
760 BYTE BatteryFlag;
|
|
761 BYTE BatteryLifePercent;
|
|
762 BYTE reserved;
|
|
763 DWORD BatteryLifeTime;
|
|
764 DWORD BatteryFullLifeTime;
|
|
765 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
|
|
766
|
|
767 typedef struct _MEMORY_BASIC_INFORMATION
|
|
768 {
|
|
769 LPVOID BaseAddress;
|
|
770 LPVOID AllocationBase;
|
|
771 DWORD AllocationProtect;
|
|
772 DWORD RegionSize;
|
|
773 DWORD State;
|
|
774 DWORD Protect;
|
|
775 DWORD Type;
|
|
776 } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
|
|
777
|
|
778
|
|
779 typedef WIN_BOOL CALLBACK (*CODEPAGE_ENUMPROCA)(LPSTR);
|
|
780 typedef WIN_BOOL CALLBACK (*CODEPAGE_ENUMPROCW)(LPWSTR);
|
|
781 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
|
|
782 typedef WIN_BOOL CALLBACK (*LOCALE_ENUMPROCA)(LPSTR);
|
|
783 typedef WIN_BOOL CALLBACK (*LOCALE_ENUMPROCW)(LPWSTR);
|
|
784 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
|
|
785
|
|
786 typedef struct tagSYSTEM_INFO
|
|
787 {
|
|
788 union {
|
|
789 DWORD dwOemId; /* Obsolete field - do not use */
|
|
790 struct {
|
|
791 WORD wProcessorArchitecture;
|
|
792 WORD wReserved;
|
|
793 } DUMMYSTRUCTNAME;
|
|
794 } DUMMYUNIONNAME;
|
|
795 DWORD dwPageSize;
|
|
796 LPVOID lpMinimumApplicationAddress;
|
|
797 LPVOID lpMaximumApplicationAddress;
|
|
798 DWORD dwActiveProcessorMask;
|
|
799 DWORD dwNumberOfProcessors;
|
|
800 DWORD dwProcessorType;
|
|
801 DWORD dwAllocationGranularity;
|
|
802 WORD wProcessorLevel;
|
|
803 WORD wProcessorRevision;
|
|
804 } SYSTEM_INFO, *LPSYSTEM_INFO;
|
|
805
|
|
806 /* {G,S}etPriorityClass */
|
|
807 #define NORMAL_PRIORITY_CLASS 0x00000020
|
|
808 #define IDLE_PRIORITY_CLASS 0x00000040
|
|
809 #define HIGH_PRIORITY_CLASS 0x00000080
|
|
810 #define REALTIME_PRIORITY_CLASS 0x00000100
|
|
811
|
|
812 typedef WIN_BOOL CALLBACK (*ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
|
|
813 typedef WIN_BOOL CALLBACK (*ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG);
|
|
814 typedef WIN_BOOL CALLBACK (*ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG);
|
|
815 typedef WIN_BOOL CALLBACK (*ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG);
|
|
816 typedef WIN_BOOL CALLBACK (*ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG);
|
|
817 typedef WIN_BOOL CALLBACK (*ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG);
|
|
818
|
|
819 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
|
|
820 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
|
|
821 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
|
|
822
|
|
823 /* flags that can be passed to LoadLibraryEx */
|
|
824 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
|
|
825 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
|
|
826 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
|
|
827
|
|
828 /* ifdef _x86_ ... */
|
|
829 typedef struct _LDT_ENTRY {
|
|
830 WORD LimitLow;
|
|
831 WORD BaseLow;
|
|
832 union {
|
|
833 struct {
|
|
834 BYTE BaseMid;
|
|
835 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
|
|
836 BYTE Flags2;
|
|
837 BYTE BaseHi;
|
|
838 } Bytes;
|
|
839 struct {
|
|
840 unsigned BaseMid : 8;
|
|
841 unsigned Type : 5;
|
|
842 unsigned Dpl : 2;
|
|
843 unsigned Pres : 1;
|
|
844 unsigned LimitHi : 4;
|
|
845 unsigned Sys : 1;
|
|
846 unsigned Reserved_0 : 1;
|
|
847 unsigned Default_Big : 1;
|
|
848 unsigned Granularity : 1;
|
|
849 unsigned BaseHi : 8;
|
|
850 } Bits;
|
|
851 } HighWord;
|
|
852 } LDT_ENTRY, *LPLDT_ENTRY;
|
|
853
|
|
854
|
|
855 typedef enum _GET_FILEEX_INFO_LEVELS {
|
|
856 GetFileExInfoStandard
|
|
857 } GET_FILEEX_INFO_LEVELS;
|
|
858
|
|
859 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
|
|
860 DWORD dwFileAttributes;
|
|
861 FILETIME ftCreationTime;
|
|
862 FILETIME ftLastAccessTime;
|
|
863 FILETIME ftLastWriteTime;
|
|
864 DWORD nFileSizeHigh;
|
|
865 DWORD nFileSizeLow;
|
|
866 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
|
|
867
|
|
868 typedef struct _DllVersionInfo {
|
|
869 DWORD cbSize;
|
|
870 DWORD dwMajorVersion;
|
|
871 DWORD dwMinorVersion;
|
|
872 DWORD dwBuildNumber;
|
|
873 DWORD dwPlatformID;
|
|
874 } DLLVERSIONINFO;
|
|
875
|
|
876 /*
|
|
877 * This one seems to be a Win32 only definition. It also is defined with
|
|
878 * WINAPI instead of CALLBACK in the windows headers.
|
|
879 */
|
|
880 typedef DWORD WINAPI (*LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
|
|
881 LARGE_INTEGER, DWORD, DWORD, HANDLE,
|
|
882 HANDLE, LPVOID);
|
|
883
|
|
884
|
|
885 #define WAIT_FAILED 0xffffffff
|
|
886 #define WAIT_OBJECT_0 0
|
|
887 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
|
|
888 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
|
|
889 #define WAIT_IO_COMPLETION STATUS_USER_APC
|
|
890 #define WAIT_TIMEOUT STATUS_TIMEOUT
|
|
891 #define STILL_ACTIVE STATUS_PENDING
|
|
892
|
|
893 #define PAGE_NOACCESS 0x01
|
|
894 #define PAGE_READONLY 0x02
|
|
895 #define PAGE_READWRITE 0x04
|
|
896 #define PAGE_WRITECOPY 0x08
|
|
897 #define PAGE_EXECUTE 0x10
|
|
898 #define PAGE_EXECUTE_READ 0x20
|
|
899 #define PAGE_EXECUTE_READWRITE 0x40
|
|
900 #define PAGE_EXECUTE_WRITECOPY 0x80
|
|
901 #define PAGE_GUARD 0x100
|
|
902 #define PAGE_NOCACHE 0x200
|
|
903
|
|
904 #define MEM_COMMIT 0x00001000
|
|
905 #define MEM_RESERVE 0x00002000
|
|
906 #define MEM_DECOMMIT 0x00004000
|
|
907 #define MEM_RELEASE 0x00008000
|
|
908 #define MEM_FREE 0x00010000
|
|
909 #define MEM_PRIVATE 0x00020000
|
|
910 #define MEM_MAPPED 0x00040000
|
|
911 #define MEM_TOP_DOWN 0x00100000
|
|
912 #ifdef __WINE__
|
|
913 #define MEM_SYSTEM 0x80000000
|
|
914 #endif
|
|
915
|
|
916 #define SEC_FILE 0x00800000
|
|
917 #define SEC_IMAGE 0x01000000
|
|
918 #define SEC_RESERVE 0x04000000
|
|
919 #define SEC_COMMIT 0x08000000
|
|
920 #define SEC_NOCACHE 0x10000000
|
|
921
|
|
922 #define FILE_BEGIN 0
|
|
923 #define FILE_CURRENT 1
|
|
924 #define FILE_END 2
|
|
925
|
|
926 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001
|
|
927 #define FILE_CASE_PRESERVED_NAMES 0x00000002
|
|
928 #define FILE_UNICODE_ON_DISK 0x00000004
|
|
929 #define FILE_PERSISTENT_ACLS 0x00000008
|
|
930
|
|
931 #define FILE_MAP_COPY 0x00000001
|
|
932 #define FILE_MAP_WRITE 0x00000002
|
|
933 #define FILE_MAP_READ 0x00000004
|
|
934 #define FILE_MAP_ALL_ACCESS 0x000f001f
|
|
935
|
|
936 #define MOVEFILE_REPLACE_EXISTING 0x00000001
|
|
937 #define MOVEFILE_COPY_ALLOWED 0x00000002
|
|
938 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
|
|
939
|
|
940 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
|
|
941 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
|
|
942 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
|
|
943
|
|
944 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
|
|
945 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
|
|
946 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
|
|
947 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
|
|
948 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
|
|
949 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
|
|
950 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
|
|
951 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
|
|
952 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
|
|
953 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
|
|
954 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
|
|
955 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
|
|
956 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
|
|
957 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
|
|
958 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
|
|
959 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
|
|
960 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
|
|
961 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
|
|
962 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
|
|
963 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
|
|
964 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
|
|
965 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
|
|
966 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
|
|
967
|
|
968 /* Wine extension; Windows doesn't have a name for this code */
|
|
969 #define EXCEPTION_CRITICAL_SECTION_WAIT 0xc0000194
|
|
970
|
|
971 #define DUPLICATE_CLOSE_SOURCE 0x00000001
|
|
972 #define DUPLICATE_SAME_ACCESS 0x00000002
|
|
973
|
|
974 #define HANDLE_FLAG_INHERIT 0x00000001
|
|
975 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
|
|
976
|
|
977 #define HINSTANCE_ERROR 32
|
|
978
|
|
979 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
|
|
980 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
|
|
981 #define THREAD_PRIORITY_NORMAL 0
|
|
982 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
|
|
983 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
|
|
984 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
|
|
985 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
|
|
986 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
|
|
987
|
|
988 /* Could this type be considered opaque? */
|
|
989 typedef struct {
|
|
990 LPVOID DebugInfo;
|
|
991 LONG LockCount;
|
|
992 LONG RecursionCount;
|
|
993 HANDLE OwningThread;
|
|
994 HANDLE LockSemaphore;
|
|
995 DWORD Reserved;
|
|
996 }CRITICAL_SECTION;
|
|
997
|
|
998 #ifdef __WINE__
|
|
999 #define CRITICAL_SECTION_INIT { 0, -1, 0, 0, 0, 0 }
|
|
1000 #endif
|
|
1001
|
|
1002 typedef struct {
|
|
1003 DWORD dwOSVersionInfoSize;
|
|
1004 DWORD dwMajorVersion;
|
|
1005 DWORD dwMinorVersion;
|
|
1006 DWORD dwBuildNumber;
|
|
1007 DWORD dwPlatformId;
|
|
1008 CHAR szCSDVersion[128];
|
|
1009 } OSVERSIONINFO16;
|
|
1010
|
|
1011 typedef struct {
|
|
1012 DWORD dwOSVersionInfoSize;
|
|
1013 DWORD dwMajorVersion;
|
|
1014 DWORD dwMinorVersion;
|
|
1015 DWORD dwBuildNumber;
|
|
1016 DWORD dwPlatformId;
|
|
1017 CHAR szCSDVersion[128];
|
|
1018 } OSVERSIONINFOA;
|
|
1019
|
|
1020 typedef struct {
|
|
1021 DWORD dwOSVersionInfoSize;
|
|
1022 DWORD dwMajorVersion;
|
|
1023 DWORD dwMinorVersion;
|
|
1024 DWORD dwBuildNumber;
|
|
1025 DWORD dwPlatformId;
|
|
1026 WCHAR szCSDVersion[128];
|
|
1027 } OSVERSIONINFOW;
|
|
1028
|
|
1029 DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
|
|
1030
|
|
1031 #define VER_PLATFORM_WIN32s 0
|
|
1032 #define VER_PLATFORM_WIN32_WINDOWS 1
|
|
1033 #define VER_PLATFORM_WIN32_NT 2
|
|
1034
|
|
1035 typedef struct tagCOMSTAT
|
|
1036 {
|
|
1037 DWORD status;
|
|
1038 DWORD cbInQue;
|
|
1039 DWORD cbOutQue;
|
|
1040 } COMSTAT,*LPCOMSTAT;
|
|
1041
|
|
1042 typedef struct tagDCB
|
|
1043 {
|
|
1044 DWORD DCBlength;
|
|
1045 DWORD BaudRate;
|
|
1046 unsigned fBinary :1;
|
|
1047 unsigned fParity :1;
|
|
1048 unsigned fOutxCtsFlow :1;
|
|
1049 unsigned fOutxDsrFlow :1;
|
|
1050 unsigned fDtrControl :2;
|
|
1051 unsigned fDsrSensitivity :1;
|
|
1052 unsigned fTXContinueOnXoff :1;
|
|
1053 unsigned fOutX :1;
|
|
1054 unsigned fInX :1;
|
|
1055 unsigned fErrorChar :1;
|
|
1056 unsigned fNull :1;
|
|
1057 unsigned fRtsControl :2;
|
|
1058 unsigned fAbortOnError :1;
|
|
1059 unsigned fDummy2 :17;
|
|
1060 WORD wReserved;
|
|
1061 WORD XonLim;
|
|
1062 WORD XoffLim;
|
|
1063 BYTE ByteSize;
|
|
1064 BYTE Parity;
|
|
1065 BYTE StopBits;
|
|
1066 char XonChar;
|
|
1067 char XoffChar;
|
|
1068 char ErrorChar;
|
|
1069 char EofChar;
|
|
1070 char EvtChar;
|
|
1071 } DCB, *LPDCB;
|
|
1072
|
|
1073
|
|
1074
|
|
1075 typedef struct tagCOMMTIMEOUTS {
|
|
1076 DWORD ReadIntervalTimeout;
|
|
1077 DWORD ReadTotalTimeoutMultiplier;
|
|
1078 DWORD ReadTotalTimeoutConstant;
|
|
1079 DWORD WriteTotalTimeoutMultiplier;
|
|
1080 DWORD WriteTotalTimeoutConstant;
|
|
1081 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
|
|
1082
|
|
1083 #include "poppack.h"
|
|
1084
|
|
1085 typedef void CALLBACK (*PAPCFUNC)(ULONG_PTR);
|
|
1086 typedef void CALLBACK (*PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD);
|
|
1087
|
|
1088 WIN_BOOL WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT);
|
|
1089 WIN_BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
|
|
1090 WIN_BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
|
|
1091 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
|
|
1092 WIN_BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
|
|
1093 WIN_BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
|
|
1094 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
|
|
1095 WIN_BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
|
|
1096 WIN_BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
|
|
1097 WIN_BOOL WINAPI GetCommState(INT,LPDCB);
|
|
1098 WIN_BOOL WINAPI SetCommState(INT,LPDCB);
|
|
1099 WIN_BOOL WINAPI TransmitCommChar(INT,CHAR);
|
|
1100 WIN_BOOL WINAPI SetupComm(HANDLE, DWORD, DWORD);
|
|
1101 WIN_BOOL WINAPI GetCommProperties(HANDLE, LPDCB *);
|
|
1102
|
|
1103 /*DWORD WINAPI GetVersion( void );*/
|
|
1104 WIN_BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*);
|
|
1105 WIN_BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
|
|
1106 WIN_BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
|
|
1107 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
|
|
1108
|
|
1109 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
|
|
1110
|
|
1111 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
|
|
1112 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
|
|
1113 WIN_BOOL WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit);
|
|
1114 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
|
|
1115 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
|
|
1116 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
|
|
1117 WIN_BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
|
|
1118 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
|
|
1119 void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
|
|
1120 WIN_BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
|
|
1121 WIN_BOOL WINAPI TerminateProcess(HANDLE,DWORD);
|
|
1122 WIN_BOOL WINAPI TerminateThread(HANDLE,DWORD);
|
|
1123 WIN_BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
|
|
1124
|
|
1125 /* GetBinaryType return values.
|
|
1126 */
|
|
1127
|
|
1128 #define SCS_32BIT_BINARY 0
|
|
1129 #define SCS_DOS_BINARY 1
|
|
1130 #define SCS_WOW_BINARY 2
|
|
1131 #define SCS_PIF_BINARY 3
|
|
1132 #define SCS_POSIX_BINARY 4
|
|
1133 #define SCS_OS216_BINARY 5
|
|
1134
|
|
1135 WIN_BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
|
|
1136 WIN_BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
|
|
1137 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
|
|
1138
|
|
1139 WIN_BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
|
|
1140 WIN_BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
|
|
1141 /* Declarations for functions that exist only in Win32 */
|
|
1142
|
|
1143
|
|
1144 WIN_BOOL WINAPI AttachThreadInput(DWORD,DWORD,WIN_BOOL);
|
|
1145 WIN_BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPWIN_BOOL);
|
|
1146 WIN_BOOL WINAPI AdjustTokenPrivileges(HANDLE,WIN_BOOL,LPVOID,DWORD,LPVOID,LPDWORD);
|
|
1147 WIN_BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
|
|
1148 WIN_BOOL WINAPI AllocateLocallyUniqueId(PLUID);
|
|
1149 WIN_BOOL WINAPI AllocConsole(void);
|
|
1150 WIN_BOOL WINAPI AreFileApisANSI(void);
|
|
1151 WIN_BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
|
|
1152 WIN_BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
|
|
1153 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
|
|
1154 WIN_BOOL WINAPI Beep(DWORD,DWORD);
|
|
1155 WIN_BOOL WINAPI CancelWaitableTimer(HANDLE);
|
|
1156 WIN_BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
|
|
1157 WIN_BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
|
|
1158 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
|
|
1159 WIN_BOOL WINAPI CloseEventLog(HANDLE);
|
|
1160 WIN_BOOL WINAPI CloseHandle(HANDLE);
|
|
1161 WIN_BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
|
|
1162 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
|
|
1163 WIN_BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,WIN_BOOL);
|
|
1164 WIN_BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,WIN_BOOL);
|
|
1165 #define CopyFile WINELIB_NAME_AW(CopyFile)
|
|
1166 WIN_BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPWIN_BOOL, DWORD);
|
|
1167 WIN_BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPWIN_BOOL, DWORD);
|
|
1168 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
|
|
1169 WIN_BOOL WINAPI CopySid(DWORD,PSID,PSID);
|
|
1170 INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
|
|
1171 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,WIN_BOOL,WIN_BOOL,LPCSTR);
|
|
1172 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,WIN_BOOL,WIN_BOOL,LPCWSTR);
|
|
1173 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
|
|
1174 HANDLE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
|
|
1175 DWORD,DWORD,HANDLE);
|
|
1176 HANDLE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
|
|
1177 DWORD,DWORD,HANDLE);
|
|
1178 #define CreateFile WINELIB_NAME_AW(CreateFile)
|
|
1179 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
|
|
1180 DWORD,DWORD,LPCSTR);
|
|
1181 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
|
|
1182 DWORD,DWORD,LPCWSTR);
|
|
1183 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
|
|
1184 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCSTR);
|
|
1185 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCWSTR);
|
|
1186 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
|
|
1187 WIN_BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
|
|
1188 WIN_BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
|
|
1189 LPSECURITY_ATTRIBUTES,WIN_BOOL,DWORD,LPVOID,LPCSTR,
|
|
1190 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
|
|
1191 WIN_BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
|
|
1192 LPSECURITY_ATTRIBUTES,WIN_BOOL,DWORD,LPVOID,LPCWSTR,
|
|
1193 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
|
|
1194 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
|
|
1195 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
|
|
1196 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
|
|
1197 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
|
|
1198 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
|
|
1199 HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCSTR);
|
|
1200 HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCWSTR);
|
|
1201 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
|
|
1202 WIN_BOOL WINAPI DebugActiveProcess(DWORD);
|
|
1203 void WINAPI DebugBreak(void);
|
|
1204 WIN_BOOL WINAPI DeregisterEventSource(HANDLE);
|
|
1205 WIN_BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
|
|
1206 WIN_BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
|
|
1207 WIN_BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,WIN_BOOL,DWORD);
|
|
1208 WIN_BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
|
|
1209 WIN_BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
|
|
1210 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
|
|
1211 WIN_BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
|
|
1212 ENUMRESLANGPROCA,LONG);
|
|
1213 WIN_BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
|
|
1214 ENUMRESLANGPROCW,LONG);
|
|
1215 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
|
|
1216 WIN_BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
|
|
1217 LONG);
|
|
1218 WIN_BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
|
|
1219 LONG);
|
|
1220 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
|
|
1221 WIN_BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
|
|
1222 WIN_BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
|
|
1223 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
|
|
1224 WIN_BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
|
|
1225 WIN_BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
|
|
1226 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
|
|
1227 WIN_BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
|
|
1228 WIN_BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
|
|
1229 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
|
|
1230 WIN_BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
|
|
1231 WIN_BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
|
|
1232 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
|
|
1233 WIN_BOOL WINAPI EqualSid(PSID, PSID);
|
|
1234 WIN_BOOL WINAPI EqualPrefixSid(PSID,PSID);
|
|
1235 VOID WINAPI ExitProcess(DWORD) WINE_NORETURN;
|
|
1236 VOID WINAPI ExitThread(DWORD) WINE_NORETURN;
|
|
1237 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
|
|
1238 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
|
|
1239 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
|
|
1240 WIN_BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
|
|
1241 WIN_BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
|
|
1242 WIN_BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
|
|
1243 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,WIN_BOOL,DWORD);
|
|
1244 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,WIN_BOOL,DWORD);
|
|
1245 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
|
|
1246 WIN_BOOL WINAPI FindNextChangeNotification(HANDLE);
|
|
1247 WIN_BOOL WINAPI FindCloseChangeNotification(HANDLE);
|
|
1248 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
|
|
1249 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
|
|
1250 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
|
|
1251 WIN_BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
|
|
1252 WIN_BOOL WINAPI FlushFileBuffers(HANDLE);
|
|
1253 WIN_BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
|
|
1254 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
|
|
1255 DWORD,LPDWORD);
|
|
1256 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
|
|
1257 DWORD,LPDWORD);
|
|
1258 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
|
|
1259 WIN_BOOL WINAPI FreeConsole(void);
|
|
1260 WIN_BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
|
|
1261 WIN_BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
|
|
1262 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
|
|
1263 PVOID WINAPI FreeSid(PSID);
|
|
1264 UINT WINAPI GetACP(void);
|
|
1265 LPCSTR WINAPI GetCommandLineA(void);
|
|
1266 LPCWSTR WINAPI GetCommandLineW(void);
|
|
1267 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
|
|
1268 WIN_BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
|
|
1269 WIN_BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
|
|
1270 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
|
|
1271 UINT WINAPI GetConsoleCP(void);
|
|
1272 WIN_BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
|
|
1273 UINT WINAPI GetConsoleOutputCP(void);
|
|
1274 DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
|
|
1275 DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
|
|
1276 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
|
|
1277 WIN_BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
|
|
1278 WIN_BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
|
|
1279 HANDLE WINAPI GetCurrentProcess(void);
|
|
1280 HANDLE WINAPI GetCurrentThread(void);
|
|
1281 INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
|
|
1282 INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
|
|
1283 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
|
|
1284 LPSTR WINAPI GetEnvironmentStringsA(void);
|
|
1285 LPWSTR WINAPI GetEnvironmentStringsW(void);
|
|
1286 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
|
|
1287 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
|
|
1288 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
|
|
1289 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
|
|
1290 WIN_BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
|
|
1291 WIN_BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
|
|
1292 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
|
|
1293 DWORD WINAPI GetFileInformationByHandle(HANDLE,BY_HANDLE_FILE_INFORMATION*);
|
|
1294 WIN_BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
|
|
1295 WIN_BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
|
|
1296 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
|
|
1297 DWORD WINAPI GetFileSize(HANDLE,LPDWORD);
|
|
1298 WIN_BOOL WINAPI GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME);
|
|
1299 DWORD WINAPI GetFileType(HANDLE);
|
|
1300 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
|
|
1301 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
|
|
1302 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
|
|
1303 WIN_BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
|
|
1304 COORD WINAPI GetLargestConsoleWindowSize(HANDLE);
|
|
1305 DWORD WINAPI GetLengthSid(PSID);
|
|
1306 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
|
|
1307 DWORD WINAPI GetLogicalDrives(void);
|
|
1308 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
|
|
1309 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
|
|
1310 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
|
|
1311 WIN_BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
|
|
1312 WIN_BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
|
|
1313 WIN_BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
|
|
1314 UINT WINAPI GetOEMCP(void);
|
|
1315 WIN_BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
|
|
1316 DWORD WINAPI GetPriorityClass(HANDLE);
|
|
1317 DWORD WINAPI GetProcessVersion(DWORD);
|
|
1318 WIN_BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
|
|
1319 WIN_BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPWIN_BOOL,PACL *,LPWIN_BOOL);
|
|
1320 WIN_BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPWIN_BOOL);
|
|
1321 DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
|
|
1322 WIN_BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPWIN_BOOL);
|
|
1323 WIN_BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPWIN_BOOL,PACL *,LPWIN_BOOL);
|
|
1324 PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
|
|
1325 DWORD WINAPI GetSidLengthRequired(BYTE);
|
|
1326 PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
|
|
1327 PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
|
|
1328 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
|
|
1329 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
|
|
1330 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
|
|
1331 HFILE WINAPI GetStdHandle(DWORD);
|
|
1332 WIN_BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
|
|
1333 WIN_BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
|
|
1334 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
|
|
1335 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
|
|
1336 WIN_BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
|
|
1337 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
|
|
1338 VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME);
|
|
1339 INT WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
|
|
1340 INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
|
|
1341 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
|
|
1342 WIN_BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
|
|
1343 LCID WINAPI GetThreadLocale(void);
|
|
1344 INT WINAPI GetThreadPriority(HANDLE);
|
|
1345 WIN_BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
|
|
1346 WIN_BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
|
|
1347 WIN_BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
|
|
1348 WIN_BOOL WINAPI GetUserNameA(LPSTR,LPDWORD);
|
|
1349 WIN_BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD);
|
|
1350 #define GetUserName WINELIB_NAME_AW(GetUserName)
|
|
1351 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
|
|
1352 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
|
|
1353 DWORD WINAPI HeapCompact(HANDLE,DWORD);
|
|
1354 HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
|
|
1355 WIN_BOOL WINAPI HeapDestroy(HANDLE);
|
|
1356 WIN_BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
|
|
1357 WIN_BOOL WINAPI HeapLock(HANDLE);
|
|
1358 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
|
|
1359 DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
|
|
1360 WIN_BOOL WINAPI HeapUnlock(HANDLE);
|
|
1361 WIN_BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
|
|
1362 WIN_BOOL WINAPI HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY);
|
|
1363 WIN_BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
|
|
1364 WIN_BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
|
|
1365 WIN_BOOL WINAPI IsValidSid(PSID);
|
|
1366 WIN_BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
|
|
1367 WIN_BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
|
|
1368 WIN_BOOL WINAPI IsProcessorFeaturePresent(DWORD);
|
|
1369 WIN_BOOL WINAPI IsValidLocale(DWORD,DWORD);
|
|
1370 WIN_BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
|
|
1371 WIN_BOOL WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE);
|
|
1372 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSidW)
|
|
1373 WIN_BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
|
|
1374 WIN_BOOL WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
|
|
1375 WIN_BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
|
|
1376 WIN_BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID);
|
|
1377 WIN_BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID);
|
|
1378 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
|
|
1379 WIN_BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
|
|
1380 HMODULE WINAPI MapHModuleSL(HMODULE16);
|
|
1381 HMODULE16 WINAPI MapHModuleLS(HMODULE);
|
|
1382 SEGPTR WINAPI MapLS(LPVOID);
|
|
1383 LPVOID WINAPI MapSL(SEGPTR);
|
|
1384 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
|
|
1385 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
|
|
1386 WIN_BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
|
|
1387 WIN_BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
|
|
1388 #define MoveFile WINELIB_NAME_AW(MoveFile)
|
|
1389 WIN_BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
|
|
1390 WIN_BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
|
|
1391 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
|
|
1392 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
|
|
1393 WIN_BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
|
|
1394 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,WIN_BOOL*);
|
|
1395 HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
|
|
1396 HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
|
|
1397 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
|
|
1398 HANDLE WINAPI OpenEventA(DWORD,WIN_BOOL,LPCSTR);
|
|
1399 HANDLE WINAPI OpenEventW(DWORD,WIN_BOOL,LPCWSTR);
|
|
1400 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
|
|
1401 HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
|
|
1402 HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
|
|
1403 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
|
|
1404 HANDLE WINAPI OpenFileMappingA(DWORD,WIN_BOOL,LPCSTR);
|
|
1405 HANDLE WINAPI OpenFileMappingW(DWORD,WIN_BOOL,LPCWSTR);
|
|
1406 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
|
|
1407 HANDLE WINAPI OpenMutexA(DWORD,WIN_BOOL,LPCSTR);
|
|
1408 HANDLE WINAPI OpenMutexW(DWORD,WIN_BOOL,LPCWSTR);
|
|
1409 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
|
|
1410 HANDLE WINAPI OpenProcess(DWORD,WIN_BOOL,DWORD);
|
|
1411 WIN_BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
|
|
1412 HANDLE WINAPI OpenSemaphoreA(DWORD,WIN_BOOL,LPCSTR);
|
|
1413 HANDLE WINAPI OpenSemaphoreW(DWORD,WIN_BOOL,LPCWSTR);
|
|
1414 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
|
|
1415 WIN_BOOL WINAPI OpenThreadToken(HANDLE,DWORD,WIN_BOOL,PHANDLE);
|
|
1416 HANDLE WINAPI OpenWaitableTimerA(DWORD,WIN_BOOL,LPCSTR);
|
|
1417 HANDLE WINAPI OpenWaitableTimerW(DWORD,WIN_BOOL,LPCWSTR);
|
|
1418 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
|
|
1419 WIN_BOOL WINAPI PulseEvent(HANDLE);
|
|
1420 WIN_BOOL WINAPI PurgeComm(HANDLE,DWORD);
|
|
1421 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
|
|
1422 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
|
|
1423 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
|
|
1424 WIN_BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
|
|
1425 WIN_BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
|
|
1426 WIN_BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
|
|
1427 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
|
|
1428 WIN_BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
|
|
1429 COORD,LPDWORD);
|
|
1430 #define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
|
|
1431 WIN_BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
|
|
1432 WIN_BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
|
|
1433 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
|
|
1434 WIN_BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
|
|
1435 HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
|
|
1436 HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
|
|
1437 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
|
|
1438 WIN_BOOL WINAPI ReleaseMutex(HANDLE);
|
|
1439 WIN_BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
|
|
1440 WIN_BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
|
|
1441 WIN_BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
|
|
1442 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
|
|
1443 WIN_BOOL WINAPI ResetEvent(HANDLE);
|
|
1444 DWORD WINAPI ResumeThread(HANDLE);
|
|
1445 WIN_BOOL WINAPI RevertToSelf(void);
|
|
1446 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
|
|
1447 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
|
|
1448 #define SearchPath WINELIB_NAME_AW(SearchPath)
|
|
1449 WIN_BOOL WINAPI SetCommMask(INT,DWORD);
|
|
1450 WIN_BOOL WINAPI SetComputerNameA(LPCSTR);
|
|
1451 WIN_BOOL WINAPI SetComputerNameW(LPCWSTR);
|
|
1452 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
|
|
1453 WIN_BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
|
|
1454 WIN_BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
|
|
1455 WIN_BOOL WINAPI SetConsoleTitleA(LPCSTR);
|
|
1456 WIN_BOOL WINAPI SetConsoleTitleW(LPCWSTR);
|
|
1457 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
|
|
1458 WIN_BOOL WINAPI SetEndOfFile(HANDLE);
|
|
1459 WIN_BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
|
|
1460 WIN_BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
|
|
1461 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
|
|
1462 WIN_BOOL WINAPI SetEvent(HANDLE);
|
|
1463 VOID WINAPI SetFileApisToANSI(void);
|
|
1464 VOID WINAPI SetFileApisToOEM(void);
|
|
1465 DWORD WINAPI SetFilePointer(HANDLE,LONG,LPLONG,DWORD);
|
|
1466 WIN_BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
|
|
1467 WIN_BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
|
|
1468 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
|
|
1469 WIN_BOOL WINAPI SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*);
|
|
1470 WIN_BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
|
|
1471 WIN_BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
|
|
1472 WIN_BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
|
|
1473 WIN_BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,WIN_BOOL,PACL,WIN_BOOL);
|
|
1474 WIN_BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,WIN_BOOL);
|
|
1475 WIN_BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,WIN_BOOL);
|
|
1476 WIN_BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,WIN_BOOL,PACL,WIN_BOOL);
|
|
1477 WIN_BOOL WINAPI SetStdHandle(DWORD,HANDLE);
|
|
1478 WIN_BOOL WINAPI SetSystemPowerState(WIN_BOOL,WIN_BOOL);
|
|
1479 WIN_BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
|
|
1480 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
|
|
1481 WIN_BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
|
|
1482 WIN_BOOL WINAPI SetThreadLocale(LCID);
|
|
1483 WIN_BOOL WINAPI SetThreadPriority(HANDLE,INT);
|
|
1484 WIN_BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
|
|
1485 WIN_BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,WIN_BOOL);
|
|
1486 VOID WINAPI Sleep(DWORD);
|
|
1487 DWORD WINAPI SleepEx(DWORD,WIN_BOOL);
|
|
1488 DWORD WINAPI SuspendThread(HANDLE);
|
|
1489 WIN_BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
|
|
1490 DWORD WINAPI TlsAlloc(void);
|
|
1491 WIN_BOOL WINAPI TlsFree(DWORD);
|
|
1492 LPVOID WINAPI TlsGetValue(DWORD);
|
|
1493 WIN_BOOL WINAPI TlsSetValue(DWORD,LPVOID);
|
|
1494 VOID WINAPI UnMapLS(SEGPTR);
|
|
1495 WIN_BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
|
|
1496 WIN_BOOL WINAPI UnmapViewOfFile(LPVOID);
|
|
1497 LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
|
|
1498 WIN_BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
|
|
1499 WIN_BOOL WINAPI VirtualLock(LPVOID,DWORD);
|
|
1500 WIN_BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
|
|
1501 WIN_BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
|
|
1502 DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
|
|
1503 DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
|
|
1504 WIN_BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
|
|
1505 WIN_BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
|
|
1506 WIN_BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
|
|
1507 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,WIN_BOOL,DWORD);
|
|
1508 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,WIN_BOOL,DWORD,WIN_BOOL);
|
|
1509 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
|
|
1510 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,WIN_BOOL);
|
|
1511 WIN_BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
|
|
1512 WIN_BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
|
|
1513 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
|
|
1514 WIN_BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
|
|
1515 LANGID WINAPI GetSystemDefaultLangID(void);
|
|
1516 LCID WINAPI GetSystemDefaultLCID(void);
|
|
1517 LANGID WINAPI GetUserDefaultLangID(void);
|
|
1518 LCID WINAPI GetUserDefaultLCID(void);
|
|
1519 ATOM WINAPI AddAtomA(LPCSTR);
|
|
1520 ATOM WINAPI AddAtomW(LPCWSTR);
|
|
1521 #define AddAtom WINELIB_NAME_AW(AddAtom)
|
|
1522 UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
|
|
1523 UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
|
|
1524 #define CompareString WINELIB_NAME_AW(CompareString)
|
|
1525 WIN_BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
|
|
1526 WIN_BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
|
|
1527 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
|
|
1528 WIN_BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
|
|
1529 WIN_BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
|
|
1530 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
|
|
1531 WIN_BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
|
|
1532 #define DefineHandleTable(w) ((w),TRUE)
|
|
1533 ATOM WINAPI DeleteAtom(ATOM);
|
|
1534 WIN_BOOL WINAPI DeleteFileA(LPCSTR);
|
|
1535 WIN_BOOL WINAPI DeleteFileW(LPCWSTR);
|
|
1536 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
|
|
1537 void WINAPI FatalAppExitA(UINT,LPCSTR);
|
|
1538 void WINAPI FatalAppExitW(UINT,LPCWSTR);
|
|
1539 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
|
|
1540 ATOM WINAPI FindAtomA(LPCSTR);
|
|
1541 ATOM WINAPI FindAtomW(LPCWSTR);
|
|
1542 #define FindAtom WINELIB_NAME_AW(FindAtom)
|
|
1543 WIN_BOOL WINAPI FindClose(HANDLE);
|
|
1544 HANDLE16 WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA);
|
|
1545 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
|
|
1546 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
|
|
1547 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
|
|
1548 WIN_BOOL16 WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA);
|
|
1549 WIN_BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
|
|
1550 WIN_BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
|
|
1551 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
|
|
1552 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
|
|
1553 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
|
|
1554 #define FindResource WINELIB_NAME_AW(FindResource)
|
|
1555 VOID WINAPI FreeLibrary16(HINSTANCE16);
|
|
1556 WIN_BOOL WINAPI FreeLibrary(HMODULE);
|
|
1557 #define FreeModule(handle) FreeLibrary(handle)
|
|
1558 #define FreeProcInstance(proc) /*nothing*/
|
|
1559 WIN_BOOL WINAPI FreeResource(HGLOBAL);
|
|
1560 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
|
|
1561 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
|
|
1562 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
|
|
1563 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
|
|
1564 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
|
|
1565 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
|
|
1566 WIN_BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
|
|
1567 WIN_BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
|
|
1568 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
|
|
1569 WIN_BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
|
|
1570 WIN_BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
|
|
1571 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
|
|
1572 UINT WINAPI GetDriveTypeA(LPCSTR);
|
|
1573 UINT WINAPI GetDriveTypeW(LPCWSTR);
|
|
1574 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
|
|
1575 DWORD WINAPI GetFileAttributesA(LPCSTR);
|
|
1576 DWORD WINAPI GetFileAttributesW(LPCWSTR);
|
|
1577 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
|
|
1578 #define GetFreeSpace(w) (0x100000L)
|
|
1579 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
|
|
1580 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
|
|
1581 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
|
|
1582 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
|
|
1583 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
|
|
1584 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
|
|
1585 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
|
|
1586 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
|
|
1587 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
|
|
1588 HMODULE WINAPI GetModuleHandleA(LPCSTR);
|
|
1589 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
|
|
1590 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
|
|
1591 WIN_BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,WIN_BOOL);
|
|
1592 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
|
|
1593 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
|
|
1594 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
|
|
1595 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
|
|
1596 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
|
|
1597 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
|
|
1598 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
|
|
1599 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
|
|
1600 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
|
|
1601 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
|
|
1602 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
|
|
1603 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
|
|
1604 WIN_BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
|
|
1605 WIN_BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
|
|
1606 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
|
|
1607 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
|
|
1608 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
|
|
1609 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
|
|
1610 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
|
|
1611 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
|
|
1612 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
|
|
1613 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
|
|
1614 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
|
|
1615 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
|
|
1616 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
|
|
1617 VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
|
|
1618 VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
|
|
1619 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
|
|
1620 WIN_BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
|
|
1621 WIN_BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
|
|
1622 #define GetStringType WINELIB_NAME_AW(GetStringType)
|
|
1623 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
|
|
1624 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
|
|
1625 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
|
|
1626 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
|
|
1627 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
|
|
1628 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
|
|
1629 UINT WINAPI GetTempPathA(UINT,LPSTR);
|
|
1630 UINT WINAPI GetTempPathW(UINT,LPWSTR);
|
|
1631 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
|
|
1632 LONG WINAPI GetVersion(void);
|
|
1633 WIN_BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
|
|
1634 WIN_BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
|
|
1635 WIN_BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
|
|
1636 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
|
|
1637 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
|
|
1638 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
|
|
1639 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
|
|
1640 HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
|
|
1641 HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
|
|
1642 DWORD WINAPI GlobalCompact(DWORD);
|
|
1643 UINT WINAPI GlobalFlags(HGLOBAL);
|
|
1644 HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
|
|
1645 HGLOBAL WINAPI GlobalFree(HGLOBAL);
|
|
1646 HGLOBAL WINAPI GlobalHandle(LPCVOID);
|
|
1647 WORD WINAPI GlobalFix16(HGLOBAL16);
|
|
1648 VOID WINAPI GlobalFix(HGLOBAL);
|
|
1649 LPVOID WINAPI GlobalLock16(HGLOBAL16);
|
|
1650 LPVOID WINAPI GlobalLock(HGLOBAL);
|
|
1651 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
|
|
1652 DWORD WINAPI GlobalSize16(HGLOBAL16);
|
|
1653 DWORD WINAPI GlobalSize(HGLOBAL);
|
|
1654 VOID WINAPI GlobalUnfix16(HGLOBAL16);
|
|
1655 VOID WINAPI GlobalUnfix(HGLOBAL);
|
|
1656 WIN_BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
|
|
1657 WIN_BOOL WINAPI GlobalUnlock(HGLOBAL);
|
|
1658 WIN_BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
|
|
1659 WIN_BOOL WINAPI GlobalUnWire(HGLOBAL);
|
|
1660 SEGPTR WINAPI GlobalWire16(HGLOBAL16);
|
|
1661 LPVOID WINAPI GlobalWire(HGLOBAL);
|
|
1662 WIN_BOOL WINAPI InitAtomTable(DWORD);
|
|
1663 WIN_BOOL WINAPI IsBadCodePtr(FARPROC);
|
|
1664 WIN_BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
|
|
1665 WIN_BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
|
|
1666 WIN_BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
|
|
1667 WIN_BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
|
|
1668 WIN_BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
|
|
1669 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
|
|
1670 WIN_BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
|
|
1671 WIN_BOOL WINAPI IsDBCSLeadByte(BYTE);
|
|
1672 WIN_BOOL WINAPI IsDebuggerPresent(void);
|
|
1673 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
|
|
1674 HMODULE WINAPI LoadLibraryA(LPCSTR);
|
|
1675 HMODULE WINAPI LoadLibraryW(LPCWSTR);
|
|
1676 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
|
|
1677 HMODULE WINAPI LoadLibraryExA(LPCSTR,HANDLE,DWORD);
|
|
1678 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HANDLE,DWORD);
|
|
1679 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
|
|
1680 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
|
|
1681 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
|
|
1682 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
|
|
1683 HLOCAL WINAPI LocalAlloc(UINT,DWORD);
|
|
1684 UINT WINAPI LocalCompact(UINT);
|
|
1685 UINT WINAPI LocalFlags(HLOCAL);
|
|
1686 HLOCAL WINAPI LocalFree(HLOCAL);
|
|
1687 HLOCAL WINAPI LocalHandle(LPCVOID);
|
|
1688 LPVOID WINAPI LocalLock(HLOCAL);
|
|
1689 HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
|
|
1690 UINT WINAPI LocalShrink(HGLOBAL,UINT);
|
|
1691 UINT WINAPI LocalSize(HLOCAL);
|
|
1692 WIN_BOOL WINAPI LocalUnlock(HLOCAL);
|
|
1693 LPVOID WINAPI LockResource(HGLOBAL);
|
|
1694 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
|
|
1695 #define MakeProcInstance(proc,inst) (proc)
|
|
1696 HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
|
|
1697 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
|
|
1698 VOID WINAPI OutputDebugStringA(LPCSTR);
|
|
1699 VOID WINAPI OutputDebugStringW(LPCWSTR);
|
|
1700 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
|
|
1701 WIN_BOOL WINAPI ReadProcessMemory(HANDLE, LPCVOID, LPVOID, DWORD, LPDWORD);
|
|
1702 WIN_BOOL WINAPI RemoveDirectoryA(LPCSTR);
|
|
1703 WIN_BOOL WINAPI RemoveDirectoryW(LPCWSTR);
|
|
1704 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
|
|
1705 WIN_BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
|
|
1706 WIN_BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
|
|
1707 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
|
|
1708 UINT WINAPI SetErrorMode(UINT);
|
|
1709 WIN_BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
|
|
1710 WIN_BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
|
|
1711 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
|
|
1712 UINT WINAPI SetHandleCount(UINT);
|
|
1713 #define SetSwapAreaSize(w) (w)
|
|
1714 WIN_BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
|
|
1715 WIN_BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
|
|
1716 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
|
|
1717 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
|
|
1718 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
|
|
1719 WIN_BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
|
|
1720 WIN_BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
|
|
1721 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
|
|
1722 WIN_BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
|
|
1723 WIN_BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
|
|
1724 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
|
|
1725 WIN_BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
|
|
1726 WIN_BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
|
|
1727 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
|
|
1728 WIN_BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
|
|
1729 WIN_BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
|
|
1730 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
|
|
1731 WIN_BOOL WINAPI WriteProcessMemory(HANDLE, LPVOID, LPVOID, DWORD, LPDWORD);
|
|
1732 WIN_BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
|
|
1733 WIN_BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
|
|
1734 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
|
|
1735 #define Yield32()
|
|
1736 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
|
|
1737 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
|
|
1738 #define lstrcat WINELIB_NAME_AW(lstrcat)
|
|
1739 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
|
|
1740 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
|
|
1741 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
|
|
1742 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
|
|
1743 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
|
|
1744 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
|
|
1745 INT WINAPI lstrlenA(LPCSTR);
|
|
1746 INT WINAPI lstrlenW(LPCWSTR);
|
|
1747 #define lstrlen WINELIB_NAME_AW(lstrlen)
|
|
1748 HINSTANCE WINAPI WinExec(LPCSTR,UINT);
|
|
1749 LONG WINAPI _hread(HFILE,LPVOID,LONG);
|
|
1750 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
|
|
1751 HFILE WINAPI _lcreat(LPCSTR,INT);
|
|
1752 HFILE WINAPI _lclose(HFILE);
|
|
1753 LONG WINAPI _llseek(HFILE,LONG,INT);
|
|
1754 HFILE WINAPI _lopen(LPCSTR,INT);
|
|
1755 UINT WINAPI _lread(HFILE,LPVOID,UINT);
|
|
1756 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
|
|
1757 SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
|
|
1758 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
|
|
1759 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
|
|
1760 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
|
|
1761 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
|
|
1762 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
|
|
1763 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
|
|
1764
|
|
1765 /* compatibility macros */
|
|
1766 #define FillMemory RtlFillMemory
|
|
1767 #define MoveMemory RtlMoveMemory
|
|
1768 #define ZeroMemory RtlZeroMemory
|
|
1769 #define CopyMemory RtlCopyMemory
|
|
1770
|
|
1771 DWORD WINAPI GetCurrentProcessId(void);
|
|
1772 DWORD WINAPI GetCurrentThreadId(void);
|
|
1773 DWORD WINAPI GetLastError(void);
|
|
1774 HANDLE WINAPI GetProcessHeap(void);
|
|
1775 PVOID WINAPI InterlockedCompareExchange(PVOID*,PVOID,PVOID);
|
|
1776 LONG WINAPI InterlockedDecrement(PLONG);
|
|
1777 LONG WINAPI InterlockedExchange(PLONG,LONG);
|
|
1778 LONG WINAPI InterlockedExchangeAdd(PLONG,LONG);
|
|
1779 LONG WINAPI InterlockedIncrement(PLONG);
|
|
1780 VOID WINAPI SetLastError(DWORD);
|
|
1781
|
|
1782 #ifdef __WINE__
|
|
1783 #define GetCurrentProcess() ((HANDLE)0xffffffff)
|
|
1784 #define GetCurrentThread() ((HANDLE)0xfffffffe)
|
|
1785 #endif
|
|
1786
|
|
1787 #ifdef __cplusplus
|
|
1788 }
|
|
1789 #endif
|
|
1790
|
|
1791 #endif /* __WINE_WINBASE_H */
|