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
34 /* Windows Exit Procedure flag values */
35 #define WEP_FREE_DLL 0
36 #define WEP_SYSTEM_EXIT 1
38 typedef DWORD (CALLBACK
*LPTHREAD_START_ROUTINE
)(LPVOID
);
40 typedef VOID (WINAPI
*PFIBER_START_ROUTINE
)( LPVOID lpFiberParameter
);
41 typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE
;
43 typedef RTL_CRITICAL_SECTION CRITICAL_SECTION
;
44 typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION
;
45 typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION
;
47 typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG
;
48 typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG
;
49 typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG
;
51 typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK
;
53 #define EXCEPTION_DEBUG_EVENT 1
54 #define CREATE_THREAD_DEBUG_EVENT 2
55 #define CREATE_PROCESS_DEBUG_EVENT 3
56 #define EXIT_THREAD_DEBUG_EVENT 4
57 #define EXIT_PROCESS_DEBUG_EVENT 5
58 #define LOAD_DLL_DEBUG_EVENT 6
59 #define UNLOAD_DLL_DEBUG_EVENT 7
60 #define OUTPUT_DEBUG_STRING_EVENT 8
63 typedef struct _EXCEPTION_DEBUG_INFO
{
64 EXCEPTION_RECORD ExceptionRecord
;
66 } EXCEPTION_DEBUG_INFO
;
68 typedef struct _CREATE_THREAD_DEBUG_INFO
{
70 LPVOID lpThreadLocalBase
;
71 LPTHREAD_START_ROUTINE lpStartAddress
;
72 } CREATE_THREAD_DEBUG_INFO
;
74 typedef struct _CREATE_PROCESS_DEBUG_INFO
{
79 DWORD dwDebugInfoFileOffset
;
81 LPVOID lpThreadLocalBase
;
82 LPTHREAD_START_ROUTINE lpStartAddress
;
85 } CREATE_PROCESS_DEBUG_INFO
;
87 typedef struct _EXIT_THREAD_DEBUG_INFO
{
89 } EXIT_THREAD_DEBUG_INFO
;
91 typedef struct _EXIT_PROCESS_DEBUG_INFO
{
93 } EXIT_PROCESS_DEBUG_INFO
;
95 typedef struct _LOAD_DLL_DEBUG_INFO
{
98 DWORD dwDebugInfoFileOffset
;
102 } LOAD_DLL_DEBUG_INFO
;
104 typedef struct _UNLOAD_DLL_DEBUG_INFO
{
106 } UNLOAD_DLL_DEBUG_INFO
;
108 typedef struct _OUTPUT_DEBUG_STRING_INFO
{
109 LPSTR lpDebugStringData
;
111 WORD nDebugStringLength
;
112 } OUTPUT_DEBUG_STRING_INFO
;
114 typedef struct _RIP_INFO
{
119 typedef struct _DEBUG_EVENT
{
120 DWORD dwDebugEventCode
;
124 EXCEPTION_DEBUG_INFO Exception
;
125 CREATE_THREAD_DEBUG_INFO CreateThread
;
126 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo
;
127 EXIT_THREAD_DEBUG_INFO ExitThread
;
128 EXIT_PROCESS_DEBUG_INFO ExitProcess
;
129 LOAD_DLL_DEBUG_INFO LoadDll
;
130 UNLOAD_DLL_DEBUG_INFO UnloadDll
;
131 OUTPUT_DEBUG_STRING_INFO DebugString
;
134 } DEBUG_EVENT
, *LPDEBUG_EVENT
;
136 typedef PCONTEXT LPCONTEXT
;
137 typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD
;
138 typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS
;
140 #define OFS_MAXPATHNAME 128
141 typedef struct _OFSTRUCT
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 #define MAX_COMPUTERNAME_LENGTH 31
194 /* The security attributes structure */
195 typedef struct _SECURITY_ATTRIBUTES
198 LPVOID lpSecurityDescriptor
;
200 } SECURITY_ATTRIBUTES
, *PSECURITY_ATTRIBUTES
, *LPSECURITY_ATTRIBUTES
;
204 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
205 typedef struct _FILETIME
207 #ifdef WORDS_BIGENDIAN
208 DWORD dwHighDateTime
;
212 DWORD dwHighDateTime
;
214 } FILETIME
, *PFILETIME
, *LPFILETIME
;
215 #endif /* _FILETIME_ */
217 /* Find* structures */
218 typedef struct _WIN32_FIND_DATAA
220 DWORD dwFileAttributes
;
221 FILETIME ftCreationTime
;
222 FILETIME ftLastAccessTime
;
223 FILETIME ftLastWriteTime
;
229 CHAR cAlternateFileName
[14];
230 } WIN32_FIND_DATAA
, *PWIN32_FIND_DATAA
, *LPWIN32_FIND_DATAA
;
232 typedef struct _WIN32_FIND_DATAW
234 DWORD dwFileAttributes
;
235 FILETIME ftCreationTime
;
236 FILETIME ftLastAccessTime
;
237 FILETIME ftLastWriteTime
;
242 WCHAR cFileName
[260];
243 WCHAR cAlternateFileName
[14];
244 } WIN32_FIND_DATAW
, *PWIN32_FIND_DATAW
, *LPWIN32_FIND_DATAW
;
246 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA
)
247 DECL_WINELIB_TYPE_AW(PWIN32_FIND_DATA
)
248 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA
)
250 typedef enum _FINDEX_INFO_LEVELS
253 FindExInfoMaxInfoLevel
254 } FINDEX_INFO_LEVELS
;
256 typedef enum _FINDEX_SEARCH_OPS
258 FindExSearchNameMatch
,
259 FindExSearchLimitToDirectories
,
260 FindExSearchLimitToDevices
,
261 FindExSearchMaxSearchOp
264 typedef struct _PROCESS_HEAP_ENTRY
277 DWORD dwCommittedSize
;
278 DWORD dwUnCommittedSize
;
283 } PROCESS_HEAP_ENTRY
, *PPROCESS_HEAP_ENTRY
, *LPPROCESS_HEAP_ENTRY
;
285 #define PROCESS_HEAP_REGION 0x0001
286 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
287 #define PROCESS_HEAP_ENTRY_BUSY 0x0004
288 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
289 #define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
291 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
292 #define INVALID_FILE_SIZE ((DWORD)0xFFFFFFFF)
293 #define INVALID_SET_FILE_POINTER ((DWORD)-1)
294 #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
296 #define LOCKFILE_FAIL_IMMEDIATELY 1
297 #define LOCKFILE_EXCLUSIVE_LOCK 2
299 #define TLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
301 #define SHUTDOWN_NORETRY 1
305 #define CBR_110 0xFF10
306 #define CBR_300 0xFF11
307 #define CBR_600 0xFF12
308 #define CBR_1200 0xFF13
309 #define CBR_2400 0xFF14
310 #define CBR_4800 0xFF15
311 #define CBR_9600 0xFF16
312 #define CBR_14400 0xFF17
313 #define CBR_19200 0xFF18
314 #define CBR_38400 0xFF1B
315 #define CBR_56000 0xFF1F
316 #define CBR_57600 0xFF20
317 #define CBR_115200 0xFF21
318 #define CBR_128000 0xFF23
319 #define CBR_256000 0xFF27
325 #define SPACEPARITY 4
327 #define ONE5STOPBITS 1
328 #define TWOSTOPBITS 2
331 #define INFINITE 0xFFFFFFFF
333 #define CE_RXOVER 0x0001
334 #define CE_OVERRUN 0x0002
335 #define CE_RXPARITY 0x0004
336 #define CE_FRAME 0x0008
337 #define CE_BREAK 0x0010
338 #define CE_CTSTO 0x0020
339 #define CE_DSRTO 0x0040
340 #define CE_RLSDTO 0x0080
341 #define CE_TXFULL 0x0100
342 #define CE_PTO 0x0200
343 #define CE_IOE 0x0400
344 #define CE_DNS 0x0800
345 #define CE_OOP 0x1000
346 #define CE_MODE 0x8000
352 #define IE_DEFAULT -5
353 #define IE_HARDWARE -10
354 #define IE_BYTESIZE -11
355 #define IE_BAUDRATE -12
357 #define EV_RXCHAR 0x0001
358 #define EV_RXFLAG 0x0002
359 #define EV_TXEMPT 0x0004
360 #define EV_CTS 0x0008
361 #define EV_DSR 0x0010
362 #define EV_RLSD 0x0020
363 #define EV_BREAK 0x0040
364 #define EV_ERR 0x0080
365 #define EV_RING 0x0100
366 #define EV_PERR 0x0200
367 #define EV_RX80FULL 0x0400
368 #define EV_EVENT1 0x0800
369 #define EV_EVENT2 0x1000
381 /* Purge functions for Comm Port */
382 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
384 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
386 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
387 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
390 /* Modem Status Flags */
391 #define MS_CTS_ON ((DWORD)0x0010)
392 #define MS_DSR_ON ((DWORD)0x0020)
393 #define MS_RING_ON ((DWORD)0x0040)
394 #define MS_RLSD_ON ((DWORD)0x0080)
396 #define RTS_CONTROL_DISABLE 0
397 #define RTS_CONTROL_ENABLE 1
398 #define RTS_CONTROL_HANDSHAKE 2
399 #define RTS_CONTROL_TOGGLE 3
401 #define DTR_CONTROL_DISABLE 0
402 #define DTR_CONTROL_ENABLE 1
403 #define DTR_CONTROL_HANDSHAKE 2
407 #define LMEM_MOVEABLE 0x0002
408 #define LMEM_NOCOMPACT 0x0010
409 #define LMEM_NODISCARD 0x0020
410 #define LMEM_ZEROINIT 0x0040
411 #define LMEM_MODIFY 0x0080
412 #define LMEM_DISCARDABLE 0x0F00
413 #define LMEM_DISCARDED 0x4000
414 #define LMEM_LOCKCOUNT 0x00FF
416 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
417 #define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT)
419 #define NONZEROLHND (LMEM_MOVEABLE)
420 #define NONZEROLPTR (LMEM_FIXED)
422 #define LocalDiscard(h) (LocalReAlloc((h),0,LMEM_MOVEABLE))
424 #define GMEM_FIXED 0x0000
425 #define GMEM_MOVEABLE 0x0002
426 #define GMEM_NOCOMPACT 0x0010
427 #define GMEM_NODISCARD 0x0020
428 #define GMEM_ZEROINIT 0x0040
429 #define GMEM_MODIFY 0x0080
430 #define GMEM_DISCARDABLE 0x0100
431 #define GMEM_NOT_BANKED 0x1000
432 #define GMEM_SHARE 0x2000
433 #define GMEM_DDESHARE 0x2000
434 #define GMEM_NOTIFY 0x4000
435 #define GMEM_LOWER GMEM_NOT_BANKED
436 #define GMEM_DISCARDED 0x4000
437 #define GMEM_LOCKCOUNT 0x00ff
438 #define GMEM_INVALID_HANDLE 0x8000
440 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
441 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
443 #define GlobalLRUNewest(h) ((HANDLE)(h))
444 #define GlobalLRUOldest(h) ((HANDLE)(h))
445 #define GlobalDiscard(h) (GlobalReAlloc((h),0,GMEM_MOVEABLE))
447 #define INVALID_ATOM ((ATOM)0)
448 #define MAXINTATOM 0xc000
449 #define MAKEINTATOMA(atom) ((LPCSTR)((ULONG_PTR)((WORD)(atom))))
450 #define MAKEINTATOMW(atom) ((LPCWSTR)((ULONG_PTR)((WORD)(atom))))
451 #define MAKEINTATOM WINELIB_NAME_AW(MAKEINTATOM)
453 typedef struct tagMEMORYSTATUS
459 SIZE_T dwTotalPageFile
;
460 SIZE_T dwAvailPageFile
;
461 SIZE_T dwTotalVirtual
;
462 SIZE_T dwAvailVirtual
;
463 } MEMORYSTATUS
, *LPMEMORYSTATUS
;
465 typedef struct tagMEMORYSTATUSEX
{
468 DWORDLONG ullTotalPhys
;
469 DWORDLONG ullAvailPhys
;
470 DWORDLONG ullTotalPageFile
;
471 DWORDLONG ullAvailPageFile
;
472 DWORDLONG ullTotalVirtual
;
473 DWORDLONG ullAvailVirtual
;
474 DWORDLONG ullAvailExtendedVirtual
;
475 } MEMORYSTATUSEX
, *LPMEMORYSTATUSEX
;
478 typedef struct _SYSTEMTIME
{
487 } SYSTEMTIME
, *PSYSTEMTIME
, *LPSYSTEMTIME
;
489 /* The 'overlapped' data structure used by async I/O functions.
491 typedef struct _OVERLAPPED
{
497 } OVERLAPPED
, *LPOVERLAPPED
;
499 typedef VOID (CALLBACK
*LPOVERLAPPED_COMPLETION_ROUTINE
)(DWORD dwErrorCode
, DWORD dwNumberOfBytesTransfered
, LPOVERLAPPED lpOverlapped
);
501 /* Process startup information.
504 /* STARTUPINFO.dwFlags */
505 #define STARTF_USESHOWWINDOW 0x00000001
506 #define STARTF_USESIZE 0x00000002
507 #define STARTF_USEPOSITION 0x00000004
508 #define STARTF_USECOUNTCHARS 0x00000008
509 #define STARTF_USEFILLATTRIBUTE 0x00000010
510 #define STARTF_RUNFULLSCREEN 0x00000020
511 #define STARTF_FORCEONFEEDBACK 0x00000040
512 #define STARTF_FORCEOFFFEEDBACK 0x00000080
513 #define STARTF_USESTDHANDLES 0x00000100
514 #define STARTF_USEHOTKEY 0x00000200
516 typedef struct _STARTUPINFOA
{
517 DWORD cb
; /* 00: size of struct */
518 LPSTR lpReserved
; /* 04: */
519 LPSTR lpDesktop
; /* 08: */
520 LPSTR lpTitle
; /* 0c: */
523 DWORD dwXSize
; /* 18: */
524 DWORD dwYSize
; /* 1c: */
525 DWORD dwXCountChars
; /* 20: */
526 DWORD dwYCountChars
; /* 24: */
527 DWORD dwFillAttribute
; /* 28: */
528 DWORD dwFlags
; /* 2c: */
529 WORD wShowWindow
; /* 30: */
530 WORD cbReserved2
; /* 32: */
531 BYTE
*lpReserved2
; /* 34: */
532 HANDLE hStdInput
; /* 38: */
533 HANDLE hStdOutput
; /* 3c: */
534 HANDLE hStdError
; /* 40: */
535 } STARTUPINFOA
, *LPSTARTUPINFOA
;
537 typedef struct _STARTUPINFOW
{
548 DWORD dwFillAttribute
;
556 } STARTUPINFOW
, *LPSTARTUPINFOW
;
558 DECL_WINELIB_TYPE_AW(STARTUPINFO
)
559 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO
)
561 typedef struct _PROCESS_INFORMATION
{
566 } PROCESS_INFORMATION
, *PPROCESS_INFORMATION
, *LPPROCESS_INFORMATION
;
568 typedef struct _TIME_ZONE_INFORMATION
{
570 WCHAR StandardName
[32];
571 SYSTEMTIME StandardDate
;
573 WCHAR DaylightName
[32];
574 SYSTEMTIME DaylightDate
;
576 } TIME_ZONE_INFORMATION
, *PTIME_ZONE_INFORMATION
, *LPTIME_ZONE_INFORMATION
;
578 #define TIME_ZONE_ID_INVALID ((DWORD)0xFFFFFFFF)
579 #define TIME_ZONE_ID_UNKNOWN 0
580 #define TIME_ZONE_ID_STANDARD 1
581 #define TIME_ZONE_ID_DAYLIGHT 2
583 /* CreateProcess: dwCreationFlag values
585 #define DEBUG_PROCESS 0x00000001
586 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
587 #define CREATE_SUSPENDED 0x00000004
588 #define DETACHED_PROCESS 0x00000008
589 #define CREATE_NEW_CONSOLE 0x00000010
590 #define NORMAL_PRIORITY_CLASS 0x00000020
591 #define IDLE_PRIORITY_CLASS 0x00000040
592 #define HIGH_PRIORITY_CLASS 0x00000080
593 #define REALTIME_PRIORITY_CLASS 0x00000100
594 #define CREATE_NEW_PROCESS_GROUP 0x00000200
595 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
596 #define CREATE_SEPARATE_WOW_VDM 0x00000800
597 #define CREATE_SHARED_WOW_VDM 0x00001000
598 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
599 #define CREATE_NO_WINDOW 0x08000000
600 #define PROFILE_USER 0x10000000
601 #define PROFILE_KERNEL 0x20000000
602 #define PROFILE_SERVER 0x40000000
605 /* File object type definitions
607 #define FILE_TYPE_UNKNOWN 0
608 #define FILE_TYPE_DISK 1
609 #define FILE_TYPE_CHAR 2
610 #define FILE_TYPE_PIPE 3
611 #define FILE_TYPE_REMOTE 32768
613 /* File creation flags
615 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
616 #define FILE_FLAG_OVERLAPPED 0x40000000L
617 #define FILE_FLAG_NO_BUFFERING 0x20000000L
618 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
619 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
620 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
621 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
622 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
624 #define CREATE_ALWAYS 2
625 #define OPEN_EXISTING 3
626 #define OPEN_ALWAYS 4
627 #define TRUNCATE_EXISTING 5
629 /* Standard handle identifiers
631 #define STD_INPUT_HANDLE ((DWORD) -10)
632 #define STD_OUTPUT_HANDLE ((DWORD) -11)
633 #define STD_ERROR_HANDLE ((DWORD) -12)
635 typedef struct _BY_HANDLE_FILE_INFORMATION
637 DWORD dwFileAttributes
;
638 FILETIME ftCreationTime
;
639 FILETIME ftLastAccessTime
;
640 FILETIME ftLastWriteTime
;
641 DWORD dwVolumeSerialNumber
;
644 DWORD nNumberOfLinks
;
645 DWORD nFileIndexHigh
;
647 } BY_HANDLE_FILE_INFORMATION
, *PBY_HANDLE_FILE_INFORMATION
, *LPBY_HANDLE_FILE_INFORMATION
;
649 #define PIPE_ACCESS_INBOUND 1
650 #define PIPE_ACCESS_OUTBOUND 2
651 #define PIPE_ACCESS_DUPLEX 3
653 #define PIPE_TYPE_BYTE 0
654 #define PIPE_TYPE_MESSAGE 4
656 #define PIPE_READMODE_BYTE 0
657 #define PIPE_READMODE_MESSAGE 2
660 #define PIPE_NOWAIT 1
662 #define PIPE_UNLIMITED_INSTANCES 255
664 #define NMPWAIT_WAIT_FOREVER 0xffffffff
665 #define NMPWAIT_NOWAIT 0x00000001
666 #define NMPWAIT_USE_DEFAULT_WAIT 0x00000000
668 typedef struct _SYSTEM_POWER_STATUS
672 BYTE BatteryLifePercent
;
674 DWORD BatteryLifeTime
;
675 DWORD BatteryFullLifeTime
;
676 } SYSTEM_POWER_STATUS
, *LPSYSTEM_POWER_STATUS
;
679 typedef struct tagSYSTEM_INFO
682 DWORD dwOemId
; /* Obsolete field - do not use */
684 WORD wProcessorArchitecture
;
689 LPVOID lpMinimumApplicationAddress
;
690 LPVOID lpMaximumApplicationAddress
;
691 DWORD dwActiveProcessorMask
;
692 DWORD dwNumberOfProcessors
;
693 DWORD dwProcessorType
;
694 DWORD dwAllocationGranularity
;
695 WORD wProcessorLevel
;
696 WORD wProcessorRevision
;
697 } SYSTEM_INFO
, *LPSYSTEM_INFO
;
699 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCA
)(HMODULE
,LPSTR
,LONG
);
700 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCW
)(HMODULE
,LPWSTR
,LONG
);
701 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCA
)(HMODULE
,LPCSTR
,LPSTR
,LONG
);
702 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCW
)(HMODULE
,LPCWSTR
,LPWSTR
,LONG
);
703 typedef BOOL (CALLBACK
*ENUMRESLANGPROCA
)(HMODULE
,LPCSTR
,LPCSTR
,WORD
,LONG
);
704 typedef BOOL (CALLBACK
*ENUMRESLANGPROCW
)(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
,LONG
);
706 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC
)
707 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC
)
708 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC
)
710 /* flags that can be passed to LoadLibraryEx */
711 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
712 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
713 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
715 /* ifdef _x86_ ... */
716 typedef struct _LDT_ENTRY
{
722 BYTE Flags1
;/*Declare as bytes to avoid alignment problems */
727 unsigned BaseMid
: 8;
731 unsigned LimitHi
: 4;
733 unsigned Reserved_0
: 1;
734 unsigned Default_Big
: 1;
735 unsigned Granularity
: 1;
739 } LDT_ENTRY
, *LPLDT_ENTRY
;
742 typedef enum _GET_FILEEX_INFO_LEVELS
{
743 GetFileExInfoStandard
744 } GET_FILEEX_INFO_LEVELS
;
746 typedef struct _WIN32_FILE_ATTRIBUTES_DATA
{
747 DWORD dwFileAttributes
;
748 FILETIME ftCreationTime
;
749 FILETIME ftLastAccessTime
;
750 FILETIME ftLastWriteTime
;
753 } WIN32_FILE_ATTRIBUTE_DATA
, *LPWIN32_FILE_ATTRIBUTE_DATA
;
756 * This one seems to be a Win32 only definition. It also is defined with
757 * WINAPI instead of CALLBACK in the windows headers.
759 typedef DWORD (CALLBACK
*LPPROGRESS_ROUTINE
)(LARGE_INTEGER
, LARGE_INTEGER
, LARGE_INTEGER
,
760 LARGE_INTEGER
, DWORD
, DWORD
, HANDLE
,
764 #define WAIT_FAILED 0xffffffff
765 #define WAIT_OBJECT_0 0
766 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
767 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
768 #define WAIT_IO_COMPLETION STATUS_USER_APC
769 #define WAIT_TIMEOUT STATUS_TIMEOUT
770 #define STILL_ACTIVE STATUS_PENDING
773 #define FILE_CURRENT 1
776 #define FILE_MAP_COPY 0x00000001
777 #define FILE_MAP_WRITE 0x00000002
778 #define FILE_MAP_READ 0x00000004
779 #define FILE_MAP_ALL_ACCESS 0x000f001f
781 #define MOVEFILE_REPLACE_EXISTING 0x00000001
782 #define MOVEFILE_COPY_ALLOWED 0x00000002
783 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
785 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
786 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
787 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
788 #define FS_PERSISTENT_ACLS FILE_PERSISTENT_ACLS
789 #define FS_VOL_IS_COMPRESSED FILE_VOLUME_IS_COMPRESSED
790 #define FS_FILE_COMPRESSION FILE_FILE_COMPRESSION
792 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
793 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
794 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
795 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
796 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
797 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
798 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
799 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
800 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
801 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
802 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
803 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
804 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
805 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
806 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
807 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
808 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
809 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
810 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
811 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
812 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
813 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
814 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
816 /* Wine extension; Windows doesn't have a name for this code */
817 #define EXCEPTION_CRITICAL_SECTION_WAIT 0xc0000194
819 #define DUPLICATE_CLOSE_SOURCE 0x00000001
820 #define DUPLICATE_SAME_ACCESS 0x00000002
822 #define HANDLE_FLAG_INHERIT 0x00000001
823 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
825 #define HINSTANCE_ERROR 32
827 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
828 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
829 #define THREAD_PRIORITY_NORMAL 0
830 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
831 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
832 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
833 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
834 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
836 /* flags to FormatMessage */
837 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
838 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
839 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
840 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
841 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
842 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
843 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
846 #define CRITICAL_SECTION_INIT(name) { (void *)(__FILE__ ": " name), -1, 0, 0, 0, 0 }
850 DWORD dwOSVersionInfoSize
;
851 DWORD dwMajorVersion
;
852 DWORD dwMinorVersion
;
855 CHAR szCSDVersion
[128];
856 } OSVERSIONINFOA
, *POSVERSIONINFOA
, *LPOSVERSIONINFOA
;
859 DWORD dwOSVersionInfoSize
;
860 DWORD dwMajorVersion
;
861 DWORD dwMinorVersion
;
864 WCHAR szCSDVersion
[128];
865 } OSVERSIONINFOW
, *POSVERSIONINFOW
, *LPOSVERSIONINFOW
;
867 DECL_WINELIB_TYPE_AW(OSVERSIONINFO
)
868 DECL_WINELIB_TYPE_AW(POSVERSIONINFO
)
869 DECL_WINELIB_TYPE_AW(LPOSVERSIONINFO
)
872 DWORD dwOSVersionInfoSize
;
873 DWORD dwMajorVersion
;
874 DWORD dwMinorVersion
;
877 CHAR szCSDVersion
[128];
878 WORD wServicePackMajor
;
879 WORD wServicePackMinor
;
883 } OSVERSIONINFOEXA
, *POSVERSIONINFOEXA
, *LPOSVERSIONINFOEXA
;
886 DWORD dwOSVersionInfoSize
;
887 DWORD dwMajorVersion
;
888 DWORD dwMinorVersion
;
891 WCHAR szCSDVersion
[128];
892 WORD wServicePackMajor
;
893 WORD wServicePackMinor
;
897 } OSVERSIONINFOEXW
, *POSVERSIONINFOEXW
, *LPOSVERSIONINFOEXW
;
899 DECL_WINELIB_TYPE_AW(OSVERSIONINFOEX
)
900 DECL_WINELIB_TYPE_AW(POSVERSIONINFOEX
)
901 DECL_WINELIB_TYPE_AW(LPOSVERSIONINFOEX
)
903 ULONGLONG WINAPI
VerSetConditionMask(ULONGLONG
,DWORD
,BYTE
);
905 #define VER_SET_CONDITION(_m_,_t_,_c_) ((_m_)=VerSetConditionMask((_m_),(_t_),(_c_)))
907 #define VER_PLATFORM_WIN32s 0
908 #define VER_PLATFORM_WIN32_WINDOWS 1
909 #define VER_PLATFORM_WIN32_NT 2
911 #define VER_MINORVERSION 0x00000001
912 #define VER_MAJORVERSION 0x00000002
913 #define VER_BUILDNUMBER 0x00000004
914 #define VER_PLATFORMID 0x00000008
915 #define VER_SERVICEPACKMINOR 0x00000010
916 #define VER_SERVICEPACKMAJOR 0x00000020
917 #define VER_SUITENAME 0x00000040
918 #define VER_PRODUCT_TYPE 0x00000080
920 #define VER_NT_WORKSTATION 1
921 #define VER_NT_DOMAIN_CONTROLLER 2
922 #define VER_NT_SERVER 3
924 #define VER_SUITE_SMALLBUSINESS 0x00000001
925 #define VER_SUITE_ENTERPRISE 0x00000002
926 #define VER_SUITE_BACKOFFICE 0x00000004
927 #define VER_SUITE_COMMUNICATIONS 0x00000008
928 #define VER_SUITE_TERMINAL 0x00000010
929 #define VER_SUITE_SMALLBUSINESS_RESTRICTED 0x00000020
930 #define VER_SUITE_EMBEDDEDNT 0x00000040
931 #define VER_SUITE_DATACENTER 0x00000080
932 #define VER_SUITE_SINGLEUSERTS 0x00000100
933 #define VER_SUITE_PERSONAL 0x00000200
936 #define VER_GREATER 2
937 #define VER_GREATER_EQUAL 3
939 #define VER_LESS_EQUAL 5
943 typedef struct tagCOMSTAT
952 DWORD fReserved
: 25;
955 } COMSTAT
, *LPCOMSTAT
;
957 typedef struct tagDCB
963 unsigned fOutxCtsFlow
:1;
964 unsigned fOutxDsrFlow
:1;
965 unsigned fDtrControl
:2;
966 unsigned fDsrSensitivity
:1;
967 unsigned fTXContinueOnXoff
:1;
970 unsigned fErrorChar
:1;
972 unsigned fRtsControl
:2;
973 unsigned fAbortOnError
:1;
974 unsigned fDummy2
:17;
988 typedef struct tagCOMMCONFIG
{
993 DWORD dwProviderSubType
;
994 DWORD dwProviderOffset
;
995 DWORD dwProviderSize
;
996 DWORD wcProviderData
[1];
997 } COMMCONFIG
, *LPCOMMCONFIG
;
999 typedef struct tagCOMMPROP
{
1001 WORD wPacketVersion
;
1002 DWORD dwServiceMask
;
1007 DWORD dwProvSubType
;
1008 DWORD dwProvCapabilities
;
1009 DWORD dwSettableParams
;
1010 DWORD dwSettableBaud
;
1012 WORD wSettableStopParity
;
1013 DWORD dwCurrentTxQueue
;
1014 DWORD dwCurrentRxQueue
;
1017 WCHAR wcProvChar
[1];
1018 } COMMPROP
, *LPCOMMPROP
;
1020 #define SP_SERIALCOMM ((DWORD)1)
1022 #define BAUD_075 ((DWORD)0x01)
1023 #define BAUD_110 ((DWORD)0x02)
1024 #define BAUD_134_5 ((DWORD)0x04)
1025 #define BAUD_150 ((DWORD)0x08)
1026 #define BAUD_300 ((DWORD)0x10)
1027 #define BAUD_600 ((DWORD)0x20)
1028 #define BAUD_1200 ((DWORD)0x40)
1029 #define BAUD_1800 ((DWORD)0x80)
1030 #define BAUD_2400 ((DWORD)0x100)
1031 #define BAUD_4800 ((DWORD)0x200)
1032 #define BAUD_7200 ((DWORD)0x400)
1033 #define BAUD_9600 ((DWORD)0x800)
1034 #define BAUD_14400 ((DWORD)0x1000)
1035 #define BAUD_19200 ((DWORD)0x2000)
1036 #define BAUD_38400 ((DWORD)0x4000)
1037 #define BAUD_56K ((DWORD)0x8000)
1038 #define BAUD_57600 ((DWORD)0x40000)
1039 #define BAUD_115200 ((DWORD)0x20000)
1040 #define BAUD_128K ((DWORD)0x10000)
1041 #define BAUD_USER ((DWORD)0x10000000)
1043 #define PST_FAX ((DWORD)0x21)
1044 #define PST_LAT ((DWORD)0x101)
1045 #define PST_MODEM ((DWORD)0x06)
1046 #define PST_NETWORK_BRIDGE ((DWORD)0x100)
1047 #define PST_PARALLEL_PORT ((DWORD)0x02)
1048 #define PST_RS232 ((DWORD)0x01)
1049 #define PST_RS442 ((DWORD)0x03)
1050 #define PST_RS423 ((DWORD)0x04)
1051 #define PST_RS449 ((DWORD)0x06)
1052 #define PST_SCANNER ((DWORD)0x22)
1053 #define PST_TCPIP_TELNET ((DWORD)0x102)
1054 #define PST_UNSPECIFIED ((DWORD)0x00)
1055 #define PST_X25 ((DWORD)0x103)
1057 #define PCF_16BITMODE ((DWORD)0x200)
1058 #define PCF_DTRDSR ((DWORD)0x01)
1059 #define PCF_INTTIMEOUTS ((DWORD)0x80)
1060 #define PCF_PARITY_CHECK ((DWORD)0x08)
1061 #define PCF_RLSD ((DWORD)0x04)
1062 #define PCF_RTSCTS ((DWORD)0x02)
1063 #define PCF_SETXCHAR ((DWORD)0x20)
1064 #define PCF_SPECIALCHARS ((DWORD)0x100)
1065 #define PCF_TOTALTIMEOUTS ((DWORD)0x40)
1066 #define PCF_XONXOFF ((DWORD)0x10)
1068 #define SP_BAUD ((DWORD)0x02)
1069 #define SP_DATABITS ((DWORD)0x04)
1070 #define SP_HANDSHAKING ((DWORD)0x10)
1071 #define SP_PARITY ((DWORD)0x01)
1072 #define SP_PARITY_CHECK ((DWORD)0x20)
1073 #define SP_RLSD ((DWORD)0x40)
1074 #define SP_STOPBITS ((DWORD)0x08)
1076 #define DATABITS_5 ((DWORD)0x01)
1077 #define DATABITS_6 ((DWORD)0x02)
1078 #define DATABITS_7 ((DWORD)0x04)
1079 #define DATABITS_8 ((DWORD)0x08)
1080 #define DATABITS_16 ((DWORD)0x10)
1081 #define DATABITS_16X ((DWORD)0x20)
1083 #define STOPBITS_10 ((DWORD)1)
1084 #define STOPBITS_15 ((DWORD)2)
1085 #define STOPBITS_20 ((DWORD)4)
1087 #define PARITY_NONE ((DWORD)0x100)
1088 #define PARITY_ODD ((DWORD)0x200)
1089 #define PARITY_EVEN ((DWORD)0x400)
1090 #define PARITY_MARK ((DWORD)0x800)
1091 #define PARITY_SPACE ((DWORD)0x1000)
1093 typedef struct tagCOMMTIMEOUTS
{
1094 DWORD ReadIntervalTimeout
;
1095 DWORD ReadTotalTimeoutMultiplier
;
1096 DWORD ReadTotalTimeoutConstant
;
1097 DWORD WriteTotalTimeoutMultiplier
;
1098 DWORD WriteTotalTimeoutConstant
;
1099 } COMMTIMEOUTS
,*LPCOMMTIMEOUTS
;
1101 typedef void (CALLBACK
*PAPCFUNC
)(ULONG_PTR
);
1102 typedef void (CALLBACK
*PTIMERAPCROUTINE
)(LPVOID
,DWORD
,DWORD
);
1104 typedef enum _COMPUTER_NAME_FORMAT
1106 ComputerNameNetBIOS
,
1107 ComputerNameDnsHostname
,
1108 ComputerNameDnsDomain
,
1109 ComputerNameDnsFullyQualified
,
1110 ComputerNamePhysicalNetBIOS
,
1111 ComputerNamePhysicalDnsHostname
,
1112 ComputerNamePhysicalDnsDomain
,
1113 ComputerNamePhysicalDnsFullyQualified
,
1115 } COMPUTER_NAME_FORMAT
;
1117 /*DWORD WINAPI GetVersion( void );*/
1118 BOOL WINAPI
GetVersionExA(OSVERSIONINFOA
*);
1119 BOOL WINAPI
GetVersionExW(OSVERSIONINFOW
*);
1120 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1122 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1124 void WINAPI
InitializeCriticalSection(CRITICAL_SECTION
*lpCrit
);
1125 BOOL WINAPI
InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION
*,DWORD
);
1126 void WINAPI
DeleteCriticalSection(CRITICAL_SECTION
*lpCrit
);
1127 void WINAPI
EnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1128 BOOL WINAPI
TryEnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1129 void WINAPI
LeaveCriticalSection(CRITICAL_SECTION
*lpCrit
);
1130 void WINAPI
MakeCriticalSectionGlobal(CRITICAL_SECTION
*lpCrit
);
1131 BOOL WINAPI
GetProcessWorkingSetSize(HANDLE
,PSIZE_T
,PSIZE_T
);
1132 DWORD WINAPI
QueueUserAPC(PAPCFUNC
,HANDLE
,ULONG_PTR
);
1133 void WINAPI
RaiseException(DWORD
,DWORD
,DWORD
,const LPDWORD
);
1134 BOOL WINAPI
SetProcessWorkingSetSize(HANDLE
,SIZE_T
,SIZE_T
);
1135 BOOL WINAPI
TerminateProcess(HANDLE
,DWORD
);
1136 BOOL WINAPI
TerminateThread(HANDLE
,DWORD
);
1137 BOOL WINAPI
GetExitCodeThread(HANDLE
,LPDWORD
);
1139 /* GetBinaryType return values.
1142 #define SCS_32BIT_BINARY 0
1143 #define SCS_DOS_BINARY 1
1144 #define SCS_WOW_BINARY 2
1145 #define SCS_PIF_BINARY 3
1146 #define SCS_POSIX_BINARY 4
1147 #define SCS_OS216_BINARY 5
1149 BOOL WINAPI
GetBinaryTypeA( LPCSTR lpApplicationName
, LPDWORD lpBinaryType
);
1150 BOOL WINAPI
GetBinaryTypeW( LPCWSTR lpApplicationName
, LPDWORD lpBinaryType
);
1151 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1153 /* Declarations for functions that exist only in Win32 */
1155 BOOL WINAPI
AddAccessAllowedAce(PACL
,DWORD
,DWORD
,PSID
);
1156 BOOL WINAPI
AttachThreadInput(DWORD
,DWORD
,BOOL
);
1157 BOOL WINAPI
AccessCheck(PSECURITY_DESCRIPTOR
,HANDLE
,DWORD
,PGENERIC_MAPPING
,PPRIVILEGE_SET
,LPDWORD
,LPDWORD
,LPBOOL
);
1158 BOOL WINAPI
AdjustTokenPrivileges(HANDLE
,BOOL
,LPVOID
,DWORD
,LPVOID
,LPDWORD
);
1159 BOOL WINAPI
AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY
,BYTE
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
*);
1160 BOOL WINAPI
AllocateLocallyUniqueId(PLUID
);
1161 BOOL WINAPI
AreFileApisANSI(void);
1162 BOOL WINAPI
BackupEventLogA(HANDLE
,LPCSTR
);
1163 BOOL WINAPI
BackupEventLogW(HANDLE
,LPCWSTR
);
1164 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1165 BOOL WINAPI
BackupRead(HANDLE
,LPBYTE
,DWORD
,LPDWORD
,BOOL
,BOOL
,LPVOID
*);
1166 BOOL WINAPI
BackupSeek(HANDLE
,DWORD
,DWORD
,LPDWORD
,LPDWORD
,LPVOID
*);
1167 BOOL WINAPI
BackupWrite(HANDLE
,LPBYTE
,DWORD
,LPDWORD
,BOOL
,BOOL
,LPVOID
*);
1168 BOOL WINAPI
Beep(DWORD
,DWORD
);
1169 BOOL WINAPI
BuildCommDCBA(LPCSTR
,LPDCB
);
1170 BOOL WINAPI
BuildCommDCBW(LPCWSTR
,LPDCB
);
1171 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1172 BOOL WINAPI
BuildCommDCBAndTimeoutsA(LPCSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1173 BOOL WINAPI
BuildCommDCBAndTimeoutsW(LPCWSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1174 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1175 BOOL WINAPI
CancelIo(HANDLE
);
1176 BOOL WINAPI
CancelWaitableTimer(HANDLE
);
1177 BOOL WINAPI
CheckTokenMembership(HANDLE
,PSID
,PBOOL
);
1178 BOOL WINAPI
ClearCommBreak(HANDLE
);
1179 BOOL WINAPI
ClearCommError(HANDLE
,LPDWORD
,LPCOMSTAT
);
1180 BOOL WINAPI
ClearEventLogA(HANDLE
,LPCSTR
);
1181 BOOL WINAPI
ClearEventLogW(HANDLE
,LPCWSTR
);
1182 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1183 BOOL WINAPI
CloseEventLog(HANDLE
);
1184 BOOL WINAPI
CloseHandle(HANDLE
);
1185 BOOL WINAPI
CommConfigDialogA(LPCSTR
,HANDLE
,LPCOMMCONFIG
);
1186 BOOL WINAPI
CommConfigDialogW(LPCWSTR
,HANDLE
,LPCOMMCONFIG
);
1187 #define CommConfigDialog WINELIB_NAME_AW(CommConfigDialog)
1188 BOOL WINAPI
ConnectNamedPipe(HANDLE
,LPOVERLAPPED
);
1189 BOOL WINAPI
ContinueDebugEvent(DWORD
,DWORD
,DWORD
);
1190 HANDLE WINAPI
ConvertToGlobalHandle(HANDLE hSrc
);
1191 BOOL WINAPI
CopyFileA(LPCSTR
,LPCSTR
,BOOL
);
1192 BOOL WINAPI
CopyFileW(LPCWSTR
,LPCWSTR
,BOOL
);
1193 #define CopyFile WINELIB_NAME_AW(CopyFile)
1194 BOOL WINAPI
CopyFileExA(LPCSTR
, LPCSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1195 BOOL WINAPI
CopyFileExW(LPCWSTR
, LPCWSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1196 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1197 BOOL WINAPI
CopySid(DWORD
,PSID
,PSID
);
1198 INT WINAPI
CompareFileTime(const FILETIME
*,const FILETIME
*);
1199 BOOL WINAPI
ConvertFiberToThread(void);
1200 LPVOID WINAPI
ConvertThreadToFiber(LPVOID
);
1201 LPVOID WINAPI
ConvertThreadToFiberEx(LPVOID
,DWORD
);
1202 HANDLE WINAPI
CreateEventA(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCSTR
);
1203 HANDLE WINAPI
CreateEventW(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCWSTR
);
1204 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1205 LPVOID WINAPI
CreateFiber(SIZE_T
,LPFIBER_START_ROUTINE
,LPVOID
);
1206 LPVOID WINAPI
CreateFiberEx(SIZE_T
,SIZE_T
,DWORD
,LPFIBER_START_ROUTINE
,LPVOID
);
1207 HANDLE WINAPI
CreateFileA(LPCSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,HANDLE
);
1208 HANDLE WINAPI
CreateFileW(LPCWSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,HANDLE
);
1209 #define CreateFile WINELIB_NAME_AW(CreateFile)
1210 HANDLE WINAPI
CreateFileMappingA(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,DWORD
,LPCSTR
);
1211 HANDLE WINAPI
CreateFileMappingW(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,DWORD
,LPCWSTR
);
1212 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1213 HANDLE WINAPI
CreateMutexA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1214 HANDLE WINAPI
CreateMutexW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1215 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1216 HANDLE WINAPI
CreateNamedPipeA(LPCSTR
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
1217 HANDLE WINAPI
CreateNamedPipeW(LPCWSTR
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
1218 #define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
1219 BOOL WINAPI
CreatePipe(PHANDLE
,PHANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
);
1220 BOOL WINAPI
CreateProcessA(LPCSTR
,LPSTR
,LPSECURITY_ATTRIBUTES
,
1221 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCSTR
,
1222 LPSTARTUPINFOA
,LPPROCESS_INFORMATION
);
1223 BOOL WINAPI
CreateProcessW(LPCWSTR
,LPWSTR
,LPSECURITY_ATTRIBUTES
,
1224 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCWSTR
,
1225 LPSTARTUPINFOW
,LPPROCESS_INFORMATION
);
1226 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1227 HANDLE WINAPI
CreateRemoteThread(HANDLE
,LPSECURITY_ATTRIBUTES
,SIZE_T
,LPTHREAD_START_ROUTINE
,LPVOID
,DWORD
,LPDWORD
);
1228 HANDLE WINAPI
CreateSemaphoreA(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCSTR
);
1229 HANDLE WINAPI
CreateSemaphoreW(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCWSTR
);
1230 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1231 DWORD WINAPI
CreateTapePartition(HANDLE
,DWORD
,DWORD
,DWORD
);
1232 HANDLE WINAPI
CreateThread(LPSECURITY_ATTRIBUTES
,SIZE_T
,LPTHREAD_START_ROUTINE
,LPVOID
,DWORD
,LPDWORD
);
1233 HANDLE WINAPI
CreateTimerQueue(void);
1234 BOOL WINAPI
CreateTimerQueueTimer(PHANDLE
,HANDLE
,WAITORTIMERCALLBACK
,PVOID
,DWORD
,DWORD
,ULONG
);
1235 HANDLE WINAPI
CreateWaitableTimerA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1236 HANDLE WINAPI
CreateWaitableTimerW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1237 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1238 BOOL WINAPI
DebugActiveProcess(DWORD
);
1239 BOOL WINAPI
DebugActiveProcessStop(DWORD
);
1240 void WINAPI
DebugBreak(void);
1241 BOOL WINAPI
DebugBreakProcess(HANDLE
);
1242 BOOL WINAPI
DebugSetProcessKillOnExit(BOOL
);
1243 void WINAPI
DeleteFiber(LPVOID
);
1244 BOOL WINAPI
DeleteTimerQueueEx(HANDLE
,HANDLE
);
1245 BOOL WINAPI
DeleteTimerQueueTimer(HANDLE
,HANDLE
,HANDLE
);
1246 BOOL WINAPI
DeregisterEventSource(HANDLE
);
1247 BOOL WINAPI
DeviceIoControl(HANDLE
,DWORD
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1248 BOOL WINAPI
DisableThreadLibraryCalls(HMODULE
);
1249 BOOL WINAPI
DisconnectNamedPipe(HANDLE
);
1250 BOOL WINAPI
DnsHostnameToComputerNameA(LPCSTR
,LPSTR
,LPDWORD
);
1251 BOOL WINAPI
DnsHostnameToComputerNameW(LPCWSTR
,LPWSTR
,LPDWORD
);
1252 #define DnsHostnameToComputerName WINELIB_NAME_AW(DnsHostnameToComputerName)
1253 BOOL WINAPI
DosDateTimeToFileTime(WORD
,WORD
,LPFILETIME
);
1254 BOOL WINAPI
DuplicateHandle(HANDLE
,HANDLE
,HANDLE
,HANDLE
*,DWORD
,BOOL
,DWORD
);
1255 BOOL WINAPI
EscapeCommFunction(HANDLE
,UINT
);
1256 BOOL WINAPI
EnumResourceLanguagesA(HMODULE
,LPCSTR
,LPCSTR
,ENUMRESLANGPROCA
,LONG
);
1257 BOOL WINAPI
EnumResourceLanguagesW(HMODULE
,LPCWSTR
,LPCWSTR
,ENUMRESLANGPROCW
,LONG
);
1258 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1259 BOOL WINAPI
EnumResourceNamesA(HMODULE
,LPCSTR
,ENUMRESNAMEPROCA
,LONG
);
1260 BOOL WINAPI
EnumResourceNamesW(HMODULE
,LPCWSTR
,ENUMRESNAMEPROCW
,LONG
);
1261 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1262 BOOL WINAPI
EnumResourceTypesA(HMODULE
,ENUMRESTYPEPROCA
,LONG
);
1263 BOOL WINAPI
EnumResourceTypesW(HMODULE
,ENUMRESTYPEPROCW
,LONG
);
1264 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1265 BOOL WINAPI
EqualSid(PSID
, PSID
);
1266 BOOL WINAPI
EqualPrefixSid(PSID
,PSID
);
1267 DWORD WINAPI
EraseTape(HANDLE
,DWORD
,BOOL
);
1268 VOID DECLSPEC_NORETURN WINAPI
ExitProcess(DWORD
);
1269 VOID DECLSPEC_NORETURN WINAPI
ExitThread(DWORD
);
1270 DWORD WINAPI
ExpandEnvironmentStringsA(LPCSTR
,LPSTR
,DWORD
);
1271 DWORD WINAPI
ExpandEnvironmentStringsW(LPCWSTR
,LPWSTR
,DWORD
);
1272 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1273 BOOL WINAPI
FileTimeToDosDateTime(const FILETIME
*,LPWORD
,LPWORD
);
1274 BOOL WINAPI
FileTimeToLocalFileTime(const FILETIME
*,LPFILETIME
);
1275 BOOL WINAPI
FileTimeToSystemTime(const FILETIME
*,LPSYSTEMTIME
);
1276 HANDLE WINAPI
FindFirstChangeNotificationA(LPCSTR
,BOOL
,DWORD
);
1277 HANDLE WINAPI
FindFirstChangeNotificationW(LPCWSTR
,BOOL
,DWORD
);
1278 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1279 BOOL WINAPI
FindNextChangeNotification(HANDLE
);
1280 BOOL WINAPI
FindCloseChangeNotification(HANDLE
);
1281 HRSRC WINAPI
FindResourceExA(HMODULE
,LPCSTR
,LPCSTR
,WORD
);
1282 HRSRC WINAPI
FindResourceExW(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
);
1283 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1284 BOOL WINAPI
FlushFileBuffers(HANDLE
);
1285 BOOL WINAPI
FlushViewOfFile(LPCVOID
,SIZE_T
);
1286 DWORD WINAPI
FormatMessageA(DWORD
,LPCVOID
,DWORD
,DWORD
,LPSTR
,DWORD
,va_list*);
1287 DWORD WINAPI
FormatMessageW(DWORD
,LPCVOID
,DWORD
,DWORD
,LPWSTR
,DWORD
,va_list*);
1288 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1289 BOOL WINAPI
FreeEnvironmentStringsA(LPSTR
);
1290 BOOL WINAPI
FreeEnvironmentStringsW(LPWSTR
);
1291 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1292 VOID WINAPI
FreeLibraryAndExitThread(HINSTANCE
,DWORD
);
1293 PVOID WINAPI
FreeSid(PSID
);
1294 BOOL WINAPI
GetCommConfig(HANDLE
,LPCOMMCONFIG
,LPDWORD
);
1295 BOOL WINAPI
GetCommMask(HANDLE
,LPDWORD
);
1296 BOOL WINAPI
GetCommModemStatus(HANDLE
,LPDWORD
);
1297 BOOL WINAPI
GetCommProperties(HANDLE
,LPCOMMPROP
);
1298 BOOL WINAPI
GetCommState(HANDLE
,LPDCB
);
1299 BOOL WINAPI
GetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1300 LPSTR WINAPI
GetCommandLineA(void);
1301 LPWSTR WINAPI
GetCommandLineW(void);
1302 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1303 BOOL WINAPI
GetComputerNameA(LPSTR
,LPDWORD
);
1304 BOOL WINAPI
GetComputerNameW(LPWSTR
,LPDWORD
);
1305 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1306 BOOL WINAPI
GetComputerNameExA(COMPUTER_NAME_FORMAT
,LPSTR
,LPDWORD
);
1307 BOOL WINAPI
GetComputerNameExW(COMPUTER_NAME_FORMAT
,LPWSTR
,LPDWORD
);
1308 #define GetComputerNameEx WINELIB_NAME_AW(GetComputerNameEx)
1309 HANDLE WINAPI
GetCurrentProcess(void);
1310 HANDLE WINAPI
GetCurrentThread(void);
1311 BOOL WINAPI
GetDefaultCommConfigA(LPCSTR
,LPCOMMCONFIG
,LPDWORD
);
1312 BOOL WINAPI
GetDefaultCommConfigW(LPCWSTR
,LPCOMMCONFIG
,LPDWORD
);
1313 #define GetDefaultCommConfig WINELIB_NAME_AW(GetDefaultCommConfig)
1314 LPSTR WINAPI
GetEnvironmentStringsA(void);
1315 LPWSTR WINAPI
GetEnvironmentStringsW(void);
1316 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1317 DWORD WINAPI
GetEnvironmentVariableA(LPCSTR
,LPSTR
,DWORD
);
1318 DWORD WINAPI
GetEnvironmentVariableW(LPCWSTR
,LPWSTR
,DWORD
);
1319 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1320 BOOL WINAPI
GetFileAttributesExA(LPCSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1321 BOOL WINAPI
GetFileAttributesExW(LPCWSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1322 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1323 DWORD WINAPI
GetFileInformationByHandle(HANDLE
,BY_HANDLE_FILE_INFORMATION
*);
1324 BOOL WINAPI
GetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1325 BOOL WINAPI
GetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1326 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1327 DWORD WINAPI
GetFileSize(HANDLE
,LPDWORD
);
1328 BOOL WINAPI
GetFileSizeEx(HANDLE
,PLARGE_INTEGER
);
1329 BOOL WINAPI
GetFileTime(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1330 DWORD WINAPI
GetFileType(HANDLE
);
1331 DWORD WINAPI
GetFullPathNameA(LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1332 DWORD WINAPI
GetFullPathNameW(LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1333 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1334 BOOL WINAPI
GetHandleInformation(HANDLE
,LPDWORD
);
1335 DWORD WINAPI
GetLengthSid(PSID
);
1336 VOID WINAPI
GetLocalTime(LPSYSTEMTIME
);
1337 DWORD WINAPI
GetLogicalDrives(void);
1338 DWORD WINAPI
GetLongPathNameA(LPCSTR
,LPSTR
,DWORD
);
1339 DWORD WINAPI
GetLongPathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1340 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1341 BOOL WINAPI
GetNumberOfEventLogRecords(HANDLE
,PDWORD
);
1342 BOOL WINAPI
GetOldestEventLogRecord(HANDLE
,PDWORD
);
1343 DWORD WINAPI
GetPriorityClass(HANDLE
);
1344 BOOL WINAPI
GetProcessAffinityMask(HANDLE
,PDWORD
,PDWORD
);
1345 BOOL WINAPI
GetProcessTimes(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1346 DWORD WINAPI
GetProcessVersion(DWORD
);
1347 BOOL WINAPI
GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR_CONTROL
,LPDWORD
);
1348 BOOL WINAPI
GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR
,LPBOOL
,PACL
*,LPBOOL
);
1349 BOOL WINAPI
GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR
,PSID
*,LPBOOL
);
1350 DWORD WINAPI
GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR
);
1351 BOOL WINAPI
GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR
,PSID
*,LPBOOL
);
1352 BOOL WINAPI
GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR
,LPBOOL
,PACL
*,LPBOOL
);
1353 PSID_IDENTIFIER_AUTHORITY WINAPI
GetSidIdentifierAuthority(PSID
);
1354 DWORD WINAPI
GetSidLengthRequired(BYTE
);
1355 PDWORD WINAPI
GetSidSubAuthority(PSID
,DWORD
);
1356 PUCHAR WINAPI
GetSidSubAuthorityCount(PSID
);
1357 DWORD WINAPI
GetShortPathNameA(LPCSTR
,LPSTR
,DWORD
);
1358 DWORD WINAPI
GetShortPathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1359 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1360 HANDLE WINAPI
GetStdHandle(DWORD
);
1361 VOID WINAPI
GetSystemInfo(LPSYSTEM_INFO
);
1362 BOOL WINAPI
GetSystemPowerStatus(LPSYSTEM_POWER_STATUS
);
1363 VOID WINAPI
GetSystemTime(LPSYSTEMTIME
);
1364 BOOL WINAPI
GetSystemTimeAdjustment(PDWORD
,PDWORD
,PBOOL
);
1365 VOID WINAPI
GetSystemTimeAsFileTime(LPFILETIME
);
1366 DWORD WINAPI
GetTapeParameters(HANDLE
,DWORD
,LPDWORD
,LPVOID
);
1367 DWORD WINAPI
GetTapePosition(HANDLE
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1368 DWORD WINAPI
GetTapeStatus(HANDLE
);
1369 DWORD WINAPI
GetTimeZoneInformation(LPTIME_ZONE_INFORMATION
);
1370 BOOL WINAPI
GetThreadContext(HANDLE
,CONTEXT
*);
1371 INT WINAPI
GetThreadPriority(HANDLE
);
1372 BOOL WINAPI
GetThreadPriorityBoost(HANDLE
,PBOOL
);
1373 BOOL WINAPI
GetThreadSelectorEntry(HANDLE
,DWORD
,LPLDT_ENTRY
);
1374 BOOL WINAPI
GetThreadTimes(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1375 BOOL WINAPI
GetTokenInformation(HANDLE
,TOKEN_INFORMATION_CLASS
,LPVOID
,DWORD
,LPDWORD
);
1376 BOOL WINAPI
GetUserNameA(LPSTR
,LPDWORD
);
1377 BOOL WINAPI
GetUserNameW(LPWSTR
,LPDWORD
);
1378 #define GetUserName WINELIB_NAME_AW(GetUserName)
1379 VOID WINAPI
GlobalMemoryStatus(LPMEMORYSTATUS
);
1380 LPVOID WINAPI
HeapAlloc(HANDLE
,DWORD
,SIZE_T
);
1381 SIZE_T WINAPI
HeapCompact(HANDLE
,DWORD
);
1382 HANDLE WINAPI
HeapCreate(DWORD
,SIZE_T
,SIZE_T
);
1383 BOOL WINAPI
HeapDestroy(HANDLE
);
1384 BOOL WINAPI
HeapFree(HANDLE
,DWORD
,LPVOID
);
1385 BOOL WINAPI
HeapLock(HANDLE
);
1386 LPVOID WINAPI
HeapReAlloc(HANDLE
,DWORD
,LPVOID
,SIZE_T
);
1387 SIZE_T WINAPI
HeapSize(HANDLE
,DWORD
,LPVOID
);
1388 BOOL WINAPI
HeapUnlock(HANDLE
);
1389 BOOL WINAPI
HeapValidate(HANDLE
,DWORD
,LPCVOID
);
1390 BOOL WINAPI
HeapWalk(HANDLE
,LPPROCESS_HEAP_ENTRY
);
1391 DWORD WINAPI
InitializeAcl(PACL
,DWORD
,DWORD
);
1392 BOOL WINAPI
InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR
,DWORD
);
1393 BOOL WINAPI
InitializeSid(PSID
,PSID_IDENTIFIER_AUTHORITY
,BYTE
);
1394 BOOL WINAPI
IsTextUnicode(CONST LPVOID lpBuffer
, int cb
, LPINT lpi
);
1395 BOOL WINAPI
IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR
);
1396 BOOL WINAPI
IsValidSid(PSID
);
1397 BOOL WINAPI
ImpersonateLoggedOnUser(HANDLE
);
1398 BOOL WINAPI
ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL
);
1399 BOOL WINAPI
IsProcessorFeaturePresent(DWORD
);
1400 BOOL WINAPI
LookupAccountSidA(LPCSTR
,PSID
,LPSTR
,LPDWORD
,LPSTR
,LPDWORD
,PSID_NAME_USE
);
1401 BOOL WINAPI
LookupAccountSidW(LPCWSTR
,PSID
,LPWSTR
,LPDWORD
,LPWSTR
,LPDWORD
,PSID_NAME_USE
);
1402 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSid)
1403 BOOL WINAPI
LocalFileTimeToFileTime(const FILETIME
*,LPFILETIME
);
1404 BOOL WINAPI
LockFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1405 BOOL WINAPI
LockFileEx(HANDLE
, DWORD
, DWORD
, DWORD
, DWORD
, LPOVERLAPPED
);
1406 BOOL WINAPI
LookupPrivilegeValueA(LPCSTR
,LPCSTR
,PLUID
);
1407 BOOL WINAPI
LookupPrivilegeValueW(LPCWSTR
,LPCWSTR
,PLUID
);
1408 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1409 BOOL WINAPI
MakeSelfRelativeSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,LPDWORD
);
1410 HMODULE WINAPI
MapHModuleSL(WORD
);
1411 WORD WINAPI
MapHModuleLS(HMODULE
);
1412 LPVOID WINAPI
MapViewOfFile(HANDLE
,DWORD
,DWORD
,DWORD
,SIZE_T
);
1413 LPVOID WINAPI
MapViewOfFileEx(HANDLE
,DWORD
,DWORD
,DWORD
,SIZE_T
,LPVOID
);
1414 BOOL WINAPI
MoveFileA(LPCSTR
,LPCSTR
);
1415 BOOL WINAPI
MoveFileW(LPCWSTR
,LPCWSTR
);
1416 #define MoveFile WINELIB_NAME_AW(MoveFile)
1417 BOOL WINAPI
MoveFileExA(LPCSTR
,LPCSTR
,DWORD
);
1418 BOOL WINAPI
MoveFileExW(LPCWSTR
,LPCWSTR
,DWORD
);
1419 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1420 BOOL WINAPI
NotifyChangeEventLog(HANDLE
,HANDLE
);
1421 HANDLE WINAPI
OpenBackupEventLogA(LPCSTR
,LPCSTR
);
1422 HANDLE WINAPI
OpenBackupEventLogW(LPCWSTR
,LPCWSTR
);
1423 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1424 HANDLE WINAPI
OpenEventA(DWORD
,BOOL
,LPCSTR
);
1425 HANDLE WINAPI
OpenEventW(DWORD
,BOOL
,LPCWSTR
);
1426 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1427 HANDLE WINAPI
OpenEventLogA(LPCSTR
,LPCSTR
);
1428 HANDLE WINAPI
OpenEventLogW(LPCWSTR
,LPCWSTR
);
1429 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1430 HANDLE WINAPI
OpenFileMappingA(DWORD
,BOOL
,LPCSTR
);
1431 HANDLE WINAPI
OpenFileMappingW(DWORD
,BOOL
,LPCWSTR
);
1432 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1433 HANDLE WINAPI
OpenMutexA(DWORD
,BOOL
,LPCSTR
);
1434 HANDLE WINAPI
OpenMutexW(DWORD
,BOOL
,LPCWSTR
);
1435 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1436 HANDLE WINAPI
OpenProcess(DWORD
,BOOL
,DWORD
);
1437 BOOL WINAPI
OpenProcessToken(HANDLE
,DWORD
,PHANDLE
);
1438 HANDLE WINAPI
OpenSemaphoreA(DWORD
,BOOL
,LPCSTR
);
1439 HANDLE WINAPI
OpenSemaphoreW(DWORD
,BOOL
,LPCWSTR
);
1440 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1441 HANDLE WINAPI
OpenThread(DWORD
,BOOL
,DWORD
);
1442 BOOL WINAPI
OpenThreadToken(HANDLE
,DWORD
,BOOL
,PHANDLE
);
1443 HANDLE WINAPI
OpenWaitableTimerA(DWORD
,BOOL
,LPCSTR
);
1444 HANDLE WINAPI
OpenWaitableTimerW(DWORD
,BOOL
,LPCWSTR
);
1445 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
1446 BOOL WINAPI
PeekNamedPipe(HANDLE
,PVOID
,DWORD
,PDWORD
,PDWORD
,PDWORD
);
1447 DWORD WINAPI
PrepareTape(HANDLE
,DWORD
,BOOL
);
1448 BOOL WINAPI
PulseEvent(HANDLE
);
1449 BOOL WINAPI
PurgeComm(HANDLE
,DWORD
);
1450 DWORD WINAPI
QueryDosDeviceA(LPCSTR
,LPSTR
,DWORD
);
1451 DWORD WINAPI
QueryDosDeviceW(LPCWSTR
,LPWSTR
,DWORD
);
1452 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1453 BOOL WINAPI
QueryPerformanceCounter(LARGE_INTEGER
*);
1454 BOOL WINAPI
QueryPerformanceFrequency(LARGE_INTEGER
*);
1455 BOOL WINAPI
ReadEventLogA(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1456 BOOL WINAPI
ReadEventLogW(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1457 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1458 BOOL WINAPI
ReadFile(HANDLE
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1459 BOOL WINAPI
ReadFileEx(HANDLE
,LPVOID
,DWORD
,LPOVERLAPPED
,LPOVERLAPPED_COMPLETION_ROUTINE
);
1460 HANDLE WINAPI
RegisterEventSourceA(LPCSTR
,LPCSTR
);
1461 HANDLE WINAPI
RegisterEventSourceW(LPCWSTR
,LPCWSTR
);
1462 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1463 BOOL WINAPI
ReleaseMutex(HANDLE
);
1464 BOOL WINAPI
ReleaseSemaphore(HANDLE
,LONG
,LPLONG
);
1465 BOOL WINAPI
ReportEventA(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCSTR
*,LPVOID
);
1466 BOOL WINAPI
ReportEventW(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCWSTR
*,LPVOID
);
1467 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
1468 BOOL WINAPI
ResetEvent(HANDLE
);
1469 DWORD WINAPI
ResumeThread(HANDLE
);
1470 BOOL WINAPI
RevertToSelf(void);
1471 DWORD WINAPI
SearchPathA(LPCSTR
,LPCSTR
,LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1472 DWORD WINAPI
SearchPathW(LPCWSTR
,LPCWSTR
,LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1473 #define SearchPath WINELIB_NAME_AW(SearchPath)
1474 BOOL WINAPI
SetCommConfig(HANDLE
,LPCOMMCONFIG
,DWORD
);
1475 BOOL WINAPI
SetCommBreak(HANDLE
);
1476 BOOL WINAPI
SetCommMask(HANDLE
,DWORD
);
1477 BOOL WINAPI
SetCommState(HANDLE
,LPDCB
);
1478 BOOL WINAPI
SetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1479 BOOL WINAPI
SetComputerNameA(LPCSTR
);
1480 BOOL WINAPI
SetComputerNameW(LPCWSTR
);
1481 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1482 BOOL WINAPI
SetComputerNameExA(COMPUTER_NAME_FORMAT
,LPCSTR
);
1483 BOOL WINAPI
SetComputerNameExW(COMPUTER_NAME_FORMAT
,LPCWSTR
);
1484 #define SetComputerNameEx WINELIB_NAME_AW(SetComputerNameEx)
1485 BOOL WINAPI
SetDefaultCommConfigA(LPCSTR
,LPCOMMCONFIG
,DWORD
);
1486 BOOL WINAPI
SetDefaultCommConfigW(LPCWSTR
,LPCOMMCONFIG
,DWORD
);
1487 #define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1488 BOOL WINAPI
SetEndOfFile(HANDLE
);
1489 BOOL WINAPI
SetEnvironmentVariableA(LPCSTR
,LPCSTR
);
1490 BOOL WINAPI
SetEnvironmentVariableW(LPCWSTR
,LPCWSTR
);
1491 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1492 BOOL WINAPI
SetEvent(HANDLE
);
1493 VOID WINAPI
SetFileApisToANSI(void);
1494 VOID WINAPI
SetFileApisToOEM(void);
1495 DWORD WINAPI
SetFilePointer(HANDLE
,LONG
,LPLONG
,DWORD
);
1496 BOOL WINAPI
SetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1497 BOOL WINAPI
SetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1498 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1499 BOOL WINAPI
SetFileTime(HANDLE
,const FILETIME
*,const FILETIME
*,const FILETIME
*);
1500 BOOL WINAPI
SetHandleInformation(HANDLE
,DWORD
,DWORD
);
1501 BOOL WINAPI
SetKernelObjectSecurity(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1502 BOOL WINAPI
SetNamedPipeHandleState(HANDLE
,LPDWORD
,LPDWORD
,LPDWORD
);
1503 BOOL WINAPI
SetPriorityClass(HANDLE
,DWORD
);
1504 BOOL WINAPI
SetLocalTime(const SYSTEMTIME
*);
1505 BOOL WINAPI
SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1506 BOOL WINAPI
SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1507 BOOL WINAPI
SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1508 BOOL WINAPI
SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1509 BOOL WINAPI
SetStdHandle(DWORD
,HANDLE
);
1510 BOOL WINAPI
SetSystemPowerState(BOOL
,BOOL
);
1511 BOOL WINAPI
SetSystemTime(const SYSTEMTIME
*);
1512 DWORD WINAPI
SetTapeParameters(HANDLE
,DWORD
,LPVOID
);
1513 DWORD WINAPI
SetTapePosition(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
,BOOL
);
1514 DWORD WINAPI
SetThreadAffinityMask(HANDLE
,DWORD
);
1515 BOOL WINAPI
SetThreadContext(HANDLE
,const CONTEXT
*);
1516 DWORD WINAPI
SetThreadExecutionState(EXECUTION_STATE
);
1517 DWORD WINAPI
SetThreadIdealProcessor(HANDLE
,DWORD
);
1518 BOOL WINAPI
SetThreadPriority(HANDLE
,INT
);
1519 BOOL WINAPI
SetThreadPriorityBoost(HANDLE
,BOOL
);
1520 BOOL WINAPI
SetThreadToken(PHANDLE
,HANDLE
);
1521 BOOL WINAPI
SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION
);
1522 BOOL WINAPI
SetWaitableTimer(HANDLE
,const LARGE_INTEGER
*,LONG
,PTIMERAPCROUTINE
,LPVOID
,BOOL
);
1523 BOOL WINAPI
SetupComm(HANDLE
,DWORD
,DWORD
);
1524 DWORD WINAPI
SignalObjectAndWait(HANDLE
,HANDLE
,DWORD
,BOOL
);
1525 VOID WINAPI
Sleep(DWORD
);
1526 DWORD WINAPI
SleepEx(DWORD
,BOOL
);
1527 DWORD WINAPI
SuspendThread(HANDLE
);
1528 void WINAPI
SwitchToFiber(LPVOID
);
1529 BOOL WINAPI
SwitchToThread(void);
1530 BOOL WINAPI
SystemTimeToFileTime(const SYSTEMTIME
*,LPFILETIME
);
1531 DWORD WINAPI
TlsAlloc(void);
1532 BOOL WINAPI
TlsFree(DWORD
);
1533 LPVOID WINAPI
TlsGetValue(DWORD
);
1534 BOOL WINAPI
TlsSetValue(DWORD
,LPVOID
);
1535 BOOL WINAPI
TransmitCommChar(HANDLE
,CHAR
);
1536 BOOL WINAPI
UnlockFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1537 BOOL WINAPI
UnlockFileEx(HANDLE
,DWORD
,DWORD
,DWORD
,LPOVERLAPPED
);
1538 BOOL WINAPI
UnmapViewOfFile(LPVOID
);
1539 BOOL WINAPI
VerifyVersionInfoA(LPOSVERSIONINFOEXA
,DWORD
,DWORDLONG
);
1540 BOOL WINAPI
VerifyVersionInfoW(LPOSVERSIONINFOEXW
,DWORD
,DWORDLONG
);
1541 #define VerifyVersionInfo WINELIB_NAME_AW(VerifyVersionInfo)
1542 LPVOID WINAPI
VirtualAlloc(LPVOID
,SIZE_T
,DWORD
,DWORD
);
1543 LPVOID WINAPI
VirtualAllocEx(HANDLE
,LPVOID
,SIZE_T
,DWORD
,DWORD
);
1544 BOOL WINAPI
VirtualFree(LPVOID
,SIZE_T
,DWORD
);
1545 BOOL WINAPI
VirtualFreeEx(HANDLE
,LPVOID
,SIZE_T
,DWORD
);
1546 BOOL WINAPI
VirtualLock(LPVOID
,SIZE_T
);
1547 BOOL WINAPI
VirtualProtect(LPVOID
,SIZE_T
,DWORD
,LPDWORD
);
1548 BOOL WINAPI
VirtualProtectEx(HANDLE
,LPVOID
,SIZE_T
,DWORD
,LPDWORD
);
1549 SIZE_T WINAPI
VirtualQuery(LPCVOID
,PMEMORY_BASIC_INFORMATION
,SIZE_T
);
1550 SIZE_T WINAPI
VirtualQueryEx(HANDLE
,LPCVOID
,PMEMORY_BASIC_INFORMATION
,SIZE_T
);
1551 BOOL WINAPI
VirtualUnlock(LPVOID
,SIZE_T
);
1552 BOOL WINAPI
WaitCommEvent(HANDLE
,LPDWORD
,LPOVERLAPPED
);
1553 BOOL WINAPI
WaitForDebugEvent(LPDEBUG_EVENT
,DWORD
);
1554 DWORD WINAPI
WaitForMultipleObjects(DWORD
,const HANDLE
*,BOOL
,DWORD
);
1555 DWORD WINAPI
WaitForMultipleObjectsEx(DWORD
,const HANDLE
*,BOOL
,DWORD
,BOOL
);
1556 DWORD WINAPI
WaitForSingleObject(HANDLE
,DWORD
);
1557 DWORD WINAPI
WaitForSingleObjectEx(HANDLE
,DWORD
,BOOL
);
1558 BOOL WINAPI
WaitNamedPipeA(LPCSTR
,DWORD
);
1559 BOOL WINAPI
WaitNamedPipeW(LPCWSTR
,DWORD
);
1560 #define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
1561 BOOL WINAPI
WriteFile(HANDLE
,LPCVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1562 BOOL WINAPI
WriteFileEx(HANDLE
,LPCVOID
,DWORD
,LPOVERLAPPED
,LPOVERLAPPED_COMPLETION_ROUTINE
);
1563 DWORD WINAPI
WriteTapemark(HANDLE
,DWORD
,DWORD
,BOOL
);
1564 ATOM WINAPI
AddAtomA(LPCSTR
);
1565 ATOM WINAPI
AddAtomW(LPCWSTR
);
1566 #define AddAtom WINELIB_NAME_AW(AddAtom)
1567 BOOL WINAPI
CreateDirectoryA(LPCSTR
,LPSECURITY_ATTRIBUTES
);
1568 BOOL WINAPI
CreateDirectoryW(LPCWSTR
,LPSECURITY_ATTRIBUTES
);
1569 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1570 BOOL WINAPI
CreateDirectoryExA(LPCSTR
,LPCSTR
,LPSECURITY_ATTRIBUTES
);
1571 BOOL WINAPI
CreateDirectoryExW(LPCWSTR
,LPCWSTR
,LPSECURITY_ATTRIBUTES
);
1572 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1573 BOOL WINAPI
DefineDosDeviceA(DWORD
,LPCSTR
,LPCSTR
);
1574 #define DefineHandleTable(w) ((w),TRUE)
1575 ATOM WINAPI
DeleteAtom(ATOM
);
1576 BOOL WINAPI
DeleteFileA(LPCSTR
);
1577 BOOL WINAPI
DeleteFileW(LPCWSTR
);
1578 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1579 void WINAPI
FatalAppExitA(UINT
,LPCSTR
);
1580 void WINAPI
FatalAppExitW(UINT
,LPCWSTR
);
1581 void WINAPI
FatalExit(int);
1582 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1583 ATOM WINAPI
FindAtomA(LPCSTR
);
1584 ATOM WINAPI
FindAtomW(LPCWSTR
);
1585 #define FindAtom WINELIB_NAME_AW(FindAtom)
1586 BOOL WINAPI
FindClose(HANDLE
);
1587 HANDLE WINAPI
FindFirstFileA(LPCSTR
,LPWIN32_FIND_DATAA
);
1588 HANDLE WINAPI
FindFirstFileW(LPCWSTR
,LPWIN32_FIND_DATAW
);
1589 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1590 HANDLE WINAPI
FindFirstFileExA(LPCSTR
,FINDEX_INFO_LEVELS
,LPVOID
,FINDEX_SEARCH_OPS
,LPVOID
,DWORD
);
1591 HANDLE WINAPI
FindFirstFileExW(LPCWSTR
,FINDEX_INFO_LEVELS
,LPVOID
,FINDEX_SEARCH_OPS
,LPVOID
,DWORD
);
1592 #define FindFirstFileEx WINELIB_NAME_AW(FindFirstFileEx)
1593 BOOL WINAPI
FindNextFileA(HANDLE
,LPWIN32_FIND_DATAA
);
1594 BOOL WINAPI
FindNextFileW(HANDLE
,LPWIN32_FIND_DATAW
);
1595 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1596 HRSRC WINAPI
FindResourceA(HMODULE
,LPCSTR
,LPCSTR
);
1597 HRSRC WINAPI
FindResourceW(HMODULE
,LPCWSTR
,LPCWSTR
);
1598 #define FindResource WINELIB_NAME_AW(FindResource)
1599 BOOL WINAPI
FlushInstructionCache(HANDLE
,LPCVOID
,SIZE_T
);
1600 BOOL WINAPI
FreeLibrary(HMODULE
);
1601 #define FreeModule(handle) FreeLibrary(handle)
1602 #define FreeProcInstance(proc) /*nothing*/
1603 BOOL WINAPI
FreeResource(HGLOBAL
);
1604 UINT WINAPI
GetAtomNameA(ATOM
,LPSTR
,INT
);
1605 UINT WINAPI
GetAtomNameW(ATOM
,LPWSTR
,INT
);
1606 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1607 UINT WINAPI
GetCurrentDirectoryA(UINT
,LPSTR
);
1608 UINT WINAPI
GetCurrentDirectoryW(UINT
,LPWSTR
);
1609 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1610 #define GetCurrentTime() GetTickCount()
1611 BOOL WINAPI
GetDiskFreeSpaceA(LPCSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1612 BOOL WINAPI
GetDiskFreeSpaceW(LPCWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1613 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1614 BOOL WINAPI
GetDiskFreeSpaceExA(LPCSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1615 BOOL WINAPI
GetDiskFreeSpaceExW(LPCWSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1616 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1617 UINT WINAPI
GetDriveTypeA(LPCSTR
);
1618 UINT WINAPI
GetDriveTypeW(LPCWSTR
);
1619 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1620 BOOL WINAPI
GetExitCodeProcess(HANDLE
,LPDWORD
);
1621 DWORD WINAPI
GetFileAttributesA(LPCSTR
);
1622 DWORD WINAPI
GetFileAttributesW(LPCWSTR
);
1623 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1624 #define GetFreeSpace(w) (0x100000L)
1625 UINT WINAPI
GetLogicalDriveStringsA(UINT
,LPSTR
);
1626 UINT WINAPI
GetLogicalDriveStringsW(UINT
,LPWSTR
);
1627 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1628 DWORD WINAPI
GetModuleFileNameA(HMODULE
,LPSTR
,DWORD
);
1629 DWORD WINAPI
GetModuleFileNameW(HMODULE
,LPWSTR
,DWORD
);
1630 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1631 HMODULE WINAPI
GetModuleHandleA(LPCSTR
);
1632 HMODULE WINAPI
GetModuleHandleW(LPCWSTR
);
1633 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1634 BOOL WINAPI
GetOverlappedResult(HANDLE
,LPOVERLAPPED
,LPDWORD
,BOOL
);
1635 UINT WINAPI
GetPrivateProfileIntA(LPCSTR
,LPCSTR
,INT
,LPCSTR
);
1636 UINT WINAPI
GetPrivateProfileIntW(LPCWSTR
,LPCWSTR
,INT
,LPCWSTR
);
1637 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1638 INT WINAPI
GetPrivateProfileSectionA(LPCSTR
,LPSTR
,DWORD
,LPCSTR
);
1639 INT WINAPI
GetPrivateProfileSectionW(LPCWSTR
,LPWSTR
,DWORD
,LPCWSTR
);
1640 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1641 DWORD WINAPI
GetPrivateProfileSectionNamesA(LPSTR
,DWORD
,LPCSTR
);
1642 DWORD WINAPI
GetPrivateProfileSectionNamesW(LPWSTR
,DWORD
,LPCWSTR
);
1643 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1644 INT WINAPI
GetPrivateProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT
,LPCSTR
);
1645 INT WINAPI
GetPrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT
,LPCWSTR
);
1646 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1647 BOOL WINAPI
GetPrivateProfileStructA(LPCSTR
,LPCSTR
,LPVOID
,UINT
,LPCSTR
);
1648 BOOL WINAPI
GetPrivateProfileStructW(LPCWSTR
,LPCWSTR
,LPVOID
,UINT
,LPCWSTR
);
1649 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1650 FARPROC WINAPI
GetProcAddress(HMODULE
,LPCSTR
);
1651 UINT WINAPI
GetProfileIntA(LPCSTR
,LPCSTR
,INT
);
1652 UINT WINAPI
GetProfileIntW(LPCWSTR
,LPCWSTR
,INT
);
1653 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1654 INT WINAPI
GetProfileSectionA(LPCSTR
,LPSTR
,DWORD
);
1655 INT WINAPI
GetProfileSectionW(LPCWSTR
,LPWSTR
,DWORD
);
1656 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1657 INT WINAPI
GetProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT
);
1658 INT WINAPI
GetProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT
);
1659 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1660 VOID WINAPI
GetStartupInfoA(LPSTARTUPINFOA
);
1661 VOID WINAPI
GetStartupInfoW(LPSTARTUPINFOW
);
1662 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1663 UINT WINAPI
GetSystemDirectoryA(LPSTR
,UINT
);
1664 UINT WINAPI
GetSystemDirectoryW(LPWSTR
,UINT
);
1665 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1666 DWORD WINAPI
GetTickCount(void);
1667 UINT WINAPI
GetTempFileNameA(LPCSTR
,LPCSTR
,UINT
,LPSTR
);
1668 UINT WINAPI
GetTempFileNameW(LPCWSTR
,LPCWSTR
,UINT
,LPWSTR
);
1669 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1670 UINT WINAPI
GetTempPathA(UINT
,LPSTR
);
1671 UINT WINAPI
GetTempPathW(UINT
,LPWSTR
);
1672 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1673 LONG WINAPI
GetVersion(void);
1674 BOOL WINAPI
GetVolumeInformationA(LPCSTR
,LPSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPSTR
,DWORD
);
1675 BOOL WINAPI
GetVolumeInformationW(LPCWSTR
,LPWSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPWSTR
,DWORD
);
1676 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1677 UINT WINAPI
GetWindowsDirectoryA(LPSTR
,UINT
);
1678 UINT WINAPI
GetWindowsDirectoryW(LPWSTR
,UINT
);
1679 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1680 ATOM WINAPI
GlobalAddAtomA(LPCSTR
);
1681 ATOM WINAPI
GlobalAddAtomW(LPCWSTR
);
1682 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
1683 HGLOBAL WINAPI
GlobalAlloc(UINT
,SIZE_T
);
1684 SIZE_T WINAPI
GlobalCompact(DWORD
);
1685 ATOM WINAPI
GlobalDeleteAtom(ATOM
);
1686 ATOM WINAPI
GlobalFindAtomA(LPCSTR
);
1687 ATOM WINAPI
GlobalFindAtomW(LPCWSTR
);
1688 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
1689 UINT WINAPI
GlobalFlags(HGLOBAL
);
1690 HGLOBAL WINAPI
GlobalFree(HGLOBAL
);
1691 UINT WINAPI
GlobalGetAtomNameA(ATOM
,LPSTR
,INT
);
1692 UINT WINAPI
GlobalGetAtomNameW(ATOM
,LPWSTR
,INT
);
1693 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
1694 HGLOBAL WINAPI
GlobalHandle(LPCVOID
);
1695 VOID WINAPI
GlobalFix(HGLOBAL
);
1696 LPVOID WINAPI
GlobalLock(HGLOBAL
);
1697 HGLOBAL WINAPI
GlobalReAlloc(HGLOBAL
,SIZE_T
,UINT
);
1698 SIZE_T WINAPI
GlobalSize(HGLOBAL
);
1699 VOID WINAPI
GlobalUnfix(HGLOBAL
);
1700 BOOL WINAPI
GlobalUnlock(HGLOBAL
);
1701 BOOL WINAPI
GlobalUnWire(HGLOBAL
);
1702 LPVOID WINAPI
GlobalWire(HGLOBAL
);
1703 #define HasOverlappedCompleted(lpOverlapped) ((lpOverlapped)->Internal != STATUS_PENDING)
1704 BOOL WINAPI
InitAtomTable(DWORD
);
1705 BOOL WINAPI
IsBadCodePtr(FARPROC
);
1706 BOOL WINAPI
IsBadHugeReadPtr(LPCVOID
,UINT
);
1707 BOOL WINAPI
IsBadHugeWritePtr(LPVOID
,UINT
);
1708 BOOL WINAPI
IsBadReadPtr(LPCVOID
,UINT
);
1709 BOOL WINAPI
IsBadStringPtrA(LPCSTR
,UINT
);
1710 BOOL WINAPI
IsBadStringPtrW(LPCWSTR
,UINT
);
1711 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1712 BOOL WINAPI
IsBadWritePtr(LPVOID
,UINT
);
1713 BOOL WINAPI
IsDebuggerPresent(void);
1714 HMODULE WINAPI
LoadLibraryA(LPCSTR
);
1715 HMODULE WINAPI
LoadLibraryW(LPCWSTR
);
1716 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1717 HMODULE WINAPI
LoadLibraryExA(LPCSTR
,HANDLE
,DWORD
);
1718 HMODULE WINAPI
LoadLibraryExW(LPCWSTR
,HANDLE
,DWORD
);
1719 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1720 HINSTANCE WINAPI
LoadModule(LPCSTR
,LPVOID
);
1721 HGLOBAL WINAPI
LoadResource(HMODULE
,HRSRC
);
1722 HLOCAL WINAPI
LocalAlloc(UINT
,SIZE_T
);
1723 SIZE_T WINAPI
LocalCompact(UINT
);
1724 UINT WINAPI
LocalFlags(HLOCAL
);
1725 HLOCAL WINAPI
LocalFree(HLOCAL
);
1726 HLOCAL WINAPI
LocalHandle(LPCVOID
);
1727 LPVOID WINAPI
LocalLock(HLOCAL
);
1728 HLOCAL WINAPI
LocalReAlloc(HLOCAL
,SIZE_T
,UINT
);
1729 SIZE_T WINAPI
LocalShrink(HGLOBAL
,UINT
);
1730 SIZE_T WINAPI
LocalSize(HLOCAL
);
1731 BOOL WINAPI
LocalUnlock(HLOCAL
);
1732 LPVOID WINAPI
LockResource(HGLOBAL
);
1733 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1734 #define MakeProcInstance(proc,inst) (proc)
1735 HFILE WINAPI
OpenFile(LPCSTR
,OFSTRUCT
*,UINT
);
1736 VOID WINAPI
OutputDebugStringA(LPCSTR
);
1737 VOID WINAPI
OutputDebugStringW(LPCWSTR
);
1738 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1739 BOOL WINAPI
ReadProcessMemory(HANDLE
,LPCVOID
,LPVOID
,SIZE_T
,SIZE_T
*);
1740 BOOL WINAPI
RemoveDirectoryA(LPCSTR
);
1741 BOOL WINAPI
RemoveDirectoryW(LPCWSTR
);
1742 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1743 BOOL WINAPI
SetCurrentDirectoryA(LPCSTR
);
1744 BOOL WINAPI
SetCurrentDirectoryW(LPCWSTR
);
1745 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1746 UINT WINAPI
SetErrorMode(UINT
);
1747 BOOL WINAPI
SetFileAttributesA(LPCSTR
,DWORD
);
1748 BOOL WINAPI
SetFileAttributesW(LPCWSTR
,DWORD
);
1749 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1750 UINT WINAPI
SetHandleCount(UINT
);
1751 #define SetSwapAreaSize(w) (w)
1752 BOOL WINAPI
SetVolumeLabelA(LPCSTR
,LPCSTR
);
1753 BOOL WINAPI
SetVolumeLabelW(LPCWSTR
,LPCWSTR
);
1754 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1755 DWORD WINAPI
SizeofResource(HMODULE
,HRSRC
);
1756 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1757 BOOL WINAPI
WritePrivateProfileSectionA(LPCSTR
,LPCSTR
,LPCSTR
);
1758 BOOL WINAPI
WritePrivateProfileSectionW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1759 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1760 BOOL WINAPI
WritePrivateProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
1761 BOOL WINAPI
WritePrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
1762 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1763 BOOL WINAPI
WriteProfileSectionA(LPCSTR
,LPCSTR
);
1764 BOOL WINAPI
WriteProfileSectionW(LPCWSTR
,LPCWSTR
);
1765 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1766 BOOL WINAPI
WritePrivateProfileStructA(LPCSTR
,LPCSTR
,LPVOID
,UINT
,LPCSTR
);
1767 BOOL WINAPI
WritePrivateProfileStructW(LPCWSTR
,LPCWSTR
,LPVOID
,UINT
,LPCWSTR
);
1768 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1769 BOOL WINAPI
WriteProcessMemory(HANDLE
,LPVOID
,LPCVOID
,SIZE_T
,SIZE_T
*);
1770 BOOL WINAPI
WriteProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
);
1771 BOOL WINAPI
WriteProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1772 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1774 LPSTR WINAPI
lstrcatA(LPSTR
,LPCSTR
);
1775 LPWSTR WINAPI
lstrcatW(LPWSTR
,LPCWSTR
);
1776 #define lstrcat WINELIB_NAME_AW(lstrcat)
1777 LPSTR WINAPI
lstrcpyA(LPSTR
,LPCSTR
);
1778 LPWSTR WINAPI
lstrcpyW(LPWSTR
,LPCWSTR
);
1779 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1780 LPSTR WINAPI
lstrcpynA(LPSTR
,LPCSTR
,INT
);
1781 LPWSTR WINAPI
lstrcpynW(LPWSTR
,LPCWSTR
,INT
);
1782 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1783 INT WINAPI
lstrlenA(LPCSTR
);
1784 INT WINAPI
lstrlenW(LPCWSTR
);
1785 #define lstrlen WINELIB_NAME_AW(lstrlen)
1786 UINT WINAPI
WinExec(LPCSTR
,UINT
);
1787 LONG WINAPI
_hread(HFILE
,LPVOID
,LONG
);
1788 LONG WINAPI
_hwrite(HFILE
,LPCSTR
,LONG
);
1789 HFILE WINAPI
_lcreat(LPCSTR
,INT
);
1790 HFILE WINAPI
_lclose(HFILE
);
1791 LONG WINAPI
_llseek(HFILE
,LONG
,INT
);
1792 HFILE WINAPI
_lopen(LPCSTR
,INT
);
1793 UINT WINAPI
_lread(HFILE
,LPVOID
,UINT
);
1794 UINT WINAPI
_lwrite(HFILE
,LPCSTR
,UINT
);
1795 INT WINAPI
lstrcmpA(LPCSTR
,LPCSTR
);
1796 INT WINAPI
lstrcmpW(LPCWSTR
,LPCWSTR
);
1797 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1798 INT WINAPI
lstrcmpiA(LPCSTR
,LPCSTR
);
1799 INT WINAPI
lstrcmpiW(LPCWSTR
,LPCWSTR
);
1800 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1802 /* compatibility macros */
1803 #define FillMemory RtlFillMemory
1804 #define MoveMemory RtlMoveMemory
1805 #define ZeroMemory RtlZeroMemory
1806 #define CopyMemory RtlCopyMemory
1808 /* undocumented functions */
1810 typedef struct tagSYSLEVEL
1812 CRITICAL_SECTION crst
;
1816 /* [GS]etProcessDword offsets */
1817 #define GPD_APP_COMPAT_FLAGS (-56)
1818 #define GPD_LOAD_DONE_EVENT (-52)
1819 #define GPD_HINSTANCE16 (-48)
1820 #define GPD_WINDOWS_VERSION (-44)
1821 #define GPD_THDB (-40)
1822 #define GPD_PDB (-36)
1823 #define GPD_STARTF_SHELLDATA (-32)
1824 #define GPD_STARTF_HOTKEY (-28)
1825 #define GPD_STARTF_SHOWWINDOW (-24)
1826 #define GPD_STARTF_SIZE (-20)
1827 #define GPD_STARTF_POSITION (-16)
1828 #define GPD_STARTF_FLAGS (-12)
1829 #define GPD_PARENT (- 8)
1830 #define GPD_FLAGS (- 4)
1831 #define GPD_USERDATA ( 0)
1833 void WINAPI
DisposeLZ32Handle(HANDLE
);
1834 HANDLE WINAPI
DosFileHandleToWin32Handle(HFILE
);
1835 DWORD WINAPI
GetProcessDword(DWORD
,INT
);
1836 VOID WINAPI
GetpWin16Lock(SYSLEVEL
**);
1837 DWORD WINAPI
MapLS(LPCVOID
);
1838 DWORD WINAPI
MapProcessHandle(HANDLE
);
1839 LPVOID WINAPI
MapSL(DWORD
);
1840 VOID WINAPI
ReleaseThunkLock(DWORD
*);
1841 VOID WINAPI
RestoreThunkLock(DWORD
);
1842 void WINAPI
SetProcessDword(DWORD
,INT
,DWORD
);
1843 VOID WINAPI
UnMapLS(DWORD
);
1844 HFILE WINAPI
Win32HandleToDosFileHandle(HANDLE
);
1845 VOID WINAPI
_CheckNotSysLevel(SYSLEVEL
*lock
);
1846 DWORD WINAPI
_ConfirmWin16Lock(void);
1847 DWORD WINAPI
_ConfirmSysLevel(SYSLEVEL
*);
1848 VOID WINAPI
_EnterSysLevel(SYSLEVEL
*);
1849 VOID WINAPI
_LeaveSysLevel(SYSLEVEL
*);
1852 /* Wine internal functions */
1854 BOOL WINAPI
wine_get_unix_file_name( LPCSTR dos
, LPSTR buffer
, DWORD len
);
1857 /* a few optimizations for i386/gcc */
1859 #if defined(__i386__) && defined(__GNUC__)
1861 extern inline LONG WINAPI
InterlockedCompareExchange( PLONG dest
, LONG xchg
, LONG compare
);
1862 extern inline LONG WINAPI
InterlockedCompareExchange( PLONG dest
, LONG xchg
, LONG compare
)
1865 __asm__
__volatile__( "lock; cmpxchgl %2,(%1)"
1866 : "=a" (ret
) : "r" (dest
), "r" (xchg
), "0" (compare
) : "memory" );
1870 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
);
1871 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
)
1874 __asm__
__volatile__( "lock; xchgl %0,(%1)"
1875 : "=r" (ret
) :"r" (dest
), "0" (val
) : "memory" );
1879 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
);
1880 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
)
1883 __asm__
__volatile__( "lock; xaddl %0,(%1)"
1884 : "=r" (ret
) : "r" (dest
), "0" (incr
) : "memory" );
1888 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
);
1889 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
)
1891 return InterlockedExchangeAdd( dest
, 1 ) + 1;
1894 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
);
1895 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
)
1897 return InterlockedExchangeAdd( dest
, -1 ) - 1;
1900 extern inline DWORD WINAPI
GetLastError(void);
1901 extern inline DWORD WINAPI
GetLastError(void)
1904 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x60,%0" : "=r" (ret
) );
1908 extern inline DWORD WINAPI
GetCurrentProcessId(void);
1909 extern inline DWORD WINAPI
GetCurrentProcessId(void)
1912 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x20,%0" : "=r" (ret
) );
1916 extern inline DWORD WINAPI
GetCurrentThreadId(void);
1917 extern inline DWORD WINAPI
GetCurrentThreadId(void)
1920 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x24,%0" : "=r" (ret
) );
1924 extern inline void WINAPI
SetLastError( DWORD err
);
1925 extern inline void WINAPI
SetLastError( DWORD err
)
1927 __asm__
__volatile__( ".byte 0x64\n\tmovl %0,0x60" : : "r" (err
) : "memory" );
1930 extern inline HANDLE WINAPI
GetProcessHeap(void);
1931 extern inline HANDLE WINAPI
GetProcessHeap(void)
1934 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb
) );
1935 return pdb
[0x18 / sizeof(HANDLE
)]; /* get dword at offset 0x18 in pdb */
1938 #else /* __i386__ && __GNUC__ */
1939 DWORD WINAPI
GetCurrentProcessId(void);
1940 DWORD WINAPI
GetCurrentThreadId(void);
1941 DWORD WINAPI
GetLastError(void);
1942 HANDLE WINAPI
GetProcessHeap(void);
1943 LONG WINAPI
InterlockedCompareExchange(LONG
*,LONG
,LONG
);
1944 LONG WINAPI
InterlockedDecrement(PLONG
);
1945 LONG WINAPI
InterlockedExchange(PLONG
,LONG
);
1946 LONG WINAPI
InterlockedExchangeAdd(PLONG
,LONG
);
1947 LONG WINAPI
InterlockedIncrement(PLONG
);
1948 VOID WINAPI
SetLastError(DWORD
);
1949 #endif /* __i386__ && __GNUC__ */
1951 /* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */
1952 static inline PVOID WINAPI
InterlockedCompareExchangePointer( PVOID
*dest
, PVOID xchg
, PVOID compare
)
1954 return (PVOID
)InterlockedCompareExchange( (PLONG
)dest
, (LONG
)xchg
, (LONG
)compare
);
1957 static inline PVOID WINAPI
InterlockedExchangePointer( PVOID
*dest
, PVOID val
)
1959 return (PVOID
)InterlockedExchange( (PLONG
)dest
, (LONG
)val
);
1963 #define GetCurrentProcess() ((HANDLE)0xffffffff)
1964 #define GetCurrentThread() ((HANDLE)0xfffffffe)
1967 /* WinMain(entry point) must be declared in winbase.h. */
1968 /* If this is not declared, we cannot compile many sources written with C++. */
1969 int WINAPI
WinMain(HINSTANCE
,HINSTANCE
,LPSTR
,int);
1971 #define HW_PROFILE_GUIDLEN 39
1972 #define MAX_PROFILE_LEN 80
1974 #define DOCKINFO_UNDOCKED 0x1
1975 #define DOCKINFO_DOCKED 0x2
1976 #define DOCKINFO_USER_SUPPLIED 0x4
1977 #define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_UNDOCKED)
1978 #define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_DOCKED)
1980 typedef struct tagHW_PROFILE_INFOA
{
1982 CHAR szHwProfileGuid
[HW_PROFILE_GUIDLEN
];
1983 CHAR szHwProfileName
[MAX_PROFILE_LEN
];
1984 } HW_PROFILE_INFOA
, *LPHW_PROFILE_INFOA
;
1986 typedef struct tagHW_PROFILE_INFOW
{
1988 WCHAR szHwProfileGuid
[HW_PROFILE_GUIDLEN
];
1989 WCHAR szHwProfileName
[MAX_PROFILE_LEN
];
1990 } HW_PROFILE_INFOW
, *LPHW_PROFILE_INFOW
;
1992 DECL_WINELIB_TYPE_AW(HW_PROFILE_INFO
)
1993 DECL_WINELIB_TYPE_AW(LPHW_PROFILE_INFO
)
1995 /* Stream data structures and defines */
1996 /*the types of backup data -- WIN32_STREAM_ID.dwStreamId below*/
1997 #define BACKUP_INVALID 0
1998 #define BACKUP_DATA 1
1999 #define BACKUP_EA_DATA 2
2000 #define BACKUP_SECURITY_DATA 3
2001 #define BACKUP_ALTERNATE_DATA 4
2002 #define BACKUP_LINK 5
2003 #define BACKUP_PROPERTY_DATA 6
2004 #define BACKUP_OBJECT_ID 7
2005 #define BACKUP_REPARSE_DATA 8
2006 #define BACKUP_SPARSE_BLOCK 9
2008 /*flags for WIN32_STREAM_ID.dwStreamAttributes below*/
2009 #define STREAM_NORMAL_ATTRIBUTE 0
2010 #define STREAM_MODIFIED_WHEN_READ 1
2011 #define STREAM_CONTAINS_SECURITY 2
2012 #define STREAM_CONTAINS_PROPERTIES 4
2013 #define STREAM_SPARSE_ATTRIBUTE 8
2015 typedef struct _WIN32_STREAM_ID
{
2017 DWORD dwStreamAttributes
;
2019 DWORD dwStreamNameSize
;
2020 WCHAR cStreamName
[ANYSIZE_ARRAY
];
2021 } WIN32_STREAM_ID
, *LPWIN32_STREAM_ID
;
2027 #endif /* __WINE_WINBASE_H */