1 #ifndef __WINE_WINBASE_H
2 #define __WINE_WINBASE_H
13 typedef struct tagCOORD {
19 /* Windows Exit Procedure flag values */
20 #define WEP_FREE_DLL 0
21 #define WEP_SYSTEM_EXIT 1
23 typedef DWORD (CALLBACK *LPTHREAD_START_ROUTINE)(LPVOID);
25 /* This is also defined in winnt.h */
26 /* typedef struct _EXCEPTION_RECORD {
29 struct _EXCEPTION_RECORD *ExceptionRecord;
30 LPVOID ExceptionAddress;
31 DWORD NumberParameters;
32 DWORD ExceptionInformation[15];
33 } EXCEPTION_RECORD; */
35 typedef struct _EXCEPTION_DEBUG_INFO {
36 /* EXCEPTION_RECORD ExceptionRecord; */
38 } EXCEPTION_DEBUG_INFO;
40 typedef struct _CREATE_THREAD_DEBUG_INFO {
42 LPVOID lpThreadLocalBase;
43 LPTHREAD_START_ROUTINE lpStartAddress;
44 } CREATE_THREAD_DEBUG_INFO;
46 typedef struct _CREATE_PROCESS_DEBUG_INFO {
51 DWORD dwDebugInfoFileOffset;
53 LPVOID lpThreadLocalBase;
54 LPTHREAD_START_ROUTINE lpStartAddress;
57 } CREATE_PROCESS_DEBUG_INFO;
59 typedef struct _EXIT_THREAD_DEBUG_INFO {
61 } EXIT_THREAD_DEBUG_INFO;
63 typedef struct _EXIT_PROCESS_DEBUG_INFO {
65 } EXIT_PROCESS_DEBUG_INFO;
67 typedef struct _LOAD_DLL_DEBUG_INFO {
70 DWORD dwDebugInfoFileOffset;
74 } LOAD_DLL_DEBUG_INFO;
76 typedef struct _UNLOAD_DLL_DEBUG_INFO {
78 } UNLOAD_DLL_DEBUG_INFO;
80 typedef struct _OUTPUT_DEBUG_STRING_INFO {
81 LPSTR lpDebugStringData;
83 WORD nDebugStringLength;
84 } OUTPUT_DEBUG_STRING_INFO;
86 typedef struct _RIP_INFO {
91 typedef struct _DEBUG_EVENT {
92 DWORD dwDebugEventCode;
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;
106 } DEBUG_EVENT, *LPDEBUG_EVENT;
108 #define OFS_MAXPATHNAME 128
115 BYTE szPathName[OFS_MAXPATHNAME];
116 } OFSTRUCT, *LPOFSTRUCT;
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
136 /* SetErrorMode values */
137 #define SEM_FAILCRITICALERRORS 0x0001
138 #define SEM_NOGPFAULTERRORBOX 0x0002
139 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
140 #define SEM_NOOPENFILEERRORBOX 0x8000
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
147 /* GetTempFileName() Flags */
148 #define TF_FORCEDRIVE 0x80
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
159 /* The security attributes structure */
163 LPVOID lpSecurityDescriptor;
165 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
169 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
173 DWORD dwHighDateTime;
174 } FILETIME, *LPFILETIME;
175 #endif /* _FILETIME_ */
177 /* Find* structures */
180 DWORD dwFileAttributes;
181 FILETIME ftCreationTime;
182 FILETIME ftLastAccessTime;
183 FILETIME ftLastWriteTime;
189 CHAR cAlternateFileName[14];
190 } WIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
194 DWORD dwFileAttributes;
195 FILETIME ftCreationTime;
196 FILETIME ftLastAccessTime;
197 FILETIME ftLastWriteTime;
202 WCHAR cFileName[260];
203 WCHAR cAlternateFileName[14];
204 } WIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
206 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
207 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
222 DWORD dwCommittedSize;
223 DWORD dwUnCommittedSize;
228 } PROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY;
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
236 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
237 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
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
259 #define SPACEPARITY 4
261 #define ONE5STOPBITS 1
262 #define TWOSTOPBITS 2
265 #define INFINITE16 0xFFFF
266 #define INFINITE 0xFFFFFFFF
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
287 #define IE_DEFAULT -5
288 #define IE_HARDWARE -10
289 #define IE_BYTESIZE -11
290 #define IE_BAUDRATE -12
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
318 #define GETBASEIRQ 10
320 /* Purge functions for Comm Port */
321 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
323 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
325 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
326 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
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)
335 #define RTS_CONTROL_DISABLE 0
336 #define RTS_CONTROL_ENABLE 1
337 #define RTS_CONTROL_HANDSHAKE 2
338 #define RTS_CONTROL_TOGGLE 3
340 #define DTR_CONTROL_DISABLE 0
341 #define DTR_CONTROL_ENABLE 1
342 #define DTR_CONTROL_HANDSHAKE 2
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
352 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
353 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
354 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
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)
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
408 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
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
426 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
427 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
430 typedef struct tagMEMORYSTATUS
436 DWORD dwTotalPageFile;
437 DWORD dwAvailPageFile;
438 DWORD dwTotalVirtual;
439 DWORD dwAvailVirtual;
440 } MEMORYSTATUS, *LPMEMORYSTATUS;
445 /* LogParamError and LogError values */
447 /* Error modifier bits */
448 #define ERR_WARNING 0x8000
449 #define ERR_PARAM 0x4000
451 #define ERR_SIZE_MASK 0x3000
452 #define ERR_BYTE 0x1000
453 #define ERR_WORD 0x2000
454 #define ERR_DWORD 0x3000
456 /* LogParamError() values */
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
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
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
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
501 /* LogError() values */
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
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
528 #define ERR_CREATEDC 0x0080
529 #define ERR_CREATEMETA 0x0081
530 #define ERR_DELOBJSELECTED 0x0082
531 #define ERR_SELBITMAP 0x0083
535 /* Debugging support (DEBUG SYSTEM ONLY) */
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;
546 /* WINDEBUGINFO flags values */
547 #define WDI_OPTIONS 0x0001
548 #define WDI_FILTER 0x0002
549 #define WDI_ALLOCBREAK 0x0004
551 /* dwOptions values */
552 #define DBO_CHECKHEAP 0x0001
553 #define DBO_BUFFERFILL 0x0004
554 #define DBO_DISABLEGPTRAPPING 0x0010
555 #define DBO_CHECKFREE 0x0020
557 #define DBO_SILENT 0x8000
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
565 /* DebugOutput flags values */
566 #define DBF_TRACE 0x0000
567 #define DBF_WARNING 0x4000
568 #define DBF_ERROR 0x8000
569 #define DBF_FATAL 0xc000
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
583 #endif /* NOLOGERROR */
594 } SYSTEMTIME, *LPSYSTEMTIME;
597 /* Code page information.
599 #define MAX_LEADBYTES 12
600 #define MAX_DEFAULTCHAR 2
605 BYTE DefaultChar[MAX_DEFAULTCHAR];
606 BYTE LeadByte[MAX_LEADBYTES];
609 /* The 'overlapped' data structure used by async I/O functions.
617 } OVERLAPPED, *LPOVERLAPPED;
619 /* Process startup information.
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
635 DWORD cb; /* 00: size of struct */
636 LPSTR lpReserved; /* 04: */
637 LPSTR lpDesktop; /* 08: */
638 LPSTR lpTitle; /* 0c: */
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;
666 DWORD dwFillAttribute;
674 } STARTUPINFOW, *LPSTARTUPINFOW;
676 DECL_WINELIB_TYPE_AW(STARTUPINFO)
677 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
684 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
688 WCHAR StandardName[32];
689 SYSTEMTIME StandardDate;
691 WCHAR DaylightName[32];
692 SYSTEMTIME DaylightDate;
694 } TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
696 #define TIME_ZONE_ID_UNKNOWN 0
697 #define TIME_ZONE_ID_STANDARD 1
698 #define TIME_ZONE_ID_DAYLIGHT 2
700 /* CreateProcess: dwCreationFlag values
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
722 /* File object type definitions
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
730 /* File creation flags
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
741 #define CREATE_ALWAYS 2
742 #define OPEN_EXISTING 3
743 #define OPEN_ALWAYS 4
744 #define TRUNCATE_EXISTING 5
746 /* Standard handle identifiers
748 #define STD_INPUT_HANDLE ((DWORD) -10)
749 #define STD_OUTPUT_HANDLE ((DWORD) -11)
750 #define STD_ERROR_HANDLE ((DWORD) -12)
754 int dwFileAttributes;
755 FILETIME ftCreationTime;
756 FILETIME ftLastAccessTime;
757 FILETIME ftLastWriteTime;
758 int dwVolumeSerialNumber;
764 } BY_HANDLE_FILE_INFORMATION ;
767 typedef struct _SYSTEM_POWER_STATUS
771 BYTE BatteryLifePercent;
773 DWORD BatteryLifeTime;
774 DWORD BatteryFullLifeTime;
775 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
777 typedef struct _MEMORY_BASIC_INFORMATION
780 LPVOID AllocationBase;
781 DWORD AllocationProtect;
786 } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
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)
796 typedef struct tagSYSTEM_INFO
801 WORD wProcessorArchitecture;
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;
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)
821 /* service start table */
825 LPSERVICE_MAIN_FUNCTIONA lpServiceProc;
826 } *LPSERVICE_TABLE_ENTRYA, SERVICE_TABLE_ENTRYA;
830 LPWSTR lpServiceName;
831 LPSERVICE_MAIN_FUNCTIONW lpServiceProc;
832 } *LPSERVICE_TABLE_ENTRYW, SERVICE_TABLE_ENTRYW;
834 DECL_WINELIB_TYPE_AW(SERVICE_TABLE_ENTRY)
835 DECL_WINELIB_TYPE_AW(LPSERVICE_TABLE_ENTRY)
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
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);
850 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
851 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
852 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
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
859 /* ifdef _x86_ ... */
860 typedef struct _LDT_ENTRY {
866 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
871 unsigned BaseMid : 8;
875 unsigned LimitHi : 4;
877 unsigned Reserved_0 : 1;
878 unsigned Default_Big : 1;
879 unsigned Granularity : 1;
883 } LDT_ENTRY, *LPLDT_ENTRY;
885 /* for WOWHandle{16,32} */
886 typedef enum _WOW_HANDLE_TYPE { /* WOW */
904 /* WOWCallback16Ex defines */
905 #define WCB16_MAX_CBARGS 16
907 #define WCB16_PASCAL 0x0
908 #define WCB16_CDECL 0x1
910 typedef enum _GET_FILEEX_INFO_LEVELS {
911 GetFileExInfoStandard
912 } GET_FILEEX_INFO_LEVELS;
914 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
915 DWORD dwFileAttributes;
916 FILETIME ftCreationTime;
917 FILETIME ftLastAccessTime;
918 FILETIME ftLastWriteTime;
921 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
923 typedef struct _DllVersionInfo {
925 DWORD dwMajorVersion;
926 DWORD dwMinorVersion;
932 * This one seems to be a Win32 only definition. It also is defined with
933 * WINAPI instead of CALLBACK in the windows headers.
935 typedef DWORD (WINAPI *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
936 LARGE_INTEGER, DWORD, DWORD, HANDLE,
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
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
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
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
974 #define FILE_CURRENT 1
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
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
987 #define MOVEFILE_REPLACE_EXISTING 0x00000001
988 #define MOVEFILE_COPY_ALLOWED 0x00000002
989 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
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
996 #define STATUS_SUCCESS 0x00000000
997 #define STATUS_WAIT_0 0x00000000
998 #define STATUS_ABANDONED_WAIT_0 0x00000080
999 #define STATUS_USER_APC 0x000000C0
1000 #define STATUS_TIMEOUT 0x00000102
1001 #define STATUS_PENDING 0x00000103
1002 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001
1003 #define STATUS_DATATYPE_MISALIGNMENT 0x80000002
1004 #define STATUS_BREAKPOINT 0x80000003
1005 #define STATUS_SINGLE_STEP 0x80000004
1006 #define STATUS_BUFFER_OVERFLOW 0x80000005
1007 #define STATUS_ACCESS_VIOLATION 0xC0000005
1008 #define STATUS_IN_PAGE_ERROR 0xC0000006
1009 #define STATUS_INVALID_PARAMETER 0xC000000D
1010 #define STATUS_NO_MEMORY 0xC0000017
1011 #define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
1012 #define STATUS_BUFFER_TOO_SMALL 0xC0000023
1013 #define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
1014 #define STATUS_INVALID_DISPOSITION 0xC0000026
1015 #define STATUS_UNKNOWN_REVISION 0xC0000058
1016 #define STATUS_INVALID_SECURITY_DESCR 0xC0000079
1017 #define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
1018 #define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
1019 #define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
1020 #define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
1021 #define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
1022 #define STATUS_FLOAT_OVERFLOW 0xC0000091
1023 #define STATUS_FLOAT_STACK_CHECK 0xC0000092
1024 #define STATUS_FLOAT_UNDERFLOW 0xC0000093
1025 #define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
1026 #define STATUS_INTEGER_OVERFLOW 0xC0000095
1027 #define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
1028 #define STATUS_INVALID_PARAMETER_2 0xC00000F0
1029 #define STATUS_STACK_OVERFLOW 0xC00000FD
1030 #define STATUS_CONTROL_C_EXIT 0xC000013A
1032 #define DUPLICATE_CLOSE_SOURCE 0x00000001
1033 #define DUPLICATE_SAME_ACCESS 0x00000002
1035 #define HANDLE_FLAG_INHERIT 0x00000001
1036 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
1038 #define HINSTANCE_ERROR 32
1040 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
1041 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
1042 #define THREAD_PRIORITY_NORMAL 0
1043 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
1044 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
1045 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
1046 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
1047 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
1072 /* Could this type be considered opaque? */
1076 LONG RecursionCount;
1077 HANDLE OwningThread;
1078 HANDLE LockSemaphore;
1083 DWORD dwOSVersionInfoSize;
1084 DWORD dwMajorVersion;
1085 DWORD dwMinorVersion;
1086 DWORD dwBuildNumber;
1088 CHAR szCSDVersion[128];
1092 DWORD dwOSVersionInfoSize;
1093 DWORD dwMajorVersion;
1094 DWORD dwMinorVersion;
1095 DWORD dwBuildNumber;
1097 CHAR szCSDVersion[128];
1101 DWORD dwOSVersionInfoSize;
1102 DWORD dwMajorVersion;
1103 DWORD dwMinorVersion;
1104 DWORD dwBuildNumber;
1106 WCHAR szCSDVersion[128];
1109 DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
1111 #define VER_PLATFORM_WIN32s 0
1112 #define VER_PLATFORM_WIN32_WINDOWS 1
1113 #define VER_PLATFORM_WIN32_NT 2
1115 typedef struct tagCOMSTAT16
1118 UINT16 cbInQue WINE_PACKED;
1119 UINT16 cbOutQue WINE_PACKED;
1120 } COMSTAT16,*LPCOMSTAT16;
1122 typedef struct tagCOMSTAT
1127 } COMSTAT,*LPCOMSTAT;
1129 typedef struct tagDCB16
1132 UINT16 BaudRate WINE_PACKED;
1140 unsigned fBinary :1;
1141 unsigned fRtsDisable :1;
1142 unsigned fParity :1;
1143 unsigned fOutxCtsFlow :1;
1144 unsigned fOutxDsrFlow :1;
1146 unsigned fDtrDisable :1;
1150 unsigned fPeChar :1;
1153 unsigned fDtrflow :1;
1154 unsigned fRtsflow :1;
1155 unsigned fDummy2 :1;
1164 UINT16 TxDelay WINE_PACKED;
1167 typedef struct tagDCB
1171 unsigned fBinary :1;
1172 unsigned fParity :1;
1173 unsigned fOutxCtsFlow :1;
1174 unsigned fOutxDsrFlow :1;
1175 unsigned fDtrControl :2;
1176 unsigned fDsrSensitivity :1;
1177 unsigned fTXContinueOnXoff :1;
1180 unsigned fErrorChar :1;
1182 unsigned fRtsControl :2;
1183 unsigned fAbortOnError :1;
1184 unsigned fDummy2 :17;
1200 typedef struct tagCOMMTIMEOUTS {
1201 DWORD ReadIntervalTimeout;
1202 DWORD ReadTotalTimeoutMultiplier;
1203 DWORD ReadTotalTimeoutConstant;
1204 DWORD WriteTotalTimeoutMultiplier;
1205 DWORD WriteTotalTimeoutConstant;
1206 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1208 #include "poppack.h"
1210 typedef VOID (CALLBACK *PAPCFUNC)(ULONG_PTR);
1212 BOOL WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT);
1213 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1214 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1215 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1216 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1217 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1218 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1219 BOOL WINAPI GetCommTimeouts(INT,LPCOMMTIMEOUTS);
1220 BOOL WINAPI SetCommTimeouts(INT,LPCOMMTIMEOUTS);
1221 BOOL WINAPI GetCommState(INT,LPDCB);
1222 BOOL WINAPI SetCommState(INT,LPDCB);
1223 BOOL WINAPI TransmitCommChar(INT,CHAR);
1226 /*DWORD WINAPI GetVersion( void );*/
1227 BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*);
1228 BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1229 BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1230 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1232 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1234 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1235 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1236 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1237 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1238 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1239 HANDLE WINAPI OpenProcess(DWORD access, BOOL inherit, DWORD id);
1240 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1241 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1242 void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1243 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1244 BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1245 BOOL WINAPI TerminateThread(HANDLE,DWORD);
1246 BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1248 /* GetBinaryType return values.
1251 #define SCS_32BIT_BINARY 0
1252 #define SCS_DOS_BINARY 1
1253 #define SCS_WOW_BINARY 2
1254 #define SCS_PIF_BINARY 3
1255 #define SCS_POSIX_BINARY 4
1256 #define SCS_OS216_BINARY 5
1258 BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1259 BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1260 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1262 BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1263 BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1264 /* Declarations for functions that exist only in Win32 */
1266 BOOL WINAPI AllocConsole(void);
1267 BOOL WINAPI AreFileApisANSI(void);
1268 BOOL WINAPI Beep(DWORD,DWORD);
1269 BOOL WINAPI CloseHandle(HANDLE);
1270 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1271 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1272 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1273 #define CopyFile WINELIB_NAME_AW(CopyFile)
1274 BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1275 BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1276 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1277 INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1278 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1279 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1280 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1281 HFILE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1282 DWORD,DWORD,HANDLE);
1283 HFILE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1284 DWORD,DWORD,HANDLE);
1285 #define CreateFile WINELIB_NAME_AW(CreateFile)
1286 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1287 DWORD,DWORD,LPCSTR);
1288 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1289 DWORD,DWORD,LPCWSTR);
1290 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1291 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1292 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1293 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1294 BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1295 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1296 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1297 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1298 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1299 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1300 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1301 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1302 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1303 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1304 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1305 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1306 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1307 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1308 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1309 BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1310 BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1311 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1312 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1313 ENUMRESLANGPROCA,LONG);
1314 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1315 ENUMRESLANGPROCW,LONG);
1316 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1317 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1319 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1321 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1322 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1323 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1324 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1325 BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
1326 BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
1327 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1328 BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
1329 BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
1330 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1331 BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1332 BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1333 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1334 VOID WINAPI ExitProcess(DWORD);
1335 VOID WINAPI ExitThread(DWORD);
1336 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1337 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1338 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1339 BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1340 BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1341 BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1342 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1343 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1344 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1345 BOOL WINAPI FindNextChangeNotification(HANDLE);
1346 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1347 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1348 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1349 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1350 BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1351 BOOL WINAPI FlushFileBuffers(HFILE);
1352 BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1353 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1355 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1357 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1358 BOOL WINAPI FreeConsole(void);
1359 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1360 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1361 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1362 UINT WINAPI GetACP(void);
1363 LPCSTR WINAPI GetCommandLineA(void);
1364 LPCWSTR WINAPI GetCommandLineW(void);
1365 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1366 BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1367 BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1368 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1369 UINT WINAPI GetConsoleCP(void);
1370 BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1371 UINT WINAPI GetConsoleOutputCP(void);
1372 DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1373 DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1374 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1375 BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
1376 BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1377 BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1378 HANDLE WINAPI GetCurrentProcess(void);
1379 DWORD WINAPI GetCurrentProcessId(void);
1380 HANDLE WINAPI GetCurrentThread(void);
1381 DWORD WINAPI GetCurrentThreadId(void);
1382 INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1383 INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1384 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1385 LPSTR WINAPI GetEnvironmentStringsA(void);
1386 LPWSTR WINAPI GetEnvironmentStringsW(void);
1387 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1388 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1389 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1390 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1391 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1392 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1393 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1394 DWORD WINAPI GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
1395 DWORD WINAPI GetFileSize(HFILE,LPDWORD);
1396 BOOL WINAPI GetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
1397 DWORD WINAPI GetFileType(HFILE);
1398 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1399 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1400 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1401 BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1402 DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
1403 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1404 DWORD WINAPI GetLogicalDrives(void);
1405 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1406 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1407 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1408 BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1409 BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1410 UINT WINAPI GetOEMCP(void);
1411 DWORD WINAPI GetPriorityClass(HANDLE);
1412 HANDLE WINAPI GetProcessHeap(void);
1413 DWORD WINAPI GetProcessVersion(DWORD);
1414 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1415 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1416 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1417 HFILE WINAPI GetStdHandle(DWORD);
1418 BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1419 BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1420 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1421 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1422 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1423 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1424 INT WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1425 INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1426 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1427 LCID WINAPI GetThreadLocale(void);
1428 INT WINAPI GetThreadPriority(HANDLE);
1429 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1430 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1431 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1432 DWORD WINAPI HeapCompact(HANDLE,DWORD);
1433 HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1434 BOOL WINAPI HeapDestroy(HANDLE);
1435 BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1436 BOOL WINAPI HeapLock(HANDLE);
1437 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1438 DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1439 BOOL WINAPI HeapUnlock(HANDLE);
1440 BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1441 LONG WINAPI InterlockedDecrement(LPLONG);
1442 LONG WINAPI InterlockedExchange(LPLONG,LONG);
1443 LONG WINAPI InterlockedIncrement(LPLONG);
1444 BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1445 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1446 BOOL WINAPI IsValidLocale(DWORD,DWORD);
1447 BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1448 BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1449 HMODULE WINAPI MapHModuleSL(HMODULE16);
1450 HMODULE16 WINAPI MapHModuleLS(HMODULE);
1451 SEGPTR WINAPI MapLS(LPVOID);
1452 LPVOID WINAPI MapSL(SEGPTR);
1453 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1454 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1455 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1456 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1457 #define MoveFile WINELIB_NAME_AW(MoveFile)
1458 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1459 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1460 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1461 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1462 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1463 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1464 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1465 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1466 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1467 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1468 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1469 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1470 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1471 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1472 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1473 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1474 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1475 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1476 BOOL WINAPI PulseEvent(HANDLE);
1477 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1478 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1479 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1480 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1481 BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1482 BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1483 BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1484 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
1485 BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1487 #define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1488 BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1489 BOOL WINAPI ReleaseMutex(HANDLE);
1490 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1491 BOOL WINAPI ResetEvent(HANDLE);
1492 DWORD WINAPI ResumeThread(HANDLE);
1493 VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1494 #define FillMemory RtlFillMemory
1495 VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1496 #define MoveMemory RtlMoveMemory
1497 VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1498 #define ZeroMemory RtlZeroMemory
1499 VOID WINAPI RtlCopyMemory(LPVOID,const VOID*, DWORD);
1500 #define CopyMemory RtlCopyMemory
1501 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1502 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1503 #define SearchPath WINELIB_NAME_AW(SearchPath)
1504 BOOL WINAPI SetCommMask(INT,DWORD);
1505 BOOL WINAPI SetComputerNameA(LPCSTR);
1506 BOOL WINAPI SetComputerNameW(LPCWSTR);
1507 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1508 BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1509 BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1510 BOOL WINAPI SetConsoleTitleA(LPCSTR);
1511 BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1512 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1513 BOOL WINAPI SetEndOfFile(HFILE);
1514 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1515 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1516 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1517 BOOL WINAPI SetEvent(HANDLE);
1518 VOID WINAPI SetFileApisToANSI(void);
1519 VOID WINAPI SetFileApisToOEM(void);
1520 DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1521 BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,
1523 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1524 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1525 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1526 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1527 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1528 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1529 BOOL WINAPI SetThreadLocale(LCID);
1530 BOOL WINAPI SetThreadPriority(HANDLE,INT);
1531 BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1532 VOID WINAPI Sleep(DWORD);
1533 DWORD WINAPI SleepEx(DWORD,BOOL);
1534 DWORD WINAPI SuspendThread(HANDLE);
1535 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1536 DWORD WINAPI TlsAlloc(void);
1537 BOOL WINAPI TlsFree(DWORD);
1538 LPVOID WINAPI TlsGetValue(DWORD);
1539 BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1540 VOID WINAPI UnMapLS(SEGPTR);
1541 BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1542 BOOL WINAPI UnmapViewOfFile(LPVOID);
1543 LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1544 BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1545 BOOL WINAPI VirtualLock(LPVOID,DWORD);
1546 BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1547 BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1548 DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1549 DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1550 BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1551 BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1552 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1553 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1554 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1555 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1556 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1557 SEGPTR WINAPI WOWGlobalAllocLock16(DWORD,DWORD,HGLOBAL16*);
1558 DWORD WINAPI WOWCallback16(FARPROC16,DWORD);
1559 BOOL WINAPI WOWCallback16Ex(FARPROC16,DWORD,DWORD,LPVOID,LPDWORD);
1560 HANDLE WINAPI WOWHandle32(WORD,WOW_HANDLE_TYPE);
1561 BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1562 BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1563 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
1564 BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1565 DWORD WINAPI GetLastError(void);
1566 LANGID WINAPI GetSystemDefaultLangID(void);
1567 LCID WINAPI GetSystemDefaultLCID(void);
1568 LANGID WINAPI GetUserDefaultLangID(void);
1569 LCID WINAPI GetUserDefaultLCID(void);
1570 VOID WINAPI SetLastError(DWORD);
1571 ATOM WINAPI AddAtomA(LPCSTR);
1572 ATOM WINAPI AddAtomW(LPCWSTR);
1573 #define AddAtom WINELIB_NAME_AW(AddAtom)
1574 UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
1575 UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
1576 #define CompareString WINELIB_NAME_AW(CompareString)
1577 BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1578 BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1579 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1580 BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1581 BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1582 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1583 #define DefineHandleTable(w) ((w),TRUE)
1584 ATOM WINAPI DeleteAtom(ATOM);
1585 BOOL WINAPI DeleteFileA(LPCSTR);
1586 BOOL WINAPI DeleteFileW(LPCWSTR);
1587 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1588 void WINAPI FatalAppExitA(UINT,LPCSTR);
1589 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1590 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1591 ATOM WINAPI FindAtomA(LPCSTR);
1592 ATOM WINAPI FindAtomW(LPCWSTR);
1593 #define FindAtom WINELIB_NAME_AW(FindAtom)
1594 BOOL WINAPI FindClose(HANDLE);
1595 HANDLE16 WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA);
1596 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1597 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1598 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1599 BOOL16 WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA);
1600 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1601 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1602 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1603 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1604 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1605 #define FindResource WINELIB_NAME_AW(FindResource)
1606 VOID WINAPI FreeLibrary16(HINSTANCE16);
1607 BOOL WINAPI FreeLibrary(HMODULE);
1608 #define FreeModule(handle) FreeLibrary(handle)
1609 #define FreeProcInstance(proc) /*nothing*/
1610 BOOL WINAPI FreeResource(HGLOBAL);
1611 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1612 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1613 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1614 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1615 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1616 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1617 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1618 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1619 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1620 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1621 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1622 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1623 UINT WINAPI GetDriveTypeA(LPCSTR);
1624 UINT WINAPI GetDriveTypeW(LPCWSTR);
1625 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1626 DWORD WINAPI GetFileAttributesA(LPCSTR);
1627 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1628 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1629 #define GetFreeSpace(w) (0x100000L)
1630 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1631 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1632 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1633 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1634 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1635 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1636 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1637 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1638 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1639 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1640 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1641 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1642 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1643 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1644 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1645 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1646 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1647 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1648 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1649 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1650 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1651 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1652 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1653 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1654 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1655 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1656 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1657 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1658 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1659 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1660 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1661 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1662 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1663 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1664 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1665 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1666 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1667 BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1668 BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
1669 #define GetStringType WINELIB_NAME_AW(GetStringType)
1670 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1671 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1672 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1673 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1674 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1675 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1676 UINT WINAPI GetTempPathA(UINT,LPSTR);
1677 UINT WINAPI GetTempPathW(UINT,LPWSTR);
1678 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1679 LONG WINAPI GetVersion(void);
1680 BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1681 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1682 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1683 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1684 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1685 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1686 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1687 HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
1688 HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1689 DWORD WINAPI GlobalCompact(DWORD);
1690 UINT WINAPI GlobalFlags(HGLOBAL);
1691 HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
1692 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1693 HGLOBAL WINAPI GlobalHandle(LPCVOID);
1694 WORD WINAPI GlobalFix16(HGLOBAL16);
1695 VOID WINAPI GlobalFix(HGLOBAL);
1696 LPVOID WINAPI GlobalLock16(HGLOBAL16);
1697 LPVOID WINAPI GlobalLock(HGLOBAL);
1698 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1699 DWORD WINAPI GlobalSize16(HGLOBAL16);
1700 DWORD WINAPI GlobalSize(HGLOBAL);
1701 VOID WINAPI GlobalUnfix16(HGLOBAL16);
1702 VOID WINAPI GlobalUnfix(HGLOBAL);
1703 BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
1704 BOOL WINAPI GlobalUnlock(HGLOBAL);
1705 BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
1706 BOOL WINAPI GlobalUnWire(HGLOBAL);
1707 SEGPTR WINAPI GlobalWire16(HGLOBAL16);
1708 LPVOID WINAPI GlobalWire(HGLOBAL);
1709 BOOL WINAPI InitAtomTable(DWORD);
1710 BOOL WINAPI IsBadCodePtr(FARPROC);
1711 BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1712 BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1713 BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1714 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1715 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1716 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1717 BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1718 BOOL WINAPI IsDBCSLeadByte(BYTE);
1719 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
1720 HMODULE WINAPI LoadLibraryA(LPCSTR);
1721 HMODULE WINAPI LoadLibraryW(LPCWSTR);
1722 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1723 HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
1724 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
1725 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1726 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
1727 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1728 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1729 HLOCAL WINAPI LocalAlloc(UINT,DWORD);
1730 UINT WINAPI LocalCompact(UINT);
1731 UINT WINAPI LocalFlags(HLOCAL);
1732 HLOCAL WINAPI LocalFree(HLOCAL);
1733 HLOCAL WINAPI LocalHandle(LPCVOID);
1734 LPVOID WINAPI LocalLock(HLOCAL);
1735 HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
1736 UINT WINAPI LocalShrink(HGLOBAL,UINT);
1737 UINT WINAPI LocalSize(HLOCAL);
1738 BOOL WINAPI LocalUnlock(HLOCAL);
1739 LPVOID WINAPI LockResource(HGLOBAL);
1740 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1741 #define MakeProcInstance(proc,inst) (proc)
1742 HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
1743 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1744 VOID WINAPI OutputDebugStringA(LPCSTR);
1745 VOID WINAPI OutputDebugStringW(LPCWSTR);
1746 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1747 BOOL WINAPI RemoveDirectoryA(LPCSTR);
1748 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1749 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1750 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1751 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1752 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1753 UINT WINAPI SetErrorMode(UINT);
1754 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1755 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1756 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1757 UINT WINAPI SetHandleCount(UINT);
1758 #define SetSwapAreaSize(w) (w)
1759 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1760 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1761 DWORD WINAPI VerLanguageNameA(UINT,LPSTR,UINT);
1762 DWORD WINAPI VerLanguageNameW(UINT,LPWSTR,UINT);
1763 #define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
1764 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1765 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1766 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1767 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
1768 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
1769 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1770 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
1771 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
1772 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1773 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1774 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1775 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1776 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
1777 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
1778 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1780 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
1781 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
1782 #define lstrcat WINELIB_NAME_AW(lstrcat)
1783 LPSTR WINAPI lstrcatnA(LPSTR,LPCSTR,INT);
1784 LPWSTR WINAPI lstrcatnW(LPWSTR,LPCWSTR,INT);
1785 #define lstrcatn WINELIB_NAME_AW(lstrcatn)
1786 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
1787 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
1788 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1789 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
1790 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
1791 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1792 INT WINAPI lstrlenA(LPCSTR);
1793 INT WINAPI lstrlenW(LPCWSTR);
1794 #define lstrlen WINELIB_NAME_AW(lstrlen)
1795 HINSTANCE WINAPI WinExec(LPCSTR,UINT);
1796 LONG WINAPI _hread(HFILE,LPVOID,LONG);
1797 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
1798 HFILE WINAPI _lcreat(LPCSTR,INT);
1799 HFILE WINAPI _lclose(HFILE);
1800 LONG WINAPI _llseek(HFILE,LONG,INT);
1801 HFILE WINAPI _lopen(LPCSTR,INT);
1802 UINT WINAPI _lread(HFILE,LPVOID,UINT);
1803 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
1804 SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
1805 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
1806 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
1807 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1808 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
1809 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
1810 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1817 #endif /* __WINE_WINBASE_H */