Mercurial > mplayer.hg
annotate loader/wine/winbase.h @ 25154:159c11dd8463
synced with r25179
author | ptt |
---|---|
date | Tue, 27 Nov 2007 17:12:07 +0000 |
parents | c98c9e7f3bd0 |
children | 2c8cdb9123b8 |
rev | line source |
---|---|
24422
c98c9e7f3bd0
Remove leading underscores from multiple inclusion guards,
diego
parents:
24406
diff
changeset
|
1 #ifndef WINE_WINBASE_H |
c98c9e7f3bd0
Remove leading underscores from multiple inclusion guards,
diego
parents:
24406
diff
changeset
|
2 #define WINE_WINBASE_H |
1 | 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) */ | |
24406 | 539 typedef struct |
1 | 540 { |
541 UINT16 flags; | |
24406 | 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; | |
1 | 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 #define MEM_SYSTEM 0x80000000 | |
913 | |
914 #define SEC_FILE 0x00800000 | |
915 #define SEC_IMAGE 0x01000000 | |
916 #define SEC_RESERVE 0x04000000 | |
917 #define SEC_COMMIT 0x08000000 | |
918 #define SEC_NOCACHE 0x10000000 | |
919 | |
920 #define FILE_BEGIN 0 | |
921 #define FILE_CURRENT 1 | |
922 #define FILE_END 2 | |
923 | |
924 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001 | |
925 #define FILE_CASE_PRESERVED_NAMES 0x00000002 | |
926 #define FILE_UNICODE_ON_DISK 0x00000004 | |
927 #define FILE_PERSISTENT_ACLS 0x00000008 | |
928 | |
929 #define FILE_MAP_COPY 0x00000001 | |
930 #define FILE_MAP_WRITE 0x00000002 | |
931 #define FILE_MAP_READ 0x00000004 | |
932 #define FILE_MAP_ALL_ACCESS 0x000f001f | |
933 | |
934 #define MOVEFILE_REPLACE_EXISTING 0x00000001 | |
935 #define MOVEFILE_COPY_ALLOWED 0x00000002 | |
936 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004 | |
937 | |
938 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH | |
939 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES | |
940 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK | |
941 | |
942 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION | |
943 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT | |
944 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT | |
945 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP | |
946 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED | |
947 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND | |
948 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO | |
949 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT | |
950 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION | |
951 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW | |
952 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK | |
953 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW | |
954 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO | |
955 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW | |
956 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION | |
957 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR | |
958 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION | |
959 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION | |
960 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW | |
961 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION | |
962 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION | |
963 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE | |
964 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT | |
965 | |
966 /* Wine extension; Windows doesn't have a name for this code */ | |
967 #define EXCEPTION_CRITICAL_SECTION_WAIT 0xc0000194 | |
968 | |
969 #define DUPLICATE_CLOSE_SOURCE 0x00000001 | |
970 #define DUPLICATE_SAME_ACCESS 0x00000002 | |
971 | |
972 #define HANDLE_FLAG_INHERIT 0x00000001 | |
973 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002 | |
974 | |
975 #define HINSTANCE_ERROR 32 | |
976 | |
977 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN | |
978 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1) | |
979 #define THREAD_PRIORITY_NORMAL 0 | |
980 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX | |
981 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1) | |
982 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff) | |
983 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT | |
984 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE | |
985 | |
986 /* Could this type be considered opaque? */ | |
987 typedef struct { | |
988 LPVOID DebugInfo; | |
989 LONG LockCount; | |
990 LONG RecursionCount; | |
991 HANDLE OwningThread; | |
992 HANDLE LockSemaphore; | |
993 DWORD Reserved; | |
994 }CRITICAL_SECTION; | |
995 | |
996 #define CRITICAL_SECTION_INIT { 0, -1, 0, 0, 0, 0 } | |
997 | |
998 typedef struct { | |
999 DWORD dwOSVersionInfoSize; | |
1000 DWORD dwMajorVersion; | |
1001 DWORD dwMinorVersion; | |
1002 DWORD dwBuildNumber; | |
1003 DWORD dwPlatformId; | |
1004 CHAR szCSDVersion[128]; | |
1005 } OSVERSIONINFO16; | |
1006 | |
1007 typedef struct { | |
1008 DWORD dwOSVersionInfoSize; | |
1009 DWORD dwMajorVersion; | |
1010 DWORD dwMinorVersion; | |
1011 DWORD dwBuildNumber; | |
1012 DWORD dwPlatformId; | |
1013 CHAR szCSDVersion[128]; | |
1014 } OSVERSIONINFOA; | |
1015 | |
1016 typedef struct { | |
1017 DWORD dwOSVersionInfoSize; | |
1018 DWORD dwMajorVersion; | |
1019 DWORD dwMinorVersion; | |
1020 DWORD dwBuildNumber; | |
1021 DWORD dwPlatformId; | |
1022 WCHAR szCSDVersion[128]; | |
1023 } OSVERSIONINFOW; | |
1024 | |
1025 DECL_WINELIB_TYPE_AW(OSVERSIONINFO) | |
1026 | |
1027 #define VER_PLATFORM_WIN32s 0 | |
1028 #define VER_PLATFORM_WIN32_WINDOWS 1 | |
1029 #define VER_PLATFORM_WIN32_NT 2 | |
1030 | |
1031 typedef struct tagCOMSTAT | |
1032 { | |
1033 DWORD status; | |
1034 DWORD cbInQue; | |
1035 DWORD cbOutQue; | |
1036 } COMSTAT,*LPCOMSTAT; | |
1037 | |
1038 typedef struct tagDCB | |
1039 { | |
1040 DWORD DCBlength; | |
1041 DWORD BaudRate; | |
1042 unsigned fBinary :1; | |
1043 unsigned fParity :1; | |
1044 unsigned fOutxCtsFlow :1; | |
1045 unsigned fOutxDsrFlow :1; | |
1046 unsigned fDtrControl :2; | |
1047 unsigned fDsrSensitivity :1; | |
1048 unsigned fTXContinueOnXoff :1; | |
1049 unsigned fOutX :1; | |
1050 unsigned fInX :1; | |
1051 unsigned fErrorChar :1; | |
1052 unsigned fNull :1; | |
1053 unsigned fRtsControl :2; | |
1054 unsigned fAbortOnError :1; | |
1055 unsigned fDummy2 :17; | |
1056 WORD wReserved; | |
1057 WORD XonLim; | |
1058 WORD XoffLim; | |
1059 BYTE ByteSize; | |
1060 BYTE Parity; | |
1061 BYTE StopBits; | |
1062 char XonChar; | |
1063 char XoffChar; | |
1064 char ErrorChar; | |
1065 char EofChar; | |
1066 char EvtChar; | |
1067 } DCB, *LPDCB; | |
1068 | |
1069 | |
1070 | |
1071 typedef struct tagCOMMTIMEOUTS { | |
1072 DWORD ReadIntervalTimeout; | |
1073 DWORD ReadTotalTimeoutMultiplier; | |
1074 DWORD ReadTotalTimeoutConstant; | |
1075 DWORD WriteTotalTimeoutMultiplier; | |
1076 DWORD WriteTotalTimeoutConstant; | |
1077 } COMMTIMEOUTS,*LPCOMMTIMEOUTS; | |
1078 | |
1079 #include "poppack.h" | |
1080 | |
1081 typedef void CALLBACK (*PAPCFUNC)(ULONG_PTR); | |
1082 typedef void CALLBACK (*PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD); | |
1083 | |
1084 WIN_BOOL WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT); | |
1085 WIN_BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB); | |
1086 WIN_BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB); | |
1087 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB) | |
1088 WIN_BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS); | |
1089 WIN_BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS); | |
1090 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts) | |
1091 WIN_BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS); | |
1092 WIN_BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS); | |
1093 WIN_BOOL WINAPI GetCommState(INT,LPDCB); | |
1094 WIN_BOOL WINAPI SetCommState(INT,LPDCB); | |
1095 WIN_BOOL WINAPI TransmitCommChar(INT,CHAR); | |
1096 WIN_BOOL WINAPI SetupComm(HANDLE, DWORD, DWORD); | |
1097 WIN_BOOL WINAPI GetCommProperties(HANDLE, LPDCB *); | |
1098 | |
1099 /*DWORD WINAPI GetVersion( void );*/ | |
1100 WIN_BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*); | |
1101 WIN_BOOL WINAPI GetVersionExA(OSVERSIONINFOA*); | |
1102 WIN_BOOL WINAPI GetVersionExW(OSVERSIONINFOW*); | |
1103 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx) | |
1104 | |
1105 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/ | |
1106 | |
1107 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit); | |
1108 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit); | |
1109 WIN_BOOL WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit); | |
1110 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit); | |
1111 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit); | |
1112 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit); | |
1113 WIN_BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD); | |
1114 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR); | |
1115 void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD); | |
1116 WIN_BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD); | |
1117 WIN_BOOL WINAPI TerminateProcess(HANDLE,DWORD); | |
1118 WIN_BOOL WINAPI TerminateThread(HANDLE,DWORD); | |
1119 WIN_BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD); | |
1120 | |
1121 /* GetBinaryType return values. | |
1122 */ | |
1123 | |
1124 #define SCS_32BIT_BINARY 0 | |
1125 #define SCS_DOS_BINARY 1 | |
1126 #define SCS_WOW_BINARY 2 | |
1127 #define SCS_PIF_BINARY 3 | |
1128 #define SCS_POSIX_BINARY 4 | |
1129 #define SCS_OS216_BINARY 5 | |
1130 | |
1131 WIN_BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType ); | |
1132 WIN_BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType ); | |
1133 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType) | |
1134 | |
1135 WIN_BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16); | |
1136 WIN_BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO); | |
1137 /* Declarations for functions that exist only in Win32 */ | |
1138 | |
1139 | |
1140 WIN_BOOL WINAPI AttachThreadInput(DWORD,DWORD,WIN_BOOL); | |
1141 WIN_BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPWIN_BOOL); | |
1142 WIN_BOOL WINAPI AdjustTokenPrivileges(HANDLE,WIN_BOOL,LPVOID,DWORD,LPVOID,LPDWORD); | |
1143 WIN_BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *); | |
1144 WIN_BOOL WINAPI AllocateLocallyUniqueId(PLUID); | |
1145 WIN_BOOL WINAPI AllocConsole(void); | |
1146 WIN_BOOL WINAPI AreFileApisANSI(void); | |
1147 WIN_BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR); | |
1148 WIN_BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR); | |
1149 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog) | |
1150 WIN_BOOL WINAPI Beep(DWORD,DWORD); | |
1151 WIN_BOOL WINAPI CancelWaitableTimer(HANDLE); | |
1152 WIN_BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR); | |
1153 WIN_BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR); | |
1154 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog) | |
1155 WIN_BOOL WINAPI CloseEventLog(HANDLE); | |
1156 WIN_BOOL WINAPI CloseHandle(HANDLE); | |
1157 WIN_BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD); | |
1158 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc); | |
1159 WIN_BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,WIN_BOOL); | |
1160 WIN_BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,WIN_BOOL); | |
1161 #define CopyFile WINELIB_NAME_AW(CopyFile) | |
1162 WIN_BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPWIN_BOOL, DWORD); | |
1163 WIN_BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPWIN_BOOL, DWORD); | |
1164 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx) | |
1165 WIN_BOOL WINAPI CopySid(DWORD,PSID,PSID); | |
1166 INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME); | |
1167 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,WIN_BOOL,WIN_BOOL,LPCSTR); | |
1168 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,WIN_BOOL,WIN_BOOL,LPCWSTR); | |
1169 #define CreateEvent WINELIB_NAME_AW(CreateEvent) | |
1170 HANDLE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES, | |
1171 DWORD,DWORD,HANDLE); | |
1172 HANDLE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES, | |
1173 DWORD,DWORD,HANDLE); | |
1174 #define CreateFile WINELIB_NAME_AW(CreateFile) | |
1175 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD, | |
1176 DWORD,DWORD,LPCSTR); | |
1177 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD, | |
1178 DWORD,DWORD,LPCWSTR); | |
1179 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping) | |
1180 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCSTR); | |
1181 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCWSTR); | |
1182 #define CreateMutex WINELIB_NAME_AW(CreateMutex) | |
1183 WIN_BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD); | |
1184 WIN_BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES, | |
1185 LPSECURITY_ATTRIBUTES,WIN_BOOL,DWORD,LPVOID,LPCSTR, | |
1186 LPSTARTUPINFOA,LPPROCESS_INFORMATION); | |
1187 WIN_BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES, | |
1188 LPSECURITY_ATTRIBUTES,WIN_BOOL,DWORD,LPVOID,LPCWSTR, | |
1189 LPSTARTUPINFOW,LPPROCESS_INFORMATION); | |
1190 #define CreateProcess WINELIB_NAME_AW(CreateProcess) | |
1191 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR); | |
1192 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR); | |
1193 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore) | |
1194 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD); | |
1195 HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCSTR); | |
1196 HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,WIN_BOOL,LPCWSTR); | |
1197 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer) | |
1198 WIN_BOOL WINAPI DebugActiveProcess(DWORD); | |
1199 void WINAPI DebugBreak(void); | |
1200 WIN_BOOL WINAPI DeregisterEventSource(HANDLE); | |
1201 WIN_BOOL WINAPI DisableThreadLibraryCalls(HMODULE); | |
1202 WIN_BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME); | |
1203 WIN_BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,WIN_BOOL,DWORD); | |
1204 WIN_BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags); | |
1205 WIN_BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags); | |
1206 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats) | |
1207 WIN_BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR, | |
1208 ENUMRESLANGPROCA,LONG); | |
1209 WIN_BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR, | |
1210 ENUMRESLANGPROCW,LONG); | |
1211 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages) | |
1212 WIN_BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA, | |
1213 LONG); | |
1214 WIN_BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW, | |
1215 LONG); | |
1216 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames) | |
1217 WIN_BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG); | |
1218 WIN_BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG); | |
1219 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes) | |
1220 WIN_BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD); | |
1221 WIN_BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD); | |
1222 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages) | |
1223 WIN_BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD); | |
1224 WIN_BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD); | |
1225 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales) | |
1226 WIN_BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags); | |
1227 WIN_BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags); | |
1228 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats) | |
1229 WIN_BOOL WINAPI EqualSid(PSID, PSID); | |
1230 WIN_BOOL WINAPI EqualPrefixSid(PSID,PSID); | |
1231 VOID WINAPI ExitProcess(DWORD) WINE_NORETURN; | |
1232 VOID WINAPI ExitThread(DWORD) WINE_NORETURN; | |
1233 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD); | |
1234 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD); | |
1235 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings) | |
1236 WIN_BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD); | |
1237 WIN_BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME); | |
1238 WIN_BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME); | |
1239 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,WIN_BOOL,DWORD); | |
1240 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,WIN_BOOL,DWORD); | |
1241 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification) | |
1242 WIN_BOOL WINAPI FindNextChangeNotification(HANDLE); | |
1243 WIN_BOOL WINAPI FindCloseChangeNotification(HANDLE); | |
1244 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD); | |
1245 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD); | |
1246 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx) | |
1247 WIN_BOOL WINAPI FlushConsoleInputBuffer(HANDLE); | |
1248 WIN_BOOL WINAPI FlushFileBuffers(HANDLE); | |
1249 WIN_BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD); | |
1250 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR, | |
1251 DWORD,LPDWORD); | |
1252 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR, | |
1253 DWORD,LPDWORD); | |
1254 #define FormatMessage WINELIB_NAME_AW(FormatMessage) | |
1255 WIN_BOOL WINAPI FreeConsole(void); | |
1256 WIN_BOOL WINAPI FreeEnvironmentStringsA(LPSTR); | |
1257 WIN_BOOL WINAPI FreeEnvironmentStringsW(LPWSTR); | |
1258 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings) | |
1259 PVOID WINAPI FreeSid(PSID); | |
1260 UINT WINAPI GetACP(void); | |
1261 LPCSTR WINAPI GetCommandLineA(void); | |
1262 LPCWSTR WINAPI GetCommandLineW(void); | |
1263 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine) | |
1264 WIN_BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD); | |
1265 WIN_BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD); | |
1266 #define GetComputerName WINELIB_NAME_AW(GetComputerName) | |
1267 UINT WINAPI GetConsoleCP(void); | |
1268 WIN_BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD); | |
1269 UINT WINAPI GetConsoleOutputCP(void); | |
1270 DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD); | |
1271 DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD); | |
1272 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle) | |
1273 WIN_BOOL WINAPI GetCommMask(HANDLE, LPDWORD); | |
1274 WIN_BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD); | |
1275 HANDLE WINAPI GetCurrentProcess(void); | |
1276 HANDLE WINAPI GetCurrentThread(void); | |
1277 INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT); | |
1278 INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT); | |
1279 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat) | |
1280 LPSTR WINAPI GetEnvironmentStringsA(void); | |
1281 LPWSTR WINAPI GetEnvironmentStringsW(void); | |
1282 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings) | |
1283 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD); | |
1284 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD); | |
1285 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable) | |
1286 WIN_BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID); | |
1287 WIN_BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID); | |
1288 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx) | |
1289 DWORD WINAPI GetFileInformationByHandle(HANDLE,BY_HANDLE_FILE_INFORMATION*); | |
1290 WIN_BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); | |
1291 WIN_BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); | |
1292 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity) | |
1293 DWORD WINAPI GetFileSize(HANDLE,LPDWORD); | |
1294 WIN_BOOL WINAPI GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME); | |
1295 DWORD WINAPI GetFileType(HANDLE); | |
1296 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*); | |
1297 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*); | |
1298 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName) | |
1299 WIN_BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD); | |
1300 COORD WINAPI GetLargestConsoleWindowSize(HANDLE); | |
1301 DWORD WINAPI GetLengthSid(PSID); | |
1302 VOID WINAPI GetLocalTime(LPSYSTEMTIME); | |
1303 DWORD WINAPI GetLogicalDrives(void); | |
1304 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD); | |
1305 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD); | |
1306 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName) | |
1307 WIN_BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD); | |
1308 WIN_BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD); | |
1309 WIN_BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD); | |
1310 UINT WINAPI GetOEMCP(void); | |
1311 WIN_BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD); | |
1312 DWORD WINAPI GetPriorityClass(HANDLE); | |
1313 DWORD WINAPI GetProcessVersion(DWORD); | |
1314 WIN_BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD); | |
1315 WIN_BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPWIN_BOOL,PACL *,LPWIN_BOOL); | |
1316 WIN_BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPWIN_BOOL); | |
1317 DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR); | |
1318 WIN_BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPWIN_BOOL); | |
1319 WIN_BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPWIN_BOOL,PACL *,LPWIN_BOOL); | |
1320 PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID); | |
1321 DWORD WINAPI GetSidLengthRequired(BYTE); | |
1322 PDWORD WINAPI GetSidSubAuthority(PSID,DWORD); | |
1323 PUCHAR WINAPI GetSidSubAuthorityCount(PSID); | |
1324 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD); | |
1325 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD); | |
1326 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName) | |
1327 HFILE WINAPI GetStdHandle(DWORD); | |
1328 WIN_BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD); | |
1329 WIN_BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD); | |
1330 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx) | |
1331 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO); | |
1332 WIN_BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS); | |
1333 VOID WINAPI GetSystemTime(LPSYSTEMTIME); | |
1334 VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME); | |
1335 INT WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT); | |
1336 INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT); | |
1337 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat) | |
1338 WIN_BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *); | |
1339 LCID WINAPI GetThreadLocale(void); | |
1340 INT WINAPI GetThreadPriority(HANDLE); | |
1341 WIN_BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY); | |
1342 WIN_BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME); | |
1343 WIN_BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD); | |
1344 WIN_BOOL WINAPI GetUserNameA(LPSTR,LPDWORD); | |
1345 WIN_BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD); | |
1346 #define GetUserName WINELIB_NAME_AW(GetUserName) | |
1347 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS); | |
1348 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD); | |
1349 DWORD WINAPI HeapCompact(HANDLE,DWORD); | |
1350 HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD); | |
1351 WIN_BOOL WINAPI HeapDestroy(HANDLE); | |
1352 WIN_BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID); | |
1353 WIN_BOOL WINAPI HeapLock(HANDLE); | |
1354 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD); | |
1355 DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID); | |
1356 WIN_BOOL WINAPI HeapUnlock(HANDLE); | |
1357 WIN_BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID); | |
1358 WIN_BOOL WINAPI HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY); | |
1359 WIN_BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE); | |
1360 WIN_BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR); | |
1361 WIN_BOOL WINAPI IsValidSid(PSID); | |
1362 WIN_BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL); | |
1363 WIN_BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE); | |
1364 WIN_BOOL WINAPI IsProcessorFeaturePresent(DWORD); | |
1365 WIN_BOOL WINAPI IsValidLocale(DWORD,DWORD); | |
1366 WIN_BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE); | |
1367 WIN_BOOL WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE); | |
1368 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSidW) | |
1369 WIN_BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME); | |
1370 WIN_BOOL WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD); | |
1371 WIN_BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED); | |
1372 WIN_BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID); | |
1373 WIN_BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID); | |
1374 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue) | |
1375 WIN_BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD); | |
1376 HMODULE WINAPI MapHModuleSL(HMODULE16); | |
1377 HMODULE16 WINAPI MapHModuleLS(HMODULE); | |
1378 SEGPTR WINAPI MapLS(LPVOID); | |
1379 LPVOID WINAPI MapSL(SEGPTR); | |
1380 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD); | |
1381 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID); | |
1382 WIN_BOOL WINAPI MoveFileA(LPCSTR,LPCSTR); | |
1383 WIN_BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR); | |
1384 #define MoveFile WINELIB_NAME_AW(MoveFile) | |
1385 WIN_BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD); | |
1386 WIN_BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD); | |
1387 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx) | |
1388 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT); | |
1389 WIN_BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE); | |
1390 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,WIN_BOOL*); | |
1391 HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR); | |
1392 HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR); | |
1393 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog) | |
1394 HANDLE WINAPI OpenEventA(DWORD,WIN_BOOL,LPCSTR); | |
1395 HANDLE WINAPI OpenEventW(DWORD,WIN_BOOL,LPCWSTR); | |
1396 #define OpenEvent WINELIB_NAME_AW(OpenEvent) | |
1397 HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR); | |
1398 HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR); | |
1399 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog) | |
1400 HANDLE WINAPI OpenFileMappingA(DWORD,WIN_BOOL,LPCSTR); | |
1401 HANDLE WINAPI OpenFileMappingW(DWORD,WIN_BOOL,LPCWSTR); | |
1402 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping) | |
1403 HANDLE WINAPI OpenMutexA(DWORD,WIN_BOOL,LPCSTR); | |
1404 HANDLE WINAPI OpenMutexW(DWORD,WIN_BOOL,LPCWSTR); | |
1405 #define OpenMutex WINELIB_NAME_AW(OpenMutex) | |
1406 HANDLE WINAPI OpenProcess(DWORD,WIN_BOOL,DWORD); | |
1407 WIN_BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE); | |
1408 HANDLE WINAPI OpenSemaphoreA(DWORD,WIN_BOOL,LPCSTR); | |
1409 HANDLE WINAPI OpenSemaphoreW(DWORD,WIN_BOOL,LPCWSTR); | |
1410 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore) | |
1411 WIN_BOOL WINAPI OpenThreadToken(HANDLE,DWORD,WIN_BOOL,PHANDLE); | |
1412 HANDLE WINAPI OpenWaitableTimerA(DWORD,WIN_BOOL,LPCSTR); | |
1413 HANDLE WINAPI OpenWaitableTimerW(DWORD,WIN_BOOL,LPCWSTR); | |
1414 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer) | |
1415 WIN_BOOL WINAPI PulseEvent(HANDLE); | |
1416 WIN_BOOL WINAPI PurgeComm(HANDLE,DWORD); | |
1417 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD); | |
1418 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD); | |
1419 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice) | |
1420 WIN_BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER); | |
1421 WIN_BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID); | |
1422 WIN_BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID); | |
1423 #define ReadConsole WINELIB_NAME_AW(ReadConsole) | |
1424 WIN_BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD, | |
1425 COORD,LPDWORD); | |
1426 #define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter) | |
1427 WIN_BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *); | |
1428 WIN_BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *); | |
1429 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog) | |
1430 WIN_BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED); | |
1431 HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR); | |
1432 HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR); | |
1433 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource) | |
1434 WIN_BOOL WINAPI ReleaseMutex(HANDLE); | |
1435 WIN_BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG); | |
1436 WIN_BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID); | |
1437 WIN_BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID); | |
1438 #define ReportEvent WINELIB_NAME_AW(ReportEvent) | |
1439 WIN_BOOL WINAPI ResetEvent(HANDLE); | |
1440 DWORD WINAPI ResumeThread(HANDLE); | |
1441 WIN_BOOL WINAPI RevertToSelf(void); | |
1442 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*); | |
1443 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*); | |
1444 #define SearchPath WINELIB_NAME_AW(SearchPath) | |
1445 WIN_BOOL WINAPI SetCommMask(INT,DWORD); | |
1446 WIN_BOOL WINAPI SetComputerNameA(LPCSTR); | |
1447 WIN_BOOL WINAPI SetComputerNameW(LPCWSTR); | |
1448 #define SetComputerName WINELIB_NAME_AW(SetComputerName) | |
1449 WIN_BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD); | |
1450 WIN_BOOL WINAPI SetConsoleMode(HANDLE,DWORD); | |
1451 WIN_BOOL WINAPI SetConsoleTitleA(LPCSTR); | |
1452 WIN_BOOL WINAPI SetConsoleTitleW(LPCWSTR); | |
1453 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle) | |
1454 WIN_BOOL WINAPI SetEndOfFile(HANDLE); | |
1455 WIN_BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR); | |
1456 WIN_BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR); | |
1457 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable) | |
1458 WIN_BOOL WINAPI SetEvent(HANDLE); | |
1459 VOID WINAPI SetFileApisToANSI(void); | |
1460 VOID WINAPI SetFileApisToOEM(void); | |
1461 DWORD WINAPI SetFilePointer(HANDLE,LONG,LPLONG,DWORD); | |
1462 WIN_BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); | |
1463 WIN_BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); | |
1464 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity) | |
1465 WIN_BOOL WINAPI SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*); | |
1466 WIN_BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD); | |
1467 WIN_BOOL WINAPI SetPriorityClass(HANDLE,DWORD); | |
1468 WIN_BOOL WINAPI SetLocalTime(const SYSTEMTIME*); | |
1469 WIN_BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,WIN_BOOL,PACL,WIN_BOOL); | |
1470 WIN_BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,WIN_BOOL); | |
1471 WIN_BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,WIN_BOOL); | |
1472 WIN_BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,WIN_BOOL,PACL,WIN_BOOL); | |
1473 WIN_BOOL WINAPI SetStdHandle(DWORD,HANDLE); | |
1474 WIN_BOOL WINAPI SetSystemPowerState(WIN_BOOL,WIN_BOOL); | |
1475 WIN_BOOL WINAPI SetSystemTime(const SYSTEMTIME*); | |
1476 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD); | |
1477 WIN_BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *); | |
1478 WIN_BOOL WINAPI SetThreadLocale(LCID); | |
1479 WIN_BOOL WINAPI SetThreadPriority(HANDLE,INT); | |
1480 WIN_BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION); | |
1481 WIN_BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,WIN_BOOL); | |
1482 VOID WINAPI Sleep(DWORD); | |
1483 DWORD WINAPI SleepEx(DWORD,WIN_BOOL); | |
1484 DWORD WINAPI SuspendThread(HANDLE); | |
1485 WIN_BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME); | |
1486 DWORD WINAPI TlsAlloc(void); | |
1487 WIN_BOOL WINAPI TlsFree(DWORD); | |
1488 LPVOID WINAPI TlsGetValue(DWORD); | |
1489 WIN_BOOL WINAPI TlsSetValue(DWORD,LPVOID); | |
1490 VOID WINAPI UnMapLS(SEGPTR); | |
1491 WIN_BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD); | |
1492 WIN_BOOL WINAPI UnmapViewOfFile(LPVOID); | |
1493 LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD); | |
3133 | 1494 WIN_BOOL WINAPI VirtualFree(LPVOID,SIZE_T,DWORD); |
1 | 1495 WIN_BOOL WINAPI VirtualLock(LPVOID,DWORD); |
1496 WIN_BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD); | |
1497 WIN_BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD); | |
1498 DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD); | |
1499 DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD); | |
1500 WIN_BOOL WINAPI VirtualUnlock(LPVOID,DWORD); | |
1501 WIN_BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED); | |
1502 WIN_BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD); | |
1503 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,WIN_BOOL,DWORD); | |
1504 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,WIN_BOOL,DWORD,WIN_BOOL); | |
1505 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD); | |
1506 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,WIN_BOOL); | |
1507 WIN_BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID); | |
1508 WIN_BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID); | |
1509 #define WriteConsole WINELIB_NAME_AW(WriteConsole) | |
1510 WIN_BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED); | |
1511 LANGID WINAPI GetSystemDefaultLangID(void); | |
1512 LCID WINAPI GetSystemDefaultLCID(void); | |
1513 LANGID WINAPI GetUserDefaultLangID(void); | |
1514 LCID WINAPI GetUserDefaultLCID(void); | |
1515 ATOM WINAPI AddAtomA(LPCSTR); | |
1516 ATOM WINAPI AddAtomW(LPCWSTR); | |
1517 #define AddAtom WINELIB_NAME_AW(AddAtom) | |
1518 UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD); | |
1519 UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD); | |
1520 #define CompareString WINELIB_NAME_AW(CompareString) | |
1521 WIN_BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES); | |
1522 WIN_BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES); | |
1523 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory) | |
1524 WIN_BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES); | |
1525 WIN_BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES); | |
1526 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx) | |
1527 WIN_BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR); | |
1528 #define DefineHandleTable(w) ((w),TRUE) | |
1529 ATOM WINAPI DeleteAtom(ATOM); | |
1530 WIN_BOOL WINAPI DeleteFileA(LPCSTR); | |
1531 WIN_BOOL WINAPI DeleteFileW(LPCWSTR); | |
1532 #define DeleteFile WINELIB_NAME_AW(DeleteFile) | |
1533 void WINAPI FatalAppExitA(UINT,LPCSTR); | |
1534 void WINAPI FatalAppExitW(UINT,LPCWSTR); | |
1535 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit) | |
1536 ATOM WINAPI FindAtomA(LPCSTR); | |
1537 ATOM WINAPI FindAtomW(LPCWSTR); | |
1538 #define FindAtom WINELIB_NAME_AW(FindAtom) | |
1539 WIN_BOOL WINAPI FindClose(HANDLE); | |
1540 HANDLE16 WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA); | |
1541 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA); | |
1542 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW); | |
1543 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile) | |
1544 WIN_BOOL16 WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA); | |
1545 WIN_BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA); | |
1546 WIN_BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW); | |
1547 #define FindNextFile WINELIB_NAME_AW(FindNextFile) | |
1548 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR); | |
1549 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR); | |
1550 #define FindResource WINELIB_NAME_AW(FindResource) | |
1551 VOID WINAPI FreeLibrary16(HINSTANCE16); | |
1552 WIN_BOOL WINAPI FreeLibrary(HMODULE); | |
1553 #define FreeModule(handle) FreeLibrary(handle) | |
1554 #define FreeProcInstance(proc) /*nothing*/ | |
1555 WIN_BOOL WINAPI FreeResource(HGLOBAL); | |
1556 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT); | |
1557 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT); | |
1558 #define GetAtomName WINELIB_NAME_AW(GetAtomName) | |
1559 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR); | |
1560 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR); | |
1561 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory) | |
1562 WIN_BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD); | |
1563 WIN_BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD); | |
1564 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace) | |
1565 WIN_BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER); | |
1566 WIN_BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER); | |
1567 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx) | |
1568 UINT WINAPI GetDriveTypeA(LPCSTR); | |
1569 UINT WINAPI GetDriveTypeW(LPCWSTR); | |
1570 #define GetDriveType WINELIB_NAME_AW(GetDriveType) | |
1571 DWORD WINAPI GetFileAttributesA(LPCSTR); | |
1572 DWORD WINAPI GetFileAttributesW(LPCWSTR); | |
1573 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes) | |
1574 #define GetFreeSpace(w) (0x100000L) | |
1575 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR); | |
1576 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR); | |
1577 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings) | |
1578 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT); | |
1579 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT); | |
1580 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo) | |
1581 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD); | |
1582 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD); | |
1583 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName) | |
1584 HMODULE WINAPI GetModuleHandleA(LPCSTR); | |
1585 HMODULE WINAPI GetModuleHandleW(LPCWSTR); | |
1586 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle) | |
1587 WIN_BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,WIN_BOOL); | |
1588 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR); | |
1589 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR); | |
1590 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt) | |
1591 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR); | |
1592 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR); | |
1593 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection) | |
1594 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR); | |
1595 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR); | |
1596 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames) | |
1597 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR); | |
1598 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR); | |
1599 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString) | |
1600 WIN_BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR); | |
1601 WIN_BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR); | |
1602 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct) | |
1603 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR); | |
1604 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT); | |
1605 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT); | |
1606 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt) | |
1607 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD); | |
1608 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD); | |
1609 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection) | |
1610 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT); | |
1611 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT); | |
1612 #define GetProfileString WINELIB_NAME_AW(GetProfileString) | |
1613 VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA); | |
1614 VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW); | |
1615 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo) | |
1616 WIN_BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD); | |
1617 WIN_BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD); | |
1618 #define GetStringType WINELIB_NAME_AW(GetStringType) | |
1619 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT); | |
1620 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT); | |
1621 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory) | |
1622 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR); | |
1623 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR); | |
1624 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName) | |
1625 UINT WINAPI GetTempPathA(UINT,LPSTR); | |
1626 UINT WINAPI GetTempPathW(UINT,LPWSTR); | |
1627 #define GetTempPath WINELIB_NAME_AW(GetTempPath) | |
1628 LONG WINAPI GetVersion(void); | |
1629 WIN_BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD); | |
1630 WIN_BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD); | |
1631 WIN_BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD); | |
1632 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation) | |
1633 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT); | |
1634 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT); | |
1635 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory) | |
1636 HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD); | |
1637 HGLOBAL WINAPI GlobalAlloc(UINT,DWORD); | |
1638 DWORD WINAPI GlobalCompact(DWORD); | |
1639 UINT WINAPI GlobalFlags(HGLOBAL); | |
1640 HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16); | |
1641 HGLOBAL WINAPI GlobalFree(HGLOBAL); | |
1642 HGLOBAL WINAPI GlobalHandle(LPCVOID); | |
1643 WORD WINAPI GlobalFix16(HGLOBAL16); | |
1644 VOID WINAPI GlobalFix(HGLOBAL); | |
1645 LPVOID WINAPI GlobalLock16(HGLOBAL16); | |
1646 LPVOID WINAPI GlobalLock(HGLOBAL); | |
1647 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT); | |
1648 DWORD WINAPI GlobalSize16(HGLOBAL16); | |
1649 DWORD WINAPI GlobalSize(HGLOBAL); | |
1650 VOID WINAPI GlobalUnfix16(HGLOBAL16); | |
1651 VOID WINAPI GlobalUnfix(HGLOBAL); | |
1652 WIN_BOOL16 WINAPI GlobalUnlock16(HGLOBAL16); | |
1653 WIN_BOOL WINAPI GlobalUnlock(HGLOBAL); | |
1654 WIN_BOOL16 WINAPI GlobalUnWire16(HGLOBAL16); | |
1655 WIN_BOOL WINAPI GlobalUnWire(HGLOBAL); | |
1656 SEGPTR WINAPI GlobalWire16(HGLOBAL16); | |
1657 LPVOID WINAPI GlobalWire(HGLOBAL); | |
1658 WIN_BOOL WINAPI InitAtomTable(DWORD); | |
1659 WIN_BOOL WINAPI IsBadCodePtr(FARPROC); | |
1660 WIN_BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT); | |
1661 WIN_BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT); | |
1662 WIN_BOOL WINAPI IsBadReadPtr(LPCVOID,UINT); | |
1663 WIN_BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT); | |
1664 WIN_BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT); | |
1665 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr) | |
1666 WIN_BOOL WINAPI IsBadWritePtr(LPVOID,UINT); | |
1667 WIN_BOOL WINAPI IsDBCSLeadByte(BYTE); | |
1668 WIN_BOOL WINAPI IsDebuggerPresent(void); | |
1669 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR); | |
1670 HMODULE WINAPI LoadLibraryA(LPCSTR); | |
1671 HMODULE WINAPI LoadLibraryW(LPCWSTR); | |
1672 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary) | |
1673 HMODULE WINAPI LoadLibraryExA(LPCSTR,HANDLE,DWORD); | |
1674 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HANDLE,DWORD); | |
1675 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx) | |
1676 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID); | |
1677 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID); | |
1678 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC); | |
1679 HLOCAL WINAPI LocalAlloc(UINT,DWORD); | |
1680 UINT WINAPI LocalCompact(UINT); | |
1681 UINT WINAPI LocalFlags(HLOCAL); | |
1682 HLOCAL WINAPI LocalFree(HLOCAL); | |
1683 HLOCAL WINAPI LocalHandle(LPCVOID); | |
1684 LPVOID WINAPI LocalLock(HLOCAL); | |
1685 HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT); | |
1686 UINT WINAPI LocalShrink(HGLOBAL,UINT); | |
1687 UINT WINAPI LocalSize(HLOCAL); | |
1688 WIN_BOOL WINAPI LocalUnlock(HLOCAL); | |
1689 LPVOID WINAPI LockResource(HGLOBAL); | |
1690 #define LockSegment(handle) GlobalFix((HANDLE)(handle)) | |
1691 #define MakeProcInstance(proc,inst) (proc) | |
1692 HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16); | |
1693 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT); | |
1694 VOID WINAPI OutputDebugStringA(LPCSTR); | |
1695 VOID WINAPI OutputDebugStringW(LPCWSTR); | |
1696 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString) | |
1697 WIN_BOOL WINAPI ReadProcessMemory(HANDLE, LPCVOID, LPVOID, DWORD, LPDWORD); | |
1698 WIN_BOOL WINAPI RemoveDirectoryA(LPCSTR); | |
1699 WIN_BOOL WINAPI RemoveDirectoryW(LPCWSTR); | |
1700 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory) | |
1701 WIN_BOOL WINAPI SetCurrentDirectoryA(LPCSTR); | |
1702 WIN_BOOL WINAPI SetCurrentDirectoryW(LPCWSTR); | |
1703 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory) | |
1704 UINT WINAPI SetErrorMode(UINT); | |
1705 WIN_BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD); | |
1706 WIN_BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD); | |
1707 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes) | |
1708 UINT WINAPI SetHandleCount(UINT); | |
1709 #define SetSwapAreaSize(w) (w) | |
1710 WIN_BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR); | |
1711 WIN_BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR); | |
1712 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel) | |
1713 DWORD WINAPI SizeofResource(HMODULE,HRSRC); | |
1714 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle)) | |
1715 WIN_BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR); | |
1716 WIN_BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR); | |
1717 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection) | |
1718 WIN_BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR); | |
1719 WIN_BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR); | |
1720 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString) | |
1721 WIN_BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR); | |
1722 WIN_BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR); | |
1723 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection) | |
1724 WIN_BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR); | |
1725 WIN_BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR); | |
1726 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct) | |
1727 WIN_BOOL WINAPI WriteProcessMemory(HANDLE, LPVOID, LPVOID, DWORD, LPDWORD); | |
1728 WIN_BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR); | |
1729 WIN_BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR); | |
1730 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString) | |
1731 #define Yield32() | |
1732 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR); | |
1733 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR); | |
1734 #define lstrcat WINELIB_NAME_AW(lstrcat) | |
1735 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR); | |
1736 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR); | |
1737 #define lstrcpy WINELIB_NAME_AW(lstrcpy) | |
1738 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT); | |
1739 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT); | |
1740 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn) | |
1741 INT WINAPI lstrlenA(LPCSTR); | |
1742 INT WINAPI lstrlenW(LPCWSTR); | |
1743 #define lstrlen WINELIB_NAME_AW(lstrlen) | |
1744 HINSTANCE WINAPI WinExec(LPCSTR,UINT); | |
1745 LONG WINAPI _hread(HFILE,LPVOID,LONG); | |
1746 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG); | |
1747 HFILE WINAPI _lcreat(LPCSTR,INT); | |
1748 HFILE WINAPI _lclose(HFILE); | |
1749 LONG WINAPI _llseek(HFILE,LONG,INT); | |
1750 HFILE WINAPI _lopen(LPCSTR,INT); | |
1751 UINT WINAPI _lread(HFILE,LPVOID,UINT); | |
1752 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT); | |
1753 SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16); | |
1754 INT WINAPI lstrcmpA(LPCSTR,LPCSTR); | |
1755 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR); | |
1756 #define lstrcmp WINELIB_NAME_AW(lstrcmp) | |
1757 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR); | |
1758 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR); | |
1759 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi) | |
1760 | |
1761 /* compatibility macros */ | |
1762 #define FillMemory RtlFillMemory | |
1763 #define MoveMemory RtlMoveMemory | |
1764 #define ZeroMemory RtlZeroMemory | |
1765 #define CopyMemory RtlCopyMemory | |
1766 | |
1767 DWORD WINAPI GetCurrentProcessId(void); | |
1768 DWORD WINAPI GetCurrentThreadId(void); | |
1769 DWORD WINAPI GetLastError(void); | |
1770 HANDLE WINAPI GetProcessHeap(void); | |
1771 PVOID WINAPI InterlockedCompareExchange(PVOID*,PVOID,PVOID); | |
1772 LONG WINAPI InterlockedDecrement(PLONG); | |
1773 LONG WINAPI InterlockedExchange(PLONG,LONG); | |
1774 LONG WINAPI InterlockedExchangeAdd(PLONG,LONG); | |
1775 LONG WINAPI InterlockedIncrement(PLONG); | |
1776 VOID WINAPI SetLastError(DWORD); | |
1777 | |
1778 #define GetCurrentProcess() ((HANDLE)0xffffffff) | |
1779 #define GetCurrentThread() ((HANDLE)0xfffffffe) | |
1780 | |
1781 #ifdef __cplusplus | |
1782 } | |
1783 #endif | |
1784 | |
24422
c98c9e7f3bd0
Remove leading underscores from multiple inclusion guards,
diego
parents:
24406
diff
changeset
|
1785 #endif /* WINE_WINBASE_H */ |