1 #ifndef __WINE_WINBASE_H
2 #define __WINE_WINBASE_H
5 #include "wine/winestring.h"
14 typedef struct tagCOORD {
20 /* Windows Exit Procedure flag values */
21 #define WEP_FREE_DLL 0
22 #define WEP_SYSTEM_EXIT 1
24 typedef DWORD (CALLBACK *LPTHREAD_START_ROUTINE)(LPVOID);
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
36 typedef struct _EXCEPTION_DEBUG_INFO {
37 EXCEPTION_RECORD ExceptionRecord;
39 } EXCEPTION_DEBUG_INFO;
41 typedef struct _CREATE_THREAD_DEBUG_INFO {
43 LPVOID lpThreadLocalBase;
44 LPTHREAD_START_ROUTINE lpStartAddress;
45 } CREATE_THREAD_DEBUG_INFO;
47 typedef struct _CREATE_PROCESS_DEBUG_INFO {
52 DWORD dwDebugInfoFileOffset;
54 LPVOID lpThreadLocalBase;
55 LPTHREAD_START_ROUTINE lpStartAddress;
58 } CREATE_PROCESS_DEBUG_INFO;
60 typedef struct _EXIT_THREAD_DEBUG_INFO {
62 } EXIT_THREAD_DEBUG_INFO;
64 typedef struct _EXIT_PROCESS_DEBUG_INFO {
66 } EXIT_PROCESS_DEBUG_INFO;
68 typedef struct _LOAD_DLL_DEBUG_INFO {
71 DWORD dwDebugInfoFileOffset;
75 } LOAD_DLL_DEBUG_INFO;
77 typedef struct _UNLOAD_DLL_DEBUG_INFO {
79 } UNLOAD_DLL_DEBUG_INFO;
81 typedef struct _OUTPUT_DEBUG_STRING_INFO {
82 LPSTR lpDebugStringData;
84 WORD nDebugStringLength;
85 } OUTPUT_DEBUG_STRING_INFO;
87 typedef struct _RIP_INFO {
92 typedef struct _DEBUG_EVENT {
93 DWORD dwDebugEventCode;
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;
107 } DEBUG_EVENT, *LPDEBUG_EVENT;
109 #define OFS_MAXPATHNAME 128
116 BYTE szPathName[OFS_MAXPATHNAME];
117 } OFSTRUCT, *LPOFSTRUCT;
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
137 /* SetErrorMode values */
138 #define SEM_FAILCRITICALERRORS 0x0001
139 #define SEM_NOGPFAULTERRORBOX 0x0002
140 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
141 #define SEM_NOOPENFILEERRORBOX 0x8000
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
148 /* GetTempFileName() Flags */
149 #define TF_FORCEDRIVE 0x80
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
160 /* The security attributes structure */
164 LPVOID lpSecurityDescriptor;
166 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
170 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
174 DWORD dwHighDateTime;
175 } FILETIME, *LPFILETIME;
176 #endif /* _FILETIME_ */
178 /* Find* structures */
181 DWORD dwFileAttributes;
182 FILETIME ftCreationTime;
183 FILETIME ftLastAccessTime;
184 FILETIME ftLastWriteTime;
190 CHAR cAlternateFileName[14];
191 } WIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
195 DWORD dwFileAttributes;
196 FILETIME ftCreationTime;
197 FILETIME ftLastAccessTime;
198 FILETIME ftLastWriteTime;
203 WCHAR cFileName[260];
204 WCHAR cAlternateFileName[14];
205 } WIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
207 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
208 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
223 DWORD dwCommittedSize;
224 DWORD dwUnCommittedSize;
229 } PROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY;
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
237 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
238 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
242 #define CBR_110 0xFF10
243 #define CBR_300 0xFF11
244 #define CBR_600 0xFF12
245 #define CBR_1200 0xFF13
246 #define CBR_2400 0xFF14
247 #define CBR_4800 0xFF15
248 #define CBR_9600 0xFF16
249 #define CBR_14400 0xFF17
250 #define CBR_19200 0xFF18
251 #define CBR_38400 0xFF1B
252 #define CBR_56000 0xFF1F
253 #define CBR_128000 0xFF23
254 #define CBR_256000 0xFF27
260 #define SPACEPARITY 4
262 #define ONE5STOPBITS 1
263 #define TWOSTOPBITS 2
266 #define INFINITE16 0xFFFF
267 #define INFINITE 0xFFFFFFFF
269 #define CE_RXOVER 0x0001
270 #define CE_OVERRUN 0x0002
271 #define CE_RXPARITY 0x0004
272 #define CE_FRAME 0x0008
273 #define CE_BREAK 0x0010
274 #define CE_CTSTO 0x0020
275 #define CE_DSRTO 0x0040
276 #define CE_RLSDTO 0x0080
277 #define CE_TXFULL 0x0100
278 #define CE_PTO 0x0200
279 #define CE_IOE 0x0400
280 #define CE_DNS 0x0800
281 #define CE_OOP 0x1000
282 #define CE_MODE 0x8000
288 #define IE_DEFAULT -5
289 #define IE_HARDWARE -10
290 #define IE_BYTESIZE -11
291 #define IE_BAUDRATE -12
293 #define EV_RXCHAR 0x0001
294 #define EV_RXFLAG 0x0002
295 #define EV_TXEMPTY 0x0004
296 #define EV_CTS 0x0008
297 #define EV_DSR 0x0010
298 #define EV_RLSD 0x0020
299 #define EV_BREAK 0x0040
300 #define EV_ERR 0x0080
301 #define EV_RING 0x0100
302 #define EV_PERR 0x0200
303 #define EV_CTSS 0x0400
304 #define EV_DSRS 0x0800
305 #define EV_RLSDS 0x1000
306 #define EV_RINGTE 0x2000
307 #define EV_RingTe EV_RINGTE
319 #define GETBASEIRQ 10
321 /* Purge functions for Comm Port */
322 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
324 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
326 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
327 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
330 /* Modem Status Flags */
331 #define MS_CTS_ON ((DWORD)0x0010)
332 #define MS_DSR_ON ((DWORD)0x0020)
333 #define MS_RING_ON ((DWORD)0x0040)
334 #define MS_RLSD_ON ((DWORD)0x0080)
336 #define RTS_CONTROL_DISABLE 0
337 #define RTS_CONTROL_ENABLE 1
338 #define RTS_CONTROL_HANDSHAKE 2
339 #define RTS_CONTROL_TOGGLE 3
341 #define DTR_CONTROL_DISABLE 0
342 #define DTR_CONTROL_ENABLE 1
343 #define DTR_CONTROL_HANDSHAKE 2
345 #define CSTF_CTSHOLD 0x01
346 #define CSTF_DSRHOLD 0x02
347 #define CSTF_RLSDHOLD 0x04
348 #define CSTF_XOFFHOLD 0x08
349 #define CSTF_XOFFSENT 0x10
350 #define CSTF_EOF 0x20
351 #define CSTF_TXIM 0x40
353 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
354 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
355 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
357 /* Predefined resource types */
358 #define RT_CURSORA MAKEINTRESOURCEA(1)
359 #define RT_CURSORW MAKEINTRESOURCEW(1)
360 #define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
361 #define RT_BITMAPA MAKEINTRESOURCEA(2)
362 #define RT_BITMAPW MAKEINTRESOURCEW(2)
363 #define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
364 #define RT_ICONA MAKEINTRESOURCEA(3)
365 #define RT_ICONW MAKEINTRESOURCEW(3)
366 #define RT_ICON WINELIB_NAME_AW(RT_ICON)
367 #define RT_MENUA MAKEINTRESOURCEA(4)
368 #define RT_MENUW MAKEINTRESOURCEW(4)
369 #define RT_MENU WINELIB_NAME_AW(RT_MENU)
370 #define RT_DIALOGA MAKEINTRESOURCEA(5)
371 #define RT_DIALOGW MAKEINTRESOURCEW(5)
372 #define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
373 #define RT_STRINGA MAKEINTRESOURCEA(6)
374 #define RT_STRINGW MAKEINTRESOURCEW(6)
375 #define RT_STRING WINELIB_NAME_AW(RT_STRING)
376 #define RT_FONTDIRA MAKEINTRESOURCEA(7)
377 #define RT_FONTDIRW MAKEINTRESOURCEW(7)
378 #define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
379 #define RT_FONTA MAKEINTRESOURCEA(8)
380 #define RT_FONTW MAKEINTRESOURCEW(8)
381 #define RT_FONT WINELIB_NAME_AW(RT_FONT)
382 #define RT_ACCELERATORA MAKEINTRESOURCEA(9)
383 #define RT_ACCELERATORW MAKEINTRESOURCEW(9)
384 #define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
385 #define RT_RCDATAA MAKEINTRESOURCEA(10)
386 #define RT_RCDATAW MAKEINTRESOURCEW(10)
387 #define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
388 #define RT_MESSAGELISTA MAKEINTRESOURCEA(11)
389 #define RT_MESSAGELISTW MAKEINTRESOURCEW(11)
390 #define RT_MESSAGELIST WINELIB_NAME_AW(RT_MESSAGELIST)
391 #define RT_GROUP_CURSORA MAKEINTRESOURCEA(12)
392 #define RT_GROUP_CURSORW MAKEINTRESOURCEW(12)
393 #define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
394 #define RT_GROUP_ICONA MAKEINTRESOURCEA(14)
395 #define RT_GROUP_ICONW MAKEINTRESOURCEW(14)
396 #define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
400 #define LMEM_MOVEABLE 0x0002
401 #define LMEM_NOCOMPACT 0x0010
402 #define LMEM_NODISCARD 0x0020
403 #define LMEM_ZEROINIT 0x0040
404 #define LMEM_MODIFY 0x0080
405 #define LMEM_DISCARDABLE 0x0F00
406 #define LMEM_DISCARDED 0x4000
407 #define LMEM_LOCKCOUNT 0x00FF
409 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
411 #define GMEM_FIXED 0x0000
412 #define GMEM_MOVEABLE 0x0002
413 #define GMEM_NOCOMPACT 0x0010
414 #define GMEM_NODISCARD 0x0020
415 #define GMEM_ZEROINIT 0x0040
416 #define GMEM_MODIFY 0x0080
417 #define GMEM_DISCARDABLE 0x0100
418 #define GMEM_NOT_BANKED 0x1000
419 #define GMEM_SHARE 0x2000
420 #define GMEM_DDESHARE 0x2000
421 #define GMEM_NOTIFY 0x4000
422 #define GMEM_LOWER GMEM_NOT_BANKED
423 #define GMEM_DISCARDED 0x4000
424 #define GMEM_LOCKCOUNT 0x00ff
425 #define GMEM_INVALID_HANDLE 0x8000
427 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
428 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
431 typedef struct tagMEMORYSTATUS
437 DWORD dwTotalPageFile;
438 DWORD dwAvailPageFile;
439 DWORD dwTotalVirtual;
440 DWORD dwAvailVirtual;
441 } MEMORYSTATUS, *LPMEMORYSTATUS;
446 /* LogParamError and LogError values */
448 /* Error modifier bits */
449 #define ERR_WARNING 0x8000
450 #define ERR_PARAM 0x4000
452 #define ERR_SIZE_MASK 0x3000
453 #define ERR_BYTE 0x1000
454 #define ERR_WORD 0x2000
455 #define ERR_DWORD 0x3000
457 /* LogParamError() values */
459 /* Generic parameter values */
460 #define ERR_BAD_VALUE 0x6001
461 #define ERR_BAD_FLAGS 0x6002
462 #define ERR_BAD_INDEX 0x6003
463 #define ERR_BAD_DVALUE 0x7004
464 #define ERR_BAD_DFLAGS 0x7005
465 #define ERR_BAD_DINDEX 0x7006
466 #define ERR_BAD_PTR 0x7007
467 #define ERR_BAD_FUNC_PTR 0x7008
468 #define ERR_BAD_SELECTOR 0x6009
469 #define ERR_BAD_STRING_PTR 0x700a
470 #define ERR_BAD_HANDLE 0x600b
472 /* KERNEL parameter errors */
473 #define ERR_BAD_HINSTANCE 0x6020
474 #define ERR_BAD_HMODULE 0x6021
475 #define ERR_BAD_GLOBAL_HANDLE 0x6022
476 #define ERR_BAD_LOCAL_HANDLE 0x6023
477 #define ERR_BAD_ATOM 0x6024
478 #define ERR_BAD_HFILE 0x6025
480 /* USER parameter errors */
481 #define ERR_BAD_HWND 0x6040
482 #define ERR_BAD_HMENU 0x6041
483 #define ERR_BAD_HCURSOR 0x6042
484 #define ERR_BAD_HICON 0x6043
485 #define ERR_BAD_HDWP 0x6044
486 #define ERR_BAD_CID 0x6045
487 #define ERR_BAD_HDRVR 0x6046
489 /* GDI parameter errors */
490 #define ERR_BAD_COORDS 0x7060
491 #define ERR_BAD_GDI_OBJECT 0x6061
492 #define ERR_BAD_HDC 0x6062
493 #define ERR_BAD_HPEN 0x6063
494 #define ERR_BAD_HFONT 0x6064
495 #define ERR_BAD_HBRUSH 0x6065
496 #define ERR_BAD_HBITMAP 0x6066
497 #define ERR_BAD_HRGN 0x6067
498 #define ERR_BAD_HPALETTE 0x6068
499 #define ERR_BAD_HMETAFILE 0x6069
502 /* LogError() values */
505 #define ERR_GALLOC 0x0001
506 #define ERR_GREALLOC 0x0002
507 #define ERR_GLOCK 0x0003
508 #define ERR_LALLOC 0x0004
509 #define ERR_LREALLOC 0x0005
510 #define ERR_LLOCK 0x0006
511 #define ERR_ALLOCRES 0x0007
512 #define ERR_LOCKRES 0x0008
513 #define ERR_LOADMODULE 0x0009
516 #define ERR_CREATEDLG 0x0040
517 #define ERR_CREATEDLG2 0x0041
518 #define ERR_REGISTERCLASS 0x0042
519 #define ERR_DCBUSY 0x0043
520 #define ERR_CREATEWND 0x0044
521 #define ERR_STRUCEXTRA 0x0045
522 #define ERR_LOADSTR 0x0046
523 #define ERR_LOADMENU 0x0047
524 #define ERR_NESTEDBEGINPAINT 0x0048
525 #define ERR_BADINDEX 0x0049
526 #define ERR_CREATEMENU 0x004a
529 #define ERR_CREATEDC 0x0080
530 #define ERR_CREATEMETA 0x0081
531 #define ERR_DELOBJSELECTED 0x0082
532 #define ERR_SELBITMAP 0x0083
536 /* Debugging support (DEBUG SYSTEM ONLY) */
540 DWORD dwOptions WINE_PACKED;
541 DWORD dwFilter WINE_PACKED;
542 CHAR achAllocModule[8] WINE_PACKED;
543 DWORD dwAllocBreak WINE_PACKED;
544 DWORD dwAllocCount WINE_PACKED;
545 } WINDEBUGINFO, *LPWINDEBUGINFO;
547 /* WINDEBUGINFO flags values */
548 #define WDI_OPTIONS 0x0001
549 #define WDI_FILTER 0x0002
550 #define WDI_ALLOCBREAK 0x0004
552 /* dwOptions values */
553 #define DBO_CHECKHEAP 0x0001
554 #define DBO_BUFFERFILL 0x0004
555 #define DBO_DISABLEGPTRAPPING 0x0010
556 #define DBO_CHECKFREE 0x0020
558 #define DBO_SILENT 0x8000
560 #define DBO_TRACEBREAK 0x2000
561 #define DBO_WARNINGBREAK 0x1000
562 #define DBO_NOERRORBREAK 0x0800
563 #define DBO_NOFATALBREAK 0x0400
564 #define DBO_INT3BREAK 0x0100
566 /* DebugOutput flags values */
567 #define DBF_TRACE 0x0000
568 #define DBF_WARNING 0x4000
569 #define DBF_ERROR 0x8000
570 #define DBF_FATAL 0xc000
572 /* dwFilter values */
573 #define DBF_KERNEL 0x1000
574 #define DBF_KRN_MEMMAN 0x0001
575 #define DBF_KRN_LOADMODULE 0x0002
576 #define DBF_KRN_SEGMENTLOAD 0x0004
577 #define DBF_USER 0x0800
578 #define DBF_GDI 0x0400
579 #define DBF_MMSYSTEM 0x0040
580 #define DBF_PENWIN 0x0020
581 #define DBF_APPLICATION 0x0008
582 #define DBF_DRIVER 0x0010
584 #endif /* NOLOGERROR */
595 } SYSTEMTIME, *LPSYSTEMTIME;
598 /* Code page information.
600 #define MAX_LEADBYTES 12
601 #define MAX_DEFAULTCHAR 2
606 BYTE DefaultChar[MAX_DEFAULTCHAR];
607 BYTE LeadByte[MAX_LEADBYTES];
610 /* The 'overlapped' data structure used by async I/O functions.
618 } OVERLAPPED, *LPOVERLAPPED;
620 /* Process startup information.
623 /* STARTUPINFO.dwFlags */
624 #define STARTF_USESHOWWINDOW 0x00000001
625 #define STARTF_USESIZE 0x00000002
626 #define STARTF_USEPOSITION 0x00000004
627 #define STARTF_USECOUNTCHARS 0x00000008
628 #define STARTF_USEFILLATTRIBUTE 0x00000010
629 #define STARTF_RUNFULLSCREEN 0x00000020
630 #define STARTF_FORCEONFEEDBACK 0x00000040
631 #define STARTF_FORCEOFFFEEDBACK 0x00000080
632 #define STARTF_USESTDHANDLES 0x00000100
633 #define STARTF_USEHOTKEY 0x00000200
636 DWORD cb; /* 00: size of struct */
637 LPSTR lpReserved; /* 04: */
638 LPSTR lpDesktop; /* 08: */
639 LPSTR lpTitle; /* 0c: */
642 DWORD dwXSize; /* 18: */
643 DWORD dwYSize; /* 1c: */
644 DWORD dwXCountChars; /* 20: */
645 DWORD dwYCountChars; /* 24: */
646 DWORD dwFillAttribute; /* 28: */
647 DWORD dwFlags; /* 2c: */
648 WORD wShowWindow; /* 30: */
649 WORD cbReserved2; /* 32: */
650 BYTE *lpReserved2; /* 34: */
651 HANDLE hStdInput; /* 38: */
652 HANDLE hStdOutput; /* 3c: */
653 HANDLE hStdError; /* 40: */
654 } STARTUPINFOA, *LPSTARTUPINFOA;
667 DWORD dwFillAttribute;
675 } STARTUPINFOW, *LPSTARTUPINFOW;
677 DECL_WINELIB_TYPE_AW(STARTUPINFO)
678 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
685 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
689 WCHAR StandardName[32];
690 SYSTEMTIME StandardDate;
692 WCHAR DaylightName[32];
693 SYSTEMTIME DaylightDate;
695 } TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
697 #define TIME_ZONE_ID_UNKNOWN 0
698 #define TIME_ZONE_ID_STANDARD 1
699 #define TIME_ZONE_ID_DAYLIGHT 2
701 /* CreateProcess: dwCreationFlag values
703 #define DEBUG_PROCESS 0x00000001
704 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
705 #define CREATE_SUSPENDED 0x00000004
706 #define DETACHED_PROCESS 0x00000008
707 #define CREATE_NEW_CONSOLE 0x00000010
708 #define NORMAL_PRIORITY_CLASS 0x00000020
709 #define IDLE_PRIORITY_CLASS 0x00000040
710 #define HIGH_PRIORITY_CLASS 0x00000080
711 #define REALTIME_PRIORITY_CLASS 0x00000100
712 #define CREATE_NEW_PROCESS_GROUP 0x00000200
713 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
714 #define CREATE_SEPARATE_WOW_VDM 0x00000800
715 #define CREATE_SHARED_WOW_VDM 0x00001000
716 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
717 #define CREATE_NO_WINDOW 0x08000000
718 #define PROFILE_USER 0x10000000
719 #define PROFILE_KERNEL 0x20000000
720 #define PROFILE_SERVER 0x40000000
723 /* File object type definitions
725 #define FILE_TYPE_UNKNOWN 0
726 #define FILE_TYPE_DISK 1
727 #define FILE_TYPE_CHAR 2
728 #define FILE_TYPE_PIPE 3
729 #define FILE_TYPE_REMOTE 32768
731 /* File creation flags
733 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
734 #define FILE_FLAG_OVERLAPPED 0x40000000L
735 #define FILE_FLAG_NO_BUFFERING 0x20000000L
736 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
737 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
738 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
739 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
740 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
742 #define CREATE_ALWAYS 2
743 #define OPEN_EXISTING 3
744 #define OPEN_ALWAYS 4
745 #define TRUNCATE_EXISTING 5
747 /* Standard handle identifiers
749 #define STD_INPUT_HANDLE ((DWORD) -10)
750 #define STD_OUTPUT_HANDLE ((DWORD) -11)
751 #define STD_ERROR_HANDLE ((DWORD) -12)
755 int dwFileAttributes;
756 FILETIME ftCreationTime;
757 FILETIME ftLastAccessTime;
758 FILETIME ftLastWriteTime;
759 int dwVolumeSerialNumber;
765 } BY_HANDLE_FILE_INFORMATION ;
768 typedef struct _SYSTEM_POWER_STATUS
772 BYTE BatteryLifePercent;
774 DWORD BatteryLifeTime;
775 DWORD BatteryFullLifeTime;
776 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
778 typedef struct _MEMORY_BASIC_INFORMATION
781 LPVOID AllocationBase;
782 DWORD AllocationProtect;
787 } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
790 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
791 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
792 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
793 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
794 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
795 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
797 typedef struct tagSYSTEM_INFO
802 WORD wProcessorArchitecture;
807 LPVOID lpMinimumApplicationAddress;
808 LPVOID lpMaximumApplicationAddress;
809 DWORD dwActiveProcessorMask;
810 DWORD dwNumberOfProcessors;
811 DWORD dwProcessorType;
812 DWORD dwAllocationGranularity;
813 WORD wProcessorLevel;
814 WORD wProcessorRevision;
815 } SYSTEM_INFO, *LPSYSTEM_INFO;
817 /* service main function prototype */
818 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONA)(DWORD,LPSTR);
819 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONW)(DWORD,LPWSTR);
820 DECL_WINELIB_TYPE_AW(LPSERVICE_MAIN_FUNCTION)
822 /* service start table */
826 LPSERVICE_MAIN_FUNCTIONA lpServiceProc;
827 } *LPSERVICE_TABLE_ENTRYA, SERVICE_TABLE_ENTRYA;
831 LPWSTR lpServiceName;
832 LPSERVICE_MAIN_FUNCTIONW lpServiceProc;
833 } *LPSERVICE_TABLE_ENTRYW, SERVICE_TABLE_ENTRYW;
835 DECL_WINELIB_TYPE_AW(SERVICE_TABLE_ENTRY)
836 DECL_WINELIB_TYPE_AW(LPSERVICE_TABLE_ENTRY)
838 /* {G,S}etPriorityClass */
839 #define NORMAL_PRIORITY_CLASS 0x00000020
840 #define IDLE_PRIORITY_CLASS 0x00000040
841 #define HIGH_PRIORITY_CLASS 0x00000080
842 #define REALTIME_PRIORITY_CLASS 0x00000100
844 typedef BOOL (CALLBACK *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
845 typedef BOOL (CALLBACK *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG);
846 typedef BOOL (CALLBACK *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG);
847 typedef BOOL (CALLBACK *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG);
848 typedef BOOL (CALLBACK *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG);
849 typedef BOOL (CALLBACK *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG);
851 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
852 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
853 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
855 /* flags that can be passed to LoadLibraryEx */
856 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
857 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
858 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
860 /* ifdef _x86_ ... */
861 typedef struct _LDT_ENTRY {
867 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
872 unsigned BaseMid : 8;
876 unsigned LimitHi : 4;
878 unsigned Reserved_0 : 1;
879 unsigned Default_Big : 1;
880 unsigned Granularity : 1;
884 } LDT_ENTRY, *LPLDT_ENTRY;
886 /* for WOWHandle{16,32} */
887 typedef enum _WOW_HANDLE_TYPE { /* WOW */
905 /* WOWCallback16Ex defines */
906 #define WCB16_MAX_CBARGS 16
908 #define WCB16_PASCAL 0x0
909 #define WCB16_CDECL 0x1
911 typedef enum _GET_FILEEX_INFO_LEVELS {
912 GetFileExInfoStandard
913 } GET_FILEEX_INFO_LEVELS;
915 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
916 DWORD dwFileAttributes;
917 FILETIME ftCreationTime;
918 FILETIME ftLastAccessTime;
919 FILETIME ftLastWriteTime;
922 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
924 typedef struct _DllVersionInfo {
926 DWORD dwMajorVersion;
927 DWORD dwMinorVersion;
933 * This one seems to be a Win32 only definition. It also is defined with
934 * WINAPI instead of CALLBACK in the windows headers.
936 typedef DWORD (WINAPI *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
937 LARGE_INTEGER, DWORD, DWORD, HANDLE,
941 #define WAIT_FAILED 0xffffffff
942 #define WAIT_OBJECT_0 0
943 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
944 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
945 #define WAIT_IO_COMPLETION STATUS_USER_APC
946 #define WAIT_TIMEOUT STATUS_TIMEOUT
948 #define PAGE_NOACCESS 0x01
949 #define PAGE_READONLY 0x02
950 #define PAGE_READWRITE 0x04
951 #define PAGE_WRITECOPY 0x08
952 #define PAGE_EXECUTE 0x10
953 #define PAGE_EXECUTE_READ 0x20
954 #define PAGE_EXECUTE_READWRITE 0x40
955 #define PAGE_EXECUTE_WRITECOPY 0x80
956 #define PAGE_GUARD 0x100
957 #define PAGE_NOCACHE 0x200
959 #define MEM_COMMIT 0x00001000
960 #define MEM_RESERVE 0x00002000
961 #define MEM_DECOMMIT 0x00004000
962 #define MEM_RELEASE 0x00008000
963 #define MEM_FREE 0x00010000
964 #define MEM_PRIVATE 0x00020000
965 #define MEM_MAPPED 0x00040000
966 #define MEM_TOP_DOWN 0x00100000
968 #define SEC_FILE 0x00800000
969 #define SEC_IMAGE 0x01000000
970 #define SEC_RESERVE 0x04000000
971 #define SEC_COMMIT 0x08000000
972 #define SEC_NOCACHE 0x10000000
975 #define FILE_CURRENT 1
978 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001
979 #define FILE_CASE_PRESERVED_NAMES 0x00000002
980 #define FILE_UNICODE_ON_DISK 0x00000004
981 #define FILE_PERSISTENT_ACLS 0x00000008
983 #define FILE_MAP_COPY 0x00000001
984 #define FILE_MAP_WRITE 0x00000002
985 #define FILE_MAP_READ 0x00000004
986 #define FILE_MAP_ALL_ACCESS 0x000f001f
988 #define MOVEFILE_REPLACE_EXISTING 0x00000001
989 #define MOVEFILE_COPY_ALLOWED 0x00000002
990 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
992 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
993 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
994 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
996 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
997 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
998 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
999 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
1000 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
1001 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
1002 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
1003 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
1004 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
1005 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
1006 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
1007 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
1008 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
1009 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
1010 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
1011 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
1012 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
1013 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
1014 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
1015 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
1016 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
1017 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
1018 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
1021 #define DUPLICATE_CLOSE_SOURCE 0x00000001
1022 #define DUPLICATE_SAME_ACCESS 0x00000002
1024 #define HANDLE_FLAG_INHERIT 0x00000001
1025 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
1027 #define HINSTANCE_ERROR 32
1029 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
1030 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
1031 #define THREAD_PRIORITY_NORMAL 0
1032 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
1033 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
1034 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
1035 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
1036 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
1038 /* Could this type be considered opaque? */
1042 LONG RecursionCount;
1043 HANDLE OwningThread;
1044 HANDLE LockSemaphore;
1049 DWORD dwOSVersionInfoSize;
1050 DWORD dwMajorVersion;
1051 DWORD dwMinorVersion;
1052 DWORD dwBuildNumber;
1054 CHAR szCSDVersion[128];
1058 DWORD dwOSVersionInfoSize;
1059 DWORD dwMajorVersion;
1060 DWORD dwMinorVersion;
1061 DWORD dwBuildNumber;
1063 CHAR szCSDVersion[128];
1067 DWORD dwOSVersionInfoSize;
1068 DWORD dwMajorVersion;
1069 DWORD dwMinorVersion;
1070 DWORD dwBuildNumber;
1072 WCHAR szCSDVersion[128];
1075 DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
1077 #define VER_PLATFORM_WIN32s 0
1078 #define VER_PLATFORM_WIN32_WINDOWS 1
1079 #define VER_PLATFORM_WIN32_NT 2
1081 typedef struct tagCOMSTAT
1086 } COMSTAT,*LPCOMSTAT;
1088 typedef struct tagDCB
1092 unsigned fBinary :1;
1093 unsigned fParity :1;
1094 unsigned fOutxCtsFlow :1;
1095 unsigned fOutxDsrFlow :1;
1096 unsigned fDtrControl :2;
1097 unsigned fDsrSensitivity :1;
1098 unsigned fTXContinueOnXoff :1;
1101 unsigned fErrorChar :1;
1103 unsigned fRtsControl :2;
1104 unsigned fAbortOnError :1;
1105 unsigned fDummy2 :17;
1121 typedef struct tagCOMMTIMEOUTS {
1122 DWORD ReadIntervalTimeout;
1123 DWORD ReadTotalTimeoutMultiplier;
1124 DWORD ReadTotalTimeoutConstant;
1125 DWORD WriteTotalTimeoutMultiplier;
1126 DWORD WriteTotalTimeoutConstant;
1127 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1129 #include "poppack.h"
1131 typedef VOID (CALLBACK *PAPCFUNC)(ULONG_PTR);
1133 BOOL WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT);
1134 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1135 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1136 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1137 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1138 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1139 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1140 BOOL WINAPI GetCommTimeouts(INT,LPCOMMTIMEOUTS);
1141 BOOL WINAPI SetCommTimeouts(INT,LPCOMMTIMEOUTS);
1142 BOOL WINAPI GetCommState(INT,LPDCB);
1143 BOOL WINAPI SetCommState(INT,LPDCB);
1144 BOOL WINAPI TransmitCommChar(INT,CHAR);
1145 BOOL WINAPI SetupComm(HANDLE, DWORD, DWORD);
1146 BOOL WINAPI GetCommProperties(HANDLE, LPDCB *);
1148 /*DWORD WINAPI GetVersion( void );*/
1149 BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*);
1150 BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1151 BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1152 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1154 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1156 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1157 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1158 BOOL WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit);
1159 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1160 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1161 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1162 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1163 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1164 void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1165 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1166 BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1167 BOOL WINAPI TerminateThread(HANDLE,DWORD);
1168 BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1170 /* GetBinaryType return values.
1173 #define SCS_32BIT_BINARY 0
1174 #define SCS_DOS_BINARY 1
1175 #define SCS_WOW_BINARY 2
1176 #define SCS_PIF_BINARY 3
1177 #define SCS_POSIX_BINARY 4
1178 #define SCS_OS216_BINARY 5
1180 BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1181 BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1182 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1184 BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1185 BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1186 /* Declarations for functions that exist only in Win32 */
1188 BOOL WINAPI AllocConsole(void);
1189 BOOL WINAPI AreFileApisANSI(void);
1190 BOOL WINAPI Beep(DWORD,DWORD);
1191 BOOL WINAPI CloseHandle(HANDLE);
1192 BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1193 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1194 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1195 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1196 #define CopyFile WINELIB_NAME_AW(CopyFile)
1197 BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1198 BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1199 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1200 INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1201 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1202 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1203 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1204 HFILE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1205 DWORD,DWORD,HANDLE);
1206 HFILE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1207 DWORD,DWORD,HANDLE);
1208 #define CreateFile WINELIB_NAME_AW(CreateFile)
1209 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1210 DWORD,DWORD,LPCSTR);
1211 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1212 DWORD,DWORD,LPCWSTR);
1213 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1214 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1215 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1216 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1217 BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1218 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1219 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1220 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1221 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1222 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1223 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1224 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1225 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1226 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1227 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1228 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1229 BOOL WINAPI DebugActiveProcess(DWORD);
1230 void WINAPI DebugBreak(void);
1231 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1232 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1233 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1234 BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1235 BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1236 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1237 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1238 ENUMRESLANGPROCA,LONG);
1239 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1240 ENUMRESLANGPROCW,LONG);
1241 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1242 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1244 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1246 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1247 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1248 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1249 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1250 BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
1251 BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
1252 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1253 BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
1254 BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
1255 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1256 BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1257 BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1258 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1259 VOID WINAPI ExitProcess(DWORD);
1260 VOID WINAPI ExitThread(DWORD);
1261 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1262 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1263 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1264 BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1265 BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1266 BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1267 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1268 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1269 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1270 BOOL WINAPI FindNextChangeNotification(HANDLE);
1271 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1272 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1273 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1274 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1275 BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1276 BOOL WINAPI FlushFileBuffers(HFILE);
1277 BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1278 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1280 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1282 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1283 BOOL WINAPI FreeConsole(void);
1284 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1285 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1286 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1287 UINT WINAPI GetACP(void);
1288 LPCSTR WINAPI GetCommandLineA(void);
1289 LPCWSTR WINAPI GetCommandLineW(void);
1290 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1291 BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1292 BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1293 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1294 UINT WINAPI GetConsoleCP(void);
1295 BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1296 UINT WINAPI GetConsoleOutputCP(void);
1297 DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1298 DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1299 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1300 BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
1301 BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1302 BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1303 HANDLE WINAPI GetCurrentProcess(void);
1304 DWORD WINAPI GetCurrentProcessId(void);
1305 HANDLE WINAPI GetCurrentThread(void);
1306 INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1307 INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1308 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1309 LPSTR WINAPI GetEnvironmentStringsA(void);
1310 LPWSTR WINAPI GetEnvironmentStringsW(void);
1311 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1312 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1313 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1314 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1315 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1316 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1317 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1318 DWORD WINAPI GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
1319 DWORD WINAPI GetFileSize(HFILE,LPDWORD);
1320 BOOL WINAPI GetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
1321 DWORD WINAPI GetFileType(HFILE);
1322 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1323 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1324 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1325 BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1326 DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
1327 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1328 DWORD WINAPI GetLogicalDrives(void);
1329 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1330 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1331 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1332 BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1333 BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1334 UINT WINAPI GetOEMCP(void);
1335 DWORD WINAPI GetPriorityClass(HANDLE);
1336 HANDLE WINAPI GetProcessHeap(void);
1337 DWORD WINAPI GetProcessVersion(DWORD);
1338 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1339 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1340 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1341 HFILE WINAPI GetStdHandle(DWORD);
1342 BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1343 BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1344 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1345 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1346 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1347 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1348 INT WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1349 INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1350 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1351 LCID WINAPI GetThreadLocale(void);
1352 INT WINAPI GetThreadPriority(HANDLE);
1353 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1354 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1355 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1356 DWORD WINAPI HeapCompact(HANDLE,DWORD);
1357 HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1358 BOOL WINAPI HeapDestroy(HANDLE);
1359 BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1360 BOOL WINAPI HeapLock(HANDLE);
1361 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1362 DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1363 BOOL WINAPI HeapUnlock(HANDLE);
1364 BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1365 LONG WINAPI InterlockedDecrement(LPLONG);
1366 LONG WINAPI InterlockedExchange(LPLONG,LONG);
1367 LONG WINAPI InterlockedIncrement(LPLONG);
1368 BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1369 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1370 BOOL WINAPI IsValidLocale(DWORD,DWORD);
1371 BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1372 BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1373 BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1374 HMODULE WINAPI MapHModuleSL(HMODULE16);
1375 HMODULE16 WINAPI MapHModuleLS(HMODULE);
1376 SEGPTR WINAPI MapLS(LPVOID);
1377 LPVOID WINAPI MapSL(SEGPTR);
1378 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1379 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1380 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1381 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1382 #define MoveFile WINELIB_NAME_AW(MoveFile)
1383 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1384 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1385 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1386 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1387 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1388 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1389 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1390 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1391 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1392 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1393 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1394 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1395 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1396 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1397 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1398 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1399 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1400 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1401 BOOL WINAPI PulseEvent(HANDLE);
1402 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1403 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1404 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1405 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1406 BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1407 BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1408 BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1409 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
1410 BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1412 #define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1413 BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1414 BOOL WINAPI ReleaseMutex(HANDLE);
1415 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1416 BOOL WINAPI ResetEvent(HANDLE);
1417 DWORD WINAPI ResumeThread(HANDLE);
1418 VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1419 #define FillMemory RtlFillMemory
1420 VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1421 #define MoveMemory RtlMoveMemory
1422 VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1423 #define ZeroMemory RtlZeroMemory
1424 VOID WINAPI RtlCopyMemory(LPVOID,const VOID*, DWORD);
1425 #define CopyMemory RtlCopyMemory
1426 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1427 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1428 #define SearchPath WINELIB_NAME_AW(SearchPath)
1429 BOOL WINAPI SetCommMask(INT,DWORD);
1430 BOOL WINAPI SetComputerNameA(LPCSTR);
1431 BOOL WINAPI SetComputerNameW(LPCWSTR);
1432 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1433 BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1434 BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1435 BOOL WINAPI SetConsoleTitleA(LPCSTR);
1436 BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1437 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1438 BOOL WINAPI SetEndOfFile(HFILE);
1439 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1440 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1441 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1442 BOOL WINAPI SetEvent(HANDLE);
1443 VOID WINAPI SetFileApisToANSI(void);
1444 VOID WINAPI SetFileApisToOEM(void);
1445 DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1446 BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,
1448 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1449 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1450 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1451 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1452 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1453 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1454 BOOL WINAPI SetThreadLocale(LCID);
1455 BOOL WINAPI SetThreadPriority(HANDLE,INT);
1456 BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1457 VOID WINAPI Sleep(DWORD);
1458 DWORD WINAPI SleepEx(DWORD,BOOL);
1459 DWORD WINAPI SuspendThread(HANDLE);
1460 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1461 DWORD WINAPI TlsAlloc(void);
1462 BOOL WINAPI TlsFree(DWORD);
1463 LPVOID WINAPI TlsGetValue(DWORD);
1464 BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1465 VOID WINAPI UnMapLS(SEGPTR);
1466 BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1467 BOOL WINAPI UnmapViewOfFile(LPVOID);
1468 LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1469 BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1470 BOOL WINAPI VirtualLock(LPVOID,DWORD);
1471 BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1472 BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1473 DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1474 DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1475 BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1476 BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1477 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1478 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1479 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1480 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1481 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1482 SEGPTR WINAPI WOWGlobalAllocLock16(DWORD,DWORD,HGLOBAL16*);
1483 DWORD WINAPI WOWCallback16(FARPROC16,DWORD);
1484 BOOL WINAPI WOWCallback16Ex(FARPROC16,DWORD,DWORD,LPVOID,LPDWORD);
1485 HANDLE WINAPI WOWHandle32(WORD,WOW_HANDLE_TYPE);
1486 BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1487 BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1488 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
1489 BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1490 DWORD WINAPI GetLastError(void);
1491 LANGID WINAPI GetSystemDefaultLangID(void);
1492 LCID WINAPI GetSystemDefaultLCID(void);
1493 LANGID WINAPI GetUserDefaultLangID(void);
1494 LCID WINAPI GetUserDefaultLCID(void);
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 BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1508 #define DefineHandleTable(w) ((w),TRUE)
1509 ATOM WINAPI DeleteAtom(ATOM);
1510 BOOL WINAPI DeleteFileA(LPCSTR);
1511 BOOL WINAPI DeleteFileW(LPCWSTR);
1512 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1513 void WINAPI FatalAppExitA(UINT,LPCSTR);
1514 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1515 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1516 ATOM WINAPI FindAtomA(LPCSTR);
1517 ATOM WINAPI FindAtomW(LPCWSTR);
1518 #define FindAtom WINELIB_NAME_AW(FindAtom)
1519 BOOL WINAPI FindClose(HANDLE);
1520 HANDLE16 WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA);
1521 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1522 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1523 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1524 BOOL16 WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA);
1525 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1526 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1527 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1528 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1529 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1530 #define FindResource WINELIB_NAME_AW(FindResource)
1531 VOID WINAPI FreeLibrary16(HINSTANCE16);
1532 BOOL WINAPI FreeLibrary(HMODULE);
1533 #define FreeModule(handle) FreeLibrary(handle)
1534 #define FreeProcInstance(proc) /*nothing*/
1535 BOOL WINAPI FreeResource(HGLOBAL);
1536 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1537 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1538 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1539 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1540 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1541 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1542 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1543 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1544 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1545 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1546 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1547 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1548 UINT WINAPI GetDriveTypeA(LPCSTR);
1549 UINT WINAPI GetDriveTypeW(LPCWSTR);
1550 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1551 DWORD WINAPI GetFileAttributesA(LPCSTR);
1552 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1553 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1554 #define GetFreeSpace(w) (0x100000L)
1555 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1556 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1557 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1558 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1559 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1560 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1561 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1562 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1563 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1564 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1565 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1566 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1567 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1568 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1569 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1570 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1571 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1572 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1573 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1574 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1575 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1576 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1577 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1578 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1579 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1580 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1581 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1582 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1583 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1584 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1585 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1586 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1587 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1588 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1589 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1590 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1591 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1592 VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1593 VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1594 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1595 BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1596 BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
1597 #define GetStringType WINELIB_NAME_AW(GetStringType)
1598 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1599 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1600 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1601 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1602 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1603 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1604 UINT WINAPI GetTempPathA(UINT,LPSTR);
1605 UINT WINAPI GetTempPathW(UINT,LPWSTR);
1606 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1607 LONG WINAPI GetVersion(void);
1608 BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1609 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1610 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1611 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1612 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1613 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1614 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1615 HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
1616 HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1617 DWORD WINAPI GlobalCompact(DWORD);
1618 UINT WINAPI GlobalFlags(HGLOBAL);
1619 HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
1620 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1621 HGLOBAL WINAPI GlobalHandle(LPCVOID);
1622 WORD WINAPI GlobalFix16(HGLOBAL16);
1623 VOID WINAPI GlobalFix(HGLOBAL);
1624 LPVOID WINAPI GlobalLock16(HGLOBAL16);
1625 LPVOID WINAPI GlobalLock(HGLOBAL);
1626 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1627 DWORD WINAPI GlobalSize16(HGLOBAL16);
1628 DWORD WINAPI GlobalSize(HGLOBAL);
1629 VOID WINAPI GlobalUnfix16(HGLOBAL16);
1630 VOID WINAPI GlobalUnfix(HGLOBAL);
1631 BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
1632 BOOL WINAPI GlobalUnlock(HGLOBAL);
1633 BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
1634 BOOL WINAPI GlobalUnWire(HGLOBAL);
1635 SEGPTR WINAPI GlobalWire16(HGLOBAL16);
1636 LPVOID WINAPI GlobalWire(HGLOBAL);
1637 BOOL WINAPI InitAtomTable(DWORD);
1638 BOOL WINAPI IsBadCodePtr(FARPROC);
1639 BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1640 BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1641 BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1642 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1643 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1644 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1645 BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1646 BOOL WINAPI IsDBCSLeadByte(BYTE);
1647 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
1648 HMODULE WINAPI LoadLibraryA(LPCSTR);
1649 HMODULE WINAPI LoadLibraryW(LPCWSTR);
1650 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1651 HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
1652 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
1653 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1654 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
1655 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1656 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1657 HLOCAL WINAPI LocalAlloc(UINT,DWORD);
1658 UINT WINAPI LocalCompact(UINT);
1659 UINT WINAPI LocalFlags(HLOCAL);
1660 HLOCAL WINAPI LocalFree(HLOCAL);
1661 HLOCAL WINAPI LocalHandle(LPCVOID);
1662 LPVOID WINAPI LocalLock(HLOCAL);
1663 HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
1664 UINT WINAPI LocalShrink(HGLOBAL,UINT);
1665 UINT WINAPI LocalSize(HLOCAL);
1666 BOOL WINAPI LocalUnlock(HLOCAL);
1667 LPVOID WINAPI LockResource(HGLOBAL);
1668 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1669 #define MakeProcInstance(proc,inst) (proc)
1670 HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
1671 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1672 VOID WINAPI OutputDebugStringA(LPCSTR);
1673 VOID WINAPI OutputDebugStringW(LPCWSTR);
1674 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1675 BOOL WINAPI RemoveDirectoryA(LPCSTR);
1676 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1677 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1678 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1679 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1680 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1681 UINT WINAPI SetErrorMode(UINT);
1682 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1683 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1684 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1685 UINT WINAPI SetHandleCount(UINT);
1686 #define SetSwapAreaSize(w) (w)
1687 BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
1688 BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
1689 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1690 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1691 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1692 DWORD WINAPI VerLanguageNameA(UINT,LPSTR,UINT);
1693 DWORD WINAPI VerLanguageNameW(UINT,LPWSTR,UINT);
1694 #define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
1695 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1696 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1697 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1698 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
1699 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
1700 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1701 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
1702 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
1703 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1704 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1705 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1706 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1707 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
1708 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
1709 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1711 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
1712 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
1713 #define lstrcat WINELIB_NAME_AW(lstrcat)
1714 LPSTR WINAPI lstrcatnA(LPSTR,LPCSTR,INT);
1715 LPWSTR WINAPI lstrcatnW(LPWSTR,LPCWSTR,INT);
1716 #define lstrcatn WINELIB_NAME_AW(lstrcatn)
1717 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
1718 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
1719 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1720 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
1721 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
1722 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1723 INT WINAPI lstrlenA(LPCSTR);
1724 INT WINAPI lstrlenW(LPCWSTR);
1725 #define lstrlen WINELIB_NAME_AW(lstrlen)
1726 HINSTANCE WINAPI WinExec(LPCSTR,UINT);
1727 LONG WINAPI _hread(HFILE,LPVOID,LONG);
1728 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
1729 HFILE WINAPI _lcreat(LPCSTR,INT);
1730 HFILE WINAPI _lclose(HFILE);
1731 LONG WINAPI _llseek(HFILE,LONG,INT);
1732 HFILE WINAPI _lopen(LPCSTR,INT);
1733 UINT WINAPI _lread(HFILE,LPVOID,UINT);
1734 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
1735 SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
1736 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
1737 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
1738 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1739 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
1740 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
1741 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1743 /* the following may be macros when compiling Wine */
1744 #ifndef SetLastError
1745 VOID WINAPI SetLastError(DWORD);
1747 #ifndef GetCurrentThreadId
1748 DWORD WINAPI GetCurrentThreadId(void);
1755 #endif /* __WINE_WINBASE_H */