1 #ifndef __WINE_WINBASE_H
2 #define __WINE_WINBASE_H
6 #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 */
161 typedef struct _SECURITY_ATTRIBUTES
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
;
597 /* The 'overlapped' data structure used by async I/O functions.
605 } OVERLAPPED
, *LPOVERLAPPED
;
607 /* Process startup information.
610 /* STARTUPINFO.dwFlags */
611 #define STARTF_USESHOWWINDOW 0x00000001
612 #define STARTF_USESIZE 0x00000002
613 #define STARTF_USEPOSITION 0x00000004
614 #define STARTF_USECOUNTCHARS 0x00000008
615 #define STARTF_USEFILLATTRIBUTE 0x00000010
616 #define STARTF_RUNFULLSCREEN 0x00000020
617 #define STARTF_FORCEONFEEDBACK 0x00000040
618 #define STARTF_FORCEOFFFEEDBACK 0x00000080
619 #define STARTF_USESTDHANDLES 0x00000100
620 #define STARTF_USEHOTKEY 0x00000200
623 DWORD cb
; /* 00: size of struct */
624 LPSTR lpReserved
; /* 04: */
625 LPSTR lpDesktop
; /* 08: */
626 LPSTR lpTitle
; /* 0c: */
629 DWORD dwXSize
; /* 18: */
630 DWORD dwYSize
; /* 1c: */
631 DWORD dwXCountChars
; /* 20: */
632 DWORD dwYCountChars
; /* 24: */
633 DWORD dwFillAttribute
; /* 28: */
634 DWORD dwFlags
; /* 2c: */
635 WORD wShowWindow
; /* 30: */
636 WORD cbReserved2
; /* 32: */
637 BYTE
*lpReserved2
; /* 34: */
638 HANDLE hStdInput
; /* 38: */
639 HANDLE hStdOutput
; /* 3c: */
640 HANDLE hStdError
; /* 40: */
641 } STARTUPINFOA
, *LPSTARTUPINFOA
;
654 DWORD dwFillAttribute
;
662 } STARTUPINFOW
, *LPSTARTUPINFOW
;
664 DECL_WINELIB_TYPE_AW(STARTUPINFO
)
665 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO
)
672 } PROCESS_INFORMATION
,*LPPROCESS_INFORMATION
;
676 WCHAR StandardName
[32];
677 SYSTEMTIME StandardDate
;
679 WCHAR DaylightName
[32];
680 SYSTEMTIME DaylightDate
;
682 } TIME_ZONE_INFORMATION
, *LPTIME_ZONE_INFORMATION
;
684 #define TIME_ZONE_ID_UNKNOWN 0
685 #define TIME_ZONE_ID_STANDARD 1
686 #define TIME_ZONE_ID_DAYLIGHT 2
688 /* CreateProcess: dwCreationFlag values
690 #define DEBUG_PROCESS 0x00000001
691 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
692 #define CREATE_SUSPENDED 0x00000004
693 #define DETACHED_PROCESS 0x00000008
694 #define CREATE_NEW_CONSOLE 0x00000010
695 #define NORMAL_PRIORITY_CLASS 0x00000020
696 #define IDLE_PRIORITY_CLASS 0x00000040
697 #define HIGH_PRIORITY_CLASS 0x00000080
698 #define REALTIME_PRIORITY_CLASS 0x00000100
699 #define CREATE_NEW_PROCESS_GROUP 0x00000200
700 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
701 #define CREATE_SEPARATE_WOW_VDM 0x00000800
702 #define CREATE_SHARED_WOW_VDM 0x00001000
703 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
704 #define CREATE_NO_WINDOW 0x08000000
705 #define PROFILE_USER 0x10000000
706 #define PROFILE_KERNEL 0x20000000
707 #define PROFILE_SERVER 0x40000000
710 /* File object type definitions
712 #define FILE_TYPE_UNKNOWN 0
713 #define FILE_TYPE_DISK 1
714 #define FILE_TYPE_CHAR 2
715 #define FILE_TYPE_PIPE 3
716 #define FILE_TYPE_REMOTE 32768
718 /* File creation flags
720 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
721 #define FILE_FLAG_OVERLAPPED 0x40000000L
722 #define FILE_FLAG_NO_BUFFERING 0x20000000L
723 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
724 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
725 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
726 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
727 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
729 #define CREATE_ALWAYS 2
730 #define OPEN_EXISTING 3
731 #define OPEN_ALWAYS 4
732 #define TRUNCATE_EXISTING 5
734 /* Standard handle identifiers
736 #define STD_INPUT_HANDLE ((DWORD) -10)
737 #define STD_OUTPUT_HANDLE ((DWORD) -11)
738 #define STD_ERROR_HANDLE ((DWORD) -12)
742 int dwFileAttributes
;
743 FILETIME ftCreationTime
;
744 FILETIME ftLastAccessTime
;
745 FILETIME ftLastWriteTime
;
746 int dwVolumeSerialNumber
;
752 } BY_HANDLE_FILE_INFORMATION
;
755 typedef struct _SYSTEM_POWER_STATUS
759 BYTE BatteryLifePercent
;
761 DWORD BatteryLifeTime
;
762 DWORD BatteryFullLifeTime
;
763 } SYSTEM_POWER_STATUS
, *LPSYSTEM_POWER_STATUS
;
765 typedef struct _MEMORY_BASIC_INFORMATION
768 LPVOID AllocationBase
;
769 DWORD AllocationProtect
;
774 } MEMORY_BASIC_INFORMATION
,*LPMEMORY_BASIC_INFORMATION
;
777 typedef BOOL (CALLBACK
*CODEPAGE_ENUMPROCA
)(LPSTR
);
778 typedef BOOL (CALLBACK
*CODEPAGE_ENUMPROCW
)(LPWSTR
);
779 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC
)
780 typedef BOOL (CALLBACK
*LOCALE_ENUMPROCA
)(LPSTR
);
781 typedef BOOL (CALLBACK
*LOCALE_ENUMPROCW
)(LPWSTR
);
782 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC
)
784 typedef struct tagSYSTEM_INFO
787 DWORD dwOemId
; /* Obsolete field - do not use */
789 WORD wProcessorArchitecture
;
794 LPVOID lpMinimumApplicationAddress
;
795 LPVOID lpMaximumApplicationAddress
;
796 DWORD dwActiveProcessorMask
;
797 DWORD dwNumberOfProcessors
;
798 DWORD dwProcessorType
;
799 DWORD dwAllocationGranularity
;
800 WORD wProcessorLevel
;
801 WORD wProcessorRevision
;
802 } SYSTEM_INFO
, *LPSYSTEM_INFO
;
804 /* {G,S}etPriorityClass */
805 #define NORMAL_PRIORITY_CLASS 0x00000020
806 #define IDLE_PRIORITY_CLASS 0x00000040
807 #define HIGH_PRIORITY_CLASS 0x00000080
808 #define REALTIME_PRIORITY_CLASS 0x00000100
810 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCA
)(HMODULE
,LPSTR
,LONG
);
811 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCW
)(HMODULE
,LPWSTR
,LONG
);
812 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCA
)(HMODULE
,LPCSTR
,LPSTR
,LONG
);
813 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCW
)(HMODULE
,LPCWSTR
,LPWSTR
,LONG
);
814 typedef BOOL (CALLBACK
*ENUMRESLANGPROCA
)(HMODULE
,LPCSTR
,LPCSTR
,WORD
,LONG
);
815 typedef BOOL (CALLBACK
*ENUMRESLANGPROCW
)(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
,LONG
);
817 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC
)
818 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC
)
819 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC
)
821 /* flags that can be passed to LoadLibraryEx */
822 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
823 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
824 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
826 /* ifdef _x86_ ... */
827 typedef struct _LDT_ENTRY
{
833 BYTE Flags1
;/*Declare as bytes to avoid alignment problems */
838 unsigned BaseMid
: 8;
842 unsigned LimitHi
: 4;
844 unsigned Reserved_0
: 1;
845 unsigned Default_Big
: 1;
846 unsigned Granularity
: 1;
850 } LDT_ENTRY
, *LPLDT_ENTRY
;
853 typedef enum _GET_FILEEX_INFO_LEVELS
{
854 GetFileExInfoStandard
855 } GET_FILEEX_INFO_LEVELS
;
857 typedef struct _WIN32_FILE_ATTRIBUTES_DATA
{
858 DWORD dwFileAttributes
;
859 FILETIME ftCreationTime
;
860 FILETIME ftLastAccessTime
;
861 FILETIME ftLastWriteTime
;
864 } WIN32_FILE_ATTRIBUTE_DATA
, *LPWIN32_FILE_ATTRIBUTE_DATA
;
866 typedef struct _DllVersionInfo
{
868 DWORD dwMajorVersion
;
869 DWORD dwMinorVersion
;
875 * This one seems to be a Win32 only definition. It also is defined with
876 * WINAPI instead of CALLBACK in the windows headers.
878 typedef DWORD (WINAPI
*LPPROGRESS_ROUTINE
)(LARGE_INTEGER
, LARGE_INTEGER
, LARGE_INTEGER
,
879 LARGE_INTEGER
, DWORD
, DWORD
, HANDLE
,
883 #define WAIT_FAILED 0xffffffff
884 #define WAIT_OBJECT_0 0
885 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
886 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
887 #define WAIT_IO_COMPLETION STATUS_USER_APC
888 #define WAIT_TIMEOUT STATUS_TIMEOUT
889 #define STILL_ACTIVE STATUS_PENDING
891 #define PAGE_NOACCESS 0x01
892 #define PAGE_READONLY 0x02
893 #define PAGE_READWRITE 0x04
894 #define PAGE_WRITECOPY 0x08
895 #define PAGE_EXECUTE 0x10
896 #define PAGE_EXECUTE_READ 0x20
897 #define PAGE_EXECUTE_READWRITE 0x40
898 #define PAGE_EXECUTE_WRITECOPY 0x80
899 #define PAGE_GUARD 0x100
900 #define PAGE_NOCACHE 0x200
902 #define MEM_COMMIT 0x00001000
903 #define MEM_RESERVE 0x00002000
904 #define MEM_DECOMMIT 0x00004000
905 #define MEM_RELEASE 0x00008000
906 #define MEM_FREE 0x00010000
907 #define MEM_PRIVATE 0x00020000
908 #define MEM_MAPPED 0x00040000
909 #define MEM_TOP_DOWN 0x00100000
911 #define SEC_FILE 0x00800000
912 #define SEC_IMAGE 0x01000000
913 #define SEC_RESERVE 0x04000000
914 #define SEC_COMMIT 0x08000000
915 #define SEC_NOCACHE 0x10000000
918 #define FILE_CURRENT 1
921 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001
922 #define FILE_CASE_PRESERVED_NAMES 0x00000002
923 #define FILE_UNICODE_ON_DISK 0x00000004
924 #define FILE_PERSISTENT_ACLS 0x00000008
926 #define FILE_MAP_COPY 0x00000001
927 #define FILE_MAP_WRITE 0x00000002
928 #define FILE_MAP_READ 0x00000004
929 #define FILE_MAP_ALL_ACCESS 0x000f001f
931 #define MOVEFILE_REPLACE_EXISTING 0x00000001
932 #define MOVEFILE_COPY_ALLOWED 0x00000002
933 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
935 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
936 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
937 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
939 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
940 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
941 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
942 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
943 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
944 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
945 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
946 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
947 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
948 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
949 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
950 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
951 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
952 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
953 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
954 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
955 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
956 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
957 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
958 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
959 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
960 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
961 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
963 /* Wine extension; Windows doesn't have a name for this code */
964 #define EXCEPTION_CRITICAL_SECTION_WAIT 0xc0000194
966 #define DUPLICATE_CLOSE_SOURCE 0x00000001
967 #define DUPLICATE_SAME_ACCESS 0x00000002
969 #define HANDLE_FLAG_INHERIT 0x00000001
970 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
972 #define HINSTANCE_ERROR 32
974 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
975 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
976 #define THREAD_PRIORITY_NORMAL 0
977 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
978 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
979 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
980 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
981 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
983 /* Could this type be considered opaque? */
989 HANDLE LockSemaphore
;
994 DWORD dwOSVersionInfoSize
;
995 DWORD dwMajorVersion
;
996 DWORD dwMinorVersion
;
999 CHAR szCSDVersion
[128];
1003 DWORD dwOSVersionInfoSize
;
1004 DWORD dwMajorVersion
;
1005 DWORD dwMinorVersion
;
1006 DWORD dwBuildNumber
;
1008 CHAR szCSDVersion
[128];
1012 DWORD dwOSVersionInfoSize
;
1013 DWORD dwMajorVersion
;
1014 DWORD dwMinorVersion
;
1015 DWORD dwBuildNumber
;
1017 WCHAR szCSDVersion
[128];
1020 DECL_WINELIB_TYPE_AW(OSVERSIONINFO
)
1022 #define VER_PLATFORM_WIN32s 0
1023 #define VER_PLATFORM_WIN32_WINDOWS 1
1024 #define VER_PLATFORM_WIN32_NT 2
1026 typedef struct tagCOMSTAT
1031 } COMSTAT
,*LPCOMSTAT
;
1033 typedef struct tagDCB
1037 unsigned fBinary
:1;
1038 unsigned fParity
:1;
1039 unsigned fOutxCtsFlow
:1;
1040 unsigned fOutxDsrFlow
:1;
1041 unsigned fDtrControl
:2;
1042 unsigned fDsrSensitivity
:1;
1043 unsigned fTXContinueOnXoff
:1;
1046 unsigned fErrorChar
:1;
1048 unsigned fRtsControl
:2;
1049 unsigned fAbortOnError
:1;
1050 unsigned fDummy2
:17;
1066 typedef struct tagCOMMTIMEOUTS
{
1067 DWORD ReadIntervalTimeout
;
1068 DWORD ReadTotalTimeoutMultiplier
;
1069 DWORD ReadTotalTimeoutConstant
;
1070 DWORD WriteTotalTimeoutMultiplier
;
1071 DWORD WriteTotalTimeoutConstant
;
1072 } COMMTIMEOUTS
,*LPCOMMTIMEOUTS
;
1074 #include "poppack.h"
1076 typedef void (CALLBACK
*PAPCFUNC
)(ULONG_PTR
);
1077 typedef void (CALLBACK
*PTIMERAPCROUTINE
)(LPVOID
,DWORD
,DWORD
);
1079 BOOL WINAPI
ClearCommError(INT
,LPDWORD
,LPCOMSTAT
);
1080 BOOL WINAPI
BuildCommDCBA(LPCSTR
,LPDCB
);
1081 BOOL WINAPI
BuildCommDCBW(LPCWSTR
,LPDCB
);
1082 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1083 BOOL WINAPI
BuildCommDCBAndTimeoutsA(LPCSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1084 BOOL WINAPI
BuildCommDCBAndTimeoutsW(LPCWSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1085 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1086 BOOL WINAPI
GetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1087 BOOL WINAPI
SetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1088 BOOL WINAPI
GetCommState(INT
,LPDCB
);
1089 BOOL WINAPI
SetCommState(INT
,LPDCB
);
1090 BOOL WINAPI
TransmitCommChar(INT
,CHAR
);
1091 BOOL WINAPI
SetupComm(HANDLE
, DWORD
, DWORD
);
1092 BOOL WINAPI
GetCommProperties(HANDLE
, LPDCB
*);
1094 /*DWORD WINAPI GetVersion( void );*/
1095 BOOL16 WINAPI
GetVersionEx16(OSVERSIONINFO16
*);
1096 BOOL WINAPI
GetVersionExA(OSVERSIONINFOA
*);
1097 BOOL WINAPI
GetVersionExW(OSVERSIONINFOW
*);
1098 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1100 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1102 void WINAPI
DeleteCriticalSection(CRITICAL_SECTION
*lpCrit
);
1103 void WINAPI
EnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1104 BOOL WINAPI
TryEnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1105 void WINAPI
InitializeCriticalSection(CRITICAL_SECTION
*lpCrit
);
1106 void WINAPI
LeaveCriticalSection(CRITICAL_SECTION
*lpCrit
);
1107 void WINAPI
MakeCriticalSectionGlobal(CRITICAL_SECTION
*lpCrit
);
1108 BOOL WINAPI
GetProcessWorkingSetSize(HANDLE
,LPDWORD
,LPDWORD
);
1109 DWORD WINAPI
QueueUserAPC(PAPCFUNC
,HANDLE
,ULONG_PTR
);
1110 void WINAPI
RaiseException(DWORD
,DWORD
,DWORD
,const LPDWORD
);
1111 BOOL WINAPI
SetProcessWorkingSetSize(HANDLE
,DWORD
,DWORD
);
1112 BOOL WINAPI
TerminateProcess(HANDLE
,DWORD
);
1113 BOOL WINAPI
TerminateThread(HANDLE
,DWORD
);
1114 BOOL WINAPI
GetExitCodeThread(HANDLE
,LPDWORD
);
1116 /* GetBinaryType return values.
1119 #define SCS_32BIT_BINARY 0
1120 #define SCS_DOS_BINARY 1
1121 #define SCS_WOW_BINARY 2
1122 #define SCS_PIF_BINARY 3
1123 #define SCS_POSIX_BINARY 4
1124 #define SCS_OS216_BINARY 5
1126 BOOL WINAPI
GetBinaryTypeA( LPCSTR lpApplicationName
, LPDWORD lpBinaryType
);
1127 BOOL WINAPI
GetBinaryTypeW( LPCWSTR lpApplicationName
, LPDWORD lpBinaryType
);
1128 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1130 BOOL16 WINAPI
GetWinDebugInfo16(LPWINDEBUGINFO
,UINT16
);
1131 BOOL16 WINAPI
SetWinDebugInfo16(LPWINDEBUGINFO
);
1132 /* Declarations for functions that exist only in Win32 */
1135 BOOL WINAPI
AttachThreadInput(DWORD
,DWORD
,BOOL
);
1136 BOOL WINAPI
AccessCheck(PSECURITY_DESCRIPTOR
,HANDLE
,DWORD
,PGENERIC_MAPPING
,PPRIVILEGE_SET
,LPDWORD
,LPDWORD
,LPBOOL
);
1137 BOOL WINAPI
AdjustTokenPrivileges(HANDLE
,BOOL
,LPVOID
,DWORD
,LPVOID
,LPDWORD
);
1138 BOOL WINAPI
AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY
,BYTE
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
*);
1139 BOOL WINAPI
AllocateLocallyUniqueId(PLUID
);
1140 BOOL WINAPI
AllocConsole(void);
1141 BOOL WINAPI
AreFileApisANSI(void);
1142 BOOL WINAPI
BackupEventLogA(HANDLE
,LPCSTR
);
1143 BOOL WINAPI
BackupEventLogW(HANDLE
,LPCWSTR
);
1144 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1145 BOOL WINAPI
Beep(DWORD
,DWORD
);
1146 BOOL WINAPI
CancelWaitableTimer(HANDLE
);
1147 BOOL WINAPI
ClearEventLogA(HANDLE
,LPCSTR
);
1148 BOOL WINAPI
ClearEventLogW(HANDLE
,LPCWSTR
);
1149 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1150 BOOL WINAPI
CloseEventLog(HANDLE
);
1151 BOOL WINAPI
CloseHandle(HANDLE
);
1152 BOOL WINAPI
ContinueDebugEvent(DWORD
,DWORD
,DWORD
);
1153 HANDLE WINAPI
ConvertToGlobalHandle(HANDLE hSrc
);
1154 BOOL WINAPI
CopyFileA(LPCSTR
,LPCSTR
,BOOL
);
1155 BOOL WINAPI
CopyFileW(LPCWSTR
,LPCWSTR
,BOOL
);
1156 #define CopyFile WINELIB_NAME_AW(CopyFile)
1157 BOOL WINAPI
CopyFileExA(LPCSTR
, LPCSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1158 BOOL WINAPI
CopyFileExW(LPCWSTR
, LPCWSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1159 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1160 BOOL WINAPI
CopySid(DWORD
,PSID
,PSID
);
1161 INT WINAPI
CompareFileTime(LPFILETIME
,LPFILETIME
);
1162 HANDLE WINAPI
CreateEventA(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCSTR
);
1163 HANDLE WINAPI
CreateEventW(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCWSTR
);
1164 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1165 HANDLE WINAPI
CreateFileA(LPCSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,
1166 DWORD
,DWORD
,HANDLE
);
1167 HANDLE WINAPI
CreateFileW(LPCWSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,
1168 DWORD
,DWORD
,HANDLE
);
1169 #define CreateFile WINELIB_NAME_AW(CreateFile)
1170 HANDLE WINAPI
CreateFileMappingA(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,
1171 DWORD
,DWORD
,LPCSTR
);
1172 HANDLE WINAPI
CreateFileMappingW(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,
1173 DWORD
,DWORD
,LPCWSTR
);
1174 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1175 HANDLE WINAPI
CreateMutexA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1176 HANDLE WINAPI
CreateMutexW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1177 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1178 BOOL WINAPI
CreatePipe(PHANDLE
,PHANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
);
1179 BOOL WINAPI
CreateProcessA(LPCSTR
,LPSTR
,LPSECURITY_ATTRIBUTES
,
1180 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCSTR
,
1181 LPSTARTUPINFOA
,LPPROCESS_INFORMATION
);
1182 BOOL WINAPI
CreateProcessW(LPCWSTR
,LPWSTR
,LPSECURITY_ATTRIBUTES
,
1183 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCWSTR
,
1184 LPSTARTUPINFOW
,LPPROCESS_INFORMATION
);
1185 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1186 HANDLE WINAPI
CreateSemaphoreA(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCSTR
);
1187 HANDLE WINAPI
CreateSemaphoreW(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCWSTR
);
1188 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1189 HANDLE WINAPI
CreateThread(LPSECURITY_ATTRIBUTES
,DWORD
,LPTHREAD_START_ROUTINE
,LPVOID
,DWORD
,LPDWORD
);
1190 HANDLE WINAPI
CreateWaitableTimerA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1191 HANDLE WINAPI
CreateWaitableTimerW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1192 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1193 BOOL WINAPI
DebugActiveProcess(DWORD
);
1194 void WINAPI
DebugBreak(void);
1195 BOOL WINAPI
DeregisterEventSource(HANDLE
);
1196 BOOL WINAPI
DisableThreadLibraryCalls(HMODULE
);
1197 BOOL WINAPI
DosDateTimeToFileTime(WORD
,WORD
,LPFILETIME
);
1198 BOOL WINAPI
DuplicateHandle(HANDLE
,HANDLE
,HANDLE
,HANDLE
*,DWORD
,BOOL
,DWORD
);
1199 BOOL WINAPI
EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc
, LCID Locale
, DWORD dwFlags
);
1200 BOOL WINAPI
EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc
, LCID Locale
, DWORD dwFlags
);
1201 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1202 BOOL WINAPI
EnumResourceLanguagesA(HMODULE
,LPCSTR
,LPCSTR
,
1203 ENUMRESLANGPROCA
,LONG
);
1204 BOOL WINAPI
EnumResourceLanguagesW(HMODULE
,LPCWSTR
,LPCWSTR
,
1205 ENUMRESLANGPROCW
,LONG
);
1206 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1207 BOOL WINAPI
EnumResourceNamesA(HMODULE
,LPCSTR
,ENUMRESNAMEPROCA
,
1209 BOOL WINAPI
EnumResourceNamesW(HMODULE
,LPCWSTR
,ENUMRESNAMEPROCW
,
1211 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1212 BOOL WINAPI
EnumResourceTypesA(HMODULE
,ENUMRESTYPEPROCA
,LONG
);
1213 BOOL WINAPI
EnumResourceTypesW(HMODULE
,ENUMRESTYPEPROCW
,LONG
);
1214 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1215 BOOL WINAPI
EnumSystemCodePagesA(CODEPAGE_ENUMPROCA
,DWORD
);
1216 BOOL WINAPI
EnumSystemCodePagesW(CODEPAGE_ENUMPROCW
,DWORD
);
1217 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1218 BOOL WINAPI
EnumSystemLocalesA(LOCALE_ENUMPROCA
,DWORD
);
1219 BOOL WINAPI
EnumSystemLocalesW(LOCALE_ENUMPROCW
,DWORD
);
1220 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1221 BOOL WINAPI
EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc
, LCID Locale
, DWORD dwFlags
);
1222 BOOL WINAPI
EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc
, LCID Locale
, DWORD dwFlags
);
1223 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1224 BOOL WINAPI
EqualSid(PSID
, PSID
);
1225 BOOL WINAPI
EqualPrefixSid(PSID
,PSID
);
1226 VOID WINAPI
ExitProcess(DWORD
) WINE_NORETURN
;
1227 VOID WINAPI
ExitThread(DWORD
) WINE_NORETURN
;
1228 DWORD WINAPI
ExpandEnvironmentStringsA(LPCSTR
,LPSTR
,DWORD
);
1229 DWORD WINAPI
ExpandEnvironmentStringsW(LPCWSTR
,LPWSTR
,DWORD
);
1230 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1231 BOOL WINAPI
FileTimeToDosDateTime(const FILETIME
*,LPWORD
,LPWORD
);
1232 BOOL WINAPI
FileTimeToLocalFileTime(const FILETIME
*,LPFILETIME
);
1233 BOOL WINAPI
FileTimeToSystemTime(const FILETIME
*,LPSYSTEMTIME
);
1234 HANDLE WINAPI
FindFirstChangeNotificationA(LPCSTR
,BOOL
,DWORD
);
1235 HANDLE WINAPI
FindFirstChangeNotificationW(LPCWSTR
,BOOL
,DWORD
);
1236 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1237 BOOL WINAPI
FindNextChangeNotification(HANDLE
);
1238 BOOL WINAPI
FindCloseChangeNotification(HANDLE
);
1239 HRSRC WINAPI
FindResourceExA(HMODULE
,LPCSTR
,LPCSTR
,WORD
);
1240 HRSRC WINAPI
FindResourceExW(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
);
1241 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1242 BOOL WINAPI
FlushConsoleInputBuffer(HANDLE
);
1243 BOOL WINAPI
FlushFileBuffers(HANDLE
);
1244 BOOL WINAPI
FlushViewOfFile(LPCVOID
, DWORD
);
1245 DWORD WINAPI
FormatMessageA(DWORD
,LPCVOID
,DWORD
,DWORD
,LPSTR
,
1247 DWORD WINAPI
FormatMessageW(DWORD
,LPCVOID
,DWORD
,DWORD
,LPWSTR
,
1249 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1250 BOOL WINAPI
FreeConsole(void);
1251 BOOL WINAPI
FreeEnvironmentStringsA(LPSTR
);
1252 BOOL WINAPI
FreeEnvironmentStringsW(LPWSTR
);
1253 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1254 PVOID WINAPI
FreeSid(PSID
);
1255 UINT WINAPI
GetACP(void);
1256 LPCSTR WINAPI
GetCommandLineA(void);
1257 LPCWSTR WINAPI
GetCommandLineW(void);
1258 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1259 BOOL WINAPI
GetComputerNameA(LPSTR
,LPDWORD
);
1260 BOOL WINAPI
GetComputerNameW(LPWSTR
,LPDWORD
);
1261 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1262 UINT WINAPI
GetConsoleCP(void);
1263 BOOL WINAPI
GetConsoleMode(HANDLE
,LPDWORD
);
1264 UINT WINAPI
GetConsoleOutputCP(void);
1265 DWORD WINAPI
GetConsoleTitleA(LPSTR
,DWORD
);
1266 DWORD WINAPI
GetConsoleTitleW(LPWSTR
,DWORD
);
1267 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1268 BOOL WINAPI
GetCommMask(HANDLE
, LPDWORD
);
1269 BOOL WINAPI
GetCommModemStatus(HANDLE
, LPDWORD
);
1270 HANDLE WINAPI
GetCurrentProcess(void);
1271 DWORD WINAPI
GetCurrentProcessId(void);
1272 HANDLE WINAPI
GetCurrentThread(void);
1273 INT WINAPI
GetDateFormatA(LCID
,DWORD
,LPSYSTEMTIME
,LPCSTR
,LPSTR
,INT
);
1274 INT WINAPI
GetDateFormatW(LCID
,DWORD
,LPSYSTEMTIME
,LPCWSTR
,LPWSTR
,INT
);
1275 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1276 LPSTR WINAPI
GetEnvironmentStringsA(void);
1277 LPWSTR WINAPI
GetEnvironmentStringsW(void);
1278 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1279 DWORD WINAPI
GetEnvironmentVariableA(LPCSTR
,LPSTR
,DWORD
);
1280 DWORD WINAPI
GetEnvironmentVariableW(LPCWSTR
,LPWSTR
,DWORD
);
1281 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1282 BOOL WINAPI
GetFileAttributesExA(LPCSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1283 BOOL WINAPI
GetFileAttributesExW(LPCWSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1284 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1285 DWORD WINAPI
GetFileInformationByHandle(HANDLE
,BY_HANDLE_FILE_INFORMATION
*);
1286 BOOL WINAPI
GetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1287 BOOL WINAPI
GetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1288 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1289 DWORD WINAPI
GetFileSize(HANDLE
,LPDWORD
);
1290 BOOL WINAPI
GetFileTime(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1291 DWORD WINAPI
GetFileType(HANDLE
);
1292 DWORD WINAPI
GetFullPathNameA(LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1293 DWORD WINAPI
GetFullPathNameW(LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1294 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1295 BOOL WINAPI
GetHandleInformation(HANDLE
,LPDWORD
);
1296 DWORD WINAPI
GetLargestConsoleWindowSize(HANDLE
);
1297 DWORD WINAPI
GetLengthSid(PSID
);
1298 VOID WINAPI
GetLocalTime(LPSYSTEMTIME
);
1299 DWORD WINAPI
GetLogicalDrives(void);
1300 DWORD WINAPI
GetLongPathNameA(LPCSTR
,LPSTR
,DWORD
);
1301 DWORD WINAPI
GetLongPathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1302 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1303 BOOL WINAPI
GetNumberOfConsoleInputEvents(HANDLE
,LPDWORD
);
1304 BOOL WINAPI
GetNumberOfConsoleMouseButtons(LPDWORD
);
1305 BOOL WINAPI
GetNumberOfEventLogRecords(HANDLE
,PDWORD
);
1306 UINT WINAPI
GetOEMCP(void);
1307 BOOL WINAPI
GetOldestEventLogRecord(HANDLE
,PDWORD
);
1308 DWORD WINAPI
GetPriorityClass(HANDLE
);
1309 HANDLE WINAPI
GetProcessHeap(void);
1310 DWORD WINAPI
GetProcessVersion(DWORD
);
1311 BOOL WINAPI
GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR_CONTROL
,LPDWORD
);
1312 BOOL WINAPI
GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR
,LPBOOL
,PACL
*,LPBOOL
);
1313 BOOL WINAPI
GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR
,PSID
*,LPBOOL
);
1314 DWORD WINAPI
GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR
);
1315 BOOL WINAPI
GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR
,PSID
*,LPBOOL
);
1316 BOOL WINAPI
GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR
,LPBOOL
,PACL
*,LPBOOL
);
1317 PSID_IDENTIFIER_AUTHORITY WINAPI
GetSidIdentifierAuthority(PSID
);
1318 DWORD WINAPI
GetSidLengthRequired(BYTE
);
1319 PDWORD WINAPI
GetSidSubAuthority(PSID
,DWORD
);
1320 PUCHAR WINAPI
GetSidSubAuthorityCount(PSID
);
1321 DWORD WINAPI
GetShortPathNameA(LPCSTR
,LPSTR
,DWORD
);
1322 DWORD WINAPI
GetShortPathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1323 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1324 HFILE WINAPI
GetStdHandle(DWORD
);
1325 BOOL WINAPI
GetStringTypeExA(LCID
,DWORD
,LPCSTR
,INT
,LPWORD
);
1326 BOOL WINAPI
GetStringTypeExW(LCID
,DWORD
,LPCWSTR
,INT
,LPWORD
);
1327 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1328 VOID WINAPI
GetSystemInfo(LPSYSTEM_INFO
);
1329 BOOL WINAPI
GetSystemPowerStatus(LPSYSTEM_POWER_STATUS
);
1330 VOID WINAPI
GetSystemTime(LPSYSTEMTIME
);
1331 VOID WINAPI
GetSystemTimeAsFileTime(LPFILETIME
);
1332 INT WINAPI
GetTimeFormatA(LCID
,DWORD
,LPSYSTEMTIME
,LPCSTR
,LPSTR
,INT
);
1333 INT WINAPI
GetTimeFormatW(LCID
,DWORD
,LPSYSTEMTIME
,LPCWSTR
,LPWSTR
,INT
);
1334 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1335 BOOL WINAPI
GetThreadContext(HANDLE
,CONTEXT
*);
1336 LCID WINAPI
GetThreadLocale(void);
1337 INT WINAPI
GetThreadPriority(HANDLE
);
1338 BOOL WINAPI
GetThreadSelectorEntry(HANDLE
,DWORD
,LPLDT_ENTRY
);
1339 BOOL WINAPI
GetThreadTimes(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1340 BOOL WINAPI
GetTokenInformation(HANDLE
,TOKEN_INFORMATION_CLASS
,LPVOID
,DWORD
,LPDWORD
);
1341 BOOL WINAPI
GetUserNameA(LPSTR
,LPDWORD
);
1342 BOOL WINAPI
GetUserNameW(LPWSTR
,LPDWORD
);
1343 #define GetUserName WINELIB_NAME_AW(GetUserName)
1344 VOID WINAPI
GlobalMemoryStatus(LPMEMORYSTATUS
);
1345 LPVOID WINAPI
HeapAlloc(HANDLE
,DWORD
,DWORD
);
1346 DWORD WINAPI
HeapCompact(HANDLE
,DWORD
);
1347 HANDLE WINAPI
HeapCreate(DWORD
,DWORD
,DWORD
);
1348 BOOL WINAPI
HeapDestroy(HANDLE
);
1349 BOOL WINAPI
HeapFree(HANDLE
,DWORD
,LPVOID
);
1350 BOOL WINAPI
HeapLock(HANDLE
);
1351 LPVOID WINAPI
HeapReAlloc(HANDLE
,DWORD
,LPVOID
,DWORD
);
1352 DWORD WINAPI
HeapSize(HANDLE
,DWORD
,LPVOID
);
1353 BOOL WINAPI
HeapUnlock(HANDLE
);
1354 BOOL WINAPI
HeapValidate(HANDLE
,DWORD
,LPCVOID
);
1355 BOOL WINAPI
HeapWalk(HANDLE
,LPPROCESS_HEAP_ENTRY
);
1356 BOOL WINAPI
InitializeSid(PSID
,PSID_IDENTIFIER_AUTHORITY
,BYTE
);
1357 BOOL WINAPI
IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR
);
1358 BOOL WINAPI
IsValidSid(PSID
);
1359 BOOL WINAPI
ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL
);
1360 BOOL WINAPI
IsDBCSLeadByteEx(UINT
,BYTE
);
1361 BOOL WINAPI
IsProcessorFeaturePresent(DWORD
);
1362 BOOL WINAPI
IsValidLocale(DWORD
,DWORD
);
1363 BOOL WINAPI
LookupAccountSidA(LPCSTR
,PSID
,LPSTR
,LPDWORD
,LPSTR
,LPDWORD
,PSID_NAME_USE
);
1364 BOOL WINAPI
LookupAccountSidW(LPCWSTR
,PSID
,LPWSTR
,LPDWORD
,LPWSTR
,LPDWORD
,PSID_NAME_USE
);
1365 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSidW)
1366 BOOL WINAPI
LocalFileTimeToFileTime(const FILETIME
*,LPFILETIME
);
1367 BOOL WINAPI
LockFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1368 BOOL WINAPI
LockFileEx(HANDLE
, DWORD
, DWORD
, DWORD
, DWORD
, LPOVERLAPPED
);
1369 BOOL WINAPI
LookupPrivilegeValueA(LPCSTR
,LPCSTR
,LPVOID
);
1370 BOOL WINAPI
LookupPrivilegeValueW(LPCWSTR
,LPCWSTR
,LPVOID
);
1371 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1372 BOOL WINAPI
MakeSelfRelativeSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,LPDWORD
);
1373 HMODULE WINAPI
MapHModuleSL(HMODULE16
);
1374 HMODULE16 WINAPI
MapHModuleLS(HMODULE
);
1375 SEGPTR WINAPI
MapLS(LPVOID
);
1376 LPVOID WINAPI
MapSL(SEGPTR
);
1377 LPVOID WINAPI
MapViewOfFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1378 LPVOID WINAPI
MapViewOfFileEx(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
,LPVOID
);
1379 BOOL WINAPI
MoveFileA(LPCSTR
,LPCSTR
);
1380 BOOL WINAPI
MoveFileW(LPCWSTR
,LPCWSTR
);
1381 #define MoveFile WINELIB_NAME_AW(MoveFile)
1382 BOOL WINAPI
MoveFileExA(LPCSTR
,LPCSTR
,DWORD
);
1383 BOOL WINAPI
MoveFileExW(LPCWSTR
,LPCWSTR
,DWORD
);
1384 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1385 INT WINAPI
MultiByteToWideChar(UINT
,DWORD
,LPCSTR
,INT
,LPWSTR
,INT
);
1386 BOOL WINAPI
NotifyChangeEventLog(HANDLE
,HANDLE
);
1387 INT WINAPI
WideCharToMultiByte(UINT
,DWORD
,LPCWSTR
,INT
,LPSTR
,INT
,LPCSTR
,BOOL
*);
1388 HANDLE WINAPI
OpenBackupEventLogA(LPCSTR
,LPCSTR
);
1389 HANDLE WINAPI
OpenBackupEventLogW(LPCWSTR
,LPCWSTR
);
1390 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1391 HANDLE WINAPI
OpenEventA(DWORD
,BOOL
,LPCSTR
);
1392 HANDLE WINAPI
OpenEventW(DWORD
,BOOL
,LPCWSTR
);
1393 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1394 HANDLE WINAPI
OpenEventLogA(LPCSTR
,LPCSTR
);
1395 HANDLE WINAPI
OpenEventLogW(LPCWSTR
,LPCWSTR
);
1396 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1397 HANDLE WINAPI
OpenFileMappingA(DWORD
,BOOL
,LPCSTR
);
1398 HANDLE WINAPI
OpenFileMappingW(DWORD
,BOOL
,LPCWSTR
);
1399 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1400 HANDLE WINAPI
OpenMutexA(DWORD
,BOOL
,LPCSTR
);
1401 HANDLE WINAPI
OpenMutexW(DWORD
,BOOL
,LPCWSTR
);
1402 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1403 HANDLE WINAPI
OpenProcess(DWORD
,BOOL
,DWORD
);
1404 BOOL WINAPI
OpenProcessToken(HANDLE
,DWORD
,PHANDLE
);
1405 HANDLE WINAPI
OpenSemaphoreA(DWORD
,BOOL
,LPCSTR
);
1406 HANDLE WINAPI
OpenSemaphoreW(DWORD
,BOOL
,LPCWSTR
);
1407 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1408 BOOL WINAPI
OpenThreadToken(HANDLE
,DWORD
,BOOL
,PHANDLE
);
1409 HANDLE WINAPI
OpenWaitableTimerA(DWORD
,BOOL
,LPCSTR
);
1410 HANDLE WINAPI
OpenWaitableTimerW(DWORD
,BOOL
,LPCWSTR
);
1411 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
1412 BOOL WINAPI
PulseEvent(HANDLE
);
1413 BOOL WINAPI
PurgeComm(HANDLE
,DWORD
);
1414 DWORD WINAPI
QueryDosDeviceA(LPCSTR
,LPSTR
,DWORD
);
1415 DWORD WINAPI
QueryDosDeviceW(LPCWSTR
,LPWSTR
,DWORD
);
1416 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1417 BOOL WINAPI
QueryPerformanceCounter(PLARGE_INTEGER
);
1418 BOOL WINAPI
ReadConsoleA(HANDLE
,LPVOID
,DWORD
,LPDWORD
,LPVOID
);
1419 BOOL WINAPI
ReadConsoleW(HANDLE
,LPVOID
,DWORD
,LPDWORD
,LPVOID
);
1420 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
1421 BOOL WINAPI
ReadConsoleOutputCharacterA(HANDLE
,LPSTR
,DWORD
,
1423 #define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1424 BOOL WINAPI
ReadEventLogA(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1425 BOOL WINAPI
ReadEventLogW(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1426 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1427 BOOL WINAPI
ReadFile(HANDLE
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1428 HANDLE WINAPI
RegisterEventSourceA(LPCSTR
,LPCSTR
);
1429 HANDLE WINAPI
RegisterEventSourceW(LPCWSTR
,LPCWSTR
);
1430 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1431 BOOL WINAPI
ReleaseMutex(HANDLE
);
1432 BOOL WINAPI
ReleaseSemaphore(HANDLE
,LONG
,LPLONG
);
1433 BOOL WINAPI
ReportEventA(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCSTR
*,LPVOID
);
1434 BOOL WINAPI
ReportEventW(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCWSTR
*,LPVOID
);
1435 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
1436 BOOL WINAPI
ResetEvent(HANDLE
);
1437 DWORD WINAPI
ResumeThread(HANDLE
);
1438 BOOL WINAPI
RevertToSelf(void);
1439 DWORD WINAPI
SearchPathA(LPCSTR
,LPCSTR
,LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1440 DWORD WINAPI
SearchPathW(LPCWSTR
,LPCWSTR
,LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1441 #define SearchPath WINELIB_NAME_AW(SearchPath)
1442 BOOL WINAPI
SetCommMask(INT
,DWORD
);
1443 BOOL WINAPI
SetComputerNameA(LPCSTR
);
1444 BOOL WINAPI
SetComputerNameW(LPCWSTR
);
1445 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1446 BOOL WINAPI
SetConsoleCursorPosition(HANDLE
,COORD
);
1447 BOOL WINAPI
SetConsoleMode(HANDLE
,DWORD
);
1448 BOOL WINAPI
SetConsoleTitleA(LPCSTR
);
1449 BOOL WINAPI
SetConsoleTitleW(LPCWSTR
);
1450 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1451 BOOL WINAPI
SetEndOfFile(HANDLE
);
1452 BOOL WINAPI
SetEnvironmentVariableA(LPCSTR
,LPCSTR
);
1453 BOOL WINAPI
SetEnvironmentVariableW(LPCWSTR
,LPCWSTR
);
1454 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1455 BOOL WINAPI
SetEvent(HANDLE
);
1456 VOID WINAPI
SetFileApisToANSI(void);
1457 VOID WINAPI
SetFileApisToOEM(void);
1458 DWORD WINAPI
SetFilePointer(HANDLE
,LONG
,LPLONG
,DWORD
);
1459 BOOL WINAPI
SetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1460 BOOL WINAPI
SetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1461 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1462 BOOL WINAPI
SetFileTime(HANDLE
,const FILETIME
*,const FILETIME
*,const FILETIME
*);
1463 BOOL WINAPI
SetHandleInformation(HANDLE
,DWORD
,DWORD
);
1464 BOOL WINAPI
SetPriorityClass(HANDLE
,DWORD
);
1465 BOOL WINAPI
SetLocalTime(const SYSTEMTIME
*);
1466 BOOL WINAPI
SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1467 BOOL WINAPI
SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1468 BOOL WINAPI
SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1469 BOOL WINAPI
SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1470 BOOL WINAPI
SetStdHandle(DWORD
,HANDLE
);
1471 BOOL WINAPI
SetSystemPowerState(BOOL
,BOOL
);
1472 BOOL WINAPI
SetSystemTime(const SYSTEMTIME
*);
1473 DWORD WINAPI
SetThreadAffinityMask(HANDLE
,DWORD
);
1474 BOOL WINAPI
SetThreadContext(HANDLE
,const CONTEXT
*);
1475 BOOL WINAPI
SetThreadLocale(LCID
);
1476 BOOL WINAPI
SetThreadPriority(HANDLE
,INT
);
1477 BOOL WINAPI
SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION
);
1478 BOOL WINAPI
SetWaitableTimer(HANDLE
,const LARGE_INTEGER
*,LONG
,PTIMERAPCROUTINE
,LPVOID
,BOOL
);
1479 VOID WINAPI
Sleep(DWORD
);
1480 DWORD WINAPI
SleepEx(DWORD
,BOOL
);
1481 DWORD WINAPI
SuspendThread(HANDLE
);
1482 BOOL WINAPI
SystemTimeToFileTime(const SYSTEMTIME
*,LPFILETIME
);
1483 DWORD WINAPI
TlsAlloc(void);
1484 BOOL WINAPI
TlsFree(DWORD
);
1485 LPVOID WINAPI
TlsGetValue(DWORD
);
1486 BOOL WINAPI
TlsSetValue(DWORD
,LPVOID
);
1487 VOID WINAPI
UnMapLS(SEGPTR
);
1488 BOOL WINAPI
UnlockFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1489 BOOL WINAPI
UnmapViewOfFile(LPVOID
);
1490 LPVOID WINAPI
VirtualAlloc(LPVOID
,DWORD
,DWORD
,DWORD
);
1491 BOOL WINAPI
VirtualFree(LPVOID
,DWORD
,DWORD
);
1492 BOOL WINAPI
VirtualLock(LPVOID
,DWORD
);
1493 BOOL WINAPI
VirtualProtect(LPVOID
,DWORD
,DWORD
,LPDWORD
);
1494 BOOL WINAPI
VirtualProtectEx(HANDLE
,LPVOID
,DWORD
,DWORD
,LPDWORD
);
1495 DWORD WINAPI
VirtualQuery(LPCVOID
,LPMEMORY_BASIC_INFORMATION
,DWORD
);
1496 DWORD WINAPI
VirtualQueryEx(HANDLE
,LPCVOID
,LPMEMORY_BASIC_INFORMATION
,DWORD
);
1497 BOOL WINAPI
VirtualUnlock(LPVOID
,DWORD
);
1498 BOOL WINAPI
WaitCommEvent(HANDLE
,LPDWORD
,LPOVERLAPPED
);
1499 BOOL WINAPI
WaitForDebugEvent(LPDEBUG_EVENT
,DWORD
);
1500 DWORD WINAPI
WaitForMultipleObjects(DWORD
,const HANDLE
*,BOOL
,DWORD
);
1501 DWORD WINAPI
WaitForMultipleObjectsEx(DWORD
,const HANDLE
*,BOOL
,DWORD
,BOOL
);
1502 DWORD WINAPI
WaitForSingleObject(HANDLE
,DWORD
);
1503 DWORD WINAPI
WaitForSingleObjectEx(HANDLE
,DWORD
,BOOL
);
1504 BOOL WINAPI
WriteConsoleA(HANDLE
,LPCVOID
,DWORD
,LPDWORD
,LPVOID
);
1505 BOOL WINAPI
WriteConsoleW(HANDLE
,LPCVOID
,DWORD
,LPDWORD
,LPVOID
);
1506 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
1507 BOOL WINAPI
WriteFile(HANDLE
,LPCVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1508 LANGID WINAPI
GetSystemDefaultLangID(void);
1509 LCID WINAPI
GetSystemDefaultLCID(void);
1510 LANGID WINAPI
GetUserDefaultLangID(void);
1511 LCID WINAPI
GetUserDefaultLCID(void);
1512 ATOM WINAPI
AddAtomA(LPCSTR
);
1513 ATOM WINAPI
AddAtomW(LPCWSTR
);
1514 #define AddAtom WINELIB_NAME_AW(AddAtom)
1515 UINT WINAPI
CompareStringA(DWORD
,DWORD
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
1516 UINT WINAPI
CompareStringW(DWORD
,DWORD
,LPCWSTR
,DWORD
,LPCWSTR
,DWORD
);
1517 #define CompareString WINELIB_NAME_AW(CompareString)
1518 BOOL WINAPI
CreateDirectoryA(LPCSTR
,LPSECURITY_ATTRIBUTES
);
1519 BOOL WINAPI
CreateDirectoryW(LPCWSTR
,LPSECURITY_ATTRIBUTES
);
1520 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1521 BOOL WINAPI
CreateDirectoryExA(LPCSTR
,LPCSTR
,LPSECURITY_ATTRIBUTES
);
1522 BOOL WINAPI
CreateDirectoryExW(LPCWSTR
,LPCWSTR
,LPSECURITY_ATTRIBUTES
);
1523 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1524 BOOL WINAPI
DefineDosDeviceA(DWORD
,LPCSTR
,LPCSTR
);
1525 #define DefineHandleTable(w) ((w),TRUE)
1526 ATOM WINAPI
DeleteAtom(ATOM
);
1527 BOOL WINAPI
DeleteFileA(LPCSTR
);
1528 BOOL WINAPI
DeleteFileW(LPCWSTR
);
1529 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1530 void WINAPI
FatalAppExitA(UINT
,LPCSTR
);
1531 void WINAPI
FatalAppExitW(UINT
,LPCWSTR
);
1532 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1533 ATOM WINAPI
FindAtomA(LPCSTR
);
1534 ATOM WINAPI
FindAtomW(LPCWSTR
);
1535 #define FindAtom WINELIB_NAME_AW(FindAtom)
1536 BOOL WINAPI
FindClose(HANDLE
);
1537 HANDLE16 WINAPI
FindFirstFile16(LPCSTR
,LPWIN32_FIND_DATAA
);
1538 HANDLE WINAPI
FindFirstFileA(LPCSTR
,LPWIN32_FIND_DATAA
);
1539 HANDLE WINAPI
FindFirstFileW(LPCWSTR
,LPWIN32_FIND_DATAW
);
1540 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1541 BOOL16 WINAPI
FindNextFile16(HANDLE16
,LPWIN32_FIND_DATAA
);
1542 BOOL WINAPI
FindNextFileA(HANDLE
,LPWIN32_FIND_DATAA
);
1543 BOOL WINAPI
FindNextFileW(HANDLE
,LPWIN32_FIND_DATAW
);
1544 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1545 HRSRC WINAPI
FindResourceA(HMODULE
,LPCSTR
,LPCSTR
);
1546 HRSRC WINAPI
FindResourceW(HMODULE
,LPCWSTR
,LPCWSTR
);
1547 #define FindResource WINELIB_NAME_AW(FindResource)
1548 VOID WINAPI
FreeLibrary16(HINSTANCE16
);
1549 BOOL WINAPI
FreeLibrary(HMODULE
);
1550 #define FreeModule(handle) FreeLibrary(handle)
1551 #define FreeProcInstance(proc) /*nothing*/
1552 BOOL WINAPI
FreeResource(HGLOBAL
);
1553 UINT WINAPI
GetAtomNameA(ATOM
,LPSTR
,INT
);
1554 UINT WINAPI
GetAtomNameW(ATOM
,LPWSTR
,INT
);
1555 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1556 UINT WINAPI
GetCurrentDirectoryA(UINT
,LPSTR
);
1557 UINT WINAPI
GetCurrentDirectoryW(UINT
,LPWSTR
);
1558 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1559 BOOL WINAPI
GetDiskFreeSpaceA(LPCSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1560 BOOL WINAPI
GetDiskFreeSpaceW(LPCWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1561 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1562 BOOL WINAPI
GetDiskFreeSpaceExA(LPCSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1563 BOOL WINAPI
GetDiskFreeSpaceExW(LPCWSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1564 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1565 UINT WINAPI
GetDriveTypeA(LPCSTR
);
1566 UINT WINAPI
GetDriveTypeW(LPCWSTR
);
1567 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1568 DWORD WINAPI
GetFileAttributesA(LPCSTR
);
1569 DWORD WINAPI
GetFileAttributesW(LPCWSTR
);
1570 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1571 #define GetFreeSpace(w) (0x100000L)
1572 UINT WINAPI
GetLogicalDriveStringsA(UINT
,LPSTR
);
1573 UINT WINAPI
GetLogicalDriveStringsW(UINT
,LPWSTR
);
1574 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1575 INT WINAPI
GetLocaleInfoA(LCID
,LCTYPE
,LPSTR
,INT
);
1576 INT WINAPI
GetLocaleInfoW(LCID
,LCTYPE
,LPWSTR
,INT
);
1577 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1578 DWORD WINAPI
GetModuleFileNameA(HMODULE
,LPSTR
,DWORD
);
1579 DWORD WINAPI
GetModuleFileNameW(HMODULE
,LPWSTR
,DWORD
);
1580 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1581 HMODULE WINAPI
GetModuleHandleA(LPCSTR
);
1582 HMODULE WINAPI
GetModuleHandleW(LPCWSTR
);
1583 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1584 BOOL WINAPI
GetOverlappedResult(HANDLE
,LPOVERLAPPED
,LPDWORD
,BOOL
);
1585 UINT WINAPI
GetPrivateProfileIntA(LPCSTR
,LPCSTR
,INT
,LPCSTR
);
1586 UINT WINAPI
GetPrivateProfileIntW(LPCWSTR
,LPCWSTR
,INT
,LPCWSTR
);
1587 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1588 INT WINAPI
GetPrivateProfileSectionA(LPCSTR
,LPSTR
,DWORD
,LPCSTR
);
1589 INT WINAPI
GetPrivateProfileSectionW(LPCWSTR
,LPWSTR
,DWORD
,LPCWSTR
);
1590 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1591 DWORD WINAPI
GetPrivateProfileSectionNamesA(LPSTR
,DWORD
,LPCSTR
);
1592 DWORD WINAPI
GetPrivateProfileSectionNamesW(LPWSTR
,DWORD
,LPCWSTR
);
1593 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1594 INT WINAPI
GetPrivateProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT
,LPCSTR
);
1595 INT WINAPI
GetPrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT
,LPCWSTR
);
1596 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1597 BOOL WINAPI
GetPrivateProfileStructA(LPCSTR
,LPCSTR
,LPVOID
,UINT
,LPCSTR
);
1598 BOOL WINAPI
GetPrivateProfileStructW(LPCWSTR
,LPCWSTR
,LPVOID
,UINT
,LPCWSTR
);
1599 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1600 FARPROC WINAPI
GetProcAddress(HMODULE
,LPCSTR
);
1601 UINT WINAPI
GetProfileIntA(LPCSTR
,LPCSTR
,INT
);
1602 UINT WINAPI
GetProfileIntW(LPCWSTR
,LPCWSTR
,INT
);
1603 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1604 INT WINAPI
GetProfileSectionA(LPCSTR
,LPSTR
,DWORD
);
1605 INT WINAPI
GetProfileSectionW(LPCWSTR
,LPWSTR
,DWORD
);
1606 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1607 INT WINAPI
GetProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT
);
1608 INT WINAPI
GetProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT
);
1609 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1610 VOID WINAPI
GetStartupInfoA(LPSTARTUPINFOA
);
1611 VOID WINAPI
GetStartupInfoW(LPSTARTUPINFOW
);
1612 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1613 BOOL WINAPI
GetStringTypeA(LCID
,DWORD
,LPCSTR
,INT
,LPWORD
);
1614 BOOL WINAPI
GetStringTypeW(DWORD
,LPCWSTR
,INT
,LPWORD
);
1615 #define GetStringType WINELIB_NAME_AW(GetStringType)
1616 UINT WINAPI
GetSystemDirectoryA(LPSTR
,UINT
);
1617 UINT WINAPI
GetSystemDirectoryW(LPWSTR
,UINT
);
1618 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1619 UINT WINAPI
GetTempFileNameA(LPCSTR
,LPCSTR
,UINT
,LPSTR
);
1620 UINT WINAPI
GetTempFileNameW(LPCWSTR
,LPCWSTR
,UINT
,LPWSTR
);
1621 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1622 UINT WINAPI
GetTempPathA(UINT
,LPSTR
);
1623 UINT WINAPI
GetTempPathW(UINT
,LPWSTR
);
1624 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1625 LONG WINAPI
GetVersion(void);
1626 BOOL WINAPI
GetExitCodeProcess(HANDLE
,LPDWORD
);
1627 BOOL WINAPI
GetVolumeInformationA(LPCSTR
,LPSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPSTR
,DWORD
);
1628 BOOL WINAPI
GetVolumeInformationW(LPCWSTR
,LPWSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPWSTR
,DWORD
);
1629 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1630 UINT WINAPI
GetWindowsDirectoryA(LPSTR
,UINT
);
1631 UINT WINAPI
GetWindowsDirectoryW(LPWSTR
,UINT
);
1632 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1633 HGLOBAL16 WINAPI
GlobalAlloc16(UINT16
,DWORD
);
1634 HGLOBAL WINAPI
GlobalAlloc(UINT
,DWORD
);
1635 DWORD WINAPI
GlobalCompact(DWORD
);
1636 UINT WINAPI
GlobalFlags(HGLOBAL
);
1637 HGLOBAL16 WINAPI
GlobalFree16(HGLOBAL16
);
1638 HGLOBAL WINAPI
GlobalFree(HGLOBAL
);
1639 HGLOBAL WINAPI
GlobalHandle(LPCVOID
);
1640 WORD WINAPI
GlobalFix16(HGLOBAL16
);
1641 VOID WINAPI
GlobalFix(HGLOBAL
);
1642 LPVOID WINAPI
GlobalLock16(HGLOBAL16
);
1643 LPVOID WINAPI
GlobalLock(HGLOBAL
);
1644 HGLOBAL WINAPI
GlobalReAlloc(HGLOBAL
,DWORD
,UINT
);
1645 DWORD WINAPI
GlobalSize16(HGLOBAL16
);
1646 DWORD WINAPI
GlobalSize(HGLOBAL
);
1647 VOID WINAPI
GlobalUnfix16(HGLOBAL16
);
1648 VOID WINAPI
GlobalUnfix(HGLOBAL
);
1649 BOOL16 WINAPI
GlobalUnlock16(HGLOBAL16
);
1650 BOOL WINAPI
GlobalUnlock(HGLOBAL
);
1651 BOOL16 WINAPI
GlobalUnWire16(HGLOBAL16
);
1652 BOOL WINAPI
GlobalUnWire(HGLOBAL
);
1653 SEGPTR WINAPI
GlobalWire16(HGLOBAL16
);
1654 LPVOID WINAPI
GlobalWire(HGLOBAL
);
1655 BOOL WINAPI
InitAtomTable(DWORD
);
1656 BOOL WINAPI
IsBadCodePtr(FARPROC
);
1657 BOOL WINAPI
IsBadHugeReadPtr(LPCVOID
,UINT
);
1658 BOOL WINAPI
IsBadHugeWritePtr(LPVOID
,UINT
);
1659 BOOL WINAPI
IsBadReadPtr(LPCVOID
,UINT
);
1660 BOOL WINAPI
IsBadStringPtrA(LPCSTR
,UINT
);
1661 BOOL WINAPI
IsBadStringPtrW(LPCWSTR
,UINT
);
1662 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1663 BOOL WINAPI
IsBadWritePtr(LPVOID
,UINT
);
1664 BOOL WINAPI
IsDBCSLeadByte(BYTE
);
1665 BOOL WINAPI
IsDebuggerPresent(void);
1666 HINSTANCE16 WINAPI
LoadLibrary16(LPCSTR
);
1667 HMODULE WINAPI
LoadLibraryA(LPCSTR
);
1668 HMODULE WINAPI
LoadLibraryW(LPCWSTR
);
1669 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1670 HMODULE WINAPI
LoadLibraryExA(LPCSTR
,HANDLE
,DWORD
);
1671 HMODULE WINAPI
LoadLibraryExW(LPCWSTR
,HANDLE
,DWORD
);
1672 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1673 HINSTANCE16 WINAPI
LoadModule16(LPCSTR
,LPVOID
);
1674 HINSTANCE WINAPI
LoadModule(LPCSTR
,LPVOID
);
1675 HGLOBAL WINAPI
LoadResource(HMODULE
,HRSRC
);
1676 HLOCAL WINAPI
LocalAlloc(UINT
,DWORD
);
1677 UINT WINAPI
LocalCompact(UINT
);
1678 UINT WINAPI
LocalFlags(HLOCAL
);
1679 HLOCAL WINAPI
LocalFree(HLOCAL
);
1680 HLOCAL WINAPI
LocalHandle(LPCVOID
);
1681 LPVOID WINAPI
LocalLock(HLOCAL
);
1682 HLOCAL WINAPI
LocalReAlloc(HLOCAL
,DWORD
,UINT
);
1683 UINT WINAPI
LocalShrink(HGLOBAL
,UINT
);
1684 UINT WINAPI
LocalSize(HLOCAL
);
1685 BOOL WINAPI
LocalUnlock(HLOCAL
);
1686 LPVOID WINAPI
LockResource(HGLOBAL
);
1687 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1688 #define MakeProcInstance(proc,inst) (proc)
1689 HFILE16 WINAPI
OpenFile16(LPCSTR
,OFSTRUCT
*,UINT16
);
1690 HFILE WINAPI
OpenFile(LPCSTR
,OFSTRUCT
*,UINT
);
1691 VOID WINAPI
OutputDebugStringA(LPCSTR
);
1692 VOID WINAPI
OutputDebugStringW(LPCWSTR
);
1693 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1694 BOOL WINAPI
ReadProcessMemory(HANDLE
, LPCVOID
, LPVOID
, DWORD
, LPDWORD
);
1695 BOOL WINAPI
RemoveDirectoryA(LPCSTR
);
1696 BOOL WINAPI
RemoveDirectoryW(LPCWSTR
);
1697 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1698 BOOL WINAPI
SetCurrentDirectoryA(LPCSTR
);
1699 BOOL WINAPI
SetCurrentDirectoryW(LPCWSTR
);
1700 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1701 UINT WINAPI
SetErrorMode(UINT
);
1702 BOOL WINAPI
SetFileAttributesA(LPCSTR
,DWORD
);
1703 BOOL WINAPI
SetFileAttributesW(LPCWSTR
,DWORD
);
1704 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1705 UINT WINAPI
SetHandleCount(UINT
);
1706 #define SetSwapAreaSize(w) (w)
1707 BOOL WINAPI
SetVolumeLabelA(LPCSTR
,LPCSTR
);
1708 BOOL WINAPI
SetVolumeLabelW(LPCWSTR
,LPCWSTR
);
1709 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1710 DWORD WINAPI
SizeofResource(HMODULE
,HRSRC
);
1711 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1712 BOOL WINAPI
WritePrivateProfileSectionA(LPCSTR
,LPCSTR
,LPCSTR
);
1713 BOOL WINAPI
WritePrivateProfileSectionW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1714 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1715 BOOL WINAPI
WritePrivateProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
1716 BOOL WINAPI
WritePrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
1717 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1718 BOOL WINAPI
WriteProfileSectionA(LPCSTR
,LPCSTR
);
1719 BOOL WINAPI
WriteProfileSectionW(LPCWSTR
,LPCWSTR
);
1720 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1721 BOOL WINAPI
WritePrivateProfileStructA(LPCSTR
,LPCSTR
,LPVOID
,UINT
,LPCSTR
);
1722 BOOL WINAPI
WritePrivateProfileStructW(LPCWSTR
,LPCWSTR
,LPVOID
,UINT
,LPCWSTR
);
1723 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1724 BOOL WINAPI
WriteProcessMemory(HANDLE
, LPVOID
, LPVOID
, DWORD
, LPDWORD
);
1725 BOOL WINAPI
WriteProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
);
1726 BOOL WINAPI
WriteProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1727 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1729 LPSTR WINAPI
lstrcatA(LPSTR
,LPCSTR
);
1730 LPWSTR WINAPI
lstrcatW(LPWSTR
,LPCWSTR
);
1731 #define lstrcat WINELIB_NAME_AW(lstrcat)
1732 LPSTR WINAPI
lstrcpyA(LPSTR
,LPCSTR
);
1733 LPWSTR WINAPI
lstrcpyW(LPWSTR
,LPCWSTR
);
1734 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1735 LPSTR WINAPI
lstrcpynA(LPSTR
,LPCSTR
,INT
);
1736 LPWSTR WINAPI
lstrcpynW(LPWSTR
,LPCWSTR
,INT
);
1737 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1738 INT WINAPI
lstrlenA(LPCSTR
);
1739 INT WINAPI
lstrlenW(LPCWSTR
);
1740 #define lstrlen WINELIB_NAME_AW(lstrlen)
1741 HINSTANCE WINAPI
WinExec(LPCSTR
,UINT
);
1742 LONG WINAPI
_hread(HFILE
,LPVOID
,LONG
);
1743 LONG WINAPI
_hwrite(HFILE
,LPCSTR
,LONG
);
1744 HFILE WINAPI
_lcreat(LPCSTR
,INT
);
1745 HFILE WINAPI
_lclose(HFILE
);
1746 LONG WINAPI
_llseek(HFILE
,LONG
,INT
);
1747 HFILE WINAPI
_lopen(LPCSTR
,INT
);
1748 UINT WINAPI
_lread(HFILE
,LPVOID
,UINT
);
1749 UINT WINAPI
_lwrite(HFILE
,LPCSTR
,UINT
);
1750 SEGPTR WINAPI
WIN16_GlobalLock16(HGLOBAL16
);
1751 INT WINAPI
lstrcmpA(LPCSTR
,LPCSTR
);
1752 INT WINAPI
lstrcmpW(LPCWSTR
,LPCWSTR
);
1753 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1754 INT WINAPI
lstrcmpiA(LPCSTR
,LPCSTR
);
1755 INT WINAPI
lstrcmpiW(LPCWSTR
,LPCWSTR
);
1756 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1758 /* compatibility macros */
1759 #define FillMemory RtlFillMemory
1760 #define MoveMemory RtlMoveMemory
1761 #define ZeroMemory RtlZeroMemory
1762 #define CopyMemory RtlCopyMemory
1764 /* a few optimizations for i386/gcc */
1766 #if defined(__i386__) && defined(__GNUC__)
1768 extern inline PVOID WINAPI
InterlockedCompareExchange( PVOID
*dest
, PVOID xchg
, PVOID compare
);
1769 extern inline PVOID WINAPI
InterlockedCompareExchange( PVOID
*dest
, PVOID xchg
, PVOID compare
)
1772 __asm__
__volatile__( "lock; cmpxchgl %2,(%1)"
1773 : "=a" (ret
) : "r" (dest
), "r" (xchg
), "0" (compare
) : "memory" );
1777 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
);
1778 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
)
1781 __asm__
__volatile__( "lock; xchgl %0,(%1)"
1782 : "=r" (ret
) :"r" (dest
), "0" (val
) : "memory" );
1786 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
);
1787 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
)
1790 __asm__
__volatile__( "lock; xaddl %0,(%1)"
1791 : "=r" (ret
) : "r" (dest
), "0" (incr
) : "memory" );
1795 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
);
1796 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
)
1798 return InterlockedExchangeAdd( dest
, 1 ) + 1;
1801 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
);
1802 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
)
1804 return InterlockedExchangeAdd( dest
, -1 ) - 1;
1807 extern inline DWORD WINAPI
GetLastError(void);
1808 extern inline DWORD WINAPI
GetLastError(void)
1811 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x60,%0" : "=r" (ret
) );
1815 extern inline DWORD WINAPI
GetCurrentThreadId(void);
1816 extern inline DWORD WINAPI
GetCurrentThreadId(void)
1819 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x24,%0" : "=r" (ret
) );
1823 extern inline void WINAPI
SetLastError( DWORD err
);
1824 extern inline void WINAPI
SetLastError( DWORD err
)
1826 __asm__
__volatile__( ".byte 0x64\n\tmovl %0,0x60" : : "r" (err
) : "memory" );
1829 #else /* __i386__ && __GNUC__ */
1830 DWORD WINAPI
GetCurrentThreadId(void);
1831 DWORD WINAPI
GetLastError(void);
1832 PVOID WINAPI
InterlockedCompareExchange(PVOID
*,PVOID
,PVOID
);
1833 LONG WINAPI
InterlockedDecrement(PLONG
);
1834 LONG WINAPI
InterlockedExchange(PLONG
,LONG
);
1835 LONG WINAPI
InterlockedExchangeAdd(PLONG
,LONG
);
1836 LONG WINAPI
InterlockedIncrement(PLONG
);
1837 VOID WINAPI
SetLastError(DWORD
);
1838 #endif /* __i386__ && __GNUC__ */
1845 #endif /* __WINE_WINBASE_H */