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
28 /* Windows Exit Procedure flag values */
29 #define WEP_FREE_DLL 0
30 #define WEP_SYSTEM_EXIT 1
32 typedef DWORD (CALLBACK
*LPTHREAD_START_ROUTINE
)(LPVOID
);
34 typedef VOID (WINAPI
*PFIBER_START_ROUTINE
)( LPVOID lpFiberParameter
);
35 typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE
;
37 typedef RTL_CRITICAL_SECTION CRITICAL_SECTION
;
38 typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION
;
39 typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION
;
41 typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG
;
42 typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG
;
43 typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG
;
45 typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK
;
47 #define EXCEPTION_DEBUG_EVENT 1
48 #define CREATE_THREAD_DEBUG_EVENT 2
49 #define CREATE_PROCESS_DEBUG_EVENT 3
50 #define EXIT_THREAD_DEBUG_EVENT 4
51 #define EXIT_PROCESS_DEBUG_EVENT 5
52 #define LOAD_DLL_DEBUG_EVENT 6
53 #define UNLOAD_DLL_DEBUG_EVENT 7
54 #define OUTPUT_DEBUG_STRING_EVENT 8
57 typedef struct _EXCEPTION_DEBUG_INFO
{
58 EXCEPTION_RECORD ExceptionRecord
;
60 } EXCEPTION_DEBUG_INFO
;
62 typedef struct _CREATE_THREAD_DEBUG_INFO
{
64 LPVOID lpThreadLocalBase
;
65 LPTHREAD_START_ROUTINE lpStartAddress
;
66 } CREATE_THREAD_DEBUG_INFO
;
68 typedef struct _CREATE_PROCESS_DEBUG_INFO
{
73 DWORD dwDebugInfoFileOffset
;
75 LPVOID lpThreadLocalBase
;
76 LPTHREAD_START_ROUTINE lpStartAddress
;
79 } CREATE_PROCESS_DEBUG_INFO
;
81 typedef struct _EXIT_THREAD_DEBUG_INFO
{
83 } EXIT_THREAD_DEBUG_INFO
;
85 typedef struct _EXIT_PROCESS_DEBUG_INFO
{
87 } EXIT_PROCESS_DEBUG_INFO
;
89 typedef struct _LOAD_DLL_DEBUG_INFO
{
92 DWORD dwDebugInfoFileOffset
;
96 } LOAD_DLL_DEBUG_INFO
;
98 typedef struct _UNLOAD_DLL_DEBUG_INFO
{
100 } UNLOAD_DLL_DEBUG_INFO
;
102 typedef struct _OUTPUT_DEBUG_STRING_INFO
{
103 LPSTR lpDebugStringData
;
105 WORD nDebugStringLength
;
106 } OUTPUT_DEBUG_STRING_INFO
;
108 typedef struct _RIP_INFO
{
113 typedef struct _DEBUG_EVENT
{
114 DWORD dwDebugEventCode
;
118 EXCEPTION_DEBUG_INFO Exception
;
119 CREATE_THREAD_DEBUG_INFO CreateThread
;
120 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo
;
121 EXIT_THREAD_DEBUG_INFO ExitThread
;
122 EXIT_PROCESS_DEBUG_INFO ExitProcess
;
123 LOAD_DLL_DEBUG_INFO LoadDll
;
124 UNLOAD_DLL_DEBUG_INFO UnloadDll
;
125 OUTPUT_DEBUG_STRING_INFO DebugString
;
128 } DEBUG_EVENT
, *LPDEBUG_EVENT
;
130 typedef PCONTEXT LPCONTEXT
;
131 typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD
;
132 typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS
;
134 #define OFS_MAXPATHNAME 128
135 typedef struct _OFSTRUCT
142 BYTE szPathName
[OFS_MAXPATHNAME
];
143 } OFSTRUCT
, *POFSTRUCT
, *LPOFSTRUCT
;
145 #define OF_READ 0x0000
146 #define OF_WRITE 0x0001
147 #define OF_READWRITE 0x0002
148 #define OF_SHARE_COMPAT 0x0000
149 #define OF_SHARE_EXCLUSIVE 0x0010
150 #define OF_SHARE_DENY_WRITE 0x0020
151 #define OF_SHARE_DENY_READ 0x0030
152 #define OF_SHARE_DENY_NONE 0x0040
153 #define OF_PARSE 0x0100
154 #define OF_DELETE 0x0200
155 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
156 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
157 #define OF_CANCEL 0x0800
158 #define OF_CREATE 0x1000
159 #define OF_PROMPT 0x2000
160 #define OF_EXIST 0x4000
161 #define OF_REOPEN 0x8000
163 /* SetErrorMode values */
164 #define SEM_FAILCRITICALERRORS 0x0001
165 #define SEM_NOGPFAULTERRORBOX 0x0002
166 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
167 #define SEM_NOOPENFILEERRORBOX 0x8000
169 /* CopyFileEx flags */
170 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
171 #define COPY_FILE_RESTARTABLE 0x00000002
172 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
174 /* GetTempFileName() Flags */
175 #define TF_FORCEDRIVE 0x80
177 #define DRIVE_UNKNOWN 0
178 #define DRIVE_NO_ROOT_DIR 1
179 #define DRIVE_REMOVABLE 2
180 #define DRIVE_FIXED 3
181 #define DRIVE_REMOTE 4
182 /* Win32 additions */
183 #define DRIVE_CDROM 5
184 #define DRIVE_RAMDISK 6
186 #define MAX_COMPUTERNAME_LENGTH 31
188 /* The security attributes structure */
189 typedef struct _SECURITY_ATTRIBUTES
192 LPVOID lpSecurityDescriptor
;
194 } SECURITY_ATTRIBUTES
, *PSECURITY_ATTRIBUTES
, *LPSECURITY_ATTRIBUTES
;
198 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
199 typedef struct _FILETIME
201 #ifdef WORDS_BIGENDIAN
202 DWORD dwHighDateTime
;
206 DWORD dwHighDateTime
;
208 } FILETIME
, *PFILETIME
, *LPFILETIME
;
209 #endif /* _FILETIME_ */
211 /* Find* structures */
212 typedef struct _WIN32_FIND_DATAA
214 DWORD dwFileAttributes
;
215 FILETIME ftCreationTime
;
216 FILETIME ftLastAccessTime
;
217 FILETIME ftLastWriteTime
;
223 CHAR cAlternateFileName
[14];
224 } WIN32_FIND_DATAA
, *PWIN32_FIND_DATAA
, *LPWIN32_FIND_DATAA
;
226 typedef struct _WIN32_FIND_DATAW
228 DWORD dwFileAttributes
;
229 FILETIME ftCreationTime
;
230 FILETIME ftLastAccessTime
;
231 FILETIME ftLastWriteTime
;
236 WCHAR cFileName
[260];
237 WCHAR cAlternateFileName
[14];
238 } WIN32_FIND_DATAW
, *PWIN32_FIND_DATAW
, *LPWIN32_FIND_DATAW
;
240 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA
)
241 DECL_WINELIB_TYPE_AW(PWIN32_FIND_DATA
)
242 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA
)
244 typedef enum _FINDEX_INFO_LEVELS
247 FindExInfoMaxInfoLevel
248 } FINDEX_INFO_LEVELS
;
250 typedef enum _FINDEX_SEARCH_OPS
252 FindExSearchNameMatch
,
253 FindExSearchLimitToDirectories
,
254 FindExSearchLimitToDevices
,
255 FindExSearchMaxSearchOp
258 typedef struct _PROCESS_HEAP_ENTRY
271 DWORD dwCommittedSize
;
272 DWORD dwUnCommittedSize
;
277 } PROCESS_HEAP_ENTRY
, *PPROCESS_HEAP_ENTRY
, *LPPROCESS_HEAP_ENTRY
;
279 #define PROCESS_HEAP_REGION 0x0001
280 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
281 #define PROCESS_HEAP_ENTRY_BUSY 0x0004
282 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
283 #define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
285 #define INVALID_HANDLE_VALUE ((HANDLE)~0UL)
286 #define INVALID_FILE_SIZE ((DWORD)~0UL)
287 #define INVALID_SET_FILE_POINTER ((DWORD)~0UL)
288 #define INVALID_FILE_ATTRIBUTES ((DWORD)~0UL)
290 #define LOCKFILE_FAIL_IMMEDIATELY 1
291 #define LOCKFILE_EXCLUSIVE_LOCK 2
293 #define TLS_OUT_OF_INDEXES ((DWORD)~0UL)
295 #define SHUTDOWN_NORETRY 1
299 #define CBR_110 0xFF10
300 #define CBR_300 0xFF11
301 #define CBR_600 0xFF12
302 #define CBR_1200 0xFF13
303 #define CBR_2400 0xFF14
304 #define CBR_4800 0xFF15
305 #define CBR_9600 0xFF16
306 #define CBR_14400 0xFF17
307 #define CBR_19200 0xFF18
308 #define CBR_38400 0xFF1B
309 #define CBR_56000 0xFF1F
310 #define CBR_57600 0xFF20
311 #define CBR_115200 0xFF21
312 #define CBR_128000 0xFF23
313 #define CBR_256000 0xFF27
319 #define SPACEPARITY 4
321 #define ONE5STOPBITS 1
322 #define TWOSTOPBITS 2
325 #define INFINITE 0xFFFFFFFF
327 #define CE_RXOVER 0x0001
328 #define CE_OVERRUN 0x0002
329 #define CE_RXPARITY 0x0004
330 #define CE_FRAME 0x0008
331 #define CE_BREAK 0x0010
332 #define CE_CTSTO 0x0020
333 #define CE_DSRTO 0x0040
334 #define CE_RLSDTO 0x0080
335 #define CE_TXFULL 0x0100
336 #define CE_PTO 0x0200
337 #define CE_IOE 0x0400
338 #define CE_DNS 0x0800
339 #define CE_OOP 0x1000
340 #define CE_MODE 0x8000
346 #define IE_DEFAULT -5
347 #define IE_HARDWARE -10
348 #define IE_BYTESIZE -11
349 #define IE_BAUDRATE -12
351 #define EV_RXCHAR 0x0001
352 #define EV_RXFLAG 0x0002
353 #define EV_TXEMPT 0x0004
354 #define EV_CTS 0x0008
355 #define EV_DSR 0x0010
356 #define EV_RLSD 0x0020
357 #define EV_BREAK 0x0040
358 #define EV_ERR 0x0080
359 #define EV_RING 0x0100
360 #define EV_PERR 0x0200
361 #define EV_RX80FULL 0x0400
362 #define EV_EVENT1 0x0800
363 #define EV_EVENT2 0x1000
375 /* Purge functions for Comm Port */
376 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
378 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
380 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
381 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
384 /* Modem Status Flags */
385 #define MS_CTS_ON ((DWORD)0x0010)
386 #define MS_DSR_ON ((DWORD)0x0020)
387 #define MS_RING_ON ((DWORD)0x0040)
388 #define MS_RLSD_ON ((DWORD)0x0080)
390 #define RTS_CONTROL_DISABLE 0
391 #define RTS_CONTROL_ENABLE 1
392 #define RTS_CONTROL_HANDSHAKE 2
393 #define RTS_CONTROL_TOGGLE 3
395 #define DTR_CONTROL_DISABLE 0
396 #define DTR_CONTROL_ENABLE 1
397 #define DTR_CONTROL_HANDSHAKE 2
401 #define LMEM_MOVEABLE 0x0002
402 #define LMEM_NOCOMPACT 0x0010
403 #define LMEM_NODISCARD 0x0020
404 #define LMEM_ZEROINIT 0x0040
405 #define LMEM_MODIFY 0x0080
406 #define LMEM_DISCARDABLE 0x0F00
407 #define LMEM_DISCARDED 0x4000
408 #define LMEM_LOCKCOUNT 0x00FF
410 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
411 #define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT)
413 #define NONZEROLHND (LMEM_MOVEABLE)
414 #define NONZEROLPTR (LMEM_FIXED)
416 #define LocalDiscard(h) (LocalReAlloc((h),0,LMEM_MOVEABLE))
418 #define GMEM_FIXED 0x0000
419 #define GMEM_MOVEABLE 0x0002
420 #define GMEM_NOCOMPACT 0x0010
421 #define GMEM_NODISCARD 0x0020
422 #define GMEM_ZEROINIT 0x0040
423 #define GMEM_MODIFY 0x0080
424 #define GMEM_DISCARDABLE 0x0100
425 #define GMEM_NOT_BANKED 0x1000
426 #define GMEM_SHARE 0x2000
427 #define GMEM_DDESHARE 0x2000
428 #define GMEM_NOTIFY 0x4000
429 #define GMEM_LOWER GMEM_NOT_BANKED
430 #define GMEM_DISCARDED 0x4000
431 #define GMEM_LOCKCOUNT 0x00ff
432 #define GMEM_INVALID_HANDLE 0x8000
434 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
435 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
437 #define GlobalLRUNewest(h) ((HANDLE)(h))
438 #define GlobalLRUOldest(h) ((HANDLE)(h))
439 #define GlobalDiscard(h) (GlobalReAlloc((h),0,GMEM_MOVEABLE))
441 #define INVALID_ATOM ((ATOM)0)
442 #define MAXINTATOM 0xc000
443 #define MAKEINTATOMA(atom) ((LPCSTR)((ULONG_PTR)((WORD)(atom))))
444 #define MAKEINTATOMW(atom) ((LPCWSTR)((ULONG_PTR)((WORD)(atom))))
445 #define MAKEINTATOM WINELIB_NAME_AW(MAKEINTATOM)
447 typedef struct tagMEMORYSTATUS
453 SIZE_T dwTotalPageFile
;
454 SIZE_T dwAvailPageFile
;
455 SIZE_T dwTotalVirtual
;
456 SIZE_T dwAvailVirtual
;
457 } MEMORYSTATUS
, *LPMEMORYSTATUS
;
459 #include <pshpack8.h>
460 typedef struct tagMEMORYSTATUSEX
{
463 DWORDLONG
DECLSPEC_ALIGN(8) ullTotalPhys
;
464 DWORDLONG
DECLSPEC_ALIGN(8) ullAvailPhys
;
465 DWORDLONG
DECLSPEC_ALIGN(8) ullTotalPageFile
;
466 DWORDLONG
DECLSPEC_ALIGN(8) ullAvailPageFile
;
467 DWORDLONG
DECLSPEC_ALIGN(8) ullTotalVirtual
;
468 DWORDLONG
DECLSPEC_ALIGN(8) ullAvailVirtual
;
469 DWORDLONG
DECLSPEC_ALIGN(8) ullAvailExtendedVirtual
;
470 } MEMORYSTATUSEX
, *LPMEMORYSTATUSEX
;
474 typedef struct _SYSTEMTIME
{
483 } SYSTEMTIME
, *PSYSTEMTIME
, *LPSYSTEMTIME
;
485 /* The 'overlapped' data structure used by async I/O functions.
487 typedef struct _OVERLAPPED
{
493 } OVERLAPPED
, *LPOVERLAPPED
;
495 typedef VOID (CALLBACK
*LPOVERLAPPED_COMPLETION_ROUTINE
)(DWORD
,DWORD
,LPOVERLAPPED
);
497 /* Process startup information.
500 /* STARTUPINFO.dwFlags */
501 #define STARTF_USESHOWWINDOW 0x00000001
502 #define STARTF_USESIZE 0x00000002
503 #define STARTF_USEPOSITION 0x00000004
504 #define STARTF_USECOUNTCHARS 0x00000008
505 #define STARTF_USEFILLATTRIBUTE 0x00000010
506 #define STARTF_RUNFULLSCREEN 0x00000020
507 #define STARTF_FORCEONFEEDBACK 0x00000040
508 #define STARTF_FORCEOFFFEEDBACK 0x00000080
509 #define STARTF_USESTDHANDLES 0x00000100
510 #define STARTF_USEHOTKEY 0x00000200
512 typedef struct _STARTUPINFOA
{
513 DWORD cb
; /* 00: size of struct */
514 LPSTR lpReserved
; /* 04: */
515 LPSTR lpDesktop
; /* 08: */
516 LPSTR lpTitle
; /* 0c: */
519 DWORD dwXSize
; /* 18: */
520 DWORD dwYSize
; /* 1c: */
521 DWORD dwXCountChars
; /* 20: */
522 DWORD dwYCountChars
; /* 24: */
523 DWORD dwFillAttribute
; /* 28: */
524 DWORD dwFlags
; /* 2c: */
525 WORD wShowWindow
; /* 30: */
526 WORD cbReserved2
; /* 32: */
527 BYTE
*lpReserved2
; /* 34: */
528 HANDLE hStdInput
; /* 38: */
529 HANDLE hStdOutput
; /* 3c: */
530 HANDLE hStdError
; /* 40: */
531 } STARTUPINFOA
, *LPSTARTUPINFOA
;
533 typedef struct _STARTUPINFOW
{
544 DWORD dwFillAttribute
;
552 } STARTUPINFOW
, *LPSTARTUPINFOW
;
554 DECL_WINELIB_TYPE_AW(STARTUPINFO
)
555 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO
)
557 typedef struct _PROCESS_INFORMATION
{
562 } PROCESS_INFORMATION
, *PPROCESS_INFORMATION
, *LPPROCESS_INFORMATION
;
564 typedef struct _TIME_ZONE_INFORMATION
{
566 WCHAR StandardName
[32];
567 SYSTEMTIME StandardDate
;
569 WCHAR DaylightName
[32];
570 SYSTEMTIME DaylightDate
;
572 } TIME_ZONE_INFORMATION
, *PTIME_ZONE_INFORMATION
, *LPTIME_ZONE_INFORMATION
;
574 #define TIME_ZONE_ID_INVALID ((DWORD)0xFFFFFFFF)
575 #define TIME_ZONE_ID_UNKNOWN 0
576 #define TIME_ZONE_ID_STANDARD 1
577 #define TIME_ZONE_ID_DAYLIGHT 2
579 /* CreateProcess: dwCreationFlag values
581 #define DEBUG_PROCESS 0x00000001
582 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
583 #define CREATE_SUSPENDED 0x00000004
584 #define DETACHED_PROCESS 0x00000008
585 #define CREATE_NEW_CONSOLE 0x00000010
586 #define NORMAL_PRIORITY_CLASS 0x00000020
587 #define IDLE_PRIORITY_CLASS 0x00000040
588 #define HIGH_PRIORITY_CLASS 0x00000080
589 #define REALTIME_PRIORITY_CLASS 0x00000100
590 #define CREATE_NEW_PROCESS_GROUP 0x00000200
591 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
592 #define CREATE_SEPARATE_WOW_VDM 0x00000800
593 #define CREATE_SHARED_WOW_VDM 0x00001000
594 #define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000
595 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
596 #define CREATE_NO_WINDOW 0x08000000
597 #define PROFILE_USER 0x10000000
598 #define PROFILE_KERNEL 0x20000000
599 #define PROFILE_SERVER 0x40000000
602 /* File object type definitions
604 #define FILE_TYPE_UNKNOWN 0
605 #define FILE_TYPE_DISK 1
606 #define FILE_TYPE_CHAR 2
607 #define FILE_TYPE_PIPE 3
608 #define FILE_TYPE_REMOTE 32768
610 /* File creation flags
612 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
613 #define FILE_FLAG_OVERLAPPED 0x40000000L
614 #define FILE_FLAG_NO_BUFFERING 0x20000000L
615 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
616 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
617 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
618 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
619 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
621 #define CREATE_ALWAYS 2
622 #define OPEN_EXISTING 3
623 #define OPEN_ALWAYS 4
624 #define TRUNCATE_EXISTING 5
626 /* Standard handle identifiers
628 #define STD_INPUT_HANDLE ((DWORD) -10)
629 #define STD_OUTPUT_HANDLE ((DWORD) -11)
630 #define STD_ERROR_HANDLE ((DWORD) -12)
632 typedef struct _BY_HANDLE_FILE_INFORMATION
634 DWORD dwFileAttributes
;
635 FILETIME ftCreationTime
;
636 FILETIME ftLastAccessTime
;
637 FILETIME ftLastWriteTime
;
638 DWORD dwVolumeSerialNumber
;
641 DWORD nNumberOfLinks
;
642 DWORD nFileIndexHigh
;
644 } BY_HANDLE_FILE_INFORMATION
, *PBY_HANDLE_FILE_INFORMATION
, *LPBY_HANDLE_FILE_INFORMATION
;
646 #define PIPE_ACCESS_INBOUND 1
647 #define PIPE_ACCESS_OUTBOUND 2
648 #define PIPE_ACCESS_DUPLEX 3
650 #define PIPE_TYPE_BYTE 0
651 #define PIPE_TYPE_MESSAGE 4
653 #define PIPE_READMODE_BYTE 0
654 #define PIPE_READMODE_MESSAGE 2
657 #define PIPE_NOWAIT 1
659 #define PIPE_UNLIMITED_INSTANCES 255
661 #define NMPWAIT_WAIT_FOREVER 0xffffffff
662 #define NMPWAIT_NOWAIT 0x00000001
663 #define NMPWAIT_USE_DEFAULT_WAIT 0x00000000
665 typedef struct _SYSTEM_POWER_STATUS
669 BYTE BatteryLifePercent
;
671 DWORD BatteryLifeTime
;
672 DWORD BatteryFullLifeTime
;
673 } SYSTEM_POWER_STATUS
, *LPSYSTEM_POWER_STATUS
;
676 typedef struct tagSYSTEM_INFO
679 DWORD dwOemId
; /* Obsolete field - do not use */
681 WORD wProcessorArchitecture
;
686 LPVOID lpMinimumApplicationAddress
;
687 LPVOID lpMaximumApplicationAddress
;
688 DWORD dwActiveProcessorMask
;
689 DWORD dwNumberOfProcessors
;
690 DWORD dwProcessorType
;
691 DWORD dwAllocationGranularity
;
692 WORD wProcessorLevel
;
693 WORD wProcessorRevision
;
694 } SYSTEM_INFO
, *LPSYSTEM_INFO
;
696 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCA
)(HMODULE
,LPSTR
,LONG_PTR
);
697 typedef BOOL (CALLBACK
*ENUMRESTYPEPROCW
)(HMODULE
,LPWSTR
,LONG_PTR
);
698 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCA
)(HMODULE
,LPCSTR
,LPSTR
,LONG_PTR
);
699 typedef BOOL (CALLBACK
*ENUMRESNAMEPROCW
)(HMODULE
,LPCWSTR
,LPWSTR
,LONG_PTR
);
700 typedef BOOL (CALLBACK
*ENUMRESLANGPROCA
)(HMODULE
,LPCSTR
,LPCSTR
,WORD
,LONG_PTR
);
701 typedef BOOL (CALLBACK
*ENUMRESLANGPROCW
)(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
,LONG_PTR
);
703 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC
)
704 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC
)
705 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC
)
707 /* flags that can be passed to LoadLibraryEx */
708 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
709 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
710 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
712 typedef PLDT_ENTRY LPLDT_ENTRY
;
714 typedef enum _GET_FILEEX_INFO_LEVELS
{
715 GetFileExInfoStandard
716 } GET_FILEEX_INFO_LEVELS
;
718 typedef struct _WIN32_FILE_ATTRIBUTES_DATA
{
719 DWORD dwFileAttributes
;
720 FILETIME ftCreationTime
;
721 FILETIME ftLastAccessTime
;
722 FILETIME ftLastWriteTime
;
725 } WIN32_FILE_ATTRIBUTE_DATA
, *LPWIN32_FILE_ATTRIBUTE_DATA
;
728 * This one seems to be a Win32 only definition. It also is defined with
729 * WINAPI instead of CALLBACK in the windows headers.
731 typedef DWORD (CALLBACK
*LPPROGRESS_ROUTINE
)(LARGE_INTEGER
, LARGE_INTEGER
, LARGE_INTEGER
,
732 LARGE_INTEGER
, DWORD
, DWORD
, HANDLE
,
736 #define WAIT_FAILED 0xffffffff
737 #define WAIT_OBJECT_0 0
738 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
739 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
740 #define WAIT_IO_COMPLETION STATUS_USER_APC
741 #define WAIT_TIMEOUT STATUS_TIMEOUT
742 #define STILL_ACTIVE STATUS_PENDING
745 #define FILE_CURRENT 1
748 #define FILE_MAP_COPY 0x00000001
749 #define FILE_MAP_WRITE 0x00000002
750 #define FILE_MAP_READ 0x00000004
751 #define FILE_MAP_ALL_ACCESS 0x000f001f
753 #define MOVEFILE_REPLACE_EXISTING 0x00000001
754 #define MOVEFILE_COPY_ALLOWED 0x00000002
755 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
757 #define REPLACEFILE_WRITE_THROUGH 0x00000001
758 #define REPLACEFILE_IGNORE_MERGE_ERRORS 0x00000002
760 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
761 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
762 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
763 #define FS_PERSISTENT_ACLS FILE_PERSISTENT_ACLS
764 #define FS_VOL_IS_COMPRESSED FILE_VOLUME_IS_COMPRESSED
765 #define FS_FILE_COMPRESSION FILE_FILE_COMPRESSION
767 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
768 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
769 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
770 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
771 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
772 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
773 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
774 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
775 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
776 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
777 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
778 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
779 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
780 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
781 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
782 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
783 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
784 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
785 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
786 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
787 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
788 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
789 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
791 #define DUPLICATE_CLOSE_SOURCE 0x00000001
792 #define DUPLICATE_SAME_ACCESS 0x00000002
794 #define HANDLE_FLAG_INHERIT 0x00000001
795 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
797 #define HINSTANCE_ERROR 32
799 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
800 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
801 #define THREAD_PRIORITY_NORMAL 0
802 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
803 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
804 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
805 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
806 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
808 /* flags to FormatMessage */
809 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
810 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
811 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
812 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
813 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
814 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
815 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
817 /* flags to ACTCTX[AW] */
818 #define ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID (0x00000001)
819 #define ACTCTX_FLAG_LANGID_VALID (0x00000002)
820 #define ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID (0x00000004)
821 #define ACTCTX_FLAG_RESOURCE_NAME_VALID (0x00000008)
822 #define ACTCTX_FLAG_SET_PROCESS_DEFAULT (0x00000010)
823 #define ACTCTX_FLAG_APPLICATION_NAME_VALID (0x00000020)
824 #define ACTCTX_FLAG_SOURCE_IS_ASSEMBLYREF (0x00000040)
825 #define ACTCTX_FLAG_HMODULE_VALID (0x00000080)
827 /* flags to DeactiveActCtx */
828 #define DEACTIVATE_ACTCTX_FLAG_FORCE_EARLY_DEACTIVATION (0x00000001)
830 /* flags to FindActCtxSection{Guid,String[AW]} */
831 #define FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX (0x00000001)
832 #define FIND_ACTCTX_SECTION_KEY_RETURN_FLAGS (0x00000002)
833 #define FIND_ACTCTX_SECTION_KEY_RETURN_ASSEMBLY_METADATA (0x00000004)
835 /* flags to QueryActCtxW */
836 #define QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX (0x00000004)
837 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE (0x00000008)
838 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS (0x00000010)
839 #define QUERY_ACTCTX_FLAG_NO_ADDREF (0x80000000)
841 typedef struct tagACTCTXA
{
845 USHORT wProcessorArchitecture
;
847 LPCSTR lpAssemblyDirectory
;
848 LPCSTR lpResourceName
;
849 LPCSTR lpApplicationName
;
851 } ACTCTXA
, *PACTCTXA
;
853 typedef struct tagACTCTXW
{
857 USHORT wProcessorArchitecture
;
859 LPCWSTR lpAssemblyDirectory
;
860 LPCWSTR lpResourceName
;
861 LPCWSTR lpApplicationName
;
863 } ACTCTXW
, *PACTCTXW
;
865 DECL_WINELIB_TYPE_AW(ACTCTX
)
866 DECL_WINELIB_TYPE_AW(PACTCTX
)
868 typedef const ACTCTXA
*PCACTCTXA
;
869 typedef const ACTCTXW
*PCACTCTXW
;
870 DECL_WINELIB_TYPE_AW(PCACTCTX
)
872 typedef struct tagACTCTX_SECTION_KEYED_DATA_2600
{
874 ULONG ulDataFormatVersion
;
877 PVOID lpSectionGlobalData
;
878 ULONG ulSectionGlobalDataLength
;
880 ULONG ulSectionTotalLength
;
882 ULONG ulAssemblyRosterIndex
;
883 } ACTCTX_SECTION_KEYED_DATA_2600
, *PACTCTX_SECTION_KEYED_DATA_2600
;
884 typedef const ACTCTX_SECTION_KEYED_DATA_2600
*PCACTCTX_SECTION_KEYED_DATA_2600
;
886 typedef struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA
{
889 ULONG ulSectionLength
;
890 PVOID lpSectionGlobalDataBase
;
891 ULONG ulSectionGlobalDataLength
;
892 } ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA
, *PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA
;
893 typedef const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA
*PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA
;
895 typedef struct tagACTCTX_SECTION_KEYED_DATA
{
897 ULONG ulDataFormatVersion
;
900 PVOID lpSectionGlobalData
;
901 ULONG ulSectionGlobalDataLength
;
903 ULONG ulSectionTotalLength
;
905 ULONG ulAssemblyRosterIndex
;
907 /* Non 2600 extra fields */
909 ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA AssemblyMetadata
;
910 } ACTCTX_SECTION_KEYED_DATA
, *PACTCTX_SECTION_KEYED_DATA
;
911 typedef const ACTCTX_SECTION_KEYED_DATA
*PCACTCTX_SECTION_KEYED_DATA
;
913 typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION
{
916 } ACTIVATION_CONTEXT_BASIC_INFORMATION
, *PACTIVATION_CONTEXT_BASIC_INFORMATION
;
918 typedef BOOL (WINAPI
*PQUERYACTCTXW_FUNC
)(DWORD
,HANDLE
,PVOID
,ULONG
,PVOID
,SIZE_T
,SIZE_T
*);
920 typedef struct tagCOMSTAT
929 DWORD fReserved
: 25;
932 } COMSTAT
, *LPCOMSTAT
;
934 typedef struct tagDCB
940 unsigned fOutxCtsFlow
:1;
941 unsigned fOutxDsrFlow
:1;
942 unsigned fDtrControl
:2;
943 unsigned fDsrSensitivity
:1;
944 unsigned fTXContinueOnXoff
:1;
947 unsigned fErrorChar
:1;
949 unsigned fRtsControl
:2;
950 unsigned fAbortOnError
:1;
951 unsigned fDummy2
:17;
966 typedef struct tagCOMMCONFIG
{
971 DWORD dwProviderSubType
;
972 DWORD dwProviderOffset
;
973 DWORD dwProviderSize
;
974 DWORD wcProviderData
[1];
975 } COMMCONFIG
, *LPCOMMCONFIG
;
977 typedef struct tagCOMMPROP
{
986 DWORD dwProvCapabilities
;
987 DWORD dwSettableParams
;
988 DWORD dwSettableBaud
;
990 WORD wSettableStopParity
;
991 DWORD dwCurrentTxQueue
;
992 DWORD dwCurrentRxQueue
;
996 } COMMPROP
, *LPCOMMPROP
;
998 #define SP_SERIALCOMM ((DWORD)1)
1000 #define BAUD_075 ((DWORD)0x01)
1001 #define BAUD_110 ((DWORD)0x02)
1002 #define BAUD_134_5 ((DWORD)0x04)
1003 #define BAUD_150 ((DWORD)0x08)
1004 #define BAUD_300 ((DWORD)0x10)
1005 #define BAUD_600 ((DWORD)0x20)
1006 #define BAUD_1200 ((DWORD)0x40)
1007 #define BAUD_1800 ((DWORD)0x80)
1008 #define BAUD_2400 ((DWORD)0x100)
1009 #define BAUD_4800 ((DWORD)0x200)
1010 #define BAUD_7200 ((DWORD)0x400)
1011 #define BAUD_9600 ((DWORD)0x800)
1012 #define BAUD_14400 ((DWORD)0x1000)
1013 #define BAUD_19200 ((DWORD)0x2000)
1014 #define BAUD_38400 ((DWORD)0x4000)
1015 #define BAUD_56K ((DWORD)0x8000)
1016 #define BAUD_57600 ((DWORD)0x40000)
1017 #define BAUD_115200 ((DWORD)0x20000)
1018 #define BAUD_128K ((DWORD)0x10000)
1019 #define BAUD_USER ((DWORD)0x10000000)
1021 #define PST_FAX ((DWORD)0x21)
1022 #define PST_LAT ((DWORD)0x101)
1023 #define PST_MODEM ((DWORD)0x06)
1024 #define PST_NETWORK_BRIDGE ((DWORD)0x100)
1025 #define PST_PARALLEL_PORT ((DWORD)0x02)
1026 #define PST_RS232 ((DWORD)0x01)
1027 #define PST_RS442 ((DWORD)0x03)
1028 #define PST_RS423 ((DWORD)0x04)
1029 #define PST_RS449 ((DWORD)0x06)
1030 #define PST_SCANNER ((DWORD)0x22)
1031 #define PST_TCPIP_TELNET ((DWORD)0x102)
1032 #define PST_UNSPECIFIED ((DWORD)0x00)
1033 #define PST_X25 ((DWORD)0x103)
1035 #define PCF_16BITMODE ((DWORD)0x200)
1036 #define PCF_DTRDSR ((DWORD)0x01)
1037 #define PCF_INTTIMEOUTS ((DWORD)0x80)
1038 #define PCF_PARITY_CHECK ((DWORD)0x08)
1039 #define PCF_RLSD ((DWORD)0x04)
1040 #define PCF_RTSCTS ((DWORD)0x02)
1041 #define PCF_SETXCHAR ((DWORD)0x20)
1042 #define PCF_SPECIALCHARS ((DWORD)0x100)
1043 #define PCF_TOTALTIMEOUTS ((DWORD)0x40)
1044 #define PCF_XONXOFF ((DWORD)0x10)
1046 #define SP_BAUD ((DWORD)0x02)
1047 #define SP_DATABITS ((DWORD)0x04)
1048 #define SP_HANDSHAKING ((DWORD)0x10)
1049 #define SP_PARITY ((DWORD)0x01)
1050 #define SP_PARITY_CHECK ((DWORD)0x20)
1051 #define SP_RLSD ((DWORD)0x40)
1052 #define SP_STOPBITS ((DWORD)0x08)
1054 #define DATABITS_5 ((DWORD)0x01)
1055 #define DATABITS_6 ((DWORD)0x02)
1056 #define DATABITS_7 ((DWORD)0x04)
1057 #define DATABITS_8 ((DWORD)0x08)
1058 #define DATABITS_16 ((DWORD)0x10)
1059 #define DATABITS_16X ((DWORD)0x20)
1061 #define STOPBITS_10 ((DWORD)1)
1062 #define STOPBITS_15 ((DWORD)2)
1063 #define STOPBITS_20 ((DWORD)4)
1065 #define PARITY_NONE ((DWORD)0x100)
1066 #define PARITY_ODD ((DWORD)0x200)
1067 #define PARITY_EVEN ((DWORD)0x400)
1068 #define PARITY_MARK ((DWORD)0x800)
1069 #define PARITY_SPACE ((DWORD)0x1000)
1071 typedef struct tagCOMMTIMEOUTS
{
1072 DWORD ReadIntervalTimeout
;
1073 DWORD ReadTotalTimeoutMultiplier
;
1074 DWORD ReadTotalTimeoutConstant
;
1075 DWORD WriteTotalTimeoutMultiplier
;
1076 DWORD WriteTotalTimeoutConstant
;
1077 } COMMTIMEOUTS
,*LPCOMMTIMEOUTS
;
1079 typedef void (CALLBACK
*PAPCFUNC
)(ULONG_PTR
);
1080 typedef void (CALLBACK
*PTIMERAPCROUTINE
)(LPVOID
,DWORD
,DWORD
);
1082 typedef enum _COMPUTER_NAME_FORMAT
1084 ComputerNameNetBIOS
,
1085 ComputerNameDnsHostname
,
1086 ComputerNameDnsDomain
,
1087 ComputerNameDnsFullyQualified
,
1088 ComputerNamePhysicalNetBIOS
,
1089 ComputerNamePhysicalDnsHostname
,
1090 ComputerNamePhysicalDnsDomain
,
1091 ComputerNamePhysicalDnsFullyQualified
,
1093 } COMPUTER_NAME_FORMAT
;
1095 #define HW_PROFILE_GUIDLEN 39
1096 #define MAX_PROFILE_LEN 80
1098 #define DOCKINFO_UNDOCKED 0x1
1099 #define DOCKINFO_DOCKED 0x2
1100 #define DOCKINFO_USER_SUPPLIED 0x4
1101 #define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_UNDOCKED)
1102 #define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_DOCKED)
1104 typedef struct tagHW_PROFILE_INFOA
{
1106 CHAR szHwProfileGuid
[HW_PROFILE_GUIDLEN
];
1107 CHAR szHwProfileName
[MAX_PROFILE_LEN
];
1108 } HW_PROFILE_INFOA
, *LPHW_PROFILE_INFOA
;
1110 typedef struct tagHW_PROFILE_INFOW
{
1112 WCHAR szHwProfileGuid
[HW_PROFILE_GUIDLEN
];
1113 WCHAR szHwProfileName
[MAX_PROFILE_LEN
];
1114 } HW_PROFILE_INFOW
, *LPHW_PROFILE_INFOW
;
1116 DECL_WINELIB_TYPE_AW(HW_PROFILE_INFO
)
1117 DECL_WINELIB_TYPE_AW(LPHW_PROFILE_INFO
)
1119 /* Stream data structures and defines */
1120 /*the types of backup data -- WIN32_STREAM_ID.dwStreamId below*/
1121 #define BACKUP_INVALID 0
1122 #define BACKUP_DATA 1
1123 #define BACKUP_EA_DATA 2
1124 #define BACKUP_SECURITY_DATA 3
1125 #define BACKUP_ALTERNATE_DATA 4
1126 #define BACKUP_LINK 5
1127 #define BACKUP_PROPERTY_DATA 6
1128 #define BACKUP_OBJECT_ID 7
1129 #define BACKUP_REPARSE_DATA 8
1130 #define BACKUP_SPARSE_BLOCK 9
1132 /*flags for WIN32_STREAM_ID.dwStreamAttributes below*/
1133 #define STREAM_NORMAL_ATTRIBUTE 0
1134 #define STREAM_MODIFIED_WHEN_READ 1
1135 #define STREAM_CONTAINS_SECURITY 2
1136 #define STREAM_CONTAINS_PROPERTIES 4
1137 #define STREAM_SPARSE_ATTRIBUTE 8
1139 #include <pshpack8.h>
1140 typedef struct _WIN32_STREAM_ID
{
1142 DWORD dwStreamAttributes
;
1143 LARGE_INTEGER
DECLSPEC_ALIGN(8) Size
;
1144 DWORD dwStreamNameSize
;
1145 WCHAR cStreamName
[ANYSIZE_ARRAY
];
1146 } WIN32_STREAM_ID
, *LPWIN32_STREAM_ID
;
1147 #include <poppack.h>
1150 /* GetBinaryType return values.
1153 #define SCS_32BIT_BINARY 0
1154 #define SCS_DOS_BINARY 1
1155 #define SCS_WOW_BINARY 2
1156 #define SCS_PIF_BINARY 3
1157 #define SCS_POSIX_BINARY 4
1158 #define SCS_OS216_BINARY 5
1160 /* flags for DefineDosDevice */
1161 #define DDD_RAW_TARGET_PATH 0x00000001
1162 #define DDD_REMOVE_DEFINITION 0x00000002
1163 #define DDD_EXACT_MATCH_ON_REMOVE 0x00000004
1164 #define DDD_NO_BROADCAST_SYSTEM 0x00000008
1165 #define DDD_LUID_BROADCAST_DRIVE 0x00000010
1167 BOOL WINAPI
ActivateActCtx(HANDLE
,ULONG_PTR
*);
1168 BOOL WINAPI
AddAccessAllowedAce(PACL
,DWORD
,DWORD
,PSID
);
1169 VOID WINAPI
AddRefActCtx(HANDLE
);
1170 PVOID WINAPI
AddVectoredExceptionHandler(ULONG
,PVECTORED_EXCEPTION_HANDLER
);
1171 BOOL WINAPI
AttachThreadInput(DWORD
,DWORD
,BOOL
);
1172 BOOL WINAPI
AccessCheck(PSECURITY_DESCRIPTOR
,HANDLE
,DWORD
,PGENERIC_MAPPING
,PPRIVILEGE_SET
,LPDWORD
,LPDWORD
,LPBOOL
);
1173 BOOL WINAPI
AdjustTokenPrivileges(HANDLE
,BOOL
,LPVOID
,DWORD
,LPVOID
,LPDWORD
);
1174 BOOL WINAPI
AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY
,BYTE
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
*);
1175 BOOL WINAPI
AllocateLocallyUniqueId(PLUID
);
1176 BOOL WINAPI
AreFileApisANSI(void);
1177 BOOL WINAPI
AssignProcessToJobObject(HANDLE
,HANDLE
);
1178 BOOL WINAPI
BackupEventLogA(HANDLE
,LPCSTR
);
1179 BOOL WINAPI
BackupEventLogW(HANDLE
,LPCWSTR
);
1180 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1181 BOOL WINAPI
BackupRead(HANDLE
,LPBYTE
,DWORD
,LPDWORD
,BOOL
,BOOL
,LPVOID
*);
1182 BOOL WINAPI
BackupSeek(HANDLE
,DWORD
,DWORD
,LPDWORD
,LPDWORD
,LPVOID
*);
1183 BOOL WINAPI
BackupWrite(HANDLE
,LPBYTE
,DWORD
,LPDWORD
,BOOL
,BOOL
,LPVOID
*);
1184 BOOL WINAPI
Beep(DWORD
,DWORD
);
1185 HANDLE WINAPI
BeginUpdateResourceA(LPCSTR
,BOOL
);
1186 HANDLE WINAPI
BeginUpdateResourceW(LPCWSTR
,BOOL
);
1187 #define BeginUpdateResource WINELIB_NAME_AW(BeginUpdateResource)
1188 BOOL WINAPI
BuildCommDCBA(LPCSTR
,LPDCB
);
1189 BOOL WINAPI
BuildCommDCBW(LPCWSTR
,LPDCB
);
1190 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1191 BOOL WINAPI
BuildCommDCBAndTimeoutsA(LPCSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1192 BOOL WINAPI
BuildCommDCBAndTimeoutsW(LPCWSTR
,LPDCB
,LPCOMMTIMEOUTS
);
1193 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1194 BOOL WINAPI
CallNamedPipeA(LPCSTR
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,DWORD
);
1195 BOOL WINAPI
CallNamedPipeW(LPCWSTR
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,DWORD
);
1196 #define CallNamedPipe WINELIB_NAME_AW(CallNamedPipe)
1197 BOOL WINAPI
CancelIo(HANDLE
);
1198 BOOL WINAPI
CancelWaitableTimer(HANDLE
);
1199 BOOL WINAPI
CheckTokenMembership(HANDLE
,PSID
,PBOOL
);
1200 BOOL WINAPI
ClearCommBreak(HANDLE
);
1201 BOOL WINAPI
ClearCommError(HANDLE
,LPDWORD
,LPCOMSTAT
);
1202 BOOL WINAPI
ClearEventLogA(HANDLE
,LPCSTR
);
1203 BOOL WINAPI
ClearEventLogW(HANDLE
,LPCWSTR
);
1204 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1205 BOOL WINAPI
CloseEventLog(HANDLE
);
1206 BOOL WINAPI
CloseHandle(HANDLE
);
1207 BOOL WINAPI
CommConfigDialogA(LPCSTR
,HANDLE
,LPCOMMCONFIG
);
1208 BOOL WINAPI
CommConfigDialogW(LPCWSTR
,HANDLE
,LPCOMMCONFIG
);
1209 #define CommConfigDialog WINELIB_NAME_AW(CommConfigDialog)
1210 BOOL WINAPI
ConnectNamedPipe(HANDLE
,LPOVERLAPPED
);
1211 BOOL WINAPI
ContinueDebugEvent(DWORD
,DWORD
,DWORD
);
1212 HANDLE WINAPI
ConvertToGlobalHandle(HANDLE hSrc
);
1213 BOOL WINAPI
CopyFileA(LPCSTR
,LPCSTR
,BOOL
);
1214 BOOL WINAPI
CopyFileW(LPCWSTR
,LPCWSTR
,BOOL
);
1215 #define CopyFile WINELIB_NAME_AW(CopyFile)
1216 BOOL WINAPI
CopyFileExA(LPCSTR
, LPCSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1217 BOOL WINAPI
CopyFileExW(LPCWSTR
, LPCWSTR
, LPPROGRESS_ROUTINE
, LPVOID
, LPBOOL
, DWORD
);
1218 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1219 BOOL WINAPI
CopySid(DWORD
,PSID
,PSID
);
1220 INT WINAPI
CompareFileTime(const FILETIME
*,const FILETIME
*);
1221 BOOL WINAPI
ConvertFiberToThread(void);
1222 LPVOID WINAPI
ConvertThreadToFiber(LPVOID
);
1223 LPVOID WINAPI
ConvertThreadToFiberEx(LPVOID
,DWORD
);
1224 HANDLE WINAPI
CreateActCtxA(PCACTCTXA
);
1225 HANDLE WINAPI
CreateActCtxW(PCACTCTXW
);
1226 #define CreateActCtx WINELIB_NAME_AW(CreateActCtx)
1227 HANDLE WINAPI
CreateEventA(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCSTR
);
1228 HANDLE WINAPI
CreateEventW(LPSECURITY_ATTRIBUTES
,BOOL
,BOOL
,LPCWSTR
);
1229 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1230 LPVOID WINAPI
CreateFiber(SIZE_T
,LPFIBER_START_ROUTINE
,LPVOID
);
1231 LPVOID WINAPI
CreateFiberEx(SIZE_T
,SIZE_T
,DWORD
,LPFIBER_START_ROUTINE
,LPVOID
);
1232 HANDLE WINAPI
CreateFileA(LPCSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,HANDLE
);
1233 HANDLE WINAPI
CreateFileW(LPCWSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,HANDLE
);
1234 #define CreateFile WINELIB_NAME_AW(CreateFile)
1235 HANDLE WINAPI
CreateFileMappingA(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,DWORD
,LPCSTR
);
1236 HANDLE WINAPI
CreateFileMappingW(HANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
,DWORD
,DWORD
,LPCWSTR
);
1237 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1238 HANDLE WINAPI
CreateIoCompletionPort(HANDLE
,HANDLE
,ULONG_PTR
,DWORD
);
1239 HANDLE WINAPI
CreateJobObjectA(LPSECURITY_ATTRIBUTES
,LPCSTR
);
1240 HANDLE WINAPI
CreateJobObjectW(LPSECURITY_ATTRIBUTES
,LPCWSTR
);
1241 #define CreateJobObject WINELIB_NAME_AW(CreateJobObject)
1242 HANDLE WINAPI
CreateMailslotA(LPCSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
1243 HANDLE WINAPI
CreateMailslotW(LPCWSTR
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
1244 #define CreateMailslot WINELIB_NAME_AW(CreateMailslot)
1245 HANDLE WINAPI
CreateMutexA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1246 HANDLE WINAPI
CreateMutexW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1247 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1248 HANDLE WINAPI
CreateNamedPipeA(LPCSTR
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
1249 HANDLE WINAPI
CreateNamedPipeW(LPCWSTR
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,LPSECURITY_ATTRIBUTES
);
1250 #define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
1251 BOOL WINAPI
CreatePipe(PHANDLE
,PHANDLE
,LPSECURITY_ATTRIBUTES
,DWORD
);
1252 BOOL WINAPI
CreateProcessA(LPCSTR
,LPSTR
,LPSECURITY_ATTRIBUTES
,
1253 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCSTR
,
1254 LPSTARTUPINFOA
,LPPROCESS_INFORMATION
);
1255 BOOL WINAPI
CreateProcessW(LPCWSTR
,LPWSTR
,LPSECURITY_ATTRIBUTES
,
1256 LPSECURITY_ATTRIBUTES
,BOOL
,DWORD
,LPVOID
,LPCWSTR
,
1257 LPSTARTUPINFOW
,LPPROCESS_INFORMATION
);
1258 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1259 HANDLE WINAPI
CreateRemoteThread(HANDLE
,LPSECURITY_ATTRIBUTES
,SIZE_T
,LPTHREAD_START_ROUTINE
,LPVOID
,DWORD
,LPDWORD
);
1260 HANDLE WINAPI
CreateSemaphoreA(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCSTR
);
1261 HANDLE WINAPI
CreateSemaphoreW(LPSECURITY_ATTRIBUTES
,LONG
,LONG
,LPCWSTR
);
1262 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1263 DWORD WINAPI
CreateTapePartition(HANDLE
,DWORD
,DWORD
,DWORD
);
1264 HANDLE WINAPI
CreateThread(LPSECURITY_ATTRIBUTES
,SIZE_T
,LPTHREAD_START_ROUTINE
,LPVOID
,DWORD
,LPDWORD
);
1265 HANDLE WINAPI
CreateTimerQueue(void);
1266 BOOL WINAPI
CreateTimerQueueTimer(PHANDLE
,HANDLE
,WAITORTIMERCALLBACK
,PVOID
,DWORD
,DWORD
,ULONG
);
1267 HANDLE WINAPI
CreateWaitableTimerA(LPSECURITY_ATTRIBUTES
,BOOL
,LPCSTR
);
1268 HANDLE WINAPI
CreateWaitableTimerW(LPSECURITY_ATTRIBUTES
,BOOL
,LPCWSTR
);
1269 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1270 BOOL WINAPI
DeactivateActCtx(DWORD
,ULONG_PTR
);
1271 BOOL WINAPI
DebugActiveProcess(DWORD
);
1272 BOOL WINAPI
DebugActiveProcessStop(DWORD
);
1273 void WINAPI
DebugBreak(void);
1274 BOOL WINAPI
DebugBreakProcess(HANDLE
);
1275 BOOL WINAPI
DebugSetProcessKillOnExit(BOOL
);
1276 BOOL WINAPI
DefineDosDeviceA(DWORD
,LPCSTR
,LPCSTR
);
1277 BOOL WINAPI
DefineDosDeviceW(DWORD
,LPCWSTR
,LPCWSTR
);
1278 #define DefineDosDevice WINELIB_NAME_AW(DefineDosDevice)
1279 BOOL WINAPI
DeleteAce(PACL
,DWORD
);
1280 void WINAPI
DeleteCriticalSection(CRITICAL_SECTION
*lpCrit
);
1281 void WINAPI
DeleteFiber(LPVOID
);
1282 BOOL WINAPI
DeleteTimerQueueEx(HANDLE
,HANDLE
);
1283 BOOL WINAPI
DeleteTimerQueueTimer(HANDLE
,HANDLE
,HANDLE
);
1284 BOOL WINAPI
DeleteVolumeMountPointA(LPCSTR
);
1285 BOOL WINAPI
DeleteVolumeMountPointW(LPCWSTR
);
1286 #define DeleteVolumeMountPoint WINELIB_NAME_AW(DeleteVolumeMountPoint)
1287 BOOL WINAPI
DeregisterEventSource(HANDLE
);
1288 BOOL WINAPI
DeviceIoControl(HANDLE
,DWORD
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1289 BOOL WINAPI
DisableThreadLibraryCalls(HMODULE
);
1290 BOOL WINAPI
DisconnectNamedPipe(HANDLE
);
1291 BOOL WINAPI
DnsHostnameToComputerNameA(LPCSTR
,LPSTR
,LPDWORD
);
1292 BOOL WINAPI
DnsHostnameToComputerNameW(LPCWSTR
,LPWSTR
,LPDWORD
);
1293 #define DnsHostnameToComputerName WINELIB_NAME_AW(DnsHostnameToComputerName)
1294 BOOL WINAPI
DosDateTimeToFileTime(WORD
,WORD
,LPFILETIME
);
1295 BOOL WINAPI
DuplicateHandle(HANDLE
,HANDLE
,HANDLE
,HANDLE
*,DWORD
,BOOL
,DWORD
);
1296 BOOL WINAPI
EscapeCommFunction(HANDLE
,UINT
);
1297 BOOL WINAPI
EndUpdateResourceA(HANDLE
,BOOL
);
1298 BOOL WINAPI
EndUpdateResourceW(HANDLE
,BOOL
);
1299 #define EndUpdateResource WINELIB_NAME_AW(EndUpdateResource)
1300 void WINAPI
EnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1301 BOOL WINAPI
EnumResourceLanguagesA(HMODULE
,LPCSTR
,LPCSTR
,ENUMRESLANGPROCA
,LONG_PTR
);
1302 BOOL WINAPI
EnumResourceLanguagesW(HMODULE
,LPCWSTR
,LPCWSTR
,ENUMRESLANGPROCW
,LONG_PTR
);
1303 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1304 BOOL WINAPI
EnumResourceNamesA(HMODULE
,LPCSTR
,ENUMRESNAMEPROCA
,LONG_PTR
);
1305 BOOL WINAPI
EnumResourceNamesW(HMODULE
,LPCWSTR
,ENUMRESNAMEPROCW
,LONG_PTR
);
1306 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1307 BOOL WINAPI
EnumResourceTypesA(HMODULE
,ENUMRESTYPEPROCA
,LONG_PTR
);
1308 BOOL WINAPI
EnumResourceTypesW(HMODULE
,ENUMRESTYPEPROCW
,LONG_PTR
);
1309 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1310 BOOL WINAPI
EqualSid(PSID
, PSID
);
1311 BOOL WINAPI
EqualPrefixSid(PSID
,PSID
);
1312 DWORD WINAPI
EraseTape(HANDLE
,DWORD
,BOOL
);
1313 VOID DECLSPEC_NORETURN WINAPI
ExitProcess(DWORD
);
1314 VOID DECLSPEC_NORETURN WINAPI
ExitThread(DWORD
);
1315 DWORD WINAPI
ExpandEnvironmentStringsA(LPCSTR
,LPSTR
,DWORD
);
1316 DWORD WINAPI
ExpandEnvironmentStringsW(LPCWSTR
,LPWSTR
,DWORD
);
1317 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1318 BOOL WINAPI
FileTimeToDosDateTime(const FILETIME
*,LPWORD
,LPWORD
);
1319 BOOL WINAPI
FileTimeToLocalFileTime(const FILETIME
*,LPFILETIME
);
1320 BOOL WINAPI
FileTimeToSystemTime(const FILETIME
*,LPSYSTEMTIME
);
1321 BOOL WINAPI
FindActCtxSectionStringA(DWORD
,const GUID
*,ULONG
,LPCSTR
,PACTCTX_SECTION_KEYED_DATA
);
1322 BOOL WINAPI
FindActCtxSectionStringW(DWORD
,const GUID
*,ULONG
,LPCWSTR
,PACTCTX_SECTION_KEYED_DATA
);
1323 #define FindActCtxSectionString WINELIB_NAME_AW(FindActCtxSectionString)
1324 BOOL WINAPI
FindActCtxSectionGuid(DWORD
,const GUID
*,ULONG
,const GUID
*,PACTCTX_SECTION_KEYED_DATA
);
1325 HANDLE WINAPI
FindFirstChangeNotificationA(LPCSTR
,BOOL
,DWORD
);
1326 HANDLE WINAPI
FindFirstChangeNotificationW(LPCWSTR
,BOOL
,DWORD
);
1327 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1328 BOOL WINAPI
FindNextChangeNotification(HANDLE
);
1329 BOOL WINAPI
FindCloseChangeNotification(HANDLE
);
1330 HRSRC WINAPI
FindResourceExA(HMODULE
,LPCSTR
,LPCSTR
,WORD
);
1331 HRSRC WINAPI
FindResourceExW(HMODULE
,LPCWSTR
,LPCWSTR
,WORD
);
1332 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1333 HANDLE WINAPI
FindFirstVolumeA(LPSTR
,DWORD
);
1334 HANDLE WINAPI
FindFirstVolumeW(LPWSTR
,DWORD
);
1335 #define FindFirstVolume WINELIB_NAME_AW(FindFirstVolume)
1336 HANDLE WINAPI
FindFirstVolumeMountPointA(LPCSTR
,LPSTR
,DWORD
);
1337 HANDLE WINAPI
FindFirstVolumeMountPointW(LPCWSTR
,LPWSTR
,DWORD
);
1338 #define FindFirstVolumeMountPoint WINELIB_NAME_AW(FindFirstVolumeMountPoint)
1339 BOOL WINAPI
FindNextVolumeA(HANDLE
,LPSTR
,DWORD
);
1340 BOOL WINAPI
FindNextVolumeW(HANDLE
,LPWSTR
,DWORD
);
1341 #define FindNextVolume WINELIB_NAME_AW(FindNextVolume)
1342 BOOL WINAPI
FindNextVolumeMountPointA(HANDLE
,LPSTR
,DWORD
);
1343 BOOL WINAPI
FindNextVolumeMountPointW(HANDLE
,LPWSTR
,DWORD
);
1344 #define FindNextVolumeMountPoint WINELIB_NAME_AW(FindNextVolumeMountPoint)
1345 BOOL WINAPI
FindVolumeClose(HANDLE
);
1346 BOOL WINAPI
FindVolumeMountPointClose(HANDLE
);
1347 BOOL WINAPI
FlushFileBuffers(HANDLE
);
1348 BOOL WINAPI
FlushViewOfFile(LPCVOID
,SIZE_T
);
1349 DWORD WINAPI
FormatMessageA(DWORD
,LPCVOID
,DWORD
,DWORD
,LPSTR
,DWORD
,va_list*);
1350 DWORD WINAPI
FormatMessageW(DWORD
,LPCVOID
,DWORD
,DWORD
,LPWSTR
,DWORD
,va_list*);
1351 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1352 BOOL WINAPI
FreeEnvironmentStringsA(LPSTR
);
1353 BOOL WINAPI
FreeEnvironmentStringsW(LPWSTR
);
1354 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1355 VOID WINAPI
FreeLibraryAndExitThread(HINSTANCE
,DWORD
);
1356 PVOID WINAPI
FreeSid(PSID
);
1357 BOOL WINAPI
GetBinaryTypeA( LPCSTR lpApplicationName
, LPDWORD lpBinaryType
);
1358 BOOL WINAPI
GetBinaryTypeW( LPCWSTR lpApplicationName
, LPDWORD lpBinaryType
);
1359 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1360 BOOL WINAPI
GetCurrentActCtx(HANDLE
*);
1361 BOOL WINAPI
GetCommConfig(HANDLE
,LPCOMMCONFIG
,LPDWORD
);
1362 BOOL WINAPI
GetCommMask(HANDLE
,LPDWORD
);
1363 BOOL WINAPI
GetCommModemStatus(HANDLE
,LPDWORD
);
1364 BOOL WINAPI
GetCommProperties(HANDLE
,LPCOMMPROP
);
1365 BOOL WINAPI
GetCommState(HANDLE
,LPDCB
);
1366 BOOL WINAPI
GetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1367 LPSTR WINAPI
GetCommandLineA(void);
1368 LPWSTR WINAPI
GetCommandLineW(void);
1369 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1370 DWORD WINAPI
GetCompressedFileSizeA(LPCSTR
,LPDWORD
);
1371 DWORD WINAPI
GetCompressedFileSizeW(LPCWSTR
,LPDWORD
);
1372 #define GetCompressedFileSize WINELIB_NAME_AW(GetCompressedFileSize)
1373 BOOL WINAPI
GetComputerNameA(LPSTR
,LPDWORD
);
1374 BOOL WINAPI
GetComputerNameW(LPWSTR
,LPDWORD
);
1375 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1376 BOOL WINAPI
GetComputerNameExA(COMPUTER_NAME_FORMAT
,LPSTR
,LPDWORD
);
1377 BOOL WINAPI
GetComputerNameExW(COMPUTER_NAME_FORMAT
,LPWSTR
,LPDWORD
);
1378 #define GetComputerNameEx WINELIB_NAME_AW(GetComputerNameEx)
1379 HANDLE WINAPI
GetCurrentProcess(void);
1380 HANDLE WINAPI
GetCurrentThread(void);
1381 BOOL WINAPI
GetDefaultCommConfigA(LPCSTR
,LPCOMMCONFIG
,LPDWORD
);
1382 BOOL WINAPI
GetDefaultCommConfigW(LPCWSTR
,LPCOMMCONFIG
,LPDWORD
);
1383 #define GetDefaultCommConfig WINELIB_NAME_AW(GetDefaultCommConfig)
1384 BOOL WINAPI
GetDevicePowerState(HANDLE
,BOOL
*);
1385 LPSTR WINAPI
GetEnvironmentStringsA(void);
1386 LPWSTR WINAPI
GetEnvironmentStringsW(void);
1387 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1388 DWORD WINAPI
GetEnvironmentVariableA(LPCSTR
,LPSTR
,DWORD
);
1389 DWORD WINAPI
GetEnvironmentVariableW(LPCWSTR
,LPWSTR
,DWORD
);
1390 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1391 BOOL WINAPI
GetExitCodeThread(HANDLE
,LPDWORD
);
1392 BOOL WINAPI
GetFileAttributesExA(LPCSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1393 BOOL WINAPI
GetFileAttributesExW(LPCWSTR
,GET_FILEEX_INFO_LEVELS
,LPVOID
);
1394 #define GetFileAttributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1395 BOOL WINAPI
GetFileInformationByHandle(HANDLE
,BY_HANDLE_FILE_INFORMATION
*);
1396 BOOL WINAPI
GetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1397 BOOL WINAPI
GetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,DWORD
,LPDWORD
);
1398 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1399 DWORD WINAPI
GetFileSize(HANDLE
,LPDWORD
);
1400 BOOL WINAPI
GetFileSizeEx(HANDLE
,PLARGE_INTEGER
);
1401 BOOL WINAPI
GetFileTime(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1402 DWORD WINAPI
GetFileType(HANDLE
);
1403 DWORD WINAPI
GetFullPathNameA(LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1404 DWORD WINAPI
GetFullPathNameW(LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1405 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1406 BOOL WINAPI
GetHandleInformation(HANDLE
,LPDWORD
);
1407 DWORD WINAPI
GetLengthSid(PSID
);
1408 VOID WINAPI
GetLocalTime(LPSYSTEMTIME
);
1409 DWORD WINAPI
GetLogicalDrives(void);
1410 DWORD WINAPI
GetLongPathNameA(LPCSTR
,LPSTR
,DWORD
);
1411 DWORD WINAPI
GetLongPathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1412 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1413 BOOL WINAPI
GetMailslotInfo(HANDLE
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1414 BOOL WINAPI
GetNamedPipeHandleStateA(HANDLE
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPSTR
,DWORD
);
1415 BOOL WINAPI
GetNamedPipeHandleStateW(HANDLE
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPWSTR
,DWORD
);
1416 #define GetNamedPipeHandleState WINELIB_NAME_AW(GetNamedPipeHandleState)
1417 BOOL WINAPI
GetNamedPipeInfo(HANDLE
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1418 BOOL WINAPI
GetNumberOfEventLogRecords(HANDLE
,PDWORD
);
1419 BOOL WINAPI
GetOldestEventLogRecord(HANDLE
,PDWORD
);
1420 DWORD WINAPI
GetPriorityClass(HANDLE
);
1421 BOOL WINAPI
GetProcessAffinityMask(HANDLE
,PDWORD
,PDWORD
);
1422 DWORD WINAPI
GetProcessId(HANDLE
);
1423 BOOL WINAPI
GetProcessIoCounters(HANDLE
,PIO_COUNTERS
);
1424 BOOL WINAPI
GetProcessPriorityBoost(HANDLE
,PBOOL
);
1425 BOOL WINAPI
GetProcessShutdownParameters(LPDWORD
,LPDWORD
);
1426 BOOL WINAPI
GetProcessTimes(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1427 DWORD WINAPI
GetProcessVersion(DWORD
);
1428 BOOL WINAPI
GetProcessWorkingSetSize(HANDLE
,PSIZE_T
,PSIZE_T
);
1429 BOOL WINAPI
GetQueuedCompletionStatus(HANDLE
,LPDWORD
,PULONG_PTR
,LPOVERLAPPED
*,DWORD
);
1430 BOOL WINAPI
GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR_CONTROL
,LPDWORD
);
1431 BOOL WINAPI
GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR
,LPBOOL
,PACL
*,LPBOOL
);
1432 BOOL WINAPI
GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR
,PSID
*,LPBOOL
);
1433 DWORD WINAPI
GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR
);
1434 BOOL WINAPI
GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR
,PSID
*,LPBOOL
);
1435 BOOL WINAPI
GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR
,LPBOOL
,PACL
*,LPBOOL
);
1436 PSID_IDENTIFIER_AUTHORITY WINAPI
GetSidIdentifierAuthority(PSID
);
1437 DWORD WINAPI
GetSidLengthRequired(BYTE
);
1438 PDWORD WINAPI
GetSidSubAuthority(PSID
,DWORD
);
1439 PUCHAR WINAPI
GetSidSubAuthorityCount(PSID
);
1440 DWORD WINAPI
GetShortPathNameA(LPCSTR
,LPSTR
,DWORD
);
1441 DWORD WINAPI
GetShortPathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1442 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1443 HANDLE WINAPI
GetStdHandle(DWORD
);
1444 VOID WINAPI
GetSystemInfo(LPSYSTEM_INFO
);
1445 BOOL WINAPI
GetSystemPowerStatus(LPSYSTEM_POWER_STATUS
);
1446 VOID WINAPI
GetSystemTime(LPSYSTEMTIME
);
1447 BOOL WINAPI
GetSystemTimeAdjustment(PDWORD
,PDWORD
,PBOOL
);
1448 VOID WINAPI
GetSystemTimeAsFileTime(LPFILETIME
);
1449 DWORD WINAPI
GetTapeParameters(HANDLE
,DWORD
,LPDWORD
,LPVOID
);
1450 DWORD WINAPI
GetTapePosition(HANDLE
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1451 DWORD WINAPI
GetTapeStatus(HANDLE
);
1452 DWORD WINAPI
GetTimeZoneInformation(LPTIME_ZONE_INFORMATION
);
1453 BOOL WINAPI
GetThreadContext(HANDLE
,CONTEXT
*);
1454 INT WINAPI
GetThreadPriority(HANDLE
);
1455 BOOL WINAPI
GetThreadPriorityBoost(HANDLE
,PBOOL
);
1456 BOOL WINAPI
GetThreadSelectorEntry(HANDLE
,DWORD
,LPLDT_ENTRY
);
1457 BOOL WINAPI
GetThreadTimes(HANDLE
,LPFILETIME
,LPFILETIME
,LPFILETIME
,LPFILETIME
);
1458 BOOL WINAPI
GetTokenInformation(HANDLE
,TOKEN_INFORMATION_CLASS
,LPVOID
,DWORD
,LPDWORD
);
1459 BOOL WINAPI
GetUserNameA(LPSTR
,LPDWORD
);
1460 BOOL WINAPI
GetUserNameW(LPWSTR
,LPDWORD
);
1461 #define GetUserName WINELIB_NAME_AW(GetUserName)
1462 BOOL WINAPI
GetVolumeNameForVolumeMountPointA(LPCSTR
,LPSTR
,DWORD
);
1463 BOOL WINAPI
GetVolumeNameForVolumeMountPointW(LPCWSTR
,LPWSTR
,DWORD
);
1464 #define GetVolumeNameForVolumeMountPoint WINELIB_NAME_AW(GetVolumeNameForVolumeMountPoint)
1465 BOOL WINAPI
GetVolumePathNameA(LPCSTR
,LPSTR
,DWORD
);
1466 BOOL WINAPI
GetVolumePathNameW(LPCWSTR
,LPWSTR
,DWORD
);
1467 #define GetVolumePathName WINELIB_NAME_AW(GetVolumePathName)
1468 BOOL WINAPI
GetVolumePathNamesForVolumeNameA(LPCSTR
,LPSTR
,DWORD
,PDWORD
);
1469 BOOL WINAPI
GetVolumePathNamesForVolumeNameW(LPCWSTR
,LPWSTR
,DWORD
,PDWORD
);
1470 #define GetVolumePathNamesForVolumeName WINELIB_NAME_AW(GetVolumePathNamesForVolumeName)
1471 VOID WINAPI
GlobalMemoryStatus(LPMEMORYSTATUS
);
1472 BOOL WINAPI
GlobalMemoryStatusEx(LPMEMORYSTATUSEX
);
1473 LPVOID WINAPI
HeapAlloc(HANDLE
,DWORD
,SIZE_T
);
1474 SIZE_T WINAPI
HeapCompact(HANDLE
,DWORD
);
1475 HANDLE WINAPI
HeapCreate(DWORD
,SIZE_T
,SIZE_T
);
1476 BOOL WINAPI
HeapDestroy(HANDLE
);
1477 BOOL WINAPI
HeapFree(HANDLE
,DWORD
,LPVOID
);
1478 BOOL WINAPI
HeapLock(HANDLE
);
1479 LPVOID WINAPI
HeapReAlloc(HANDLE
,DWORD
,LPVOID
,SIZE_T
);
1480 SIZE_T WINAPI
HeapSize(HANDLE
,DWORD
,LPVOID
);
1481 BOOL WINAPI
HeapUnlock(HANDLE
);
1482 BOOL WINAPI
HeapValidate(HANDLE
,DWORD
,LPCVOID
);
1483 BOOL WINAPI
HeapWalk(HANDLE
,LPPROCESS_HEAP_ENTRY
);
1484 DWORD WINAPI
InitializeAcl(PACL
,DWORD
,DWORD
);
1485 void WINAPI
InitializeCriticalSection(CRITICAL_SECTION
*lpCrit
);
1486 BOOL WINAPI
InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION
*,DWORD
);
1487 BOOL WINAPI
InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR
,DWORD
);
1488 BOOL WINAPI
InitializeSid(PSID
,PSID_IDENTIFIER_AUTHORITY
,BYTE
);
1489 BOOL WINAPI
IsSystemResumeAutomatic(void);
1490 BOOL WINAPI
IsTextUnicode(CONST LPVOID lpBuffer
, int cb
, LPINT lpi
);
1491 BOOL WINAPI
IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR
);
1492 BOOL WINAPI
IsValidSid(PSID
);
1493 BOOL WINAPI
ImpersonateLoggedOnUser(HANDLE
);
1494 BOOL WINAPI
ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL
);
1495 BOOL WINAPI
IsProcessorFeaturePresent(DWORD
);
1496 void WINAPI
LeaveCriticalSection(CRITICAL_SECTION
*lpCrit
);
1497 BOOL WINAPI
LookupAccountSidA(LPCSTR
,PSID
,LPSTR
,LPDWORD
,LPSTR
,LPDWORD
,PSID_NAME_USE
);
1498 BOOL WINAPI
LookupAccountSidW(LPCWSTR
,PSID
,LPWSTR
,LPDWORD
,LPWSTR
,LPDWORD
,PSID_NAME_USE
);
1499 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSid)
1500 BOOL WINAPI
LocalFileTimeToFileTime(const FILETIME
*,LPFILETIME
);
1501 BOOL WINAPI
LockFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1502 BOOL WINAPI
LockFileEx(HANDLE
, DWORD
, DWORD
, DWORD
, DWORD
, LPOVERLAPPED
);
1503 BOOL WINAPI
LookupPrivilegeNameA(LPCSTR
,PLUID
,LPSTR
,LPDWORD
);
1504 BOOL WINAPI
LookupPrivilegeNameW(LPCWSTR
,PLUID
,LPWSTR
,LPDWORD
);
1505 #define LookupPrivilegeName WINELIB_NAME_AW(LookupPrivilegeName)
1506 BOOL WINAPI
LookupPrivilegeValueA(LPCSTR
,LPCSTR
,PLUID
);
1507 BOOL WINAPI
LookupPrivilegeValueW(LPCWSTR
,LPCWSTR
,PLUID
);
1508 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1509 BOOL WINAPI
MakeAbsoluteSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,LPDWORD
,
1510 PACL
,LPDWORD
,PACL
,LPDWORD
,PSID
,LPDWORD
,PSID
,LPDWORD
);
1511 void WINAPI
MakeCriticalSectionGlobal(CRITICAL_SECTION
*lpCrit
);
1512 BOOL WINAPI
MakeSelfRelativeSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,LPDWORD
);
1513 HMODULE WINAPI
MapHModuleSL(WORD
);
1514 WORD WINAPI
MapHModuleLS(HMODULE
);
1515 LPVOID WINAPI
MapViewOfFile(HANDLE
,DWORD
,DWORD
,DWORD
,SIZE_T
);
1516 LPVOID WINAPI
MapViewOfFileEx(HANDLE
,DWORD
,DWORD
,DWORD
,SIZE_T
,LPVOID
);
1517 BOOL WINAPI
MoveFileA(LPCSTR
,LPCSTR
);
1518 BOOL WINAPI
MoveFileW(LPCWSTR
,LPCWSTR
);
1519 #define MoveFile WINELIB_NAME_AW(MoveFile)
1520 BOOL WINAPI
MoveFileExA(LPCSTR
,LPCSTR
,DWORD
);
1521 BOOL WINAPI
MoveFileExW(LPCWSTR
,LPCWSTR
,DWORD
);
1522 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1523 INT WINAPI
MulDiv(INT
,INT
,INT
);
1524 BOOL WINAPI
NotifyChangeEventLog(HANDLE
,HANDLE
);
1525 HANDLE WINAPI
OpenBackupEventLogA(LPCSTR
,LPCSTR
);
1526 HANDLE WINAPI
OpenBackupEventLogW(LPCWSTR
,LPCWSTR
);
1527 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1528 HANDLE WINAPI
OpenEventA(DWORD
,BOOL
,LPCSTR
);
1529 HANDLE WINAPI
OpenEventW(DWORD
,BOOL
,LPCWSTR
);
1530 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1531 HANDLE WINAPI
OpenEventLogA(LPCSTR
,LPCSTR
);
1532 HANDLE WINAPI
OpenEventLogW(LPCWSTR
,LPCWSTR
);
1533 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1534 HANDLE WINAPI
OpenFileMappingA(DWORD
,BOOL
,LPCSTR
);
1535 HANDLE WINAPI
OpenFileMappingW(DWORD
,BOOL
,LPCWSTR
);
1536 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1537 HANDLE WINAPI
OpenMutexA(DWORD
,BOOL
,LPCSTR
);
1538 HANDLE WINAPI
OpenMutexW(DWORD
,BOOL
,LPCWSTR
);
1539 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1540 HANDLE WINAPI
OpenProcess(DWORD
,BOOL
,DWORD
);
1541 BOOL WINAPI
OpenProcessToken(HANDLE
,DWORD
,PHANDLE
);
1542 HANDLE WINAPI
OpenSemaphoreA(DWORD
,BOOL
,LPCSTR
);
1543 HANDLE WINAPI
OpenSemaphoreW(DWORD
,BOOL
,LPCWSTR
);
1544 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1545 HANDLE WINAPI
OpenThread(DWORD
,BOOL
,DWORD
);
1546 BOOL WINAPI
OpenThreadToken(HANDLE
,DWORD
,BOOL
,PHANDLE
);
1547 HANDLE WINAPI
OpenWaitableTimerA(DWORD
,BOOL
,LPCSTR
);
1548 HANDLE WINAPI
OpenWaitableTimerW(DWORD
,BOOL
,LPCWSTR
);
1549 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
1550 BOOL WINAPI
PeekNamedPipe(HANDLE
,PVOID
,DWORD
,PDWORD
,PDWORD
,PDWORD
);
1551 DWORD WINAPI
PrepareTape(HANDLE
,DWORD
,BOOL
);
1552 BOOL WINAPI
PulseEvent(HANDLE
);
1553 BOOL WINAPI
PurgeComm(HANDLE
,DWORD
);
1554 BOOL WINAPI
QueryActCtxW(DWORD
,HANDLE
,PVOID
,ULONG
,PVOID
,SIZE_T
,SIZE_T
*);
1555 DWORD WINAPI
QueryDosDeviceA(LPCSTR
,LPSTR
,DWORD
);
1556 DWORD WINAPI
QueryDosDeviceW(LPCWSTR
,LPWSTR
,DWORD
);
1557 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1558 BOOL WINAPI
QueryPerformanceCounter(LARGE_INTEGER
*);
1559 BOOL WINAPI
QueryPerformanceFrequency(LARGE_INTEGER
*);
1560 DWORD WINAPI
QueueUserAPC(PAPCFUNC
,HANDLE
,ULONG_PTR
);
1561 void WINAPI
RaiseException(DWORD
,DWORD
,DWORD
,const LPDWORD
);
1562 BOOL WINAPI
ReadEventLogA(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1563 BOOL WINAPI
ReadEventLogW(HANDLE
,DWORD
,DWORD
,LPVOID
,DWORD
,DWORD
*,DWORD
*);
1564 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1565 BOOL WINAPI
ReadFile(HANDLE
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1566 BOOL WINAPI
ReadFileEx(HANDLE
,LPVOID
,DWORD
,LPOVERLAPPED
,LPOVERLAPPED_COMPLETION_ROUTINE
);
1567 HANDLE WINAPI
RegisterEventSourceA(LPCSTR
,LPCSTR
);
1568 HANDLE WINAPI
RegisterEventSourceW(LPCWSTR
,LPCWSTR
);
1569 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1570 BOOL WINAPI
RegisterWaitForSingleObject(PHANDLE
,HANDLE
,WAITORTIMERCALLBACK
,PVOID
,ULONG
,ULONG
);
1571 HANDLE WINAPI
RegisterWaitForSingleObjectEx(HANDLE
,WAITORTIMERCALLBACK
,PVOID
,ULONG
,ULONG
);
1572 VOID WINAPI
ReleaseActCtx(HANDLE
);
1573 BOOL WINAPI
ReleaseMutex(HANDLE
);
1574 BOOL WINAPI
ReleaseSemaphore(HANDLE
,LONG
,LPLONG
);
1575 ULONG WINAPI
RemoveVectoredExceptionHandler(PVOID
);
1576 BOOL WINAPI
ReportEventA(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCSTR
*,LPVOID
);
1577 BOOL WINAPI
ReportEventW(HANDLE
,WORD
,WORD
,DWORD
,PSID
,WORD
,DWORD
,LPCWSTR
*,LPVOID
);
1578 BOOL WINAPI
RequestWakeupLatency(LATENCY_TIME latency
);
1579 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
1580 BOOL WINAPI
ResetEvent(HANDLE
);
1581 DWORD WINAPI
ResumeThread(HANDLE
);
1582 BOOL WINAPI
RevertToSelf(void);
1583 DWORD WINAPI
SearchPathA(LPCSTR
,LPCSTR
,LPCSTR
,DWORD
,LPSTR
,LPSTR
*);
1584 DWORD WINAPI
SearchPathW(LPCWSTR
,LPCWSTR
,LPCWSTR
,DWORD
,LPWSTR
,LPWSTR
*);
1585 #define SearchPath WINELIB_NAME_AW(SearchPath)
1586 BOOL WINAPI
SetCommConfig(HANDLE
,LPCOMMCONFIG
,DWORD
);
1587 BOOL WINAPI
SetCommBreak(HANDLE
);
1588 BOOL WINAPI
SetCommMask(HANDLE
,DWORD
);
1589 BOOL WINAPI
SetCommState(HANDLE
,LPDCB
);
1590 BOOL WINAPI
SetCommTimeouts(HANDLE
,LPCOMMTIMEOUTS
);
1591 BOOL WINAPI
SetComputerNameA(LPCSTR
);
1592 BOOL WINAPI
SetComputerNameW(LPCWSTR
);
1593 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1594 BOOL WINAPI
SetComputerNameExA(COMPUTER_NAME_FORMAT
,LPCSTR
);
1595 BOOL WINAPI
SetComputerNameExW(COMPUTER_NAME_FORMAT
,LPCWSTR
);
1596 #define SetComputerNameEx WINELIB_NAME_AW(SetComputerNameEx)
1597 DWORD WINAPI
SetCriticalSectionSpinCount(LPCRITICAL_SECTION
,DWORD
);
1598 BOOL WINAPI
SetDefaultCommConfigA(LPCSTR
,LPCOMMCONFIG
,DWORD
);
1599 BOOL WINAPI
SetDefaultCommConfigW(LPCWSTR
,LPCOMMCONFIG
,DWORD
);
1600 #define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1601 BOOL WINAPI
SetEndOfFile(HANDLE
);
1602 BOOL WINAPI
SetEnvironmentVariableA(LPCSTR
,LPCSTR
);
1603 BOOL WINAPI
SetEnvironmentVariableW(LPCWSTR
,LPCWSTR
);
1604 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1605 BOOL WINAPI
SetEvent(HANDLE
);
1606 VOID WINAPI
SetFileApisToANSI(void);
1607 VOID WINAPI
SetFileApisToOEM(void);
1608 DWORD WINAPI
SetFilePointer(HANDLE
,LONG
,LPLONG
,DWORD
);
1609 BOOL WINAPI
SetFilePointerEx(HANDLE
,LARGE_INTEGER
,LARGE_INTEGER
*,DWORD
);
1610 BOOL WINAPI
SetFileSecurityA(LPCSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1611 BOOL WINAPI
SetFileSecurityW(LPCWSTR
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1612 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1613 BOOL WINAPI
SetFileTime(HANDLE
,const FILETIME
*,const FILETIME
*,const FILETIME
*);
1614 BOOL WINAPI
SetHandleInformation(HANDLE
,DWORD
,DWORD
);
1615 BOOL WINAPI
SetKernelObjectSecurity(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
1616 BOOL WINAPI
SetLocalTime(const SYSTEMTIME
*);
1617 BOOL WINAPI
SetMailslotInfo(HANDLE
,DWORD
);
1618 BOOL WINAPI
SetNamedPipeHandleState(HANDLE
,LPDWORD
,LPDWORD
,LPDWORD
);
1619 BOOL WINAPI
SetPriorityClass(HANDLE
,DWORD
);
1620 BOOL WINAPI
SetProcessAffinityMask(HANDLE
,DWORD_PTR
);
1621 BOOL WINAPI
SetProcessPriorityBoost(HANDLE
,BOOL
);
1622 BOOL WINAPI
SetProcessShutdownParameters(DWORD
,DWORD
);
1623 BOOL WINAPI
SetProcessWorkingSetSize(HANDLE
,SIZE_T
,SIZE_T
);
1624 BOOL WINAPI
SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1625 BOOL WINAPI
SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1626 BOOL WINAPI
SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR
,PSID
,BOOL
);
1627 BOOL WINAPI
SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR
,BOOL
,PACL
,BOOL
);
1628 BOOL WINAPI
SetStdHandle(DWORD
,HANDLE
);
1629 BOOL WINAPI
SetSystemPowerState(BOOL
,BOOL
);
1630 BOOL WINAPI
SetSystemTime(const SYSTEMTIME
*);
1631 BOOL WINAPI
SetSystemTimeAdjustment(DWORD
,BOOL
);
1632 DWORD WINAPI
SetTapeParameters(HANDLE
,DWORD
,LPVOID
);
1633 DWORD WINAPI
SetTapePosition(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
,BOOL
);
1634 DWORD WINAPI
SetThreadAffinityMask(HANDLE
,DWORD
);
1635 BOOL WINAPI
SetThreadContext(HANDLE
,const CONTEXT
*);
1636 DWORD WINAPI
SetThreadExecutionState(EXECUTION_STATE
);
1637 DWORD WINAPI
SetThreadIdealProcessor(HANDLE
,DWORD
);
1638 BOOL WINAPI
SetThreadPriority(HANDLE
,INT
);
1639 BOOL WINAPI
SetThreadPriorityBoost(HANDLE
,BOOL
);
1640 BOOL WINAPI
SetThreadToken(PHANDLE
,HANDLE
);
1641 BOOL WINAPI
SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION
);
1642 BOOL WINAPI
SetVolumeMountPointA(LPCSTR
,LPCSTR
);
1643 BOOL WINAPI
SetVolumeMountPointW(LPCSTR
,LPCSTR
);
1644 #define SetVolumeMountPoint WINELIB_NAME_AW(SetVolumeMountPoint)
1645 BOOL WINAPI
SetWaitableTimer(HANDLE
,const LARGE_INTEGER
*,LONG
,PTIMERAPCROUTINE
,LPVOID
,BOOL
);
1646 BOOL WINAPI
SetupComm(HANDLE
,DWORD
,DWORD
);
1647 DWORD WINAPI
SignalObjectAndWait(HANDLE
,HANDLE
,DWORD
,BOOL
);
1648 VOID WINAPI
Sleep(DWORD
);
1649 DWORD WINAPI
SleepEx(DWORD
,BOOL
);
1650 DWORD WINAPI
SuspendThread(HANDLE
);
1651 void WINAPI
SwitchToFiber(LPVOID
);
1652 BOOL WINAPI
SwitchToThread(void);
1653 BOOL WINAPI
SystemTimeToFileTime(const SYSTEMTIME
*,LPFILETIME
);
1654 BOOL WINAPI
SystemTimeToTzSpecificLocalTime(LPTIME_ZONE_INFORMATION
,LPSYSTEMTIME
,LPSYSTEMTIME
);
1655 BOOL WINAPI
TerminateProcess(HANDLE
,DWORD
);
1656 BOOL WINAPI
TerminateThread(HANDLE
,DWORD
);
1657 DWORD WINAPI
TlsAlloc(void);
1658 BOOL WINAPI
TlsFree(DWORD
);
1659 LPVOID WINAPI
TlsGetValue(DWORD
);
1660 BOOL WINAPI
TlsSetValue(DWORD
,LPVOID
);
1661 BOOL WINAPI
TransactNamedPipe(HANDLE
,LPVOID
,DWORD
,LPVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1662 BOOL WINAPI
TransmitCommChar(HANDLE
,CHAR
);
1663 BOOL WINAPI
TryEnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
1664 BOOL WINAPI
UnlockFile(HANDLE
,DWORD
,DWORD
,DWORD
,DWORD
);
1665 BOOL WINAPI
UnlockFileEx(HANDLE
,DWORD
,DWORD
,DWORD
,LPOVERLAPPED
);
1666 BOOL WINAPI
UnmapViewOfFile(LPVOID
);
1667 BOOL WINAPI
UnregisterWait(HANDLE
);
1668 BOOL WINAPI
UnregisterWaitEx(HANDLE
,HANDLE
);
1669 BOOL WINAPI
UpdateResourceA(HANDLE
,LPCSTR
,LPCSTR
,WORD
,LPVOID
,DWORD
);
1670 BOOL WINAPI
UpdateResourceW(HANDLE
,LPCWSTR
,LPCWSTR
,WORD
,LPVOID
,DWORD
);
1671 #define UpdateResource WINELIB_NAME_AW(UpdateResource)
1672 BOOL WINAPI
VerifyVersionInfoA(LPOSVERSIONINFOEXA
,DWORD
,DWORDLONG
);
1673 BOOL WINAPI
VerifyVersionInfoW(LPOSVERSIONINFOEXW
,DWORD
,DWORDLONG
);
1674 #define VerifyVersionInfo WINELIB_NAME_AW(VerifyVersionInfo)
1675 LPVOID WINAPI
VirtualAlloc(LPVOID
,SIZE_T
,DWORD
,DWORD
);
1676 LPVOID WINAPI
VirtualAllocEx(HANDLE
,LPVOID
,SIZE_T
,DWORD
,DWORD
);
1677 BOOL WINAPI
VirtualFree(LPVOID
,SIZE_T
,DWORD
);
1678 BOOL WINAPI
VirtualFreeEx(HANDLE
,LPVOID
,SIZE_T
,DWORD
);
1679 BOOL WINAPI
VirtualLock(LPVOID
,SIZE_T
);
1680 BOOL WINAPI
VirtualProtect(LPVOID
,SIZE_T
,DWORD
,LPDWORD
);
1681 BOOL WINAPI
VirtualProtectEx(HANDLE
,LPVOID
,SIZE_T
,DWORD
,LPDWORD
);
1682 SIZE_T WINAPI
VirtualQuery(LPCVOID
,PMEMORY_BASIC_INFORMATION
,SIZE_T
);
1683 SIZE_T WINAPI
VirtualQueryEx(HANDLE
,LPCVOID
,PMEMORY_BASIC_INFORMATION
,SIZE_T
);
1684 BOOL WINAPI
VirtualUnlock(LPVOID
,SIZE_T
);
1685 BOOL WINAPI
WaitCommEvent(HANDLE
,LPDWORD
,LPOVERLAPPED
);
1686 BOOL WINAPI
WaitForDebugEvent(LPDEBUG_EVENT
,DWORD
);
1687 DWORD WINAPI
WaitForMultipleObjects(DWORD
,const HANDLE
*,BOOL
,DWORD
);
1688 DWORD WINAPI
WaitForMultipleObjectsEx(DWORD
,const HANDLE
*,BOOL
,DWORD
,BOOL
);
1689 DWORD WINAPI
WaitForSingleObject(HANDLE
,DWORD
);
1690 DWORD WINAPI
WaitForSingleObjectEx(HANDLE
,DWORD
,BOOL
);
1691 BOOL WINAPI
WaitNamedPipeA(LPCSTR
,DWORD
);
1692 BOOL WINAPI
WaitNamedPipeW(LPCWSTR
,DWORD
);
1693 #define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
1694 BOOL WINAPI
WriteFile(HANDLE
,LPCVOID
,DWORD
,LPDWORD
,LPOVERLAPPED
);
1695 BOOL WINAPI
WriteFileEx(HANDLE
,LPCVOID
,DWORD
,LPOVERLAPPED
,LPOVERLAPPED_COMPLETION_ROUTINE
);
1696 DWORD WINAPI
WriteTapemark(HANDLE
,DWORD
,DWORD
,BOOL
);
1697 BOOL WINAPI
ZombifyActCtx(HANDLE
);
1699 ATOM WINAPI
AddAtomA(LPCSTR
);
1700 ATOM WINAPI
AddAtomW(LPCWSTR
);
1701 #define AddAtom WINELIB_NAME_AW(AddAtom)
1702 BOOL WINAPI
CreateDirectoryA(LPCSTR
,LPSECURITY_ATTRIBUTES
);
1703 BOOL WINAPI
CreateDirectoryW(LPCWSTR
,LPSECURITY_ATTRIBUTES
);
1704 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1705 BOOL WINAPI
CreateDirectoryExA(LPCSTR
,LPCSTR
,LPSECURITY_ATTRIBUTES
);
1706 BOOL WINAPI
CreateDirectoryExW(LPCWSTR
,LPCWSTR
,LPSECURITY_ATTRIBUTES
);
1707 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1708 BOOL WINAPI
DefineDosDeviceA(DWORD
,LPCSTR
,LPCSTR
);
1709 #define DefineHandleTable(w) ((w),TRUE)
1710 ATOM WINAPI
DeleteAtom(ATOM
);
1711 BOOL WINAPI
DeleteFileA(LPCSTR
);
1712 BOOL WINAPI
DeleteFileW(LPCWSTR
);
1713 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1714 void WINAPI
FatalAppExitA(UINT
,LPCSTR
);
1715 void WINAPI
FatalAppExitW(UINT
,LPCWSTR
);
1716 void WINAPI
FatalExit(int);
1717 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1718 ATOM WINAPI
FindAtomA(LPCSTR
);
1719 ATOM WINAPI
FindAtomW(LPCWSTR
);
1720 #define FindAtom WINELIB_NAME_AW(FindAtom)
1721 BOOL WINAPI
FindClose(HANDLE
);
1722 HANDLE WINAPI
FindFirstFileA(LPCSTR
,LPWIN32_FIND_DATAA
);
1723 HANDLE WINAPI
FindFirstFileW(LPCWSTR
,LPWIN32_FIND_DATAW
);
1724 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1725 HANDLE WINAPI
FindFirstFileExA(LPCSTR
,FINDEX_INFO_LEVELS
,LPVOID
,FINDEX_SEARCH_OPS
,LPVOID
,DWORD
);
1726 HANDLE WINAPI
FindFirstFileExW(LPCWSTR
,FINDEX_INFO_LEVELS
,LPVOID
,FINDEX_SEARCH_OPS
,LPVOID
,DWORD
);
1727 #define FindFirstFileEx WINELIB_NAME_AW(FindFirstFileEx)
1728 BOOL WINAPI
FindNextFileA(HANDLE
,LPWIN32_FIND_DATAA
);
1729 BOOL WINAPI
FindNextFileW(HANDLE
,LPWIN32_FIND_DATAW
);
1730 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1731 HRSRC WINAPI
FindResourceA(HMODULE
,LPCSTR
,LPCSTR
);
1732 HRSRC WINAPI
FindResourceW(HMODULE
,LPCWSTR
,LPCWSTR
);
1733 #define FindResource WINELIB_NAME_AW(FindResource)
1734 BOOL WINAPI
FlushInstructionCache(HANDLE
,LPCVOID
,SIZE_T
);
1735 BOOL WINAPI
FreeLibrary(HMODULE
);
1736 #define FreeModule(handle) FreeLibrary(handle)
1737 #define FreeProcInstance(proc) /*nothing*/
1738 BOOL WINAPI
FreeResource(HGLOBAL
);
1739 UINT WINAPI
GetAtomNameA(ATOM
,LPSTR
,INT
);
1740 UINT WINAPI
GetAtomNameW(ATOM
,LPWSTR
,INT
);
1741 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1742 UINT WINAPI
GetCurrentDirectoryA(UINT
,LPSTR
);
1743 UINT WINAPI
GetCurrentDirectoryW(UINT
,LPWSTR
);
1744 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1745 BOOL WINAPI
GetCurrentHwProfileA(LPHW_PROFILE_INFOA
);
1746 BOOL WINAPI
GetCurrentHwProfileW(LPHW_PROFILE_INFOW
);
1747 #define GetCurrentHwProfile WINELIB_NAME_AW(GetCurrentHwProfile)
1748 #define GetCurrentTime() GetTickCount()
1749 BOOL WINAPI
GetDiskFreeSpaceA(LPCSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1750 BOOL WINAPI
GetDiskFreeSpaceW(LPCWSTR
,LPDWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
1751 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1752 BOOL WINAPI
GetDiskFreeSpaceExA(LPCSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1753 BOOL WINAPI
GetDiskFreeSpaceExW(LPCWSTR
,PULARGE_INTEGER
,PULARGE_INTEGER
,PULARGE_INTEGER
);
1754 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1755 UINT WINAPI
GetDriveTypeA(LPCSTR
);
1756 UINT WINAPI
GetDriveTypeW(LPCWSTR
);
1757 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1758 BOOL WINAPI
GetExitCodeProcess(HANDLE
,LPDWORD
);
1759 DWORD WINAPI
GetFileAttributesA(LPCSTR
);
1760 DWORD WINAPI
GetFileAttributesW(LPCWSTR
);
1761 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1762 #define GetFreeSpace(w) (0x100000L)
1763 UINT WINAPI
GetLogicalDriveStringsA(UINT
,LPSTR
);
1764 UINT WINAPI
GetLogicalDriveStringsW(UINT
,LPWSTR
);
1765 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1766 DWORD WINAPI
GetModuleFileNameA(HMODULE
,LPSTR
,DWORD
);
1767 DWORD WINAPI
GetModuleFileNameW(HMODULE
,LPWSTR
,DWORD
);
1768 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1769 HMODULE WINAPI
GetModuleHandleA(LPCSTR
);
1770 HMODULE WINAPI
GetModuleHandleW(LPCWSTR
);
1771 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1772 BOOL WINAPI
GetOverlappedResult(HANDLE
,LPOVERLAPPED
,LPDWORD
,BOOL
);
1773 UINT WINAPI
GetPrivateProfileIntA(LPCSTR
,LPCSTR
,INT
,LPCSTR
);
1774 UINT WINAPI
GetPrivateProfileIntW(LPCWSTR
,LPCWSTR
,INT
,LPCWSTR
);
1775 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1776 INT WINAPI
GetPrivateProfileSectionA(LPCSTR
,LPSTR
,DWORD
,LPCSTR
);
1777 INT WINAPI
GetPrivateProfileSectionW(LPCWSTR
,LPWSTR
,DWORD
,LPCWSTR
);
1778 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1779 DWORD WINAPI
GetPrivateProfileSectionNamesA(LPSTR
,DWORD
,LPCSTR
);
1780 DWORD WINAPI
GetPrivateProfileSectionNamesW(LPWSTR
,DWORD
,LPCWSTR
);
1781 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1782 INT WINAPI
GetPrivateProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT
,LPCSTR
);
1783 INT WINAPI
GetPrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT
,LPCWSTR
);
1784 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1785 BOOL WINAPI
GetPrivateProfileStructA(LPCSTR
,LPCSTR
,LPVOID
,UINT
,LPCSTR
);
1786 BOOL WINAPI
GetPrivateProfileStructW(LPCWSTR
,LPCWSTR
,LPVOID
,UINT
,LPCWSTR
);
1787 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1788 FARPROC WINAPI
GetProcAddress(HMODULE
,LPCSTR
);
1789 DWORD WINAPI
GetProcessHeaps(DWORD
,PHANDLE
);
1790 UINT WINAPI
GetProfileIntA(LPCSTR
,LPCSTR
,INT
);
1791 UINT WINAPI
GetProfileIntW(LPCWSTR
,LPCWSTR
,INT
);
1792 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1793 INT WINAPI
GetProfileSectionA(LPCSTR
,LPSTR
,DWORD
);
1794 INT WINAPI
GetProfileSectionW(LPCWSTR
,LPWSTR
,DWORD
);
1795 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1796 INT WINAPI
GetProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPSTR
,UINT
);
1797 INT WINAPI
GetProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPWSTR
,UINT
);
1798 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1799 VOID WINAPI
GetStartupInfoA(LPSTARTUPINFOA
);
1800 VOID WINAPI
GetStartupInfoW(LPSTARTUPINFOW
);
1801 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1802 UINT WINAPI
GetSystemDirectoryA(LPSTR
,UINT
);
1803 UINT WINAPI
GetSystemDirectoryW(LPWSTR
,UINT
);
1804 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1805 UINT WINAPI
GetSystemWindowsDirectoryA(LPSTR
,UINT
);
1806 UINT WINAPI
GetSystemWindowsDirectoryW(LPWSTR
,UINT
);
1807 #define GetSystemWindowsDirectory WINELIB_NAME_AW(GetSystemWindowsDirectory)
1808 DWORD WINAPI
GetTickCount(void);
1809 UINT WINAPI
GetTempFileNameA(LPCSTR
,LPCSTR
,UINT
,LPSTR
);
1810 UINT WINAPI
GetTempFileNameW(LPCWSTR
,LPCWSTR
,UINT
,LPWSTR
);
1811 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1812 UINT WINAPI
GetTempPathA(UINT
,LPSTR
);
1813 UINT WINAPI
GetTempPathW(UINT
,LPWSTR
);
1814 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1815 DWORD WINAPI
GetVersion(void);
1816 BOOL WINAPI
GetVersionExA(OSVERSIONINFOA
*);
1817 BOOL WINAPI
GetVersionExW(OSVERSIONINFOW
*);
1818 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1819 BOOL WINAPI
GetVolumeInformationA(LPCSTR
,LPSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPSTR
,DWORD
);
1820 BOOL WINAPI
GetVolumeInformationW(LPCWSTR
,LPWSTR
,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
,LPWSTR
,DWORD
);
1821 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1822 UINT WINAPI
GetWindowsDirectoryA(LPSTR
,UINT
);
1823 UINT WINAPI
GetWindowsDirectoryW(LPWSTR
,UINT
);
1824 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1825 ATOM WINAPI
GlobalAddAtomA(LPCSTR
);
1826 ATOM WINAPI
GlobalAddAtomW(LPCWSTR
);
1827 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
1828 HGLOBAL WINAPI
GlobalAlloc(UINT
,SIZE_T
);
1829 SIZE_T WINAPI
GlobalCompact(DWORD
);
1830 ATOM WINAPI
GlobalDeleteAtom(ATOM
);
1831 ATOM WINAPI
GlobalFindAtomA(LPCSTR
);
1832 ATOM WINAPI
GlobalFindAtomW(LPCWSTR
);
1833 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
1834 UINT WINAPI
GlobalFlags(HGLOBAL
);
1835 HGLOBAL WINAPI
GlobalFree(HGLOBAL
);
1836 UINT WINAPI
GlobalGetAtomNameA(ATOM
,LPSTR
,INT
);
1837 UINT WINAPI
GlobalGetAtomNameW(ATOM
,LPWSTR
,INT
);
1838 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
1839 HGLOBAL WINAPI
GlobalHandle(LPCVOID
);
1840 VOID WINAPI
GlobalFix(HGLOBAL
);
1841 LPVOID WINAPI
GlobalLock(HGLOBAL
);
1842 HGLOBAL WINAPI
GlobalReAlloc(HGLOBAL
,SIZE_T
,UINT
);
1843 SIZE_T WINAPI
GlobalSize(HGLOBAL
);
1844 VOID WINAPI
GlobalUnfix(HGLOBAL
);
1845 BOOL WINAPI
GlobalUnlock(HGLOBAL
);
1846 BOOL WINAPI
GlobalUnWire(HGLOBAL
);
1847 LPVOID WINAPI
GlobalWire(HGLOBAL
);
1848 #define HasOverlappedCompleted(lpOverlapped) ((lpOverlapped)->Internal != STATUS_PENDING)
1849 BOOL WINAPI
InitAtomTable(DWORD
);
1850 BOOL WINAPI
IsBadCodePtr(FARPROC
);
1851 BOOL WINAPI
IsBadHugeReadPtr(LPCVOID
,UINT
);
1852 BOOL WINAPI
IsBadHugeWritePtr(LPVOID
,UINT
);
1853 BOOL WINAPI
IsBadReadPtr(LPCVOID
,UINT
);
1854 BOOL WINAPI
IsBadStringPtrA(LPCSTR
,UINT
);
1855 BOOL WINAPI
IsBadStringPtrW(LPCWSTR
,UINT
);
1856 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1857 BOOL WINAPI
IsBadWritePtr(LPVOID
,UINT
);
1858 BOOL WINAPI
IsDebuggerPresent(void);
1859 HMODULE WINAPI
LoadLibraryA(LPCSTR
);
1860 HMODULE WINAPI
LoadLibraryW(LPCWSTR
);
1861 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1862 HMODULE WINAPI
LoadLibraryExA(LPCSTR
,HANDLE
,DWORD
);
1863 HMODULE WINAPI
LoadLibraryExW(LPCWSTR
,HANDLE
,DWORD
);
1864 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1865 HINSTANCE WINAPI
LoadModule(LPCSTR
,LPVOID
);
1866 HGLOBAL WINAPI
LoadResource(HMODULE
,HRSRC
);
1867 HLOCAL WINAPI
LocalAlloc(UINT
,SIZE_T
);
1868 SIZE_T WINAPI
LocalCompact(UINT
);
1869 UINT WINAPI
LocalFlags(HLOCAL
);
1870 HLOCAL WINAPI
LocalFree(HLOCAL
);
1871 HLOCAL WINAPI
LocalHandle(LPCVOID
);
1872 LPVOID WINAPI
LocalLock(HLOCAL
);
1873 HLOCAL WINAPI
LocalReAlloc(HLOCAL
,SIZE_T
,UINT
);
1874 SIZE_T WINAPI
LocalShrink(HGLOBAL
,UINT
);
1875 SIZE_T WINAPI
LocalSize(HLOCAL
);
1876 BOOL WINAPI
LocalUnlock(HLOCAL
);
1877 LPVOID WINAPI
LockResource(HGLOBAL
);
1878 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1879 #define MakeProcInstance(proc,inst) (proc)
1880 HFILE WINAPI
OpenFile(LPCSTR
,OFSTRUCT
*,UINT
);
1881 VOID WINAPI
OutputDebugStringA(LPCSTR
);
1882 VOID WINAPI
OutputDebugStringW(LPCWSTR
);
1883 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1884 BOOL WINAPI
ReadProcessMemory(HANDLE
,LPCVOID
,LPVOID
,SIZE_T
,SIZE_T
*);
1885 BOOL WINAPI
ReplaceFileA(LPCSTR
,LPCSTR
,LPCSTR
,DWORD
,LPVOID
,LPVOID
);
1886 BOOL WINAPI
ReplaceFileW(LPCWSTR
,LPCWSTR
,LPCWSTR
,DWORD
,LPVOID
,LPVOID
);
1887 #define ReplaceFile WINELIB_NAME_AW(ReplaceFile)
1888 BOOL WINAPI
RemoveDirectoryA(LPCSTR
);
1889 BOOL WINAPI
RemoveDirectoryW(LPCWSTR
);
1890 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1891 BOOL WINAPI
SetCurrentDirectoryA(LPCSTR
);
1892 BOOL WINAPI
SetCurrentDirectoryW(LPCWSTR
);
1893 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1894 UINT WINAPI
SetErrorMode(UINT
);
1895 BOOL WINAPI
SetFileAttributesA(LPCSTR
,DWORD
);
1896 BOOL WINAPI
SetFileAttributesW(LPCWSTR
,DWORD
);
1897 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1898 UINT WINAPI
SetHandleCount(UINT
);
1899 #define SetSwapAreaSize(w) (w)
1900 BOOL WINAPI
SetVolumeLabelA(LPCSTR
,LPCSTR
);
1901 BOOL WINAPI
SetVolumeLabelW(LPCWSTR
,LPCWSTR
);
1902 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1903 DWORD WINAPI
SizeofResource(HMODULE
,HRSRC
);
1904 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1905 UINT WINAPI
WinExec(LPCSTR
,UINT
);
1906 BOOL WINAPI
WritePrivateProfileSectionA(LPCSTR
,LPCSTR
,LPCSTR
);
1907 BOOL WINAPI
WritePrivateProfileSectionW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1908 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1909 BOOL WINAPI
WritePrivateProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
1910 BOOL WINAPI
WritePrivateProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
1911 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1912 BOOL WINAPI
WriteProfileSectionA(LPCSTR
,LPCSTR
);
1913 BOOL WINAPI
WriteProfileSectionW(LPCWSTR
,LPCWSTR
);
1914 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1915 BOOL WINAPI
WritePrivateProfileStructA(LPCSTR
,LPCSTR
,LPVOID
,UINT
,LPCSTR
);
1916 BOOL WINAPI
WritePrivateProfileStructW(LPCWSTR
,LPCWSTR
,LPVOID
,UINT
,LPCWSTR
);
1917 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1918 BOOL WINAPI
WriteProcessMemory(HANDLE
,LPVOID
,LPCVOID
,SIZE_T
,SIZE_T
*);
1919 BOOL WINAPI
WriteProfileStringA(LPCSTR
,LPCSTR
,LPCSTR
);
1920 BOOL WINAPI
WriteProfileStringW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1921 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1923 LPSTR WINAPI
lstrcatA(LPSTR
,LPCSTR
);
1924 LPWSTR WINAPI
lstrcatW(LPWSTR
,LPCWSTR
);
1925 #define lstrcat WINELIB_NAME_AW(lstrcat)
1926 LPSTR WINAPI
lstrcpyA(LPSTR
,LPCSTR
);
1927 LPWSTR WINAPI
lstrcpyW(LPWSTR
,LPCWSTR
);
1928 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1929 LPSTR WINAPI
lstrcpynA(LPSTR
,LPCSTR
,INT
);
1930 LPWSTR WINAPI
lstrcpynW(LPWSTR
,LPCWSTR
,INT
);
1931 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1932 INT WINAPI
lstrlenA(LPCSTR
);
1933 INT WINAPI
lstrlenW(LPCWSTR
);
1934 #define lstrlen WINELIB_NAME_AW(lstrlen)
1935 LONG WINAPI
_hread(HFILE
,LPVOID
,LONG
);
1936 LONG WINAPI
_hwrite(HFILE
,LPCSTR
,LONG
);
1937 HFILE WINAPI
_lcreat(LPCSTR
,INT
);
1938 HFILE WINAPI
_lclose(HFILE
);
1939 LONG WINAPI
_llseek(HFILE
,LONG
,INT
);
1940 HFILE WINAPI
_lopen(LPCSTR
,INT
);
1941 UINT WINAPI
_lread(HFILE
,LPVOID
,UINT
);
1942 UINT WINAPI
_lwrite(HFILE
,LPCSTR
,UINT
);
1943 INT WINAPI
lstrcmpA(LPCSTR
,LPCSTR
);
1944 INT WINAPI
lstrcmpW(LPCWSTR
,LPCWSTR
);
1945 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1946 INT WINAPI
lstrcmpiA(LPCSTR
,LPCSTR
);
1947 INT WINAPI
lstrcmpiW(LPCWSTR
,LPCWSTR
);
1948 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1950 /* compatibility macros */
1951 #define FillMemory RtlFillMemory
1952 #define MoveMemory RtlMoveMemory
1953 #define ZeroMemory RtlZeroMemory
1954 #define CopyMemory RtlCopyMemory
1956 /* undocumented functions */
1958 typedef struct tagSYSLEVEL
1960 CRITICAL_SECTION crst
;
1964 /* [GS]etProcessDword offsets */
1965 #define GPD_APP_COMPAT_FLAGS (-56)
1966 #define GPD_LOAD_DONE_EVENT (-52)
1967 #define GPD_HINSTANCE16 (-48)
1968 #define GPD_WINDOWS_VERSION (-44)
1969 #define GPD_THDB (-40)
1970 #define GPD_PDB (-36)
1971 #define GPD_STARTF_SHELLDATA (-32)
1972 #define GPD_STARTF_HOTKEY (-28)
1973 #define GPD_STARTF_SHOWWINDOW (-24)
1974 #define GPD_STARTF_SIZE (-20)
1975 #define GPD_STARTF_POSITION (-16)
1976 #define GPD_STARTF_FLAGS (-12)
1977 #define GPD_PARENT (- 8)
1978 #define GPD_FLAGS (- 4)
1979 #define GPD_USERDATA ( 0)
1981 void WINAPI
DisposeLZ32Handle(HANDLE
);
1982 HANDLE WINAPI
DosFileHandleToWin32Handle(HFILE
);
1983 DWORD WINAPI
GetProcessDword(DWORD
,INT
);
1984 VOID WINAPI
GetpWin16Lock(SYSLEVEL
**);
1985 DWORD WINAPI
MapLS(LPCVOID
);
1986 LPVOID WINAPI
MapSL(DWORD
);
1987 VOID WINAPI
ReleaseThunkLock(DWORD
*);
1988 VOID WINAPI
RestoreThunkLock(DWORD
);
1989 void WINAPI
SetProcessDword(DWORD
,INT
,DWORD
);
1990 VOID WINAPI
UnMapLS(DWORD
);
1991 HFILE WINAPI
Win32HandleToDosFileHandle(HANDLE
);
1992 VOID WINAPI
_CheckNotSysLevel(SYSLEVEL
*lock
);
1993 DWORD WINAPI
_ConfirmWin16Lock(void);
1994 DWORD WINAPI
_ConfirmSysLevel(SYSLEVEL
*);
1995 VOID WINAPI
_EnterSysLevel(SYSLEVEL
*);
1996 VOID WINAPI
_LeaveSysLevel(SYSLEVEL
*);
1999 /* Wine internal functions */
2001 extern char *wine_get_unix_file_name( LPCWSTR dos
);
2004 /* a few optimizations for i386/gcc */
2006 #if defined(__i386__) && defined(__GNUC__) && defined(__WINESRC__) && !defined(_NTSYSTEM_)
2008 extern inline LONG WINAPI
InterlockedCompareExchange( PLONG dest
, LONG xchg
, LONG compare
);
2009 extern inline LONG WINAPI
InterlockedCompareExchange( PLONG dest
, LONG xchg
, LONG compare
)
2012 __asm__
__volatile__( "lock; cmpxchgl %2,(%1)"
2013 : "=a" (ret
) : "r" (dest
), "r" (xchg
), "0" (compare
) : "memory" );
2017 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
);
2018 extern inline LONG WINAPI
InterlockedExchange( PLONG dest
, LONG val
)
2021 __asm__
__volatile__( "lock; xchgl %0,(%1)"
2022 : "=r" (ret
) :"r" (dest
), "0" (val
) : "memory" );
2026 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
);
2027 extern inline LONG WINAPI
InterlockedExchangeAdd( PLONG dest
, LONG incr
)
2030 __asm__
__volatile__( "lock; xaddl %0,(%1)"
2031 : "=r" (ret
) : "r" (dest
), "0" (incr
) : "memory" );
2035 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
);
2036 extern inline LONG WINAPI
InterlockedIncrement( PLONG dest
)
2038 return InterlockedExchangeAdd( dest
, 1 ) + 1;
2041 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
);
2042 extern inline LONG WINAPI
InterlockedDecrement( PLONG dest
)
2044 return InterlockedExchangeAdd( dest
, -1 ) - 1;
2047 extern inline DWORD WINAPI
GetLastError(void);
2048 extern inline DWORD WINAPI
GetLastError(void)
2051 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x34,%0" : "=r" (ret
) );
2055 extern inline DWORD WINAPI
GetCurrentProcessId(void);
2056 extern inline DWORD WINAPI
GetCurrentProcessId(void)
2059 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x20,%0" : "=r" (ret
) );
2063 extern inline DWORD WINAPI
GetCurrentThreadId(void);
2064 extern inline DWORD WINAPI
GetCurrentThreadId(void)
2067 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x24,%0" : "=r" (ret
) );
2071 extern inline void WINAPI
SetLastError( DWORD err
);
2072 extern inline void WINAPI
SetLastError( DWORD err
)
2074 __asm__
__volatile__( ".byte 0x64\n\tmovl %0,0x34" : : "r" (err
) : "memory" );
2077 extern inline HANDLE WINAPI
GetProcessHeap(void);
2078 extern inline HANDLE WINAPI
GetProcessHeap(void)
2081 __asm__
__volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb
) );
2082 return pdb
[0x18 / sizeof(HANDLE
)]; /* get dword at offset 0x18 in pdb */
2085 #else /* __i386__ && __GNUC__ && __WINESRC__ && !_NTSYSTEM_ */
2087 DWORD WINAPI
GetCurrentProcessId(void);
2088 DWORD WINAPI
GetCurrentThreadId(void);
2089 DWORD WINAPI
GetLastError(void);
2090 HANDLE WINAPI
GetProcessHeap(void);
2091 LONG WINAPI
InterlockedCompareExchange(LONG
*,LONG
,LONG
);
2092 LONG WINAPI
InterlockedDecrement(PLONG
);
2093 LONG WINAPI
InterlockedExchange(PLONG
,LONG
);
2094 LONG WINAPI
InterlockedExchangeAdd(PLONG
,LONG
);
2095 LONG WINAPI
InterlockedIncrement(PLONG
);
2096 VOID WINAPI
SetLastError(DWORD
);
2098 #endif /* __i386__ && __GNUC__ && __WINESRC__ && !_NTSYSTEM_ */
2100 /* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */
2101 static inline PVOID WINAPI
InterlockedCompareExchangePointer( PVOID
*dest
, PVOID xchg
, PVOID compare
)
2103 return (PVOID
)InterlockedCompareExchange( (PLONG
)dest
, (LONG
)xchg
, (LONG
)compare
);
2106 static inline PVOID WINAPI
InterlockedExchangePointer( PVOID
*dest
, PVOID val
)
2108 return (PVOID
)InterlockedExchange( (PLONG
)dest
, (LONG
)val
);
2112 #define GetCurrentProcess() ((HANDLE)0xffffffff)
2113 #define GetCurrentThread() ((HANDLE)0xfffffffe)
2116 /* WinMain(entry point) must be declared in winbase.h. */
2117 /* If this is not declared, we cannot compile many sources written with C++. */
2118 int WINAPI
WinMain(HINSTANCE
,HINSTANCE
,LPSTR
,int);
2124 #endif /* __WINE_WINBASE_H */