1 #ifndef __WINE_WINBASE_H
2 #define __WINE_WINBASE_H
6 #include "wine/winestring.h"
14 /* Windows Exit Procedure flag values */
15 #define WEP_FREE_DLL 0
16 #define WEP_SYSTEM_EXIT 1
18 typedef DWORD (CALLBACK
*LPTHREAD_START_ROUTINE
)(LPVOID
);
20 #define EXCEPTION_DEBUG_EVENT 1
21 #define CREATE_THREAD_DEBUG_EVENT 2
22 #define CREATE_PROCESS_DEBUG_EVENT 3
23 #define EXIT_THREAD_DEBUG_EVENT 4
24 #define EXIT_PROCESS_DEBUG_EVENT 5
25 #define LOAD_DLL_DEBUG_EVENT 6
26 #define UNLOAD_DLL_DEBUG_EVENT 7
27 #define OUTPUT_DEBUG_STRING_EVENT 8
30 typedef struct _EXCEPTION_DEBUG_INFO
{
31 EXCEPTION_RECORD ExceptionRecord
;
33 } EXCEPTION_DEBUG_INFO
;
35 typedef struct _CREATE_THREAD_DEBUG_INFO
{
37 LPVOID lpThreadLocalBase
;
38 LPTHREAD_START_ROUTINE lpStartAddress
;
39 } CREATE_THREAD_DEBUG_INFO
;
41 typedef struct _CREATE_PROCESS_DEBUG_INFO
{
46 DWORD dwDebugInfoFileOffset
;
48 LPVOID lpThreadLocalBase
;
49 LPTHREAD_START_ROUTINE lpStartAddress
;
52 } CREATE_PROCESS_DEBUG_INFO
;
54 typedef struct _EXIT_THREAD_DEBUG_INFO
{
56 } EXIT_THREAD_DEBUG_INFO
;
58 typedef struct _EXIT_PROCESS_DEBUG_INFO
{
60 } EXIT_PROCESS_DEBUG_INFO
;
62 typedef struct _LOAD_DLL_DEBUG_INFO
{
65 DWORD dwDebugInfoFileOffset
;
69 } LOAD_DLL_DEBUG_INFO
;
71 typedef struct _UNLOAD_DLL_DEBUG_INFO
{
73 } UNLOAD_DLL_DEBUG_INFO
;
75 typedef struct _OUTPUT_DEBUG_STRING_INFO
{
76 LPSTR lpDebugStringData
;
78 WORD nDebugStringLength
;
79 } OUTPUT_DEBUG_STRING_INFO
;
81 typedef struct _RIP_INFO
{
86 typedef struct _DEBUG_EVENT
{
87 DWORD dwDebugEventCode
;
91 EXCEPTION_DEBUG_INFO Exception
;
92 CREATE_THREAD_DEBUG_INFO CreateThread
;
93 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo
;
94 EXIT_THREAD_DEBUG_INFO ExitThread
;
95 EXIT_PROCESS_DEBUG_INFO ExitProcess
;
96 LOAD_DLL_DEBUG_INFO LoadDll
;
97 UNLOAD_DLL_DEBUG_INFO UnloadDll
;
98 OUTPUT_DEBUG_STRING_INFO DebugString
;
101 } DEBUG_EVENT
, *LPDEBUG_EVENT
;
103 #define OFS_MAXPATHNAME 128
110 BYTE szPathName
[OFS_MAXPATHNAME
];
111 } OFSTRUCT
, *LPOFSTRUCT
;
113 #define OF_READ 0x0000
114 #define OF_WRITE 0x0001
115 #define OF_READWRITE 0x0002
116 #define OF_SHARE_COMPAT 0x0000
117 #define OF_SHARE_EXCLUSIVE 0x0010
118 #define OF_SHARE_DENY_WRITE 0x0020
119 #define OF_SHARE_DENY_READ 0x0030
120 #define OF_SHARE_DENY_NONE 0x0040
121 #define OF_PARSE 0x0100
122 #define OF_DELETE 0x0200
123 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
124 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
125 #define OF_CANCEL 0x0800
126 #define OF_CREATE 0x1000
127 #define OF_PROMPT 0x2000
128 #define OF_EXIST 0x4000
129 #define OF_REOPEN 0x8000
131 /* SetErrorMode values */
132 #define SEM_FAILCRITICALERRORS 0x0001
133 #define SEM_NOGPFAULTERRORBOX 0x0002
134 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
135 #define SEM_NOOPENFILEERRORBOX 0x8000
137 /* CopyFileEx flags */
138 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
139 #define COPY_FILE_RESTARTABLE 0x00000002
140 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
142 /* GetTempFileName() Flags */
143 #define TF_FORCEDRIVE 0x80
145 #define DRIVE_CANNOTDETERMINE 0
146 #define DRIVE_DOESNOTEXIST 1
147 #define DRIVE_REMOVABLE 2
148 #define DRIVE_FIXED 3
149 #define DRIVE_REMOTE 4
150 /* Win32 additions */
151 #define DRIVE_CDROM 5
152 #define DRIVE_RAMDISK 6
154 /* The security attributes structure */
155 typedef struct _SECURITY_ATTRIBUTES
158 LPVOID lpSecurityDescriptor
;
160 } SECURITY_ATTRIBUTES
, *PSECURITY_ATTRIBUTES
, *LPSECURITY_ATTRIBUTES
;
164 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
168 DWORD dwHighDateTime
;
169 } FILETIME
, *LPFILETIME
;
170 #endif /* _FILETIME_ */
172 /* Find* structures */
175 DWORD dwFileAttributes
;
176 FILETIME ftCreationTime
;
177 FILETIME ftLastAccessTime
;
178 FILETIME ftLastWriteTime
;
184 CHAR cAlternateFileName
[14];
185 } WIN32_FIND_DATAA
, *LPWIN32_FIND_DATAA
;
189 DWORD dwFileAttributes
;
190 FILETIME ftCreationTime
;
191 FILETIME ftLastAccessTime
;
192 FILETIME ftLastWriteTime
;
197 WCHAR cFileName
[260];
198 WCHAR cAlternateFileName
[14];
199 } WIN32_FIND_DATAW
, *LPWIN32_FIND_DATAW
;
201 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA
)
202 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA
)
217 DWORD dwCommittedSize
;
218 DWORD dwUnCommittedSize
;
223 } PROCESS_HEAP_ENTRY
, *LPPROCESS_HEAP_ENTRY
;
225 #define PROCESS_HEAP_REGION 0x0001
226 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
227 #define PROCESS_HEAP_ENTRY_BUSY 0x0004
228 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
229 #define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
231 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
232 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
234 #define TLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
238 #define CBR_110 0xFF10
239 #define CBR_300 0xFF11
240 #define CBR_600 0xFF12
241 #define CBR_1200 0xFF13
242 #define CBR_2400 0xFF14
243 #define CBR_4800 0xFF15
244 #define CBR_9600 0xFF16
245 #define CBR_14400 0xFF17
246 #define CBR_19200 0xFF18
247 #define CBR_38400 0xFF1B
248 #define CBR_56000 0xFF1F
249 #define CBR_128000 0xFF23
250 #define CBR_256000 0xFF27
256 #define SPACEPARITY 4
258 #define ONE5STOPBITS 1
259 #define TWOSTOPBITS 2
262 #define INFINITE16 0xFFFF
263 #define INFINITE 0xFFFFFFFF
265 #define CE_RXOVER 0x0001
266 #define CE_OVERRUN 0x0002
267 #define CE_RXPARITY 0x0004
268 #define CE_FRAME 0x0008
269 #define CE_BREAK 0x0010
270 #define CE_CTSTO 0x0020
271 #define CE_DSRTO 0x0040
272 #define CE_RLSDTO 0x0080
273 #define CE_TXFULL 0x0100
274 #define CE_PTO 0x0200
275 #define CE_IOE 0x0400
276 #define CE_DNS 0x0800
277 #define CE_OOP 0x1000
278 #define CE_MODE 0x8000
284 #define IE_DEFAULT -5
285 #define IE_HARDWARE -10
286 #define IE_BYTESIZE -11
287 #define IE_BAUDRATE -12
289 #define EV_RXCHAR 0x0001
290 #define EV_RXFLAG 0x0002
291 #define EV_TXEMPTY 0x0004
292 #define EV_CTS 0x0008
293 #define EV_DSR 0x0010
294 #define EV_RLSD 0x0020
295 #define EV_BREAK 0x0040
296 #define EV_ERR 0x0080
297 #define EV_RING 0x0100
298 #define EV_PERR 0x0200
299 #define EV_CTSS 0x0400
300 #define EV_DSRS 0x0800
301 #define EV_RLSDS 0x1000
302 #define EV_RINGTE 0x2000
303 #define EV_RingTe EV_RINGTE
315 #define GETBASEIRQ 10
317 /* Purge functions for Comm Port */
318 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
320 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
322 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
323 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
326 /* Modem Status Flags */
327 #define MS_CTS_ON ((DWORD)0x0010)
328 #define MS_DSR_ON ((DWORD)0x0020)
329 #define MS_RING_ON ((DWORD)0x0040)
330 #define MS_RLSD_ON ((DWORD)0x0080)
332 #define RTS_CONTROL_DISABLE 0
333 #define RTS_CONTROL_ENABLE 1
334 #define RTS_CONTROL_HANDSHAKE 2
335 #define RTS_CONTROL_TOGGLE 3
337 #define DTR_CONTROL_DISABLE 0
338 #define DTR_CONTROL_ENABLE 1
339 #define DTR_CONTROL_HANDSHAKE 2
341 #define CSTF_CTSHOLD 0x01
342 #define CSTF_DSRHOLD 0x02
343 #define CSTF_RLSDHOLD 0x04
344 #define CSTF_XOFFHOLD 0x08
345 #define CSTF_XOFFSENT 0x10
346 #define CSTF_EOF 0x20
347 #define CSTF_TXIM 0x40
349 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
350 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
351 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
353 /* Predefined resource types */
354 #define RT_CURSORA MAKEINTRESOURCEA(1)
355 #define RT_CURSORW MAKEINTRESOURCEW(1)
356 #define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
357 #define RT_BITMAPA MAKEINTRESOURCEA(2)
358 #define RT_BITMAPW MAKEINTRESOURCEW(2)
359 #define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
360 #define RT_ICONA MAKEINTRESOURCEA(3)
361 #define RT_ICONW MAKEINTRESOURCEW(3)
362 #define RT_ICON WINELIB_NAME_AW(RT_ICON)
363 #define RT_MENUA MAKEINTRESOURCEA(4)
364 #define RT_MENUW MAKEINTRESOURCEW(4)
365 #define RT_MENU WINELIB_NAME_AW(RT_MENU)
366 #define RT_DIALOGA MAKEINTRESOURCEA(5)
367 #define RT_DIALOGW MAKEINTRESOURCEW(5)
368 #define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
369 #define RT_STRINGA MAKEINTRESOURCEA(6)
370 #define RT_STRINGW MAKEINTRESOURCEW(6)
371 #define RT_STRING WINELIB_NAME_AW(RT_STRING)
372 #define RT_FONTDIRA MAKEINTRESOURCEA(7)
373 #define RT_FONTDIRW MAKEINTRESOURCEW(7)
374 #define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
375 #define RT_FONTA MAKEINTRESOURCEA(8)
376 #define RT_FONTW MAKEINTRESOURCEW(8)
377 #define RT_FONT WINELIB_NAME_AW(RT_FONT)
378 #define RT_ACCELERATORA MAKEINTRESOURCEA(9)
379 #define RT_ACCELERATORW MAKEINTRESOURCEW(9)
380 #define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
381 #define RT_RCDATAA MAKEINTRESOURCEA(10)
382 #define RT_RCDATAW MAKEINTRESOURCEW(10)
383 #define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
384 #define RT_MESSAGELISTA MAKEINTRESOURCEA(11)
385 #define RT_MESSAGELISTW MAKEINTRESOURCEW(11)
386 #define RT_MESSAGELIST WINELIB_NAME_AW(RT_MESSAGELIST)
387 #define RT_GROUP_CURSORA MAKEINTRESOURCEA(12)
388 #define RT_GROUP_CURSORW MAKEINTRESOURCEW(12)
389 #define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
390 #define RT_GROUP_ICONA MAKEINTRESOURCEA(14)
391 #define RT_GROUP_ICONW MAKEINTRESOURCEW(14)
392 #define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
396 #define LMEM_MOVEABLE 0x0002
397 #define LMEM_NOCOMPACT 0x0010
398 #define LMEM_NODISCARD 0x0020
399 #define LMEM_ZEROINIT 0x0040
400 #define LMEM_MODIFY 0x0080
401 #define LMEM_DISCARDABLE 0x0F00
402 #define LMEM_DISCARDED 0x4000
403 #define LMEM_LOCKCOUNT 0x00FF
405 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
407 #define GMEM_FIXED 0x0000
408 #define GMEM_MOVEABLE 0x0002
409 #define GMEM_NOCOMPACT 0x0010
410 #define GMEM_NODISCARD 0x0020
411 #define GMEM_ZEROINIT 0x0040
412 #define GMEM_MODIFY 0x0080
413 #define GMEM_DISCARDABLE 0x0100
414 #define GMEM_NOT_BANKED 0x1000
415 #define GMEM_SHARE 0x2000
416 #define GMEM_DDESHARE 0x2000
417 #define GMEM_NOTIFY 0x4000
418 #define GMEM_LOWER GMEM_NOT_BANKED
419 #define GMEM_DISCARDED 0x4000
420 #define GMEM_LOCKCOUNT 0x00ff
421 #define GMEM_INVALID_HANDLE 0x8000
423 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
424 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
427 typedef struct tagMEMORYSTATUS
433 DWORD dwTotalPageFile
;
434 DWORD dwAvailPageFile
;
435 DWORD dwTotalVirtual
;
436 DWORD dwAvailVirtual
;
437 } MEMORYSTATUS
, *LPMEMORYSTATUS
;
442 /* LogParamError and LogError values */
444 /* Error modifier bits */
445 #define ERR_WARNING 0x8000
446 #define ERR_PARAM 0x4000
448 #define ERR_SIZE_MASK 0x3000
449 #define ERR_BYTE 0x1000
450 #define ERR_WORD 0x2000
451 #define ERR_DWORD 0x3000
453 /* LogParamError() values */
455 /* Generic parameter values */
456 #define ERR_BAD_VALUE 0x6001
457 #define ERR_BAD_FLAGS 0x6002
458 #define ERR_BAD_INDEX 0x6003
459 #define ERR_BAD_DVALUE 0x7004
460 #define ERR_BAD_DFLAGS 0x7005
461 #define ERR_BAD_DINDEX 0x7006
462 #define ERR_BAD_PTR 0x7007
463 #define ERR_BAD_FUNC_PTR 0x7008
464 #define ERR_BAD_SELECTOR 0x6009
465 #define ERR_BAD_STRING_PTR 0x700a
466 #define ERR_BAD_HANDLE 0x600b
468 /* KERNEL parameter errors */
469 #define ERR_BAD_HINSTANCE 0x6020
470 #define ERR_BAD_HMODULE 0x6021
471 #define ERR_BAD_GLOBAL_HANDLE 0x6022
472 #define ERR_BAD_LOCAL_HANDLE 0x6023
473 #define ERR_BAD_ATOM 0x6024
474 #define ERR_BAD_HFILE 0x6025
476 /* USER parameter errors */
477 #define ERR_BAD_HWND 0x6040
478 #define ERR_BAD_HMENU 0x6041
479 #define ERR_BAD_HCURSOR 0x6042
480 #define ERR_BAD_HICON 0x6043
481 #define ERR_BAD_HDWP 0x6044
482 #define ERR_BAD_CID 0x6045
483 #define ERR_BAD_HDRVR 0x6046
485 /* GDI parameter errors */
486 #define ERR_BAD_COORDS 0x7060
487 #define ERR_BAD_GDI_OBJECT 0x6061
488 #define ERR_BAD_HDC 0x6062
489 #define ERR_BAD_HPEN 0x6063
490 #define ERR_BAD_HFONT 0x6064
491 #define ERR_BAD_HBRUSH 0x6065
492 #define ERR_BAD_HBITMAP 0x6066
493 #define ERR_BAD_HRGN 0x6067
494 #define ERR_BAD_HPALETTE 0x6068
495 #define ERR_BAD_HMETAFILE 0x6069
498 /* LogError() values */
501 #define ERR_GALLOC 0x0001
502 #define ERR_GREALLOC 0x0002
503 #define ERR_GLOCK 0x0003
504 #define ERR_LALLOC 0x0004
505 #define ERR_LREALLOC 0x0005
506 #define ERR_LLOCK 0x0006
507 #define ERR_ALLOCRES 0x0007
508 #define ERR_LOCKRES 0x0008
509 #define ERR_LOADMODULE 0x0009
512 #define ERR_CREATEDLG 0x0040
513 #define ERR_CREATEDLG2 0x0041
514 #define ERR_REGISTERCLASS 0x0042
515 #define ERR_DCBUSY 0x0043
516 #define ERR_CREATEWND 0x0044
517 #define ERR_STRUCEXTRA 0x0045
518 #define ERR_LOADSTR 0x0046
519 #define ERR_LOADMENU 0x0047
520 #define ERR_NESTEDBEGINPAINT 0x0048
521 #define ERR_BADINDEX 0x0049
522 #define ERR_CREATEMENU 0x004a
525 #define ERR_CREATEDC 0x0080
526 #define ERR_CREATEMETA 0x0081
527 #define ERR_DELOBJSELECTED 0x0082
528 #define ERR_SELBITMAP 0x0083
532 /* Debugging support (DEBUG SYSTEM ONLY) */
536 DWORD dwOptions WINE_PACKED
;
537 DWORD dwFilter WINE_PACKED
;
538 CHAR achAllocModule
[8] WINE_PACKED
;
539 DWORD dwAllocBreak WINE_PACKED
;
540 DWORD dwAllocCount WINE_PACKED
;
541 } WINDEBUGINFO
, *LPWINDEBUGINFO
;
543 /* WINDEBUGINFO flags values */
544 #define WDI_OPTIONS 0x0001
545 #define WDI_FILTER 0x0002
546 #define WDI_ALLOCBREAK 0x0004
548 /* dwOptions values */
549 #define DBO_CHECKHEAP 0x0001
550 #define DBO_BUFFERFILL 0x0004
551 #define DBO_DISABLEGPTRAPPING 0x0010
552 #define DBO_CHECKFREE 0x0020
554 #define DBO_SILENT 0x8000
556 #define DBO_TRACEBREAK 0x2000
557 #define DBO_WARNINGBREAK 0x1000
558 #define DBO_NOERRORBREAK 0x0800
559 #define DBO_NOFATALBREAK 0x0400
560 #define DBO_INT3BREAK 0x0100
562 /* DebugOutput flags values */
563 #define DBF_TRACE 0x0000
564 #define DBF_WARNING 0x4000
565 #define DBF_ERROR 0x8000
566 #define DBF_FATAL 0xc000
568 /* dwFilter values */
569 #define DBF_KERNEL 0x1000
570 #define DBF_KRN_MEMMAN 0x0001
571 #define DBF_KRN_LOADMODULE 0x0002
572 #define DBF_KRN_SEGMENTLOAD 0x0004
573 #define DBF_USER 0x0800
574 #define DBF_GDI 0x0400
575 #define DBF_MMSYSTEM 0x0040
576 #define DBF_PENWIN 0x0020
577 #define DBF_APPLICATION 0x0008
578 #define DBF_DRIVER 0x0010
580 #endif /* NOLOGERROR */
591 } SYSTEMTIME
, *LPSYSTEMTIME
;
593 /* The 'overlapped' data structure used by async I/O functions.
601 } OVERLAPPED
, *LPOVERLAPPED
;
603 /* Process startup information.
606 /* STARTUPINFO.dwFlags */
607 #define STARTF_USESHOWWINDOW 0x00000001
608 #define STARTF_USESIZE 0x00000002
609 #define STARTF_USEPOSITION 0x00000004
610 #define STARTF_USECOUNTCHARS 0x00000008
611 #define STARTF_USEFILLATTRIBUTE 0x00000010
612 #define STARTF_RUNFULLSCREEN 0x00000020
613 #define STARTF_FORCEONFEEDBACK 0x00000040
614 #define STARTF_FORCEOFFFEEDBACK 0x00000080
615 #define STARTF_USESTDHANDLES 0x00000100
616 #define STARTF_USEHOTKEY 0x00000200
619 DWORD cb
; /* 00: size of struct */
620 LPSTR lpReserved
; /* 04: */
621 LPSTR lpDesktop
; /* 08: */
622 LPSTR lpTitle
; /* 0c: */
625 DWORD dwXSize
; /* 18: */
626 DWORD dwYSize
; /* 1c: */
627 DWORD dwXCountChars
; /* 20: */
628 DWORD dwYCountChars
; /* 24: */
629 DWORD dwFillAttribute
; /* 28: */
630 DWORD dwFlags
; /* 2c: */
631 WORD wShowWindow
; /* 30: */
632 WORD cbReserved2
; /* 32: */
633 BYTE
*lpReserved2
; /* 34: */
634 HANDLE hStdInput
; /* 38: */
635 HANDLE hStdOutput
; /* 3c: */
636 HANDLE hStdError
; /* 40: */
637 } STARTUPINFOA
, *LPSTARTUPINFOA
;
650 DWORD dwFillAttribute
;
658 } STARTUPINFOW
, *LPSTARTUPINFOW
;
660 DECL_WINELIB_TYPE_AW(STARTUPINFO
)
661 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO
)
668 } PROCESS_INFORMATION
,*LPPROCESS_INFORMATION
;
672 WCHAR StandardName
[32];
673 SYSTEMTIME StandardDate
;
675 WCHAR DaylightName
[32];
676 SYSTEMTIME DaylightDate
;
678 } TIME_ZONE_INFORMATION
, *LPTIME_ZONE_INFORMATION
;
680 #define TIME_ZONE_ID_UNKNOWN 0
681 #define TIME_ZONE_ID_STANDARD 1
682 #define TIME_ZONE_ID_DAYLIGHT 2
684 /* CreateProcess: dwCreationFlag values
686 #define DEBUG_PROCESS 0x00000001
687 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
688 #define CREATE_SUSPENDED 0x00000004
689 #define DETACHED_PROCESS 0x00000008
690 #define CREATE_NEW_CONSOLE 0x00000010
691 #define NORMAL_PRIORITY_CLASS 0x00000020
692 #define IDLE_PRIORITY_CLASS 0x00000040
693 #define HIGH_PRIORITY_CLASS 0x00000080
694 #define REALTIME_PRIORITY_CLASS 0x00000100
695 #define CREATE_NEW_PROCESS_GROUP 0x00000200
696 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
697 #define CREATE_SEPARATE_WOW_VDM 0x00000800
698 #define CREATE_SHARED_WOW_VDM 0x00001000
699 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
700 #define CREATE_NO_WINDOW 0x08000000
701 #define PROFILE_USER 0x10000000
702 #define PROFILE_KERNEL 0x20000000
703 #define PROFILE_SERVER 0x40000000
706 /* File object type definitions
708 #define FILE_TYPE_UNKNOWN 0
709 #define FILE_TYPE_DISK 1
710 #define FILE_TYPE_CHAR 2
711 #define FILE_TYPE_PIPE 3
712 #define FILE_TYPE_REMOTE 32768
714 /* File creation flags
716 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
717 #define FILE_FLAG_OVERLAPPED 0x40000000L
718 #define FILE_FLAG_NO_BUFFERING 0x20000000L
719 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
720 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
721 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
722 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
723 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
725 #define CREATE_ALWAYS 2
726 #define OPEN_EXISTING 3
727 #define OPEN_ALWAYS 4
728 #define TRUNCATE_EXISTING 5
730 /* Standard handle identifiers
732 #define STD_INPUT_HANDLE ((DWORD) -10)
733 #define STD_OUTPUT_HANDLE ((DWORD) -11)
734 #define STD_ERROR_HANDLE ((DWORD) -12)
738 int dwFileAttributes
;
739 FILETIME ftCreationTime
;
740 FILETIME ftLastAccessTime
;
741 FILETIME ftLastWriteTime
;
742 int dwVolumeSerialNumber
;
748 } BY_HANDLE_FILE_INFORMATION
;
751 typedef struct _SYSTEM_POWER_STATUS
755 BYTE BatteryLifePercent
;
757 DWORD BatteryLifeTime
;
758 DWORD BatteryFullLifeTime
;
759 } SYSTEM_POWER_STATUS
, *LPSYSTEM_POWER_STATUS
;
761 typedef struct _MEMORY_BASIC_INFORMATION
764 LPVOID AllocationBase
;
765 DWORD AllocationProtect
;
770 } MEMORY_BASIC_INFORMATION
,*LPMEMORY_BASIC_INFORMATION
;
773 typedef BOOL (CALLBACK
*CODEPAGE_ENUMPROCA
)(LPSTR
);
774 typedef BOOL (CALLBACK
*CODEPAGE_ENUMPROCW
)(LPWSTR
);
775 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC
)
776 typedef BOOL (CALLBACK
*LOCALE_ENUMPROCA
)(LPSTR
);
777 typedef BOOL (CALLBACK
*LOCALE_ENUMPROCW
)(LPWSTR
);
778 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC
)
780 typedef struct tagSYSTEM_INFO
783 DWORD dwOemId
; /* Obsolete field - do not use */
785 WORD wProcessorArchitecture
;
790 LPVOID lpMinimumApplicationAddress
;
791 LPVOID lpMaximumApplicationAddress
;
792 DWORD dwActiveProcessorMask
;
793 DWORD dwNumberOfProcessors
;
794 DWORD dwProcessorType
;
795 DWORD dwAllocationGranularity
;
796 WORD wProcessorLevel
;
797 WORD wProcessorRevision
;
798 } SYSTEM_INFO
, *LPSYSTEM_INFO
;
800 /* {G,S}etPriorityClass */
801 #define NORMAL_PRIORITY_CLASS 0x00000020
802 #define IDLE_PRIORITY_CLASS 0x00000040
803 #define HIGH_PRIORITY_CLASS 0x00000080
804 #define REALTIME_PRIORITY_CLASS 0x00000100
806 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCA
)(HMODULE
,LPSTR
,LONG
);
807 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCW
)(HMODULE
,LPWSTR
,LONG
);
808 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCA
)(HMODULE
,LPCSTR
,LPSTR
,LONG
);
809 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCW
)(HMODULE
,LPCWSTR
,LPWSTR
,LONG
);
810 typedef BOOL (CALLBACK
*ENUMRESLANGPROCA
)(HMODULE
,LPCSTR
,LPCSTR
,WORD
,LONG
);
811 typedef BOOL (CALLBACK
*ENUMRESLANGPROCW
)(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
,LONG
);
813 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC
)
814 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC
)
815 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC
)
817 /* flags that can be passed to LoadLibraryEx */
818 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
819 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
820 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
822 /* ifdef _x86_ ... */
823 typedef struct _LDT_ENTRY
{
829 BYTE Flags1
;/*Declare as bytes to avoid alignment problems */
834 unsigned BaseMid
: 8;
838 unsigned LimitHi
: 4;
840 unsigned Reserved_0
: 1;
841 unsigned Default_Big
: 1;
842 unsigned Granularity
: 1;
846 } LDT_ENTRY
, *LPLDT_ENTRY
;
849 typedef enum _GET_FILEEX_INFO_LEVELS
{
850 GetFileExInfoStandard
851 } GET_FILEEX_INFO_LEVELS
;
853 typedef struct _WIN32_FILE_ATTRIBUTES_DATA
{
854 DWORD dwFileAttributes
;
855 FILETIME ftCreationTime
;
856 FILETIME ftLastAccessTime
;
857 FILETIME ftLastWriteTime
;
860 } WIN32_FILE_ATTRIBUTE_DATA
, *LPWIN32_FILE_ATTRIBUTE_DATA
;
862 typedef struct _DllVersionInfo
{
864 DWORD dwMajorVersion
;
865 DWORD dwMinorVersion
;
871 * This one seems to be a Win32 only definition. It also is defined with
872 * WINAPI instead of CALLBACK in the windows headers.
874 typedef DWORD (WINAPI
*LPPROGRESS_ROUTINE
)(LARGE_INTEGER
, LARGE_INTEGER
, LARGE_INTEGER
,
875 LARGE_INTEGER
, DWORD
, DWORD
, HANDLE
,
879 #define WAIT_FAILED 0xffffffff
880 #define WAIT_OBJECT_0 0
881 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
882 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
883 #define WAIT_IO_COMPLETION STATUS_USER_APC
884 #define WAIT_TIMEOUT STATUS_TIMEOUT
885 #define STILL_ACTIVE STATUS_PENDING
887 #define PAGE_NOACCESS 0x01
888 #define PAGE_READONLY 0x02
889 #define PAGE_READWRITE 0x04
890 #define PAGE_WRITECOPY 0x08
891 #define PAGE_EXECUTE 0x10
892 #define PAGE_EXECUTE_READ 0x20
893 #define PAGE_EXECUTE_READWRITE 0x40
894 #define PAGE_EXECUTE_WRITECOPY 0x80
895 #define PAGE_GUARD 0x100
896 #define PAGE_NOCACHE 0x200
898 #define MEM_COMMIT 0x00001000
899 #define MEM_RESERVE 0x00002000
900 #define MEM_DECOMMIT 0x00004000
901 #define MEM_RELEASE 0x00008000
902 #define MEM_FREE 0x00010000
903 #define MEM_PRIVATE 0x00020000
904 #define MEM_MAPPED 0x00040000
905 #define MEM_TOP_DOWN 0x00100000
907 #define MEM_SYSTEM 0x80000000
910 #define SEC_FILE 0x00800000
911 #define SEC_IMAGE 0x01000000
912 #define SEC_RESERVE 0x04000000
913 #define SEC_COMMIT 0x08000000
914 #define SEC_NOCACHE 0x10000000
917 #define FILE_CURRENT 1
920 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001
921 #define FILE_CASE_PRESERVED_NAMES 0x00000002
922 #define FILE_UNICODE_ON_DISK 0x00000004
923 #define FILE_PERSISTENT_ACLS 0x00000008
925 #define FILE_MAP_COPY 0x00000001
926 #define FILE_MAP_WRITE 0x00000002
927 #define FILE_MAP_READ 0x00000004
928 #define FILE_MAP_ALL_ACCESS 0x000f001f
930 #define MOVEFILE_REPLACE_EXISTING 0x00000001
931 #define MOVEFILE_COPY_ALLOWED 0x00000002
932 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
934 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
935 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
936 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
938 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
939 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
940 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
941 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
942 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
943 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
944 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
945 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
946 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
947 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
948 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
949 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
950 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
951 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
952 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
953 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
954 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
955 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
956 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
957 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
958 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
959 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
960 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
962 /* Wine extension; Windows doesn't have a name for this code */
963 #define EXCEPTION_CRITICAL_SECTION_WAIT 0xc0000194
965 #define DUPLICATE_CLOSE_SOURCE 0x00000001
966 #define DUPLICATE_SAME_ACCESS 0x00000002
968 #define HANDLE_FLAG_INHERIT 0x00000001
969 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
971 #define HINSTANCE_ERROR 32
973 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
974 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
975 #define THREAD_PRIORITY_NORMAL 0
976 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
977 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
978 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
979 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
980 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
982 /* Could this type be considered opaque? */
988 HANDLE LockSemaphore
;
993 #define CRITICAL_SECTION_INIT { 0, -1, 0, 0, 0, 0 }
997 DWORD dwOSVersionInfoSize
;
998 DWORD dwMajorVersion
;
999 DWORD dwMinorVersion
;
1000 DWORD dwBuildNumber
;
1002 CHAR szCSDVersion
[128];
1006 DWORD dwOSVersionInfoSize
;
1007 DWORD dwMajorVersion
;
1008 DWORD dwMinorVersion
;
1009 DWORD dwBuildNumber
;
1011 CHAR szCSDVersion
[128];
1015 DWORD dwOSVersionInfoSize
;
1016 DWORD dwMajorVersion
;
1017 DWORD dwMinorVersion
;
1018 DWORD dwBuildNumber
;
1020 WCHAR szCSDVersion
[128];
1023 DECL_WINELIB_TYPE_AW(OSVERSIONINFO
)
1025 #define VER_PLATFORM_WIN32s 0
1026 #define VER_PLATFORM_WIN32_WINDOWS 1
1027 #define VER_PLATFORM_WIN32_NT 2
1029 typedef struct tagCOMSTAT
1034 } COMSTAT
,*LPCOMSTAT
;
1036 typedef struct tagDCB
1040 unsigned fBinary
:1;
1041 unsigned fParity
:1;
1042 unsigned fOutxCtsFlow
:1;
1043 unsigned fOutxDsrFlow
:1;
1044 unsigned fDtrControl
:2;
1045 unsigned fDsrSensitivity
:1;
1046 unsigned fTXContinueOnXoff
:1;
1049 unsigned fErrorChar
:1;
1051 unsigned fRtsControl
:2;
1052 unsigned fAbortOnError
:1;
1053 unsigned fDummy2
:17;
1069 typedef struct tagCOMMTIMEOUTS
{
1070 DWORD ReadIntervalTimeout
;
1071 DWORD ReadTotalTimeoutMultiplier
;
1072 DWORD ReadTotalTimeoutConstant
;
1073 DWORD WriteTotalTimeoutMultiplier
;
1074 DWORD WriteTotalTimeoutConstant
;
1075 } COMMTIMEOUTS
,*LPCOMMTIMEOUTS
;
1077 #include "poppack.h"
1079 typedef void (CALLBACK
*PAPCFUNC
)(ULONG_PTR
);
1080 typedef void (CALLBACK
*PTIMERAPCROUTINE
)(LPVOID
,DWORD
,DWORD
);
1082 BOOL WINAPI
ClearCommError(INT
,LPDWORD
,LPCOMSTAT
);
1083 BOOL WINAPI
BuildCommDCBA(LPCSTR
,LPDCB
);
1084 BOOL WINAPI
BuildCommDCBW(LPCWSTR
,LPDCB
);
1085 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1086 BOOL WINAPI
BuildCommDCBAndTimeoutsA(LPCSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1087 BOOL WINAPI
BuildCommDCBAndTimeoutsW(LPCWSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1088 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1089 BOOL WINAPI
GetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1090 BOOL WINAPI
SetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1091 BOOL WINAPI
GetCommState(INT
,LPDCB
);
1092 BOOL WINAPI
SetCommState(INT
,LPDCB
);
1093 BOOL WINAPI
TransmitCommChar(INT
,CHAR
);
1094 BOOL WINAPI
SetupComm(HANDLE
, DWORD
, DWORD
);
1095 BOOL WINAPI
GetCommProperties(HANDLE
, LPDCB
*);
1097 /*DWORD WINAPI GetVersion( void );*/
1098 BOOL16 WINAPI
GetVersionEx16(OSVERSIONINFO16
*);
1099 BOOL WINAPI
GetVersionExA(OSVERSIONINFOA
*);
1100 BOOL WINAPI
GetVersionExW(OSVERSIONINFOW
*);
1101 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1103 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1105 void WINAPI
DeleteCriticalSection(CRITICAL_SECTION
*lpCrit
);
1106 void WINAPI
EnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1107 BOOL WINAPI
TryEnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1108 void WINAPI
InitializeCriticalSection(CRITICAL_SECTION
*lpCrit
);
1109 void WINAPI
LeaveCriticalSection(CRITICAL_SECTION
*lpCrit
);
1110 void WINAPI
MakeCriticalSectionGlobal(CRITICAL_SECTION
*lpCrit
);
1111 BOOL WINAPI
GetProcessWorkingSetSize(HANDLE
,LPDWORD
,LPDWORD
);
1112 DWORD WINAPI
QueueUserAPC(PAPCFUNC
,HANDLE
,ULONG_PTR
);
1113 void WINAPI
RaiseException(DWORD
,DWORD
,DWORD
,const LPDWORD
);
1114 BOOL WINAPI
SetProcessWorkingSetSize(HANDLE
,DWORD
,DWORD
);
1115 BOOL WINAPI
TerminateProcess(HANDLE
,DWORD
);
1116 BOOL WINAPI
TerminateThread(HANDLE
,DWORD
);
1117 BOOL WINAPI
GetExitCodeThread(HANDLE
,LPDWORD
);
1119 /* GetBinaryType return values.
1122 #define SCS_32BIT_BINARY 0
1123 #define SCS_DOS_BINARY 1
1124 #define SCS_WOW_BINARY 2
1125 #define SCS_PIF_BINARY 3
1126 #define SCS_POSIX_BINARY 4
1127 #define SCS_OS216_BINARY 5
1129 BOOL WINAPI
GetBinaryTypeA( LPCSTR lpApplicationName
, LPDWORD lpBinaryType
);
1130 BOOL WINAPI
GetBinaryTypeW( LPCWSTR lpApplicationName
, LPDWORD lpBinaryType
);
1131 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1133 BOOL16 WINAPI
GetWinDebugInfo16(LPWINDEBUGINFO
,UINT16
);
1134 BOOL16 WINAPI
SetWinDebugInfo16(LPWINDEBUGINFO
);
1135 /* Declarations for functions that exist only in Win32 */
1138 BOOL WINAPI
AttachThreadInput(DWORD
,DWORD
,BOOL
);
1139 BOOL WINAPI
AccessCheck(PSECURITY_DESCRIPTOR
,HANDLE
,DWORD
,PGENERIC_MAPPING
,PPRIVILEGE_SET
,LPDWORD
,LPDWORD
,LPBOOL
);
1140 BOOL WINAPI
AdjustTokenPrivileges(HANDLE
,BOOL
,LPVOID
,DWORD
,LPVOID
,LPDWORD
);
1141 BOOL WINAPI
AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY
,BYTE
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
*);
1142 BOOL WINAPI
AllocateLocallyUniqueId(PLUID
);
1143 BOOL WINAPI
AllocConsole(void);
1144 BOOL WINAPI
AreFileApisANSI(void);
1145 BOOL WINAPI
BackupEventLogA(HANDLE
,LPCSTR
);
1146 BOOL WINAPI
BackupEventLogW(HANDLE
,LPCWSTR
);
1147 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1148 BOOL WINAPI
Beep(DWORD
,DWORD
);
1149 BOOL WINAPI
CancelWaitableTimer(HANDLE
);
1150 BOOL WINAPI
ClearEventLogA(HANDLE
,LPCSTR
);
1151 BOOL WINAPI
ClearEventLogW(HANDLE
,LPCWSTR
);
1152 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1153 BOOL WINAPI
CloseEventLog(HANDLE
);
1154 BOOL WINAPI
CloseHandle(HANDLE
);
1155 BOOL WINAPI
ContinueDebugEvent(DWORD
,DWORD
,DWORD
);
1156 HANDLE WINAPI
ConvertToGlobalHandle(HANDLE hSrc
);
1157 BOOL WINAPI
CopyFileA(LPCSTR
,LPCSTR
,BOOL
);
1158 BOOL WINAPI
CopyFileW(LPCWSTR
,LPCWSTR
,BOOL
);
1159 #define CopyFile WINELIB_NAME_AW(CopyFile)
1160 BOOL WINAPI
CopyFileExA(LPCSTR
, LPCSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1161 BOOL WINAPI
CopyFileExW(LPCWSTR
, LPCWSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1162 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1163 BOOL WINAPI
CopySid(DWORD
,PSID
,PSID
);
1164 INT WINAPI
CompareFileTime(LPFILETIME
,LPFILETIME
);
1165 HANDLE WINAPI
CreateEventA(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCSTR
);
1166 HANDLE WINAPI
CreateEventW(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCWSTR
);
1167 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1168 HANDLE WINAPI
CreateFileA(LPCSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,
1169 DWORD
,DWORD
,HANDLE
);
1170 HANDLE WINAPI
CreateFileW(LPCWSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,
1171 DWORD
,DWORD
,HANDLE
);
1172 #define CreateFile WINELIB_NAME_AW(CreateFile)
1173 HANDLE WINAPI
CreateFileMappingA(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,
1174 DWORD
,DWORD
,LPCSTR
);
1175 HANDLE WINAPI
CreateFileMappingW(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,
1176 DWORD
,DWORD
,LPCWSTR
);
1177 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1178 HANDLE WINAPI
CreateMutexA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1179 HANDLE WINAPI
CreateMutexW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1180 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1181 BOOL WINAPI
CreatePipe(PHANDLE
,PHANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
);
1182 BOOL WINAPI
CreateProcessA(LPCSTR
,LPSTR
,LPSECURITY_ATTRIBUTES
,
1183 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCSTR
,
1184 LPSTARTUPINFOA
,LPPROCESS_INFORMATION
);
1185 BOOL WINAPI
CreateProcessW(LPCWSTR
,LPWSTR
,LPSECURITY_ATTRIBUTES
,
1186 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCWSTR
,
1187 LPSTARTUPINFOW
,LPPROCESS_INFORMATION
);
1188 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1189 HANDLE WINAPI
CreateSemaphoreA(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCSTR
);
1190 HANDLE WINAPI
CreateSemaphoreW(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCWSTR
);
1191 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1192 HANDLE WINAPI
CreateThread(LPSECURITY_ATTRIBUTES
,DWORD
,LPTHREAD_START_ROUTINE
,LPVOID
,DWORD
,LPDWORD
);
1193 HANDLE WINAPI
CreateWaitableTimerA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1194 HANDLE WINAPI
CreateWaitableTimerW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1195 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1196 BOOL WINAPI
DebugActiveProcess(DWORD
);
1197 void WINAPI
DebugBreak(void);
1198 BOOL WINAPI
DeregisterEventSource(HANDLE
);
1199 BOOL WINAPI
DisableThreadLibraryCalls(HMODULE
);
1200 BOOL WINAPI
DosDateTimeToFileTime(WORD
,WORD
,LPFILETIME
);
1201 BOOL WINAPI
DuplicateHandle(HANDLE
,HANDLE
,HANDLE
,HANDLE
*,DWORD
,BOOL
,DWORD
);
1202 BOOL WINAPI
EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc
, LCID Locale
, DWORD dwFlags
);
1203 BOOL WINAPI
EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc
, LCID Locale
, DWORD dwFlags
);
1204 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1205 BOOL WINAPI
EnumResourceLanguagesA(HMODULE
,LPCSTR
,LPCSTR
,
1206 ENUMRESLANGPROCA
,LONG
);
1207 BOOL WINAPI
EnumResourceLanguagesW(HMODULE
,LPCWSTR
,LPCWSTR
,
1208 ENUMRESLANGPROCW
,LONG
);
1209 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1210 BOOL WINAPI
EnumResourceNamesA(HMODULE
,LPCSTR
,ENUMRESNAMEPROCA
,
1212 BOOL WINAPI
EnumResourceNamesW(HMODULE
,LPCWSTR
,ENUMRESNAMEPROCW
,
1214 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1215 BOOL WINAPI
EnumResourceTypesA(HMODULE
,ENUMRESTYPEPROCA
,LONG
);
1216 BOOL WINAPI
EnumResourceTypesW(HMODULE
,ENUMRESTYPEPROCW
,LONG
);
1217 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1218 BOOL WINAPI
EnumSystemCodePagesA(CODEPAGE_ENUMPROCA
,DWORD
);
1219 BOOL WINAPI
EnumSystemCodePagesW(CODEPAGE_ENUMPROCW
,DWORD
);
1220 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1221 BOOL WINAPI
EnumSystemLocalesA(LOCALE_ENUMPROCA
,DWORD
);
1222 BOOL WINAPI
EnumSystemLocalesW(LOCALE_ENUMPROCW
,DWORD
);
1223 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1224 BOOL WINAPI
EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc
, LCID Locale
, DWORD dwFlags
);
1225 BOOL WINAPI
EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc
, LCID Locale
, DWORD dwFlags
);
1226 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1227 BOOL WINAPI
EqualSid(PSID
, PSID
);
1228 BOOL WINAPI
EqualPrefixSid(PSID
,PSID
);
1229 VOID WINAPI
ExitProcess(DWORD
) WINE_NORETURN
;
1230 VOID WINAPI
ExitThread(DWORD
) WINE_NORETURN
;
1231 DWORD WINAPI
ExpandEnvironmentStringsA(LPCSTR
,LPSTR
,DWORD
);
1232 DWORD WINAPI
ExpandEnvironmentStringsW(LPCWSTR
,LPWSTR
,DWORD
);
1233 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1234 BOOL WINAPI
FileTimeToDosDateTime(const FILETIME
*,LPWORD
,LPWORD
);
1235 BOOL WINAPI
FileTimeToLocalFileTime(const FILETIME
*,LPFILETIME
);
1236 BOOL WINAPI
FileTimeToSystemTime(const FILETIME
*,LPSYSTEMTIME
);
1237 HANDLE WINAPI
FindFirstChangeNotificationA(LPCSTR
,BOOL
,DWORD
);
1238 HANDLE WINAPI
FindFirstChangeNotificationW(LPCWSTR
,BOOL
,DWORD
);
1239 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1240 BOOL WINAPI
FindNextChangeNotification(HANDLE
);
1241 BOOL WINAPI
FindCloseChangeNotification(HANDLE
);
1242 HRSRC WINAPI
FindResourceExA(HMODULE
,LPCSTR
,LPCSTR
,WORD
);
1243 HRSRC WINAPI
FindResourceExW(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
);
1244 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1245 BOOL WINAPI
FlushConsoleInputBuffer(HANDLE
);
1246 BOOL WINAPI
FlushFileBuffers(HANDLE
);
1247 BOOL WINAPI
FlushViewOfFile(LPCVOID
, DWORD
);
1248 DWORD WINAPI
FormatMessageA(DWORD
,LPCVOID
,DWORD
,DWORD
,LPSTR
,
1250 DWORD WINAPI
FormatMessageW(DWORD
,LPCVOID
,DWORD
,DWORD
,LPWSTR
,
1252 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1253 BOOL WINAPI
FreeConsole(void);
1254 BOOL WINAPI
FreeEnvironmentStringsA(LPSTR
);
1255 BOOL WINAPI
FreeEnvironmentStringsW(LPWSTR
);
1256 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1257 PVOID WINAPI
FreeSid(PSID
);
1258 UINT WINAPI
GetACP(void);
1259 LPCSTR WINAPI
GetCommandLineA(void);
1260 LPCWSTR WINAPI
GetCommandLineW(void);
1261 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1262 BOOL WINAPI
GetComputerNameA(LPSTR
,LPDWORD
);
1263 BOOL WINAPI
GetComputerNameW(LPWSTR
,LPDWORD
);
1264 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1265 UINT WINAPI
GetConsoleCP(void);
1266 BOOL WINAPI
GetConsoleMode(HANDLE
,LPDWORD
);
1267 UINT WINAPI
GetConsoleOutputCP(void);
1268 DWORD WINAPI
GetConsoleTitleA(LPSTR
,DWORD
);
1269 DWORD WINAPI
GetConsoleTitleW(LPWSTR
,DWORD
);
1270 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1271 BOOL WINAPI
GetCommMask(HANDLE
, LPDWORD
);
1272 BOOL WINAPI
GetCommModemStatus(HANDLE
, LPDWORD
);
1273 HANDLE WINAPI
GetCurrentProcess(void);
1274 HANDLE WINAPI
GetCurrentThread(void);
1275 INT WINAPI
GetDateFormatA(LCID
,DWORD
,LPSYSTEMTIME
,LPCSTR
,LPSTR
,INT
);
1276 INT WINAPI
GetDateFormatW(LCID
,DWORD
,LPSYSTEMTIME
,LPCWSTR
,LPWSTR
,INT
);
1277 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1278 LPSTR WINAPI
GetEnvironmentStringsA(void);
1279 LPWSTR WINAPI
GetEnvironmentStringsW(void);
1280 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1281 DWORD WINAPI
GetEnvironmentVariableA(LPCSTR
,LPSTR
,DWORD
);
1282 DWORD WINAPI
GetEnvironmentVariableW(LPCWSTR
,LPWSTR
,DWORD
);
1283 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1284 BOOL WINAPI
GetFileAttributesExA(LPCSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1285 BOOL WINAPI
GetFileAttributesExW(LPCWSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1286 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1287 DWORD WINAPI
GetFileInformationByHandle(HANDLE
,BY_HANDLE_FILE_INFORMATION
*);
1288 BOOL WINAPI
GetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1289 BOOL WINAPI
GetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1290 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1291 DWORD WINAPI
GetFileSize(HANDLE
,LPDWORD
);
1292 BOOL WINAPI
GetFileTime(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1293 DWORD WINAPI
GetFileType(HANDLE
);
1294 DWORD WINAPI
GetFullPathNameA(LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1295 DWORD WINAPI
GetFullPathNameW(LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1296 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1297 BOOL WINAPI
GetHandleInformation(HANDLE
,LPDWORD
);
1298 DWORD WINAPI
GetLengthSid(PSID
);
1299 VOID WINAPI
GetLocalTime(LPSYSTEMTIME
);
1300 DWORD WINAPI
GetLogicalDrives(void);
1301 DWORD WINAPI
GetLongPathNameA(LPCSTR
,LPSTR
,DWORD
);
1302 DWORD WINAPI
GetLongPathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1303 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1304 BOOL WINAPI
GetNumberOfConsoleInputEvents(HANDLE
,LPDWORD
);
1305 BOOL WINAPI
GetNumberOfConsoleMouseButtons(LPDWORD
);
1306 BOOL WINAPI
GetNumberOfEventLogRecords(HANDLE
,PDWORD
);
1307 UINT WINAPI
GetOEMCP(void);
1308 BOOL WINAPI
GetOldestEventLogRecord(HANDLE
,PDWORD
);
1309 DWORD WINAPI
GetPriorityClass(HANDLE
);
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
ReadEventLogA(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1422 BOOL WINAPI
ReadEventLogW(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1423 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1424 BOOL WINAPI
ReadFile(HANDLE
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1425 HANDLE WINAPI
RegisterEventSourceA(LPCSTR
,LPCSTR
);
1426 HANDLE WINAPI
RegisterEventSourceW(LPCWSTR
,LPCWSTR
);
1427 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1428 BOOL WINAPI
ReleaseMutex(HANDLE
);
1429 BOOL WINAPI
ReleaseSemaphore(HANDLE
,LONG
,LPLONG
);
1430 BOOL WINAPI
ReportEventA(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCSTR
*,LPVOID
);
1431 BOOL WINAPI
ReportEventW(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCWSTR
*,LPVOID
);
1432 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
1433 BOOL WINAPI
ResetEvent(HANDLE
);
1434 DWORD WINAPI
ResumeThread(HANDLE
);
1435 BOOL WINAPI
RevertToSelf(void);
1436 DWORD WINAPI
SearchPathA(LPCSTR
,LPCSTR
,LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1437 DWORD WINAPI
SearchPathW(LPCWSTR
,LPCWSTR
,LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1438 #define SearchPath WINELIB_NAME_AW(SearchPath)
1439 BOOL WINAPI
SetCommMask(INT
,DWORD
);
1440 BOOL WINAPI
SetComputerNameA(LPCSTR
);
1441 BOOL WINAPI
SetComputerNameW(LPCWSTR
);
1442 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1443 BOOL WINAPI
SetConsoleMode(HANDLE
,DWORD
);
1444 BOOL WINAPI
SetConsoleTitleA(LPCSTR
);
1445 BOOL WINAPI
SetConsoleTitleW(LPCWSTR
);
1446 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1447 BOOL WINAPI
SetEndOfFile(HANDLE
);
1448 BOOL WINAPI
SetEnvironmentVariableA(LPCSTR
,LPCSTR
);
1449 BOOL WINAPI
SetEnvironmentVariableW(LPCWSTR
,LPCWSTR
);
1450 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1451 BOOL WINAPI
SetEvent(HANDLE
);
1452 VOID WINAPI
SetFileApisToANSI(void);
1453 VOID WINAPI
SetFileApisToOEM(void);
1454 DWORD WINAPI
SetFilePointer(HANDLE
,LONG
,LPLONG
,DWORD
);
1455 BOOL WINAPI
SetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1456 BOOL WINAPI
SetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1457 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1458 BOOL WINAPI
SetFileTime(HANDLE
,const FILETIME
*,const FILETIME
*,const FILETIME
*);
1459 BOOL WINAPI
SetHandleInformation(HANDLE
,DWORD
,DWORD
);
1460 BOOL WINAPI
SetPriorityClass(HANDLE
,DWORD
);
1461 BOOL WINAPI
SetLocalTime(const SYSTEMTIME
*);
1462 BOOL WINAPI
SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1463 BOOL WINAPI
SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1464 BOOL WINAPI
SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1465 BOOL WINAPI
SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1466 BOOL WINAPI
SetStdHandle(DWORD
,HANDLE
);
1467 BOOL WINAPI
SetSystemPowerState(BOOL
,BOOL
);
1468 BOOL WINAPI
SetSystemTime(const SYSTEMTIME
*);
1469 DWORD WINAPI
SetThreadAffinityMask(HANDLE
,DWORD
);
1470 BOOL WINAPI
SetThreadContext(HANDLE
,const CONTEXT
*);
1471 BOOL WINAPI
SetThreadLocale(LCID
);
1472 BOOL WINAPI
SetThreadPriority(HANDLE
,INT
);
1473 BOOL WINAPI
SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION
);
1474 BOOL WINAPI
SetWaitableTimer(HANDLE
,const LARGE_INTEGER
*,LONG
,PTIMERAPCROUTINE
,LPVOID
,BOOL
);
1475 VOID WINAPI
Sleep(DWORD
);
1476 DWORD WINAPI
SleepEx(DWORD
,BOOL
);
1477 DWORD WINAPI
SuspendThread(HANDLE
);
1478 BOOL WINAPI
SystemTimeToFileTime(const SYSTEMTIME
*,LPFILETIME
);
1479 DWORD WINAPI
TlsAlloc(void);
1480 BOOL WINAPI
TlsFree(DWORD
);
1481 LPVOID WINAPI
TlsGetValue(DWORD
);
1482 BOOL WINAPI
TlsSetValue(DWORD
,LPVOID
);
1483 VOID WINAPI
UnMapLS(SEGPTR
);
1484 BOOL WINAPI
UnlockFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1485 BOOL WINAPI
UnmapViewOfFile(LPVOID
);
1486 LPVOID WINAPI
VirtualAlloc(LPVOID
,DWORD
,DWORD
,DWORD
);
1487 BOOL WINAPI
VirtualFree(LPVOID
,DWORD
,DWORD
);
1488 BOOL WINAPI
VirtualLock(LPVOID
,DWORD
);
1489 BOOL WINAPI
VirtualProtect(LPVOID
,DWORD
,DWORD
,LPDWORD
);
1490 BOOL WINAPI
VirtualProtectEx(HANDLE
,LPVOID
,DWORD
,DWORD
,LPDWORD
);
1491 DWORD WINAPI
VirtualQuery(LPCVOID
,LPMEMORY_BASIC_INFORMATION
,DWORD
);
1492 DWORD WINAPI
VirtualQueryEx(HANDLE
,LPCVOID
,LPMEMORY_BASIC_INFORMATION
,DWORD
);
1493 BOOL WINAPI
VirtualUnlock(LPVOID
,DWORD
);
1494 BOOL WINAPI
WaitCommEvent(HANDLE
,LPDWORD
,LPOVERLAPPED
);
1495 BOOL WINAPI
WaitForDebugEvent(LPDEBUG_EVENT
,DWORD
);
1496 DWORD WINAPI
WaitForMultipleObjects(DWORD
,const HANDLE
*,BOOL
,DWORD
);
1497 DWORD WINAPI
WaitForMultipleObjectsEx(DWORD
,const HANDLE
*,BOOL
,DWORD
,BOOL
);
1498 DWORD WINAPI
WaitForSingleObject(HANDLE
,DWORD
);
1499 DWORD WINAPI
WaitForSingleObjectEx(HANDLE
,DWORD
,BOOL
);
1500 BOOL WINAPI
WriteConsoleA(HANDLE
,LPCVOID
,DWORD
,LPDWORD
,LPVOID
);
1501 BOOL WINAPI
WriteConsoleW(HANDLE
,LPCVOID
,DWORD
,LPDWORD
,LPVOID
);
1502 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
1503 BOOL WINAPI
WriteFile(HANDLE
,LPCVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1504 LANGID WINAPI
GetSystemDefaultLangID(void);
1505 LCID WINAPI
GetSystemDefaultLCID(void);
1506 LANGID WINAPI
GetUserDefaultLangID(void);
1507 LCID WINAPI
GetUserDefaultLCID(void);
1508 ATOM WINAPI
AddAtomA(LPCSTR
);
1509 ATOM WINAPI
AddAtomW(LPCWSTR
);
1510 #define AddAtom WINELIB_NAME_AW(AddAtom)
1511 UINT WINAPI
CompareStringA(DWORD
,DWORD
,LPCSTR
,DWORD
,LPCSTR
,DWORD
);
1512 UINT WINAPI
CompareStringW(DWORD
,DWORD
,LPCWSTR
,DWORD
,LPCWSTR
,DWORD
);
1513 #define CompareString WINELIB_NAME_AW(CompareString)
1514 BOOL WINAPI
CreateDirectoryA(LPCSTR
,LPSECURITY_ATTRIBUTES
);
1515 BOOL WINAPI
CreateDirectoryW(LPCWSTR
,LPSECURITY_ATTRIBUTES
);
1516 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1517 BOOL WINAPI
CreateDirectoryExA(LPCSTR
,LPCSTR
,LPSECURITY_ATTRIBUTES
);
1518 BOOL WINAPI
CreateDirectoryExW(LPCWSTR
,LPCWSTR
,LPSECURITY_ATTRIBUTES
);
1519 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1520 BOOL WINAPI
DefineDosDeviceA(DWORD
,LPCSTR
,LPCSTR
);
1521 #define DefineHandleTable(w) ((w),TRUE)
1522 ATOM WINAPI
DeleteAtom(ATOM
);
1523 BOOL WINAPI
DeleteFileA(LPCSTR
);
1524 BOOL WINAPI
DeleteFileW(LPCWSTR
);
1525 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1526 void WINAPI
FatalAppExitA(UINT
,LPCSTR
);
1527 void WINAPI
FatalAppExitW(UINT
,LPCWSTR
);
1528 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1529 ATOM WINAPI
FindAtomA(LPCSTR
);
1530 ATOM WINAPI
FindAtomW(LPCWSTR
);
1531 #define FindAtom WINELIB_NAME_AW(FindAtom)
1532 BOOL WINAPI
FindClose(HANDLE
);
1533 HANDLE16 WINAPI
FindFirstFile16(LPCSTR
,LPWIN32_FIND_DATAA
);
1534 HANDLE WINAPI
FindFirstFileA(LPCSTR
,LPWIN32_FIND_DATAA
);
1535 HANDLE WINAPI
FindFirstFileW(LPCWSTR
,LPWIN32_FIND_DATAW
);
1536 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1537 BOOL16 WINAPI
FindNextFile16(HANDLE16
,LPWIN32_FIND_DATAA
);
1538 BOOL WINAPI
FindNextFileA(HANDLE
,LPWIN32_FIND_DATAA
);
1539 BOOL WINAPI
FindNextFileW(HANDLE
,LPWIN32_FIND_DATAW
);
1540 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1541 HRSRC WINAPI
FindResourceA(HMODULE
,LPCSTR
,LPCSTR
);
1542 HRSRC WINAPI
FindResourceW(HMODULE
,LPCWSTR
,LPCWSTR
);
1543 #define FindResource WINELIB_NAME_AW(FindResource)
1544 BOOL WINAPI
FreeLibrary(HMODULE
);
1545 #define FreeModule(handle) FreeLibrary(handle)
1546 #define FreeProcInstance(proc) /*nothing*/
1547 BOOL WINAPI
FreeResource(HGLOBAL
);
1548 UINT WINAPI
GetAtomNameA(ATOM
,LPSTR
,INT
);
1549 UINT WINAPI
GetAtomNameW(ATOM
,LPWSTR
,INT
);
1550 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1551 UINT WINAPI
GetCurrentDirectoryA(UINT
,LPSTR
);
1552 UINT WINAPI
GetCurrentDirectoryW(UINT
,LPWSTR
);
1553 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1554 BOOL WINAPI
GetDiskFreeSpaceA(LPCSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1555 BOOL WINAPI
GetDiskFreeSpaceW(LPCWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1556 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1557 BOOL WINAPI
GetDiskFreeSpaceExA(LPCSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1558 BOOL WINAPI
GetDiskFreeSpaceExW(LPCWSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1559 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1560 UINT WINAPI
GetDriveTypeA(LPCSTR
);
1561 UINT WINAPI
GetDriveTypeW(LPCWSTR
);
1562 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1563 DWORD WINAPI
GetFileAttributesA(LPCSTR
);
1564 DWORD WINAPI
GetFileAttributesW(LPCWSTR
);
1565 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1566 #define GetFreeSpace(w) (0x100000L)
1567 UINT WINAPI
GetLogicalDriveStringsA(UINT
,LPSTR
);
1568 UINT WINAPI
GetLogicalDriveStringsW(UINT
,LPWSTR
);
1569 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1570 INT WINAPI
GetLocaleInfoA(LCID
,LCTYPE
,LPSTR
,INT
);
1571 INT WINAPI
GetLocaleInfoW(LCID
,LCTYPE
,LPWSTR
,INT
);
1572 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1573 DWORD WINAPI
GetModuleFileNameA(HMODULE
,LPSTR
,DWORD
);
1574 DWORD WINAPI
GetModuleFileNameW(HMODULE
,LPWSTR
,DWORD
);
1575 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1576 HMODULE WINAPI
GetModuleHandleA(LPCSTR
);
1577 HMODULE WINAPI
GetModuleHandleW(LPCWSTR
);
1578 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1579 BOOL WINAPI
GetOverlappedResult(HANDLE
,LPOVERLAPPED
,LPDWORD
,BOOL
);
1580 UINT WINAPI
GetPrivateProfileIntA(LPCSTR
,LPCSTR
,INT
,LPCSTR
);
1581 UINT WINAPI
GetPrivateProfileIntW(LPCWSTR
,LPCWSTR
,INT
,LPCWSTR
);
1582 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1583 INT WINAPI
GetPrivateProfileSectionA(LPCSTR
,LPSTR
,DWORD
,LPCSTR
);
1584 INT WINAPI
GetPrivateProfileSectionW(LPCWSTR
,LPWSTR
,DWORD
,LPCWSTR
);
1585 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1586 DWORD WINAPI
GetPrivateProfileSectionNamesA(LPSTR
,DWORD
,LPCSTR
);
1587 DWORD WINAPI
GetPrivateProfileSectionNamesW(LPWSTR
,DWORD
,LPCWSTR
);
1588 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1589 INT WINAPI
GetPrivateProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT
,LPCSTR
);
1590 INT WINAPI
GetPrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT
,LPCWSTR
);
1591 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1592 BOOL WINAPI
GetPrivateProfileStructA(LPCSTR
,LPCSTR
,LPVOID
,UINT
,LPCSTR
);
1593 BOOL WINAPI
GetPrivateProfileStructW(LPCWSTR
,LPCWSTR
,LPVOID
,UINT
,LPCWSTR
);
1594 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1595 FARPROC WINAPI
GetProcAddress(HMODULE
,LPCSTR
);
1596 UINT WINAPI
GetProfileIntA(LPCSTR
,LPCSTR
,INT
);
1597 UINT WINAPI
GetProfileIntW(LPCWSTR
,LPCWSTR
,INT
);
1598 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1599 INT WINAPI
GetProfileSectionA(LPCSTR
,LPSTR
,DWORD
);
1600 INT WINAPI
GetProfileSectionW(LPCWSTR
,LPWSTR
,DWORD
);
1601 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1602 INT WINAPI
GetProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT
);
1603 INT WINAPI
GetProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT
);
1604 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1605 VOID WINAPI
GetStartupInfoA(LPSTARTUPINFOA
);
1606 VOID WINAPI
GetStartupInfoW(LPSTARTUPINFOW
);
1607 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1608 BOOL WINAPI
GetStringTypeA(LCID
,DWORD
,LPCSTR
,INT
,LPWORD
);
1609 BOOL WINAPI
GetStringTypeW(DWORD
,LPCWSTR
,INT
,LPWORD
);
1610 #define GetStringType WINELIB_NAME_AW(GetStringType)
1611 UINT WINAPI
GetSystemDirectoryA(LPSTR
,UINT
);
1612 UINT WINAPI
GetSystemDirectoryW(LPWSTR
,UINT
);
1613 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1614 UINT WINAPI
GetTempFileNameA(LPCSTR
,LPCSTR
,UINT
,LPSTR
);
1615 UINT WINAPI
GetTempFileNameW(LPCWSTR
,LPCWSTR
,UINT
,LPWSTR
);
1616 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1617 UINT WINAPI
GetTempPathA(UINT
,LPSTR
);
1618 UINT WINAPI
GetTempPathW(UINT
,LPWSTR
);
1619 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1620 LONG WINAPI
GetVersion(void);
1621 BOOL WINAPI
GetExitCodeProcess(HANDLE
,LPDWORD
);
1622 BOOL WINAPI
GetVolumeInformationA(LPCSTR
,LPSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPSTR
,DWORD
);
1623 BOOL WINAPI
GetVolumeInformationW(LPCWSTR
,LPWSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPWSTR
,DWORD
);
1624 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1625 UINT WINAPI
GetWindowsDirectoryA(LPSTR
,UINT
);
1626 UINT WINAPI
GetWindowsDirectoryW(LPWSTR
,UINT
);
1627 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1628 HGLOBAL16 WINAPI
GlobalAlloc16(UINT16
,DWORD
);
1629 HGLOBAL WINAPI
GlobalAlloc(UINT
,DWORD
);
1630 DWORD WINAPI
GlobalCompact(DWORD
);
1631 UINT WINAPI
GlobalFlags(HGLOBAL
);
1632 HGLOBAL16 WINAPI
GlobalFree16(HGLOBAL16
);
1633 HGLOBAL WINAPI
GlobalFree(HGLOBAL
);
1634 HGLOBAL WINAPI
GlobalHandle(LPCVOID
);
1635 WORD WINAPI
GlobalFix16(HGLOBAL16
);
1636 VOID WINAPI
GlobalFix(HGLOBAL
);
1637 LPVOID WINAPI
GlobalLock16(HGLOBAL16
);
1638 LPVOID WINAPI
GlobalLock(HGLOBAL
);
1639 HGLOBAL WINAPI
GlobalReAlloc(HGLOBAL
,DWORD
,UINT
);
1640 DWORD WINAPI
GlobalSize16(HGLOBAL16
);
1641 DWORD WINAPI
GlobalSize(HGLOBAL
);
1642 VOID WINAPI
GlobalUnfix16(HGLOBAL16
);
1643 VOID WINAPI
GlobalUnfix(HGLOBAL
);
1644 BOOL16 WINAPI
GlobalUnlock16(HGLOBAL16
);
1645 BOOL WINAPI
GlobalUnlock(HGLOBAL
);
1646 BOOL16 WINAPI
GlobalUnWire16(HGLOBAL16
);
1647 BOOL WINAPI
GlobalUnWire(HGLOBAL
);
1648 SEGPTR WINAPI
GlobalWire16(HGLOBAL16
);
1649 LPVOID WINAPI
GlobalWire(HGLOBAL
);
1650 BOOL WINAPI
InitAtomTable(DWORD
);
1651 BOOL WINAPI
IsBadCodePtr(FARPROC
);
1652 BOOL WINAPI
IsBadHugeReadPtr(LPCVOID
,UINT
);
1653 BOOL WINAPI
IsBadHugeWritePtr(LPVOID
,UINT
);
1654 BOOL WINAPI
IsBadReadPtr(LPCVOID
,UINT
);
1655 BOOL WINAPI
IsBadStringPtrA(LPCSTR
,UINT
);
1656 BOOL WINAPI
IsBadStringPtrW(LPCWSTR
,UINT
);
1657 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1658 BOOL WINAPI
IsBadWritePtr(LPVOID
,UINT
);
1659 BOOL WINAPI
IsDBCSLeadByte(BYTE
);
1660 BOOL WINAPI
IsDebuggerPresent(void);
1661 HMODULE WINAPI
LoadLibraryA(LPCSTR
);
1662 HMODULE WINAPI
LoadLibraryW(LPCWSTR
);
1663 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1664 HMODULE WINAPI
LoadLibraryExA(LPCSTR
,HANDLE
,DWORD
);
1665 HMODULE WINAPI
LoadLibraryExW(LPCWSTR
,HANDLE
,DWORD
);
1666 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1667 HINSTANCE WINAPI
LoadModule(LPCSTR
,LPVOID
);
1668 HGLOBAL WINAPI
LoadResource(HMODULE
,HRSRC
);
1669 HLOCAL WINAPI
LocalAlloc(UINT
,DWORD
);
1670 UINT WINAPI
LocalCompact(UINT
);
1671 UINT WINAPI
LocalFlags(HLOCAL
);
1672 HLOCAL WINAPI
LocalFree(HLOCAL
);
1673 HLOCAL WINAPI
LocalHandle(LPCVOID
);
1674 LPVOID WINAPI
LocalLock(HLOCAL
);
1675 HLOCAL WINAPI
LocalReAlloc(HLOCAL
,DWORD
,UINT
);
1676 UINT WINAPI
LocalShrink(HGLOBAL
,UINT
);
1677 UINT WINAPI
LocalSize(HLOCAL
);
1678 BOOL WINAPI
LocalUnlock(HLOCAL
);
1679 LPVOID WINAPI
LockResource(HGLOBAL
);
1680 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1681 #define MakeProcInstance(proc,inst) (proc)
1682 HFILE16 WINAPI
OpenFile16(LPCSTR
,OFSTRUCT
*,UINT16
);
1683 HFILE WINAPI
OpenFile(LPCSTR
,OFSTRUCT
*,UINT
);
1684 VOID WINAPI
OutputDebugStringA(LPCSTR
);
1685 VOID WINAPI
OutputDebugStringW(LPCWSTR
);
1686 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1687 BOOL WINAPI
ReadProcessMemory(HANDLE
, LPCVOID
, LPVOID
, DWORD
, LPDWORD
);
1688 BOOL WINAPI
RemoveDirectoryA(LPCSTR
);
1689 BOOL WINAPI
RemoveDirectoryW(LPCWSTR
);
1690 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1691 BOOL WINAPI
SetCurrentDirectoryA(LPCSTR
);
1692 BOOL WINAPI
SetCurrentDirectoryW(LPCWSTR
);
1693 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1694 UINT WINAPI
SetErrorMode(UINT
);
1695 BOOL WINAPI
SetFileAttributesA(LPCSTR
,DWORD
);
1696 BOOL WINAPI
SetFileAttributesW(LPCWSTR
,DWORD
);
1697 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1698 UINT WINAPI
SetHandleCount(UINT
);
1699 #define SetSwapAreaSize(w) (w)
1700 BOOL WINAPI
SetVolumeLabelA(LPCSTR
,LPCSTR
);
1701 BOOL WINAPI
SetVolumeLabelW(LPCWSTR
,LPCWSTR
);
1702 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1703 DWORD WINAPI
SizeofResource(HMODULE
,HRSRC
);
1704 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1705 BOOL WINAPI
WritePrivateProfileSectionA(LPCSTR
,LPCSTR
,LPCSTR
);
1706 BOOL WINAPI
WritePrivateProfileSectionW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1707 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1708 BOOL WINAPI
WritePrivateProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
1709 BOOL WINAPI
WritePrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
1710 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1711 BOOL WINAPI
WriteProfileSectionA(LPCSTR
,LPCSTR
);
1712 BOOL WINAPI
WriteProfileSectionW(LPCWSTR
,LPCWSTR
);
1713 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1714 BOOL WINAPI
WritePrivateProfileStructA(LPCSTR
,LPCSTR
,LPVOID
,UINT
,LPCSTR
);
1715 BOOL WINAPI
WritePrivateProfileStructW(LPCWSTR
,LPCWSTR
,LPVOID
,UINT
,LPCWSTR
);
1716 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1717 BOOL WINAPI
WriteProcessMemory(HANDLE
, LPVOID
, LPVOID
, DWORD
, LPDWORD
);
1718 BOOL WINAPI
WriteProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
);
1719 BOOL WINAPI
WriteProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1720 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1722 LPSTR WINAPI
lstrcatA(LPSTR
,LPCSTR
);
1723 LPWSTR WINAPI
lstrcatW(LPWSTR
,LPCWSTR
);
1724 #define lstrcat WINELIB_NAME_AW(lstrcat)
1725 LPSTR WINAPI
lstrcpyA(LPSTR
,LPCSTR
);
1726 LPWSTR WINAPI
lstrcpyW(LPWSTR
,LPCWSTR
);
1727 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1728 LPSTR WINAPI
lstrcpynA(LPSTR
,LPCSTR
,INT
);
1729 LPWSTR WINAPI
lstrcpynW(LPWSTR
,LPCWSTR
,INT
);
1730 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1731 INT WINAPI
lstrlenA(LPCSTR
);
1732 INT WINAPI
lstrlenW(LPCWSTR
);
1733 #define lstrlen WINELIB_NAME_AW(lstrlen)
1734 HINSTANCE WINAPI
WinExec(LPCSTR
,UINT
);
1735 LONG WINAPI
_hread(HFILE
,LPVOID
,LONG
);
1736 LONG WINAPI
_hwrite(HFILE
,LPCSTR
,LONG
);
1737 HFILE WINAPI
_lcreat(LPCSTR
,INT
);
1738 HFILE WINAPI
_lclose(HFILE
);
1739 LONG WINAPI
_llseek(HFILE
,LONG
,INT
);
1740 HFILE WINAPI
_lopen(LPCSTR
,INT
);
1741 UINT WINAPI
_lread(HFILE
,LPVOID
,UINT
);
1742 UINT WINAPI
_lwrite(HFILE
,LPCSTR
,UINT
);
1743 SEGPTR WINAPI
WIN16_GlobalLock16(HGLOBAL16
);
1744 INT WINAPI
lstrcmpA(LPCSTR
,LPCSTR
);
1745 INT WINAPI
lstrcmpW(LPCWSTR
,LPCWSTR
);
1746 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1747 INT WINAPI
lstrcmpiA(LPCSTR
,LPCSTR
);
1748 INT WINAPI
lstrcmpiW(LPCWSTR
,LPCWSTR
);
1749 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1751 /* compatibility macros */
1752 #define FillMemory RtlFillMemory
1753 #define MoveMemory RtlMoveMemory
1754 #define ZeroMemory RtlZeroMemory
1755 #define CopyMemory RtlCopyMemory
1757 /* a few optimizations for i386/gcc */
1759 #if defined(__i386__) && defined(__GNUC__)
1761 extern inline PVOID WINAPI
InterlockedCompareExchange( PVOID
*dest
, PVOID xchg
, PVOID compare
);
1762 extern inline PVOID WINAPI
InterlockedCompareExchange( PVOID
*dest
, PVOID xchg
, PVOID compare
)
1765 __asm__
__volatile__( "lock; cmpxchgl %2,(%1)"
1766 : "=a" (ret
) : "r" (dest
), "r" (xchg
), "0" (compare
) : "memory" );
1770 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
);
1771 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
)
1774 __asm__
__volatile__( "lock; xchgl %0,(%1)"
1775 : "=r" (ret
) :"r" (dest
), "0" (val
) : "memory" );
1779 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
);
1780 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
)
1783 __asm__
__volatile__( "lock; xaddl %0,(%1)"
1784 : "=r" (ret
) : "r" (dest
), "0" (incr
) : "memory" );
1788 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
);
1789 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
)
1791 return InterlockedExchangeAdd( dest
, 1 ) + 1;
1794 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
);
1795 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
)
1797 return InterlockedExchangeAdd( dest
, -1 ) - 1;
1800 extern inline DWORD WINAPI
GetLastError(void);
1801 extern inline DWORD WINAPI
GetLastError(void)
1804 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x60,%0" : "=r" (ret
) );
1808 extern inline DWORD WINAPI
GetCurrentProcessId(void);
1809 extern inline DWORD WINAPI
GetCurrentProcessId(void)
1812 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x20,%0" : "=r" (ret
) );
1816 extern inline DWORD WINAPI
GetCurrentThreadId(void);
1817 extern inline DWORD WINAPI
GetCurrentThreadId(void)
1820 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x24,%0" : "=r" (ret
) );
1824 extern inline void WINAPI
SetLastError( DWORD err
);
1825 extern inline void WINAPI
SetLastError( DWORD err
)
1827 __asm__
__volatile__( ".byte 0x64\n\tmovl %0,0x60" : : "r" (err
) : "memory" );
1830 extern inline HANDLE WINAPI
GetProcessHeap(void);
1831 extern inline HANDLE WINAPI
GetProcessHeap(void)
1834 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb
) );
1835 return pdb
[0x18 / sizeof(HANDLE
)]; /* get dword at offset 0x18 in pdb */
1838 #else /* __i386__ && __GNUC__ */
1839 DWORD WINAPI
GetCurrentProcessId(void);
1840 DWORD WINAPI
GetCurrentThreadId(void);
1841 DWORD WINAPI
GetLastError(void);
1842 HANDLE WINAPI
GetProcessHeap(void);
1843 PVOID WINAPI
InterlockedCompareExchange(PVOID
*,PVOID
,PVOID
);
1844 LONG WINAPI
InterlockedDecrement(PLONG
);
1845 LONG WINAPI
InterlockedExchange(PLONG
,LONG
);
1846 LONG WINAPI
InterlockedExchangeAdd(PLONG
,LONG
);
1847 LONG WINAPI
InterlockedIncrement(PLONG
);
1848 VOID WINAPI
SetLastError(DWORD
);
1849 #endif /* __i386__ && __GNUC__ */
1852 #define GetCurrentProcess() ((HANDLE)0xffffffff)
1853 #define GetCurrentThread() ((HANDLE)0xfffffffe)
1860 #endif /* __WINE_WINBASE_H */