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