2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_WINBASE_H
20 #define __WINE_WINBASE_H
36 /* Windows Exit Procedure flag values */
37 #define WEP_FREE_DLL 0
38 #define WEP_SYSTEM_EXIT 1
40 typedef DWORD (CALLBACK
*LPTHREAD_START_ROUTINE
)(LPVOID
);
42 typedef VOID (WINAPI
*PFIBER_START_ROUTINE
)( LPVOID lpFiberParameter
);
43 typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE
;
45 typedef RTL_CRITICAL_SECTION CRITICAL_SECTION
;
46 typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION
;
47 typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION
;
49 typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG
;
50 typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG
;
51 typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG
;
54 #define EXCEPTION_DEBUG_EVENT 1
55 #define CREATE_THREAD_DEBUG_EVENT 2
56 #define CREATE_PROCESS_DEBUG_EVENT 3
57 #define EXIT_THREAD_DEBUG_EVENT 4
58 #define EXIT_PROCESS_DEBUG_EVENT 5
59 #define LOAD_DLL_DEBUG_EVENT 6
60 #define UNLOAD_DLL_DEBUG_EVENT 7
61 #define OUTPUT_DEBUG_STRING_EVENT 8
64 typedef struct _EXCEPTION_DEBUG_INFO
{
65 EXCEPTION_RECORD ExceptionRecord
;
67 } EXCEPTION_DEBUG_INFO
;
69 typedef struct _CREATE_THREAD_DEBUG_INFO
{
71 LPVOID lpThreadLocalBase
;
72 LPTHREAD_START_ROUTINE lpStartAddress
;
73 } CREATE_THREAD_DEBUG_INFO
;
75 typedef struct _CREATE_PROCESS_DEBUG_INFO
{
80 DWORD dwDebugInfoFileOffset
;
82 LPVOID lpThreadLocalBase
;
83 LPTHREAD_START_ROUTINE lpStartAddress
;
86 } CREATE_PROCESS_DEBUG_INFO
;
88 typedef struct _EXIT_THREAD_DEBUG_INFO
{
90 } EXIT_THREAD_DEBUG_INFO
;
92 typedef struct _EXIT_PROCESS_DEBUG_INFO
{
94 } EXIT_PROCESS_DEBUG_INFO
;
96 typedef struct _LOAD_DLL_DEBUG_INFO
{
99 DWORD dwDebugInfoFileOffset
;
100 DWORD nDebugInfoSize
;
103 } LOAD_DLL_DEBUG_INFO
;
105 typedef struct _UNLOAD_DLL_DEBUG_INFO
{
107 } UNLOAD_DLL_DEBUG_INFO
;
109 typedef struct _OUTPUT_DEBUG_STRING_INFO
{
110 LPSTR lpDebugStringData
;
112 WORD nDebugStringLength
;
113 } OUTPUT_DEBUG_STRING_INFO
;
115 typedef struct _RIP_INFO
{
120 typedef struct _DEBUG_EVENT
{
121 DWORD dwDebugEventCode
;
125 EXCEPTION_DEBUG_INFO Exception
;
126 CREATE_THREAD_DEBUG_INFO CreateThread
;
127 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo
;
128 EXIT_THREAD_DEBUG_INFO ExitThread
;
129 EXIT_PROCESS_DEBUG_INFO ExitProcess
;
130 LOAD_DLL_DEBUG_INFO LoadDll
;
131 UNLOAD_DLL_DEBUG_INFO UnloadDll
;
132 OUTPUT_DEBUG_STRING_INFO DebugString
;
135 } DEBUG_EVENT
, *LPDEBUG_EVENT
;
137 typedef PCONTEXT LPCONTEXT
;
138 typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD
;
139 typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS
;
141 #define OFS_MAXPATHNAME 128
148 BYTE szPathName
[OFS_MAXPATHNAME
];
149 } OFSTRUCT
, *POFSTRUCT
, *LPOFSTRUCT
;
151 #define OF_READ 0x0000
152 #define OF_WRITE 0x0001
153 #define OF_READWRITE 0x0002
154 #define OF_SHARE_COMPAT 0x0000
155 #define OF_SHARE_EXCLUSIVE 0x0010
156 #define OF_SHARE_DENY_WRITE 0x0020
157 #define OF_SHARE_DENY_READ 0x0030
158 #define OF_SHARE_DENY_NONE 0x0040
159 #define OF_PARSE 0x0100
160 #define OF_DELETE 0x0200
161 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
162 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
163 #define OF_CANCEL 0x0800
164 #define OF_CREATE 0x1000
165 #define OF_PROMPT 0x2000
166 #define OF_EXIST 0x4000
167 #define OF_REOPEN 0x8000
169 /* SetErrorMode values */
170 #define SEM_FAILCRITICALERRORS 0x0001
171 #define SEM_NOGPFAULTERRORBOX 0x0002
172 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
173 #define SEM_NOOPENFILEERRORBOX 0x8000
175 /* CopyFileEx flags */
176 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
177 #define COPY_FILE_RESTARTABLE 0x00000002
178 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
180 /* GetTempFileName() Flags */
181 #define TF_FORCEDRIVE 0x80
183 #define DRIVE_UNKNOWN 0
184 #define DRIVE_NO_ROOT_DIR 1
185 #define DRIVE_REMOVABLE 2
186 #define DRIVE_FIXED 3
187 #define DRIVE_REMOTE 4
188 /* Win32 additions */
189 #define DRIVE_CDROM 5
190 #define DRIVE_RAMDISK 6
192 /* The security attributes structure */
193 typedef struct _SECURITY_ATTRIBUTES
196 LPVOID lpSecurityDescriptor
;
198 } SECURITY_ATTRIBUTES
, *PSECURITY_ATTRIBUTES
, *LPSECURITY_ATTRIBUTES
;
202 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
205 #ifdef WORDS_BIGENDIAN
206 DWORD dwHighDateTime
;
210 DWORD dwHighDateTime
;
212 } FILETIME
, *PFILETIME
, *LPFILETIME
;
213 #endif /* _FILETIME_ */
215 /* Find* structures */
218 DWORD dwFileAttributes
;
219 FILETIME ftCreationTime
;
220 FILETIME ftLastAccessTime
;
221 FILETIME ftLastWriteTime
;
227 CHAR cAlternateFileName
[14];
228 } WIN32_FIND_DATAA
, *PWIN32_FIND_DATAA
, *LPWIN32_FIND_DATAA
;
232 DWORD dwFileAttributes
;
233 FILETIME ftCreationTime
;
234 FILETIME ftLastAccessTime
;
235 FILETIME ftLastWriteTime
;
240 WCHAR cFileName
[260];
241 WCHAR cAlternateFileName
[14];
242 } WIN32_FIND_DATAW
, *PWIN32_FIND_DATAW
, *LPWIN32_FIND_DATAW
;
244 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA
)
245 DECL_WINELIB_TYPE_AW(PWIN32_FIND_DATA
)
246 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA
)
248 typedef enum _FINDEX_INFO_LEVELS
251 FindExInfoMaxInfoLevel
252 } FINDEX_INFO_LEVELS
;
254 typedef enum _FINDEX_SEARCH_OPS
256 FindExSearchNameMatch
,
257 FindExSearchLimitToDirectories
,
258 FindExSearchLimitToDevices
,
259 FindExSearchMaxSearchOp
275 DWORD dwCommittedSize
;
276 DWORD dwUnCommittedSize
;
281 } PROCESS_HEAP_ENTRY
, *PPROCESS_HEAP_ENTRY
, *LPPROCESS_HEAP_ENTRY
;
283 #define PROCESS_HEAP_REGION 0x0001
284 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
285 #define PROCESS_HEAP_ENTRY_BUSY 0x0004
286 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
287 #define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
289 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
291 #define TLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
293 #define SHUTDOWN_NORETRY 1
297 #define CBR_110 0xFF10
298 #define CBR_300 0xFF11
299 #define CBR_600 0xFF12
300 #define CBR_1200 0xFF13
301 #define CBR_2400 0xFF14
302 #define CBR_4800 0xFF15
303 #define CBR_9600 0xFF16
304 #define CBR_14400 0xFF17
305 #define CBR_19200 0xFF18
306 #define CBR_38400 0xFF1B
307 #define CBR_56000 0xFF1F
308 #define CBR_57600 0xFF20
309 #define CBR_115200 0xFF21
310 #define CBR_128000 0xFF23
311 #define CBR_256000 0xFF27
317 #define SPACEPARITY 4
319 #define ONE5STOPBITS 1
320 #define TWOSTOPBITS 2
323 #define INFINITE 0xFFFFFFFF
325 #define CE_RXOVER 0x0001
326 #define CE_OVERRUN 0x0002
327 #define CE_RXPARITY 0x0004
328 #define CE_FRAME 0x0008
329 #define CE_BREAK 0x0010
330 #define CE_CTSTO 0x0020
331 #define CE_DSRTO 0x0040
332 #define CE_RLSDTO 0x0080
333 #define CE_TXFULL 0x0100
334 #define CE_PTO 0x0200
335 #define CE_IOE 0x0400
336 #define CE_DNS 0x0800
337 #define CE_OOP 0x1000
338 #define CE_MODE 0x8000
344 #define IE_DEFAULT -5
345 #define IE_HARDWARE -10
346 #define IE_BYTESIZE -11
347 #define IE_BAUDRATE -12
349 #define EV_RXCHAR 0x0001
350 #define EV_RXFLAG 0x0002
351 #define EV_TXEMPT 0x0004
352 #define EV_CTS 0x0008
353 #define EV_DSR 0x0010
354 #define EV_RLSD 0x0020
355 #define EV_BREAK 0x0040
356 #define EV_ERR 0x0080
357 #define EV_RING 0x0100
358 #define EV_PERR 0x0200
359 #define EV_RX80FULL 0x0400
360 #define EV_EVENT1 0x0800
361 #define EV_EVENT2 0x1000
373 /* Purge functions for Comm Port */
374 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
376 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
378 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
379 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
382 /* Modem Status Flags */
383 #define MS_CTS_ON ((DWORD)0x0010)
384 #define MS_DSR_ON ((DWORD)0x0020)
385 #define MS_RING_ON ((DWORD)0x0040)
386 #define MS_RLSD_ON ((DWORD)0x0080)
388 #define RTS_CONTROL_DISABLE 0
389 #define RTS_CONTROL_ENABLE 1
390 #define RTS_CONTROL_HANDSHAKE 2
391 #define RTS_CONTROL_TOGGLE 3
393 #define DTR_CONTROL_DISABLE 0
394 #define DTR_CONTROL_ENABLE 1
395 #define DTR_CONTROL_HANDSHAKE 2
399 #define LMEM_MOVEABLE 0x0002
400 #define LMEM_NOCOMPACT 0x0010
401 #define LMEM_NODISCARD 0x0020
402 #define LMEM_ZEROINIT 0x0040
403 #define LMEM_MODIFY 0x0080
404 #define LMEM_DISCARDABLE 0x0F00
405 #define LMEM_DISCARDED 0x4000
406 #define LMEM_LOCKCOUNT 0x00FF
408 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
409 #define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT)
411 #define NONZEROLHND (LMEM_MOVEABLE)
412 #define NONZEROLPTR (LMEM_FIXED)
414 #define GMEM_FIXED 0x0000
415 #define GMEM_MOVEABLE 0x0002
416 #define GMEM_NOCOMPACT 0x0010
417 #define GMEM_NODISCARD 0x0020
418 #define GMEM_ZEROINIT 0x0040
419 #define GMEM_MODIFY 0x0080
420 #define GMEM_DISCARDABLE 0x0100
421 #define GMEM_NOT_BANKED 0x1000
422 #define GMEM_SHARE 0x2000
423 #define GMEM_DDESHARE 0x2000
424 #define GMEM_NOTIFY 0x4000
425 #define GMEM_LOWER GMEM_NOT_BANKED
426 #define GMEM_DISCARDED 0x4000
427 #define GMEM_LOCKCOUNT 0x00ff
428 #define GMEM_INVALID_HANDLE 0x8000
430 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
431 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
433 #define INVALID_ATOM ((ATOM)0)
434 #define MAXINTATOM 0xc000
435 #define MAKEINTATOMA(atom) ((LPCSTR)((ULONG_PTR)((WORD)(atom))))
436 #define MAKEINTATOMW(atom) ((LPCWSTR)((ULONG_PTR)((WORD)(atom))))
437 #define MAKEINTATOM WINELIB_NAME_AW(MAKEINTATOM)
439 typedef struct tagMEMORYSTATUS
445 DWORD dwTotalPageFile
;
446 DWORD dwAvailPageFile
;
447 DWORD dwTotalVirtual
;
448 DWORD dwAvailVirtual
;
449 } MEMORYSTATUS
, *LPMEMORYSTATUS
;
461 } SYSTEMTIME
, *PSYSTEMTIME
, *LPSYSTEMTIME
;
463 /* The 'overlapped' data structure used by async I/O functions.
465 typedef struct _OVERLAPPED
{
471 } OVERLAPPED
, *LPOVERLAPPED
;
473 typedef VOID (CALLBACK
*LPOVERLAPPED_COMPLETION_ROUTINE
)(DWORD dwErrorCode
, DWORD dwNumberOfBytesTransfered
, LPOVERLAPPED lpOverlapped
);
475 /* Process startup information.
478 /* STARTUPINFO.dwFlags */
479 #define STARTF_USESHOWWINDOW 0x00000001
480 #define STARTF_USESIZE 0x00000002
481 #define STARTF_USEPOSITION 0x00000004
482 #define STARTF_USECOUNTCHARS 0x00000008
483 #define STARTF_USEFILLATTRIBUTE 0x00000010
484 #define STARTF_RUNFULLSCREEN 0x00000020
485 #define STARTF_FORCEONFEEDBACK 0x00000040
486 #define STARTF_FORCEOFFFEEDBACK 0x00000080
487 #define STARTF_USESTDHANDLES 0x00000100
488 #define STARTF_USEHOTKEY 0x00000200
491 DWORD cb
; /* 00: size of struct */
492 LPSTR lpReserved
; /* 04: */
493 LPSTR lpDesktop
; /* 08: */
494 LPSTR lpTitle
; /* 0c: */
497 DWORD dwXSize
; /* 18: */
498 DWORD dwYSize
; /* 1c: */
499 DWORD dwXCountChars
; /* 20: */
500 DWORD dwYCountChars
; /* 24: */
501 DWORD dwFillAttribute
; /* 28: */
502 DWORD dwFlags
; /* 2c: */
503 WORD wShowWindow
; /* 30: */
504 WORD cbReserved2
; /* 32: */
505 BYTE
*lpReserved2
; /* 34: */
506 HANDLE hStdInput
; /* 38: */
507 HANDLE hStdOutput
; /* 3c: */
508 HANDLE hStdError
; /* 40: */
509 } STARTUPINFOA
, *LPSTARTUPINFOA
;
522 DWORD dwFillAttribute
;
530 } STARTUPINFOW
, *LPSTARTUPINFOW
;
532 DECL_WINELIB_TYPE_AW(STARTUPINFO
)
533 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO
)
540 } PROCESS_INFORMATION
, *PPROCESS_INFORMATION
, *LPPROCESS_INFORMATION
;
544 WCHAR StandardName
[32];
545 SYSTEMTIME StandardDate
;
547 WCHAR DaylightName
[32];
548 SYSTEMTIME DaylightDate
;
550 } TIME_ZONE_INFORMATION
, *PTIME_ZONE_INFORMATION
, *LPTIME_ZONE_INFORMATION
;
552 #define TIME_ZONE_ID_INVALID ((DWORD)0xFFFFFFFF)
553 #define TIME_ZONE_ID_UNKNOWN 0
554 #define TIME_ZONE_ID_STANDARD 1
555 #define TIME_ZONE_ID_DAYLIGHT 2
557 /* CreateProcess: dwCreationFlag values
559 #define DEBUG_PROCESS 0x00000001
560 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
561 #define CREATE_SUSPENDED 0x00000004
562 #define DETACHED_PROCESS 0x00000008
563 #define CREATE_NEW_CONSOLE 0x00000010
564 #define NORMAL_PRIORITY_CLASS 0x00000020
565 #define IDLE_PRIORITY_CLASS 0x00000040
566 #define HIGH_PRIORITY_CLASS 0x00000080
567 #define REALTIME_PRIORITY_CLASS 0x00000100
568 #define CREATE_NEW_PROCESS_GROUP 0x00000200
569 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
570 #define CREATE_SEPARATE_WOW_VDM 0x00000800
571 #define CREATE_SHARED_WOW_VDM 0x00001000
572 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
573 #define CREATE_NO_WINDOW 0x08000000
574 #define PROFILE_USER 0x10000000
575 #define PROFILE_KERNEL 0x20000000
576 #define PROFILE_SERVER 0x40000000
579 /* File object type definitions
581 #define FILE_TYPE_UNKNOWN 0
582 #define FILE_TYPE_DISK 1
583 #define FILE_TYPE_CHAR 2
584 #define FILE_TYPE_PIPE 3
585 #define FILE_TYPE_REMOTE 32768
587 /* File creation flags
589 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
590 #define FILE_FLAG_OVERLAPPED 0x40000000L
591 #define FILE_FLAG_NO_BUFFERING 0x20000000L
592 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
593 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
594 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
595 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
596 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
598 #define CREATE_ALWAYS 2
599 #define OPEN_EXISTING 3
600 #define OPEN_ALWAYS 4
601 #define TRUNCATE_EXISTING 5
603 /* Standard handle identifiers
605 #define STD_INPUT_HANDLE ((DWORD) -10)
606 #define STD_OUTPUT_HANDLE ((DWORD) -11)
607 #define STD_ERROR_HANDLE ((DWORD) -12)
611 DWORD dwFileAttributes
;
612 FILETIME ftCreationTime
;
613 FILETIME ftLastAccessTime
;
614 FILETIME ftLastWriteTime
;
615 DWORD dwVolumeSerialNumber
;
618 DWORD nNumberOfLinks
;
619 DWORD nFileIndexHigh
;
621 } BY_HANDLE_FILE_INFORMATION
, *PBY_HANDLE_FILE_INFORMATION
, *LPBY_HANDLE_FILE_INFORMATION
;
623 #define PIPE_ACCESS_INBOUND 1
624 #define PIPE_ACCESS_OUTBOUND 2
625 #define PIPE_ACCESS_DUPLEX 3
627 #define PIPE_TYPE_BYTE 0
628 #define PIPE_TYPE_MESSAGE 4
630 #define PIPE_READMODE_BYTE 0
631 #define PIPE_READMODE_MESSAGE 2
634 #define PIPE_NOWAIT 1
636 #define PIPE_UNLIMITED_INSTANCES 255
638 #define NMPWAIT_WAIT_FOREVER 0xffffffff
639 #define NMPWAIT_NOWAIT 0x00000001
640 #define NMPWAIT_USE_DEFAULT_WAIT 0x00000000
642 typedef struct _SYSTEM_POWER_STATUS
646 BYTE BatteryLifePercent
;
648 DWORD BatteryLifeTime
;
649 DWORD BatteryFullLifeTime
;
650 } SYSTEM_POWER_STATUS
, *LPSYSTEM_POWER_STATUS
;
653 typedef struct tagSYSTEM_INFO
656 DWORD dwOemId
; /* Obsolete field - do not use */
658 WORD wProcessorArchitecture
;
663 LPVOID lpMinimumApplicationAddress
;
664 LPVOID lpMaximumApplicationAddress
;
665 DWORD dwActiveProcessorMask
;
666 DWORD dwNumberOfProcessors
;
667 DWORD dwProcessorType
;
668 DWORD dwAllocationGranularity
;
669 WORD wProcessorLevel
;
670 WORD wProcessorRevision
;
671 } SYSTEM_INFO
, *LPSYSTEM_INFO
;
673 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCA
)(HMODULE
,LPSTR
,LONG
);
674 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCW
)(HMODULE
,LPWSTR
,LONG
);
675 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCA
)(HMODULE
,LPCSTR
,LPSTR
,LONG
);
676 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCW
)(HMODULE
,LPCWSTR
,LPWSTR
,LONG
);
677 typedef BOOL (CALLBACK
*ENUMRESLANGPROCA
)(HMODULE
,LPCSTR
,LPCSTR
,WORD
,LONG
);
678 typedef BOOL (CALLBACK
*ENUMRESLANGPROCW
)(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
,LONG
);
680 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC
)
681 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC
)
682 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC
)
684 /* flags that can be passed to LoadLibraryEx */
685 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
686 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
687 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
689 /* ifdef _x86_ ... */
690 typedef struct _LDT_ENTRY
{
696 BYTE Flags1
;/*Declare as bytes to avoid alignment problems */
701 unsigned BaseMid
: 8;
705 unsigned LimitHi
: 4;
707 unsigned Reserved_0
: 1;
708 unsigned Default_Big
: 1;
709 unsigned Granularity
: 1;
713 } LDT_ENTRY
, *LPLDT_ENTRY
;
716 typedef enum _GET_FILEEX_INFO_LEVELS
{
717 GetFileExInfoStandard
718 } GET_FILEEX_INFO_LEVELS
;
720 typedef struct _WIN32_FILE_ATTRIBUTES_DATA
{
721 DWORD dwFileAttributes
;
722 FILETIME ftCreationTime
;
723 FILETIME ftLastAccessTime
;
724 FILETIME ftLastWriteTime
;
727 } WIN32_FILE_ATTRIBUTE_DATA
, *LPWIN32_FILE_ATTRIBUTE_DATA
;
730 * This one seems to be a Win32 only definition. It also is defined with
731 * WINAPI instead of CALLBACK in the windows headers.
733 typedef DWORD (CALLBACK
*LPPROGRESS_ROUTINE
)(LARGE_INTEGER
, LARGE_INTEGER
, LARGE_INTEGER
,
734 LARGE_INTEGER
, DWORD
, DWORD
, HANDLE
,
738 #define WAIT_FAILED 0xffffffff
739 #define WAIT_OBJECT_0 0
740 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
741 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
742 #define WAIT_IO_COMPLETION STATUS_USER_APC
743 #define WAIT_TIMEOUT STATUS_TIMEOUT
744 #define STILL_ACTIVE STATUS_PENDING
747 #define FILE_CURRENT 1
750 #define FILE_MAP_COPY 0x00000001
751 #define FILE_MAP_WRITE 0x00000002
752 #define FILE_MAP_READ 0x00000004
753 #define FILE_MAP_ALL_ACCESS 0x000f001f
755 #define MOVEFILE_REPLACE_EXISTING 0x00000001
756 #define MOVEFILE_COPY_ALLOWED 0x00000002
757 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
759 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
760 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
761 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
762 #define FS_PERSISTENT_ACLS FILE_PERSISTENT_ACLS
763 #define FS_VOL_IS_COMPRESSED FILE_VOLUME_IS_COMPRESSED
764 #define FS_FILE_COMPRESSION FILE_FILE_COMPRESSION
766 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
767 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
768 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
769 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
770 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
771 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
772 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
773 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
774 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
775 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
776 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
777 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
778 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
779 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
780 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
781 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
782 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
783 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
784 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
785 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
786 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
787 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
788 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
790 /* Wine extension; Windows doesn't have a name for this code */
791 #define EXCEPTION_CRITICAL_SECTION_WAIT 0xc0000194
793 #define DUPLICATE_CLOSE_SOURCE 0x00000001
794 #define DUPLICATE_SAME_ACCESS 0x00000002
796 #define HANDLE_FLAG_INHERIT 0x00000001
797 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
799 #define HINSTANCE_ERROR 32
801 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
802 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
803 #define THREAD_PRIORITY_NORMAL 0
804 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
805 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
806 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
807 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
808 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
810 /* flags to FormatMessage */
811 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
812 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
813 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
814 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
815 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
816 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
817 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
820 #define CRITICAL_SECTION_INIT(name) { (void *)(__FILE__ ": " name), -1, 0, 0, 0, 0 }
824 DWORD dwOSVersionInfoSize
;
825 DWORD dwMajorVersion
;
826 DWORD dwMinorVersion
;
829 CHAR szCSDVersion
[128];
830 } OSVERSIONINFOA
, *POSVERSIONINFOA
, *LPOSVERSIONINFOA
;
833 DWORD dwOSVersionInfoSize
;
834 DWORD dwMajorVersion
;
835 DWORD dwMinorVersion
;
838 WCHAR szCSDVersion
[128];
839 } OSVERSIONINFOW
, *POSVERSIONINFOW
, *LPOSVERSIONINFOW
;
841 DECL_WINELIB_TYPE_AW(OSVERSIONINFO
)
842 DECL_WINELIB_TYPE_AW(POSVERSIONINFO
)
843 DECL_WINELIB_TYPE_AW(LPOSVERSIONINFO
)
846 DWORD dwOSVersionInfoSize
;
847 DWORD dwMajorVersion
;
848 DWORD dwMinorVersion
;
851 CHAR szCSDVersion
[128];
852 WORD wServicePackMajor
;
853 WORD wServicePackMinor
;
857 } OSVERSIONINFOEXA
, *POSVERSIONINFOEXA
, *LPOSVERSIONINFOEXA
;
860 DWORD dwOSVersionInfoSize
;
861 DWORD dwMajorVersion
;
862 DWORD dwMinorVersion
;
865 WCHAR szCSDVersion
[128];
866 WORD wServicePackMajor
;
867 WORD wServicePackMinor
;
871 } OSVERSIONINFOEXW
, *POSVERSIONINFOEXW
, *LPOSVERSIONINFOEXW
;
873 DECL_WINELIB_TYPE_AW(OSVERSIONINFOEX
)
874 DECL_WINELIB_TYPE_AW(POSVERSIONINFOEX
)
875 DECL_WINELIB_TYPE_AW(LPOSVERSIONINFOEX
)
877 ULONGLONG WINAPI
VerSetConditionMask(ULONGLONG
,DWORD
,BYTE
);
879 #define VER_SET_CONDITION(_m_,_t_,_c_) ((_m_)=VerSetConditionMask((_m_),(_t_),(_c_)))
881 #define VER_PLATFORM_WIN32s 0
882 #define VER_PLATFORM_WIN32_WINDOWS 1
883 #define VER_PLATFORM_WIN32_NT 2
885 #define VER_MINORVERSION 0x00000001
886 #define VER_MAJORVERSION 0x00000002
887 #define VER_BUILDNUMBER 0x00000004
888 #define VER_PLATFORMID 0x00000008
889 #define VER_SERVICEPACKMINOR 0x00000010
890 #define VER_SERVICEPACKMAJOR 0x00000020
891 #define VER_SUITENAME 0x00000040
892 #define VER_PRODUCT_TYPE 0x00000080
894 #define VER_NT_WORKSTATION 1
895 #define VER_NT_DOMAIN_CONTROLLER 2
896 #define VER_NT_SERVER 3
898 #define VER_SUITE_SMALLBUSINESS 0x00000001
899 #define VER_SUITE_ENTERPRISE 0x00000002
900 #define VER_SUITE_BACKOFFICE 0x00000004
901 #define VER_SUITE_COMMUNICATIONS 0x00000008
902 #define VER_SUITE_TERMINAL 0x00000010
903 #define VER_SUITE_SMALLBUSINESS_RESTRICTED 0x00000020
904 #define VER_SUITE_EMBEDDEDNT 0x00000040
905 #define VER_SUITE_DATACENTER 0x00000080
906 #define VER_SUITE_SINGLEUSERTS 0x00000100
907 #define VER_SUITE_PERSONAL 0x00000200
910 #define VER_GREATER 2
911 #define VER_GREATER_EQUAL 3
913 #define VER_LESS_EQUAL 5
917 typedef struct tagCOMSTAT
922 } COMSTAT
,*LPCOMSTAT
;
924 typedef struct tagDCB
930 unsigned fOutxCtsFlow
:1;
931 unsigned fOutxDsrFlow
:1;
932 unsigned fDtrControl
:2;
933 unsigned fDsrSensitivity
:1;
934 unsigned fTXContinueOnXoff
:1;
937 unsigned fErrorChar
:1;
939 unsigned fRtsControl
:2;
940 unsigned fAbortOnError
:1;
941 unsigned fDummy2
:17;
955 typedef struct tagCOMMCONFIG
{
960 DWORD dwProviderSubType
;
961 DWORD dwProviderOffset
;
962 DWORD dwProviderSize
;
963 DWORD wcProviderData
[1];
964 } COMMCONFIG
, *LPCOMMCONFIG
;
966 typedef struct tagCOMMPROP
{
975 DWORD dwProvCapabilities
;
976 DWORD dwSettableParams
;
977 DWORD dwSettableBaud
;
979 WORD wSettableStopParity
;
980 DWORD dwCurrentTxQueue
;
981 DWORD dwCurrentRxQueue
;
985 } COMMPROP
, *LPCOMMPROP
;
987 #define SP_SERIALCOMM ((DWORD)1)
989 #define BAUD_075 ((DWORD)0x01)
990 #define BAUD_110 ((DWORD)0x02)
991 #define BAUD_134_5 ((DWORD)0x04)
992 #define BAUD_150 ((DWORD)0x08)
993 #define BAUD_300 ((DWORD)0x10)
994 #define BAUD_600 ((DWORD)0x20)
995 #define BAUD_1200 ((DWORD)0x40)
996 #define BAUD_1800 ((DWORD)0x80)
997 #define BAUD_2400 ((DWORD)0x100)
998 #define BAUD_4800 ((DWORD)0x200)
999 #define BAUD_7200 ((DWORD)0x400)
1000 #define BAUD_9600 ((DWORD)0x800)
1001 #define BAUD_14400 ((DWORD)0x1000)
1002 #define BAUD_19200 ((DWORD)0x2000)
1003 #define BAUD_38400 ((DWORD)0x4000)
1004 #define BAUD_56K ((DWORD)0x8000)
1005 #define BAUD_57600 ((DWORD)0x40000)
1006 #define BAUD_115200 ((DWORD)0x20000)
1007 #define BAUD_128K ((DWORD)0x10000)
1008 #define BAUD_USER ((DWORD)0x10000000)
1010 #define PST_FAX ((DWORD)0x21)
1011 #define PST_LAT ((DWORD)0x101)
1012 #define PST_MODEM ((DWORD)0x06)
1013 #define PST_NETWORK_BRIDGE ((DWORD)0x100)
1014 #define PST_PARALLEL_PORT ((DWORD)0x02)
1015 #define PST_RS232 ((DWORD)0x01)
1016 #define PST_RS442 ((DWORD)0x03)
1017 #define PST_RS423 ((DWORD)0x04)
1018 #define PST_RS449 ((DWORD)0x06)
1019 #define PST_SCANNER ((DWORD)0x22)
1020 #define PST_TCPIP_TELNET ((DWORD)0x102)
1021 #define PST_UNSPECIFIED ((DWORD)0x00)
1022 #define PST_X25 ((DWORD)0x103)
1024 #define PCF_16BITMODE ((DWORD)0x200)
1025 #define PCF_DTRDSR ((DWORD)0x01)
1026 #define PCF_INTTIMEOUTS ((DWORD)0x80)
1027 #define PCF_PARITY_CHECK ((DWORD)0x08)
1028 #define PCF_RLSD ((DWORD)0x04)
1029 #define PCF_RTSCTS ((DWORD)0x02)
1030 #define PCF_SETXCHAR ((DWORD)0x20)
1031 #define PCF_SPECIALCHARS ((DWORD)0x100)
1032 #define PCF_TOTALTIMEOUTS ((DWORD)0x40)
1033 #define PCF_XONXOFF ((DWORD)0x10)
1035 #define SP_BAUD ((DWORD)0x02)
1036 #define SP_DATABITS ((DWORD)0x04)
1037 #define SP_HANDSHAKING ((DWORD)0x10)
1038 #define SP_PARITY ((DWORD)0x01)
1039 #define SP_PARITY_CHECK ((DWORD)0x20)
1040 #define SP_RLSD ((DWORD)0x40)
1041 #define SP_STOPBITS ((DWORD)0x08)
1043 #define DATABITS_5 ((DWORD)0x01)
1044 #define DATABITS_6 ((DWORD)0x02)
1045 #define DATABITS_7 ((DWORD)0x04)
1046 #define DATABITS_8 ((DWORD)0x08)
1047 #define DATABITS_16 ((DWORD)0x10)
1048 #define DATABITS_16X ((DWORD)0x20)
1050 #define STOPBITS_10 ((DWORD)1)
1051 #define STOPBITS_15 ((DWORD)2)
1052 #define STOPBITS_20 ((DWORD)4)
1054 #define PARITY_NONE ((DWORD)0x100)
1055 #define PARITY_ODD ((DWORD)0x200)
1056 #define PARITY_EVEN ((DWORD)0x400)
1057 #define PARITY_MARK ((DWORD)0x800)
1058 #define PARITY_SPACE ((DWORD)0x1000)
1060 typedef struct tagCOMMTIMEOUTS
{
1061 DWORD ReadIntervalTimeout
;
1062 DWORD ReadTotalTimeoutMultiplier
;
1063 DWORD ReadTotalTimeoutConstant
;
1064 DWORD WriteTotalTimeoutMultiplier
;
1065 DWORD WriteTotalTimeoutConstant
;
1066 } COMMTIMEOUTS
,*LPCOMMTIMEOUTS
;
1068 typedef void (CALLBACK
*PAPCFUNC
)(ULONG_PTR
);
1069 typedef void (CALLBACK
*PTIMERAPCROUTINE
)(LPVOID
,DWORD
,DWORD
);
1071 typedef enum _COMPUTER_NAME_FORMAT
1073 ComputerNameNetBIOS
,
1074 ComputerNameDnsHostname
,
1075 ComputerNameDnsDomain
,
1076 ComputerNameDnsFullyQualified
,
1077 ComputerNamePhysicalNetBIOS
,
1078 ComputerNamePhysicalDnsHostname
,
1079 ComputerNamePhysicalDnsDomain
,
1080 ComputerNamePhysicalDnsFullyQualified
,
1082 } COMPUTER_NAME_FORMAT
;
1084 /*DWORD WINAPI GetVersion( void );*/
1085 BOOL WINAPI
GetVersionExA(OSVERSIONINFOA
*);
1086 BOOL WINAPI
GetVersionExW(OSVERSIONINFOW
*);
1087 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1089 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1091 LPVOID WINAPI
HeapAlloc(HANDLE
,DWORD
,DWORD
);
1092 BOOL WINAPI
HeapFree(HANDLE
,DWORD
,LPVOID
);
1093 LPVOID WINAPI
HeapReAlloc(HANDLE
,DWORD
,LPVOID
,DWORD
);
1094 DWORD WINAPI
HeapSize(HANDLE
,DWORD
,LPVOID
);
1095 void WINAPI
InitializeCriticalSection(CRITICAL_SECTION
*lpCrit
);
1096 BOOL WINAPI
InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION
*,DWORD
);
1097 void WINAPI
DeleteCriticalSection(CRITICAL_SECTION
*lpCrit
);
1098 void WINAPI
EnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1099 BOOL WINAPI
TryEnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1100 void WINAPI
LeaveCriticalSection(CRITICAL_SECTION
*lpCrit
);
1101 void WINAPI
MakeCriticalSectionGlobal(CRITICAL_SECTION
*lpCrit
);
1102 BOOL WINAPI
GetProcessWorkingSetSize(HANDLE
,LPDWORD
,LPDWORD
);
1103 DWORD WINAPI
QueueUserAPC(PAPCFUNC
,HANDLE
,ULONG_PTR
);
1104 void WINAPI
RaiseException(DWORD
,DWORD
,DWORD
,const LPDWORD
);
1105 BOOL WINAPI
SetProcessWorkingSetSize(HANDLE
,DWORD
,DWORD
);
1106 BOOL WINAPI
TerminateProcess(HANDLE
,DWORD
);
1107 BOOL WINAPI
TerminateThread(HANDLE
,DWORD
);
1108 BOOL WINAPI
GetExitCodeThread(HANDLE
,LPDWORD
);
1110 /* GetBinaryType return values.
1113 #define SCS_32BIT_BINARY 0
1114 #define SCS_DOS_BINARY 1
1115 #define SCS_WOW_BINARY 2
1116 #define SCS_PIF_BINARY 3
1117 #define SCS_POSIX_BINARY 4
1118 #define SCS_OS216_BINARY 5
1120 BOOL WINAPI
GetBinaryTypeA( LPCSTR lpApplicationName
, LPDWORD lpBinaryType
);
1121 BOOL WINAPI
GetBinaryTypeW( LPCWSTR lpApplicationName
, LPDWORD lpBinaryType
);
1122 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1124 /* Declarations for functions that exist only in Win32 */
1126 BOOL WINAPI
AddAccessAllowedAce(PACL
,DWORD
,DWORD
,PSID
);
1127 BOOL WINAPI
AttachThreadInput(DWORD
,DWORD
,BOOL
);
1128 BOOL WINAPI
AccessCheck(PSECURITY_DESCRIPTOR
,HANDLE
,DWORD
,PGENERIC_MAPPING
,PPRIVILEGE_SET
,LPDWORD
,LPDWORD
,LPBOOL
);
1129 BOOL WINAPI
AdjustTokenPrivileges(HANDLE
,BOOL
,LPVOID
,DWORD
,LPVOID
,LPDWORD
);
1130 BOOL WINAPI
AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY
,BYTE
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
*);
1131 BOOL WINAPI
AllocateLocallyUniqueId(PLUID
);
1132 BOOL WINAPI
AreFileApisANSI(void);
1133 BOOL WINAPI
BackupEventLogA(HANDLE
,LPCSTR
);
1134 BOOL WINAPI
BackupEventLogW(HANDLE
,LPCWSTR
);
1135 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1136 BOOL WINAPI
BackupRead(HANDLE
,LPBYTE
,DWORD
,LPDWORD
,BOOL
,BOOL
,LPVOID
*);
1137 BOOL WINAPI
BackupSeek(HANDLE
,DWORD
,DWORD
,LPDWORD
,LPDWORD
,LPVOID
*);
1138 BOOL WINAPI
BackupWrite(HANDLE
,LPBYTE
,DWORD
,LPDWORD
,BOOL
,BOOL
,LPVOID
*);
1139 BOOL WINAPI
Beep(DWORD
,DWORD
);
1140 BOOL WINAPI
BuildCommDCBA(LPCSTR
,LPDCB
);
1141 BOOL WINAPI
BuildCommDCBW(LPCWSTR
,LPDCB
);
1142 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1143 BOOL WINAPI
BuildCommDCBAndTimeoutsA(LPCSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1144 BOOL WINAPI
BuildCommDCBAndTimeoutsW(LPCWSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1145 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1146 BOOL WINAPI
CancelIo(HANDLE
);
1147 BOOL WINAPI
CancelWaitableTimer(HANDLE
);
1148 BOOL WINAPI
CheckTokenMembership(HANDLE
,PSID
,PBOOL
);
1149 BOOL WINAPI
ClearCommBreak(HANDLE
);
1150 BOOL WINAPI
ClearCommError(HANDLE
,LPDWORD
,LPCOMSTAT
);
1151 BOOL WINAPI
ClearEventLogA(HANDLE
,LPCSTR
);
1152 BOOL WINAPI
ClearEventLogW(HANDLE
,LPCWSTR
);
1153 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1154 BOOL WINAPI
CloseEventLog(HANDLE
);
1155 BOOL WINAPI
CloseHandle(HANDLE
);
1156 BOOL WINAPI
CommConfigDialogA(LPCSTR
,HANDLE
,LPCOMMCONFIG
);
1157 BOOL WINAPI
CommConfigDialogW(LPCWSTR
,HANDLE
,LPCOMMCONFIG
);
1158 #define CommConfigDialog WINELIB_NAME_AW(CommConfigDialog)
1159 BOOL WINAPI
ConnectNamedPipe(HANDLE
,LPOVERLAPPED
);
1160 BOOL WINAPI
ContinueDebugEvent(DWORD
,DWORD
,DWORD
);
1161 HANDLE WINAPI
ConvertToGlobalHandle(HANDLE hSrc
);
1162 BOOL WINAPI
CopyFileA(LPCSTR
,LPCSTR
,BOOL
);
1163 BOOL WINAPI
CopyFileW(LPCWSTR
,LPCWSTR
,BOOL
);
1164 #define CopyFile WINELIB_NAME_AW(CopyFile)
1165 BOOL WINAPI
CopyFileExA(LPCSTR
, LPCSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1166 BOOL WINAPI
CopyFileExW(LPCWSTR
, LPCWSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1167 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1168 BOOL WINAPI
CopySid(DWORD
,PSID
,PSID
);
1169 INT WINAPI
CompareFileTime(LPFILETIME
,LPFILETIME
);
1170 HANDLE WINAPI
CreateEventA(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCSTR
);
1171 HANDLE WINAPI
CreateEventW(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCWSTR
);
1172 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1173 HANDLE WINAPI
CreateFileA(LPCSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,
1174 DWORD
,DWORD
,HANDLE
);
1175 HANDLE WINAPI
CreateFileW(LPCWSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,
1176 DWORD
,DWORD
,HANDLE
);
1177 #define CreateFile WINELIB_NAME_AW(CreateFile)
1178 HANDLE WINAPI
CreateFileMappingA(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,
1179 DWORD
,DWORD
,LPCSTR
);
1180 HANDLE WINAPI
CreateFileMappingW(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,
1181 DWORD
,DWORD
,LPCWSTR
);
1182 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1183 HANDLE WINAPI
CreateMutexA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1184 HANDLE WINAPI
CreateMutexW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1185 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1186 HANDLE WINAPI
CreateNamedPipeA(LPCSTR
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
1187 HANDLE WINAPI
CreateNamedPipeW(LPCWSTR
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
1188 #define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
1189 BOOL WINAPI
CreatePipe(PHANDLE
,PHANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
);
1190 BOOL WINAPI
CreateProcessA(LPCSTR
,LPSTR
,LPSECURITY_ATTRIBUTES
,
1191 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCSTR
,
1192 LPSTARTUPINFOA
,LPPROCESS_INFORMATION
);
1193 BOOL WINAPI
CreateProcessW(LPCWSTR
,LPWSTR
,LPSECURITY_ATTRIBUTES
,
1194 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCWSTR
,
1195 LPSTARTUPINFOW
,LPPROCESS_INFORMATION
);
1196 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1197 HANDLE WINAPI
CreateRemoteThread(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,LPTHREAD_START_ROUTINE
,LPVOID
,DWORD
,LPDWORD
);
1198 HANDLE WINAPI
CreateSemaphoreA(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCSTR
);
1199 HANDLE WINAPI
CreateSemaphoreW(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCWSTR
);
1200 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1201 DWORD WINAPI
CreateTapePartition(HANDLE
,DWORD
,DWORD
,DWORD
);
1202 HANDLE WINAPI
CreateThread(LPSECURITY_ATTRIBUTES
,DWORD
,LPTHREAD_START_ROUTINE
,LPVOID
,DWORD
,LPDWORD
);
1203 HANDLE WINAPI
CreateWaitableTimerA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1204 HANDLE WINAPI
CreateWaitableTimerW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1205 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1206 BOOL WINAPI
DebugActiveProcess(DWORD
);
1207 BOOL WINAPI
DebugActiveProcessStop(DWORD
);
1208 void WINAPI
DebugBreak(void);
1209 BOOL WINAPI
DebugBreakProcess(HANDLE
);
1210 BOOL WINAPI
DebugSetProcessKillOnExit(BOOL
);
1211 BOOL WINAPI
DeregisterEventSource(HANDLE
);
1212 BOOL WINAPI
DeviceIoControl(HANDLE
,DWORD
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1213 BOOL WINAPI
DisableThreadLibraryCalls(HMODULE
);
1214 BOOL WINAPI
DisconnectNamedPipe(HANDLE
);
1215 BOOL WINAPI
DosDateTimeToFileTime(WORD
,WORD
,LPFILETIME
);
1216 BOOL WINAPI
DuplicateHandle(HANDLE
,HANDLE
,HANDLE
,HANDLE
*,DWORD
,BOOL
,DWORD
);
1217 BOOL WINAPI
EscapeCommFunction(HANDLE
,UINT
);
1218 BOOL WINAPI
EnumResourceLanguagesA(HMODULE
,LPCSTR
,LPCSTR
,
1219 ENUMRESLANGPROCA
,LONG
);
1220 BOOL WINAPI
EnumResourceLanguagesW(HMODULE
,LPCWSTR
,LPCWSTR
,
1221 ENUMRESLANGPROCW
,LONG
);
1222 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1223 BOOL WINAPI
EnumResourceNamesA(HMODULE
,LPCSTR
,ENUMRESNAMEPROCA
,
1225 BOOL WINAPI
EnumResourceNamesW(HMODULE
,LPCWSTR
,ENUMRESNAMEPROCW
,
1227 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1228 BOOL WINAPI
EnumResourceTypesA(HMODULE
,ENUMRESTYPEPROCA
,LONG
);
1229 BOOL WINAPI
EnumResourceTypesW(HMODULE
,ENUMRESTYPEPROCW
,LONG
);
1230 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1231 BOOL WINAPI
EqualSid(PSID
, PSID
);
1232 BOOL WINAPI
EqualPrefixSid(PSID
,PSID
);
1233 DWORD WINAPI
EraseTape(HANDLE
,DWORD
,BOOL
);
1234 VOID WINAPI
ExitProcess(DWORD
) WINE_NORETURN
;
1235 VOID WINAPI
ExitThread(DWORD
) WINE_NORETURN
;
1236 DWORD WINAPI
ExpandEnvironmentStringsA(LPCSTR
,LPSTR
,DWORD
);
1237 DWORD WINAPI
ExpandEnvironmentStringsW(LPCWSTR
,LPWSTR
,DWORD
);
1238 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1239 BOOL WINAPI
FileTimeToDosDateTime(const FILETIME
*,LPWORD
,LPWORD
);
1240 BOOL WINAPI
FileTimeToLocalFileTime(const FILETIME
*,LPFILETIME
);
1241 BOOL WINAPI
FileTimeToSystemTime(const FILETIME
*,LPSYSTEMTIME
);
1242 HANDLE WINAPI
FindFirstChangeNotificationA(LPCSTR
,BOOL
,DWORD
);
1243 HANDLE WINAPI
FindFirstChangeNotificationW(LPCWSTR
,BOOL
,DWORD
);
1244 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1245 BOOL WINAPI
FindNextChangeNotification(HANDLE
);
1246 BOOL WINAPI
FindCloseChangeNotification(HANDLE
);
1247 HRSRC WINAPI
FindResourceExA(HMODULE
,LPCSTR
,LPCSTR
,WORD
);
1248 HRSRC WINAPI
FindResourceExW(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
);
1249 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1250 BOOL WINAPI
FlushFileBuffers(HANDLE
);
1251 BOOL WINAPI
FlushViewOfFile(LPCVOID
, DWORD
);
1252 DWORD WINAPI
FormatMessageA(DWORD
,LPCVOID
,DWORD
,DWORD
,LPSTR
,DWORD
,va_list*);
1253 DWORD WINAPI
FormatMessageW(DWORD
,LPCVOID
,DWORD
,DWORD
,LPWSTR
,DWORD
,va_list*);
1254 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1255 BOOL WINAPI
FreeEnvironmentStringsA(LPSTR
);
1256 BOOL WINAPI
FreeEnvironmentStringsW(LPWSTR
);
1257 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1258 VOID WINAPI
FreeLibraryAndExitThread(HINSTANCE
,DWORD
);
1259 PVOID WINAPI
FreeSid(PSID
);
1260 BOOL WINAPI
GetCommConfig(HANDLE
,LPCOMMCONFIG
,LPDWORD
);
1261 BOOL WINAPI
GetCommMask(HANDLE
,LPDWORD
);
1262 BOOL WINAPI
GetCommModemStatus(HANDLE
,LPDWORD
);
1263 BOOL WINAPI
GetCommProperties(HANDLE
,LPCOMMPROP
);
1264 BOOL WINAPI
GetCommState(HANDLE
,LPDCB
);
1265 BOOL WINAPI
GetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1266 LPSTR WINAPI
GetCommandLineA(void);
1267 LPWSTR WINAPI
GetCommandLineW(void);
1268 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1269 BOOL WINAPI
GetComputerNameA(LPSTR
,LPDWORD
);
1270 BOOL WINAPI
GetComputerNameW(LPWSTR
,LPDWORD
);
1271 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1272 BOOL WINAPI
GetComputerNameExA(COMPUTER_NAME_FORMAT
,LPSTR
,LPDWORD
);
1273 BOOL WINAPI
GetComputerNameExW(COMPUTER_NAME_FORMAT
,LPWSTR
,LPDWORD
);
1274 #define GetComputerNameEx WINELIB_NAME_AW(GetComputerNameEx)
1275 HANDLE WINAPI
GetCurrentProcess(void);
1276 HANDLE WINAPI
GetCurrentThread(void);
1277 BOOL WINAPI
GetDefaultCommConfigA(LPCSTR
,LPCOMMCONFIG
,LPDWORD
);
1278 BOOL WINAPI
GetDefaultCommConfigW(LPCWSTR
,LPCOMMCONFIG
,LPDWORD
);
1279 #define GetDefaultCommConfig WINELIB_NAME_AW(GetDefaultCommConfig)
1280 LPSTR WINAPI
GetEnvironmentStringsA(void);
1281 LPWSTR WINAPI
GetEnvironmentStringsW(void);
1282 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1283 DWORD WINAPI
GetEnvironmentVariableA(LPCSTR
,LPSTR
,DWORD
);
1284 DWORD WINAPI
GetEnvironmentVariableW(LPCWSTR
,LPWSTR
,DWORD
);
1285 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1286 BOOL WINAPI
GetFileAttributesExA(LPCSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1287 BOOL WINAPI
GetFileAttributesExW(LPCWSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1288 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1289 DWORD WINAPI
GetFileInformationByHandle(HANDLE
,BY_HANDLE_FILE_INFORMATION
*);
1290 BOOL WINAPI
GetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1291 BOOL WINAPI
GetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1292 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1293 DWORD WINAPI
GetFileSize(HANDLE
,LPDWORD
);
1294 BOOL WINAPI
GetFileTime(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1295 DWORD WINAPI
GetFileType(HANDLE
);
1296 DWORD WINAPI
GetFullPathNameA(LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1297 DWORD WINAPI
GetFullPathNameW(LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1298 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1299 BOOL WINAPI
GetHandleInformation(HANDLE
,LPDWORD
);
1300 DWORD WINAPI
GetLengthSid(PSID
);
1301 VOID WINAPI
GetLocalTime(LPSYSTEMTIME
);
1302 DWORD WINAPI
GetLogicalDrives(void);
1303 DWORD WINAPI
GetLongPathNameA(LPCSTR
,LPSTR
,DWORD
);
1304 DWORD WINAPI
GetLongPathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1305 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1306 BOOL WINAPI
GetNumberOfEventLogRecords(HANDLE
,PDWORD
);
1307 BOOL WINAPI
GetOldestEventLogRecord(HANDLE
,PDWORD
);
1308 DWORD WINAPI
GetPriorityClass(HANDLE
);
1309 BOOL WINAPI
GetProcessAffinityMask(HANDLE
,PDWORD
,PDWORD
);
1310 BOOL WINAPI
GetProcessTimes(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1311 DWORD WINAPI
GetProcessVersion(DWORD
);
1312 BOOL WINAPI
GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR_CONTROL
,LPDWORD
);
1313 BOOL WINAPI
GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR
,LPBOOL
,PACL
*,LPBOOL
);
1314 BOOL WINAPI
GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR
,PSID
*,LPBOOL
);
1315 DWORD WINAPI
GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR
);
1316 BOOL WINAPI
GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR
,PSID
*,LPBOOL
);
1317 BOOL WINAPI
GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR
,LPBOOL
,PACL
*,LPBOOL
);
1318 PSID_IDENTIFIER_AUTHORITY WINAPI
GetSidIdentifierAuthority(PSID
);
1319 DWORD WINAPI
GetSidLengthRequired(BYTE
);
1320 PDWORD WINAPI
GetSidSubAuthority(PSID
,DWORD
);
1321 PUCHAR WINAPI
GetSidSubAuthorityCount(PSID
);
1322 DWORD WINAPI
GetShortPathNameA(LPCSTR
,LPSTR
,DWORD
);
1323 DWORD WINAPI
GetShortPathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1324 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1325 HANDLE WINAPI
GetStdHandle(DWORD
);
1326 VOID WINAPI
GetSystemInfo(LPSYSTEM_INFO
);
1327 BOOL WINAPI
GetSystemPowerStatus(LPSYSTEM_POWER_STATUS
);
1328 VOID WINAPI
GetSystemTime(LPSYSTEMTIME
);
1329 BOOL WINAPI
GetSystemTimeAdjustment(PDWORD
,PDWORD
,PBOOL
);
1330 VOID WINAPI
GetSystemTimeAsFileTime(LPFILETIME
);
1331 DWORD WINAPI
GetTapeParameters(HANDLE
,DWORD
,LPDWORD
,LPVOID
);
1332 DWORD WINAPI
GetTapePosition(HANDLE
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1333 DWORD WINAPI
GetTapeStatus(HANDLE
);
1334 DWORD WINAPI
GetTimeZoneInformation(LPTIME_ZONE_INFORMATION
);
1335 BOOL WINAPI
GetThreadContext(HANDLE
,CONTEXT
*);
1336 INT WINAPI
GetThreadPriority(HANDLE
);
1337 BOOL WINAPI
GetThreadPriorityBoost(HANDLE
,PBOOL
);
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 DWORD WINAPI
HeapCompact(HANDLE
,DWORD
);
1346 HANDLE WINAPI
HeapCreate(DWORD
,DWORD
,DWORD
);
1347 BOOL WINAPI
HeapDestroy(HANDLE
);
1348 BOOL WINAPI
HeapLock(HANDLE
);
1349 BOOL WINAPI
HeapUnlock(HANDLE
);
1350 BOOL WINAPI
HeapValidate(HANDLE
,DWORD
,LPCVOID
);
1351 BOOL WINAPI
HeapWalk(HANDLE
,LPPROCESS_HEAP_ENTRY
);
1352 DWORD WINAPI
InitializeAcl(PACL
,DWORD
,DWORD
);
1353 BOOL WINAPI
InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR
,DWORD
);
1354 BOOL WINAPI
InitializeSid(PSID
,PSID_IDENTIFIER_AUTHORITY
,BYTE
);
1355 BOOL WINAPI
IsTextUnicode(CONST LPVOID lpBuffer
, int cb
, LPINT lpi
);
1356 BOOL WINAPI
IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR
);
1357 BOOL WINAPI
IsValidSid(PSID
);
1358 BOOL WINAPI
ImpersonateLoggedOnUser(HANDLE
);
1359 BOOL WINAPI
ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL
);
1360 BOOL WINAPI
IsProcessorFeaturePresent(DWORD
);
1361 BOOL WINAPI
LookupAccountSidA(LPCSTR
,PSID
,LPSTR
,LPDWORD
,LPSTR
,LPDWORD
,PSID_NAME_USE
);
1362 BOOL WINAPI
LookupAccountSidW(LPCWSTR
,PSID
,LPWSTR
,LPDWORD
,LPWSTR
,LPDWORD
,PSID_NAME_USE
);
1363 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSid)
1364 BOOL WINAPI
LocalFileTimeToFileTime(const FILETIME
*,LPFILETIME
);
1365 BOOL WINAPI
LockFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1366 BOOL WINAPI
LockFileEx(HANDLE
, DWORD
, DWORD
, DWORD
, DWORD
, LPOVERLAPPED
);
1367 BOOL WINAPI
LookupPrivilegeValueA(LPCSTR
,LPCSTR
,LPVOID
);
1368 BOOL WINAPI
LookupPrivilegeValueW(LPCWSTR
,LPCWSTR
,LPVOID
);
1369 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1370 BOOL WINAPI
MakeSelfRelativeSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,LPDWORD
);
1371 HMODULE WINAPI
MapHModuleSL(WORD
);
1372 WORD WINAPI
MapHModuleLS(HMODULE
);
1373 LPVOID WINAPI
MapViewOfFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1374 LPVOID WINAPI
MapViewOfFileEx(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
,LPVOID
);
1375 BOOL WINAPI
MoveFileA(LPCSTR
,LPCSTR
);
1376 BOOL WINAPI
MoveFileW(LPCWSTR
,LPCWSTR
);
1377 #define MoveFile WINELIB_NAME_AW(MoveFile)
1378 BOOL WINAPI
MoveFileExA(LPCSTR
,LPCSTR
,DWORD
);
1379 BOOL WINAPI
MoveFileExW(LPCWSTR
,LPCWSTR
,DWORD
);
1380 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1381 BOOL WINAPI
NotifyChangeEventLog(HANDLE
,HANDLE
);
1382 HANDLE WINAPI
OpenBackupEventLogA(LPCSTR
,LPCSTR
);
1383 HANDLE WINAPI
OpenBackupEventLogW(LPCWSTR
,LPCWSTR
);
1384 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1385 HANDLE WINAPI
OpenEventA(DWORD
,BOOL
,LPCSTR
);
1386 HANDLE WINAPI
OpenEventW(DWORD
,BOOL
,LPCWSTR
);
1387 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1388 HANDLE WINAPI
OpenEventLogA(LPCSTR
,LPCSTR
);
1389 HANDLE WINAPI
OpenEventLogW(LPCWSTR
,LPCWSTR
);
1390 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1391 HANDLE WINAPI
OpenFileMappingA(DWORD
,BOOL
,LPCSTR
);
1392 HANDLE WINAPI
OpenFileMappingW(DWORD
,BOOL
,LPCWSTR
);
1393 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1394 HANDLE WINAPI
OpenMutexA(DWORD
,BOOL
,LPCSTR
);
1395 HANDLE WINAPI
OpenMutexW(DWORD
,BOOL
,LPCWSTR
);
1396 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1397 HANDLE WINAPI
OpenProcess(DWORD
,BOOL
,DWORD
);
1398 BOOL WINAPI
OpenProcessToken(HANDLE
,DWORD
,PHANDLE
);
1399 HANDLE WINAPI
OpenSemaphoreA(DWORD
,BOOL
,LPCSTR
);
1400 HANDLE WINAPI
OpenSemaphoreW(DWORD
,BOOL
,LPCWSTR
);
1401 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1402 HANDLE WINAPI
OpenThread(DWORD
,BOOL
,DWORD
);
1403 BOOL WINAPI
OpenThreadToken(HANDLE
,DWORD
,BOOL
,PHANDLE
);
1404 HANDLE WINAPI
OpenWaitableTimerA(DWORD
,BOOL
,LPCSTR
);
1405 HANDLE WINAPI
OpenWaitableTimerW(DWORD
,BOOL
,LPCWSTR
);
1406 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
1407 DWORD WINAPI
PrepareTape(HANDLE
,DWORD
,BOOL
);
1408 BOOL WINAPI
PulseEvent(HANDLE
);
1409 BOOL WINAPI
PurgeComm(HANDLE
,DWORD
);
1410 DWORD WINAPI
QueryDosDeviceA(LPCSTR
,LPSTR
,DWORD
);
1411 DWORD WINAPI
QueryDosDeviceW(LPCWSTR
,LPWSTR
,DWORD
);
1412 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1413 BOOL WINAPI
QueryPerformanceCounter(LARGE_INTEGER
*);
1414 BOOL WINAPI
QueryPerformanceFrequency(LARGE_INTEGER
*);
1415 BOOL WINAPI
ReadEventLogA(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1416 BOOL WINAPI
ReadEventLogW(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1417 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1418 BOOL WINAPI
ReadFile(HANDLE
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1419 BOOL WINAPI
ReadFileEx(HANDLE
,LPVOID
,DWORD
,LPOVERLAPPED
,LPOVERLAPPED_COMPLETION_ROUTINE
);
1420 HANDLE WINAPI
RegisterEventSourceA(LPCSTR
,LPCSTR
);
1421 HANDLE WINAPI
RegisterEventSourceW(LPCWSTR
,LPCWSTR
);
1422 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1423 BOOL WINAPI
ReleaseMutex(HANDLE
);
1424 BOOL WINAPI
ReleaseSemaphore(HANDLE
,LONG
,LPLONG
);
1425 BOOL WINAPI
ReportEventA(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCSTR
*,LPVOID
);
1426 BOOL WINAPI
ReportEventW(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCWSTR
*,LPVOID
);
1427 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
1428 BOOL WINAPI
ResetEvent(HANDLE
);
1429 DWORD WINAPI
ResumeThread(HANDLE
);
1430 BOOL WINAPI
RevertToSelf(void);
1431 DWORD WINAPI
SearchPathA(LPCSTR
,LPCSTR
,LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1432 DWORD WINAPI
SearchPathW(LPCWSTR
,LPCWSTR
,LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1433 #define SearchPath WINELIB_NAME_AW(SearchPath)
1434 BOOL WINAPI
SetCommConfig(HANDLE
,LPCOMMCONFIG
,DWORD
);
1435 BOOL WINAPI
SetCommBreak(HANDLE
);
1436 BOOL WINAPI
SetCommMask(HANDLE
,DWORD
);
1437 BOOL WINAPI
SetCommState(HANDLE
,LPDCB
);
1438 BOOL WINAPI
SetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1439 BOOL WINAPI
SetComputerNameA(LPCSTR
);
1440 BOOL WINAPI
SetComputerNameW(LPCWSTR
);
1441 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1442 BOOL WINAPI
SetDefaultCommConfigA(LPCSTR
,LPCOMMCONFIG
,DWORD
);
1443 BOOL WINAPI
SetDefaultCommConfigW(LPCWSTR
,LPCOMMCONFIG
,DWORD
);
1444 #define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1445 BOOL WINAPI
SetEndOfFile(HANDLE
);
1446 BOOL WINAPI
SetEnvironmentVariableA(LPCSTR
,LPCSTR
);
1447 BOOL WINAPI
SetEnvironmentVariableW(LPCWSTR
,LPCWSTR
);
1448 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1449 BOOL WINAPI
SetEvent(HANDLE
);
1450 VOID WINAPI
SetFileApisToANSI(void);
1451 VOID WINAPI
SetFileApisToOEM(void);
1452 DWORD WINAPI
SetFilePointer(HANDLE
,LONG
,LPLONG
,DWORD
);
1453 BOOL WINAPI
SetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1454 BOOL WINAPI
SetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1455 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1456 BOOL WINAPI
SetFileTime(HANDLE
,const FILETIME
*,const FILETIME
*,const FILETIME
*);
1457 BOOL WINAPI
SetHandleInformation(HANDLE
,DWORD
,DWORD
);
1458 BOOL WINAPI
SetKernelObjectSecurity(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1459 BOOL WINAPI
SetPriorityClass(HANDLE
,DWORD
);
1460 BOOL WINAPI
SetLocalTime(const SYSTEMTIME
*);
1461 BOOL WINAPI
SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1462 BOOL WINAPI
SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1463 BOOL WINAPI
SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1464 BOOL WINAPI
SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1465 BOOL WINAPI
SetStdHandle(DWORD
,HANDLE
);
1466 BOOL WINAPI
SetSystemPowerState(BOOL
,BOOL
);
1467 BOOL WINAPI
SetSystemTime(const SYSTEMTIME
*);
1468 DWORD WINAPI
SetTapeParameters(HANDLE
,DWORD
,LPVOID
);
1469 DWORD WINAPI
SetTapePosition(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
,BOOL
);
1470 DWORD WINAPI
SetThreadAffinityMask(HANDLE
,DWORD
);
1471 BOOL WINAPI
SetThreadContext(HANDLE
,const CONTEXT
*);
1472 DWORD WINAPI
SetThreadExecutionState(EXECUTION_STATE
);
1473 DWORD WINAPI
SetThreadIdealProcessor(HANDLE
,DWORD
);
1474 BOOL WINAPI
SetThreadPriority(HANDLE
,INT
);
1475 BOOL WINAPI
SetThreadPriorityBoost(HANDLE
,BOOL
);
1476 BOOL WINAPI
SetThreadToken(PHANDLE
,HANDLE
);
1477 BOOL WINAPI
SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION
);
1478 BOOL WINAPI
SetWaitableTimer(HANDLE
,const LARGE_INTEGER
*,LONG
,PTIMERAPCROUTINE
,LPVOID
,BOOL
);
1479 BOOL WINAPI
SetupComm(HANDLE
,DWORD
,DWORD
);
1480 VOID WINAPI
Sleep(DWORD
);
1481 DWORD WINAPI
SleepEx(DWORD
,BOOL
);
1482 DWORD WINAPI
SuspendThread(HANDLE
);
1483 BOOL WINAPI
SystemTimeToFileTime(const SYSTEMTIME
*,LPFILETIME
);
1484 DWORD WINAPI
TlsAlloc(void);
1485 BOOL WINAPI
TlsFree(DWORD
);
1486 LPVOID WINAPI
TlsGetValue(DWORD
);
1487 BOOL WINAPI
TlsSetValue(DWORD
,LPVOID
);
1488 BOOL WINAPI
TransmitCommChar(HANDLE
,CHAR
);
1489 BOOL WINAPI
UnlockFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1490 BOOL WINAPI
UnmapViewOfFile(LPVOID
);
1491 BOOL WINAPI
VerifyVersionInfoA(LPOSVERSIONINFOEXA
,DWORD
,DWORDLONG
);
1492 BOOL WINAPI
VerifyVersionInfoW(LPOSVERSIONINFOEXW
,DWORD
,DWORDLONG
);
1493 #define VerifyVersionInfo WINELIB_NAME_AW(VerifyVersionInfo)
1494 LPVOID WINAPI
VirtualAlloc(LPVOID
,DWORD
,DWORD
,DWORD
);
1495 LPVOID WINAPI
VirtualAllocEx(HANDLE
,LPVOID
,DWORD
,DWORD
,DWORD
);
1496 BOOL WINAPI
VirtualFree(LPVOID
,DWORD
,DWORD
);
1497 BOOL WINAPI
VirtualLock(LPVOID
,DWORD
);
1498 BOOL WINAPI
VirtualProtect(LPVOID
,DWORD
,DWORD
,LPDWORD
);
1499 BOOL WINAPI
VirtualProtectEx(HANDLE
,LPVOID
,DWORD
,DWORD
,LPDWORD
);
1500 DWORD WINAPI
VirtualQuery(LPCVOID
,LPMEMORY_BASIC_INFORMATION
,DWORD
);
1501 DWORD WINAPI
VirtualQueryEx(HANDLE
,LPCVOID
,LPMEMORY_BASIC_INFORMATION
,DWORD
);
1502 BOOL WINAPI
VirtualUnlock(LPVOID
,DWORD
);
1503 BOOL WINAPI
WaitCommEvent(HANDLE
,LPDWORD
,LPOVERLAPPED
);
1504 BOOL WINAPI
WaitForDebugEvent(LPDEBUG_EVENT
,DWORD
);
1505 DWORD WINAPI
WaitForMultipleObjects(DWORD
,const HANDLE
*,BOOL
,DWORD
);
1506 DWORD WINAPI
WaitForMultipleObjectsEx(DWORD
,const HANDLE
*,BOOL
,DWORD
,BOOL
);
1507 DWORD WINAPI
WaitForSingleObject(HANDLE
,DWORD
);
1508 DWORD WINAPI
WaitForSingleObjectEx(HANDLE
,DWORD
,BOOL
);
1509 BOOL WINAPI
WaitNamedPipeA(LPCSTR
,DWORD
);
1510 BOOL WINAPI
WaitNamedPipeW(LPCWSTR
,DWORD
);
1511 #define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
1512 BOOL WINAPI
WriteFile(HANDLE
,LPCVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1513 BOOL WINAPI
WriteFileEx(HANDLE
,LPCVOID
,DWORD
,LPOVERLAPPED
,LPOVERLAPPED_COMPLETION_ROUTINE
);
1514 DWORD WINAPI
WriteTapemark(HANDLE
,DWORD
,DWORD
,BOOL
);
1515 ATOM WINAPI
AddAtomA(LPCSTR
);
1516 ATOM WINAPI
AddAtomW(LPCWSTR
);
1517 #define AddAtom WINELIB_NAME_AW(AddAtom)
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 HANDLE WINAPI
FindFirstFileA(LPCSTR
,LPWIN32_FIND_DATAA
);
1538 HANDLE WINAPI
FindFirstFileW(LPCWSTR
,LPWIN32_FIND_DATAW
);
1539 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1540 HANDLE WINAPI
FindFirstFileExA(LPCSTR
,FINDEX_INFO_LEVELS
,LPVOID
,FINDEX_SEARCH_OPS
,LPVOID
,DWORD
);
1541 HANDLE WINAPI
FindFirstFileExW(LPCWSTR
,FINDEX_INFO_LEVELS
,LPVOID
,FINDEX_SEARCH_OPS
,LPVOID
,DWORD
);
1542 #define FindFirstFileEx WINELIB_NAME_AW(FindFirstFileEx)
1543 BOOL WINAPI
FindNextFileA(HANDLE
,LPWIN32_FIND_DATAA
);
1544 BOOL WINAPI
FindNextFileW(HANDLE
,LPWIN32_FIND_DATAW
);
1545 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1546 HRSRC WINAPI
FindResourceA(HMODULE
,LPCSTR
,LPCSTR
);
1547 HRSRC WINAPI
FindResourceW(HMODULE
,LPCWSTR
,LPCWSTR
);
1548 #define FindResource WINELIB_NAME_AW(FindResource)
1549 BOOL WINAPI
FlushInstructionCache(HANDLE
,LPCVOID
,DWORD
);
1550 BOOL WINAPI
FreeLibrary(HMODULE
);
1551 #define FreeModule(handle) FreeLibrary(handle)
1552 #define FreeProcInstance(proc) /*nothing*/
1553 BOOL WINAPI
FreeResource(HGLOBAL
);
1554 UINT WINAPI
GetAtomNameA(ATOM
,LPSTR
,INT
);
1555 UINT WINAPI
GetAtomNameW(ATOM
,LPWSTR
,INT
);
1556 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1557 UINT WINAPI
GetCurrentDirectoryA(UINT
,LPSTR
);
1558 UINT WINAPI
GetCurrentDirectoryW(UINT
,LPWSTR
);
1559 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1560 #define GetCurrentTime() GetTickCount()
1561 BOOL WINAPI
GetDiskFreeSpaceA(LPCSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1562 BOOL WINAPI
GetDiskFreeSpaceW(LPCWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1563 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1564 BOOL WINAPI
GetDiskFreeSpaceExA(LPCSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1565 BOOL WINAPI
GetDiskFreeSpaceExW(LPCWSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1566 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1567 UINT WINAPI
GetDriveTypeA(LPCSTR
);
1568 UINT WINAPI
GetDriveTypeW(LPCWSTR
);
1569 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1570 BOOL WINAPI
GetExitCodeProcess(HANDLE
,LPDWORD
);
1571 DWORD WINAPI
GetFileAttributesA(LPCSTR
);
1572 DWORD WINAPI
GetFileAttributesW(LPCWSTR
);
1573 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1574 #define GetFreeSpace(w) (0x100000L)
1575 UINT WINAPI
GetLogicalDriveStringsA(UINT
,LPSTR
);
1576 UINT WINAPI
GetLogicalDriveStringsW(UINT
,LPWSTR
);
1577 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
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 UINT WINAPI
GetSystemDirectoryA(LPSTR
,UINT
);
1614 UINT WINAPI
GetSystemDirectoryW(LPWSTR
,UINT
);
1615 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1616 DWORD WINAPI
GetTickCount(void);
1617 UINT WINAPI
GetTempFileNameA(LPCSTR
,LPCSTR
,UINT
,LPSTR
);
1618 UINT WINAPI
GetTempFileNameW(LPCWSTR
,LPCWSTR
,UINT
,LPWSTR
);
1619 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1620 UINT WINAPI
GetTempPathA(UINT
,LPSTR
);
1621 UINT WINAPI
GetTempPathW(UINT
,LPWSTR
);
1622 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1623 LONG WINAPI
GetVersion(void);
1624 BOOL WINAPI
GetVolumeInformationA(LPCSTR
,LPSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPSTR
,DWORD
);
1625 BOOL WINAPI
GetVolumeInformationW(LPCWSTR
,LPWSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPWSTR
,DWORD
);
1626 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1627 UINT WINAPI
GetWindowsDirectoryA(LPSTR
,UINT
);
1628 UINT WINAPI
GetWindowsDirectoryW(LPWSTR
,UINT
);
1629 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1630 ATOM WINAPI
GlobalAddAtomA(LPCSTR
);
1631 ATOM WINAPI
GlobalAddAtomW(LPCWSTR
);
1632 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
1633 HGLOBAL WINAPI
GlobalAlloc(UINT
,DWORD
);
1634 DWORD WINAPI
GlobalCompact(DWORD
);
1635 ATOM WINAPI
GlobalDeleteAtom(ATOM
);
1636 ATOM WINAPI
GlobalFindAtomA(LPCSTR
);
1637 ATOM WINAPI
GlobalFindAtomW(LPCWSTR
);
1638 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
1639 UINT WINAPI
GlobalFlags(HGLOBAL
);
1640 HGLOBAL WINAPI
GlobalFree(HGLOBAL
);
1641 UINT WINAPI
GlobalGetAtomNameA(ATOM
,LPSTR
,INT
);
1642 UINT WINAPI
GlobalGetAtomNameW(ATOM
,LPWSTR
,INT
);
1643 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
1644 HGLOBAL WINAPI
GlobalHandle(LPCVOID
);
1645 VOID WINAPI
GlobalFix(HGLOBAL
);
1646 LPVOID WINAPI
GlobalLock(HGLOBAL
);
1647 HGLOBAL WINAPI
GlobalReAlloc(HGLOBAL
,DWORD
,UINT
);
1648 DWORD WINAPI
GlobalSize(HGLOBAL
);
1649 VOID WINAPI
GlobalUnfix(HGLOBAL
);
1650 BOOL WINAPI
GlobalUnlock(HGLOBAL
);
1651 BOOL WINAPI
GlobalUnWire(HGLOBAL
);
1652 LPVOID WINAPI
GlobalWire(HGLOBAL
);
1653 #define HasOverlappedCompleted(lpOverlapped) ((lpOverlapped)->Internal != STATUS_PENDING)
1654 BOOL WINAPI
InitAtomTable(DWORD
);
1655 BOOL WINAPI
IsBadCodePtr(FARPROC
);
1656 BOOL WINAPI
IsBadHugeReadPtr(LPCVOID
,UINT
);
1657 BOOL WINAPI
IsBadHugeWritePtr(LPVOID
,UINT
);
1658 BOOL WINAPI
IsBadReadPtr(LPCVOID
,UINT
);
1659 BOOL WINAPI
IsBadStringPtrA(LPCSTR
,UINT
);
1660 BOOL WINAPI
IsBadStringPtrW(LPCWSTR
,UINT
);
1661 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1662 BOOL WINAPI
IsBadWritePtr(LPVOID
,UINT
);
1663 BOOL WINAPI
IsDebuggerPresent(void);
1664 HMODULE WINAPI
LoadLibraryA(LPCSTR
);
1665 HMODULE WINAPI
LoadLibraryW(LPCWSTR
);
1666 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1667 HMODULE WINAPI
LoadLibraryExA(LPCSTR
,HANDLE
,DWORD
);
1668 HMODULE WINAPI
LoadLibraryExW(LPCWSTR
,HANDLE
,DWORD
);
1669 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1670 HINSTANCE WINAPI
LoadModule(LPCSTR
,LPVOID
);
1671 HGLOBAL WINAPI
LoadResource(HMODULE
,HRSRC
);
1672 HLOCAL WINAPI
LocalAlloc(UINT
,DWORD
);
1673 UINT WINAPI
LocalCompact(UINT
);
1674 UINT WINAPI
LocalFlags(HLOCAL
);
1675 HLOCAL WINAPI
LocalFree(HLOCAL
);
1676 HLOCAL WINAPI
LocalHandle(LPCVOID
);
1677 LPVOID WINAPI
LocalLock(HLOCAL
);
1678 HLOCAL WINAPI
LocalReAlloc(HLOCAL
,DWORD
,UINT
);
1679 UINT WINAPI
LocalShrink(HGLOBAL
,UINT
);
1680 UINT WINAPI
LocalSize(HLOCAL
);
1681 BOOL WINAPI
LocalUnlock(HLOCAL
);
1682 LPVOID WINAPI
LockResource(HGLOBAL
);
1683 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1684 #define MakeProcInstance(proc,inst) (proc)
1685 HFILE WINAPI
OpenFile(LPCSTR
,OFSTRUCT
*,UINT
);
1686 VOID WINAPI
OutputDebugStringA(LPCSTR
);
1687 VOID WINAPI
OutputDebugStringW(LPCWSTR
);
1688 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1689 BOOL WINAPI
ReadProcessMemory(HANDLE
, LPCVOID
, LPVOID
, DWORD
, LPDWORD
);
1690 BOOL WINAPI
RemoveDirectoryA(LPCSTR
);
1691 BOOL WINAPI
RemoveDirectoryW(LPCWSTR
);
1692 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1693 BOOL WINAPI
SetCurrentDirectoryA(LPCSTR
);
1694 BOOL WINAPI
SetCurrentDirectoryW(LPCWSTR
);
1695 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1696 UINT WINAPI
SetErrorMode(UINT
);
1697 BOOL WINAPI
SetFileAttributesA(LPCSTR
,DWORD
);
1698 BOOL WINAPI
SetFileAttributesW(LPCWSTR
,DWORD
);
1699 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1700 UINT WINAPI
SetHandleCount(UINT
);
1701 #define SetSwapAreaSize(w) (w)
1702 BOOL WINAPI
SetVolumeLabelA(LPCSTR
,LPCSTR
);
1703 BOOL WINAPI
SetVolumeLabelW(LPCWSTR
,LPCWSTR
);
1704 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1705 DWORD WINAPI
SizeofResource(HMODULE
,HRSRC
);
1706 BOOL WINAPI
UnlockFileEx(HFILE
,DWORD
,DWORD
,DWORD
,LPOVERLAPPED
);
1707 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1708 BOOL WINAPI
WritePrivateProfileSectionA(LPCSTR
,LPCSTR
,LPCSTR
);
1709 BOOL WINAPI
WritePrivateProfileSectionW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1710 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1711 BOOL WINAPI
WritePrivateProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
1712 BOOL WINAPI
WritePrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
1713 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1714 BOOL WINAPI
WriteProfileSectionA(LPCSTR
,LPCSTR
);
1715 BOOL WINAPI
WriteProfileSectionW(LPCWSTR
,LPCWSTR
);
1716 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1717 BOOL WINAPI
WritePrivateProfileStructA(LPCSTR
,LPCSTR
,LPVOID
,UINT
,LPCSTR
);
1718 BOOL WINAPI
WritePrivateProfileStructW(LPCWSTR
,LPCWSTR
,LPVOID
,UINT
,LPCWSTR
);
1719 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1720 BOOL WINAPI
WriteProcessMemory(HANDLE
,LPVOID
,LPCVOID
,DWORD
,LPDWORD
);
1721 BOOL WINAPI
WriteProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
);
1722 BOOL WINAPI
WriteProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1723 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1725 LPSTR WINAPI
lstrcatA(LPSTR
,LPCSTR
);
1726 LPWSTR WINAPI
lstrcatW(LPWSTR
,LPCWSTR
);
1727 #define lstrcat WINELIB_NAME_AW(lstrcat)
1728 LPSTR WINAPI
lstrcpyA(LPSTR
,LPCSTR
);
1729 LPWSTR WINAPI
lstrcpyW(LPWSTR
,LPCWSTR
);
1730 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1731 LPSTR WINAPI
lstrcpynA(LPSTR
,LPCSTR
,INT
);
1732 LPWSTR WINAPI
lstrcpynW(LPWSTR
,LPCWSTR
,INT
);
1733 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1734 INT WINAPI
lstrlenA(LPCSTR
);
1735 INT WINAPI
lstrlenW(LPCWSTR
);
1736 #define lstrlen WINELIB_NAME_AW(lstrlen)
1737 UINT WINAPI
WinExec(LPCSTR
,UINT
);
1738 LONG WINAPI
_hread(HFILE
,LPVOID
,LONG
);
1739 LONG WINAPI
_hwrite(HFILE
,LPCSTR
,LONG
);
1740 HFILE WINAPI
_lcreat(LPCSTR
,INT
);
1741 HFILE WINAPI
_lclose(HFILE
);
1742 LONG WINAPI
_llseek(HFILE
,LONG
,INT
);
1743 HFILE WINAPI
_lopen(LPCSTR
,INT
);
1744 UINT WINAPI
_lread(HFILE
,LPVOID
,UINT
);
1745 UINT WINAPI
_lwrite(HFILE
,LPCSTR
,UINT
);
1746 INT WINAPI
lstrcmpA(LPCSTR
,LPCSTR
);
1747 INT WINAPI
lstrcmpW(LPCWSTR
,LPCWSTR
);
1748 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1749 INT WINAPI
lstrcmpiA(LPCSTR
,LPCSTR
);
1750 INT WINAPI
lstrcmpiW(LPCWSTR
,LPCWSTR
);
1751 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1753 /* compatibility macros */
1754 #define FillMemory RtlFillMemory
1755 #define MoveMemory RtlMoveMemory
1756 #define ZeroMemory RtlZeroMemory
1757 #define CopyMemory RtlCopyMemory
1759 /* undocumented functions */
1761 typedef struct tagSYSLEVEL
1763 CRITICAL_SECTION crst
;
1767 /* [GS]etProcessDword offsets */
1768 #define GPD_APP_COMPAT_FLAGS (-56)
1769 #define GPD_LOAD_DONE_EVENT (-52)
1770 #define GPD_HINSTANCE16 (-48)
1771 #define GPD_WINDOWS_VERSION (-44)
1772 #define GPD_THDB (-40)
1773 #define GPD_PDB (-36)
1774 #define GPD_STARTF_SHELLDATA (-32)
1775 #define GPD_STARTF_HOTKEY (-28)
1776 #define GPD_STARTF_SHOWWINDOW (-24)
1777 #define GPD_STARTF_SIZE (-20)
1778 #define GPD_STARTF_POSITION (-16)
1779 #define GPD_STARTF_FLAGS (-12)
1780 #define GPD_PARENT (- 8)
1781 #define GPD_FLAGS (- 4)
1782 #define GPD_USERDATA ( 0)
1784 void WINAPI
DisposeLZ32Handle(HANDLE
);
1785 HANDLE WINAPI
DosFileHandleToWin32Handle(HFILE
);
1786 DWORD WINAPI
GetProcessDword(DWORD
,INT
);
1787 VOID WINAPI
GetpWin16Lock(SYSLEVEL
**);
1788 DWORD WINAPI
MapLS(LPCVOID
);
1789 DWORD WINAPI
MapProcessHandle(HANDLE
);
1790 LPVOID WINAPI
MapSL(DWORD
);
1791 VOID WINAPI
ReleaseThunkLock(DWORD
*);
1792 VOID WINAPI
RestoreThunkLock(DWORD
);
1793 void WINAPI
SetProcessDword(DWORD
,INT
,DWORD
);
1794 VOID WINAPI
UnMapLS(DWORD
);
1795 HFILE WINAPI
Win32HandleToDosFileHandle(HANDLE
);
1796 VOID WINAPI
_CheckNotSysLevel(SYSLEVEL
*lock
);
1797 DWORD WINAPI
_ConfirmWin16Lock(void);
1798 DWORD WINAPI
_ConfirmSysLevel(SYSLEVEL
*);
1799 VOID WINAPI
_EnterSysLevel(SYSLEVEL
*);
1800 VOID WINAPI
_LeaveSysLevel(SYSLEVEL
*);
1803 /* Wine internal functions */
1805 BOOL WINAPI
wine_get_unix_file_name( LPCSTR dos
, LPSTR buffer
, DWORD len
);
1808 /* a few optimizations for i386/gcc */
1810 #if defined(__i386__) && defined(__GNUC__)
1812 extern inline LONG WINAPI
InterlockedCompareExchange( PLONG dest
, LONG xchg
, LONG compare
);
1813 extern inline LONG WINAPI
InterlockedCompareExchange( PLONG dest
, LONG xchg
, LONG compare
)
1816 __asm__
__volatile__( "lock; cmpxchgl %2,(%1)"
1817 : "=a" (ret
) : "r" (dest
), "r" (xchg
), "0" (compare
) : "memory" );
1821 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
);
1822 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
)
1825 __asm__
__volatile__( "lock; xchgl %0,(%1)"
1826 : "=r" (ret
) :"r" (dest
), "0" (val
) : "memory" );
1830 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
);
1831 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
)
1834 __asm__
__volatile__( "lock; xaddl %0,(%1)"
1835 : "=r" (ret
) : "r" (dest
), "0" (incr
) : "memory" );
1839 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
);
1840 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
)
1842 return InterlockedExchangeAdd( dest
, 1 ) + 1;
1845 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
);
1846 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
)
1848 return InterlockedExchangeAdd( dest
, -1 ) - 1;
1851 extern inline DWORD WINAPI
GetLastError(void);
1852 extern inline DWORD WINAPI
GetLastError(void)
1855 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x60,%0" : "=r" (ret
) );
1859 extern inline DWORD WINAPI
GetCurrentProcessId(void);
1860 extern inline DWORD WINAPI
GetCurrentProcessId(void)
1863 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x20,%0" : "=r" (ret
) );
1867 extern inline DWORD WINAPI
GetCurrentThreadId(void);
1868 extern inline DWORD WINAPI
GetCurrentThreadId(void)
1871 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x24,%0" : "=r" (ret
) );
1875 extern inline void WINAPI
SetLastError( DWORD err
);
1876 extern inline void WINAPI
SetLastError( DWORD err
)
1878 __asm__
__volatile__( ".byte 0x64\n\tmovl %0,0x60" : : "r" (err
) : "memory" );
1881 extern inline HANDLE WINAPI
GetProcessHeap(void);
1882 extern inline HANDLE WINAPI
GetProcessHeap(void)
1885 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb
) );
1886 return pdb
[0x18 / sizeof(HANDLE
)]; /* get dword at offset 0x18 in pdb */
1889 #else /* __i386__ && __GNUC__ */
1890 DWORD WINAPI
GetCurrentProcessId(void);
1891 DWORD WINAPI
GetCurrentThreadId(void);
1892 DWORD WINAPI
GetLastError(void);
1893 HANDLE WINAPI
GetProcessHeap(void);
1894 LONG WINAPI
InterlockedCompareExchange(LONG
*,LONG
,LONG
);
1895 LONG WINAPI
InterlockedDecrement(PLONG
);
1896 LONG WINAPI
InterlockedExchange(PLONG
,LONG
);
1897 LONG WINAPI
InterlockedExchangeAdd(PLONG
,LONG
);
1898 LONG WINAPI
InterlockedIncrement(PLONG
);
1899 VOID WINAPI
SetLastError(DWORD
);
1900 #endif /* __i386__ && __GNUC__ */
1902 /* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */
1903 static inline PVOID WINAPI
InterlockedCompareExchangePointer( PVOID
*dest
, PVOID xchg
, PVOID compare
)
1905 return (PVOID
)InterlockedCompareExchange( (PLONG
)dest
, (LONG
)xchg
, (LONG
)compare
);
1908 static inline PVOID WINAPI
InterlockedExchangePointer( PVOID
*dest
, PVOID val
)
1910 return (PVOID
)InterlockedExchange( (PLONG
)dest
, (LONG
)val
);
1914 #define GetCurrentProcess() ((HANDLE)0xffffffff)
1915 #define GetCurrentThread() ((HANDLE)0xfffffffe)
1918 /* WinMain(entry point) must be declared in winbase.h. */
1919 /* If this is not declared, we cannot compile many sources written with C++. */
1920 int WINAPI
WinMain(HINSTANCE
,HINSTANCE
,LPSTR
,int);
1922 #define HW_PROFILE_GUIDLEN 39
1923 #define MAX_PROFILE_LEN 80
1925 #define DOCKINFO_UNDOCKED 0x1
1926 #define DOCKINFO_DOCKED 0x2
1927 #define DOCKINFO_USER_SUPPLIED 0x4
1928 #define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_UNDOCKED)
1929 #define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_DOCKED)
1931 typedef struct HW_PROFILE_INFOAtag
{
1933 CHAR szHwProfileGuid
[HW_PROFILE_GUIDLEN
];
1934 CHAR szHwProfileName
[MAX_PROFILE_LEN
];
1935 } HW_PROFILE_INFOA
, *LPHW_PROFILE_INFOA
;
1937 /* Stream data structures and defines */
1938 /*the types of backup data -- WIN32_STREAM_ID.dwStreamID below*/
1939 #define BACKUP_INVALID 0
1940 #define BACKUP_DATA 1
1941 #define BACKUP_EA_DATA 2
1942 #define BACKUP_SECURITY_DATA 3
1943 #define BACKUP_ALTERNATE_DATA 4
1944 #define BACKUP_LINK 5
1945 #define BACKUP_PROPERTY_DATA 6
1946 #define BACKUP_OBJECT_ID 7
1947 #define BACKUP_REPARSE_DATA 8
1948 #define BACKUP_SPARSE_BLOCK 9
1950 /*flags for WIN32_STREAM_ID.dwStreamAttributes below*/
1951 #define STREAM_NORMAL_ATTRIBUTE 0
1952 #define STREAM_MODIFIED_WHEN_READ 1
1953 #define STREAM_CONTAINS_SECURITY 2
1954 #define STREAM_CONTAINS_PROPERTIES 4
1955 #define STREAM_SPARSE_ATTRIBUTE 8
1957 typedef struct _WIN32_STREAM_ID
{
1959 DWORD dwStreamAttributes
;
1961 DWORD dwStreamNameSize
;
1962 WCHAR cStreamName
[ANYSIZE_ARRAY
];
1963 } WIN32_STREAM_ID
, *LPWIN32_STREAM_ID
;
1969 #endif /* __WINE_WINBASE_H */