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 CHAR 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 15
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_TXEMPTY 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 {
488 #ifdef WORDS_BIGENDIAN
489 ULONG_PTR InternalHigh;
493 ULONG_PTR InternalHigh;
497 #ifdef WORDS_BIGENDIAN
508 } OVERLAPPED, *LPOVERLAPPED;
510 typedef VOID (CALLBACK *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD,DWORD,LPOVERLAPPED);
512 /* Process startup information.
515 /* STARTUPINFO.dwFlags */
516 #define STARTF_USESHOWWINDOW 0x00000001
517 #define STARTF_USESIZE 0x00000002
518 #define STARTF_USEPOSITION 0x00000004
519 #define STARTF_USECOUNTCHARS 0x00000008
520 #define STARTF_USEFILLATTRIBUTE 0x00000010
521 #define STARTF_RUNFULLSCREEN 0x00000020
522 #define STARTF_FORCEONFEEDBACK 0x00000040
523 #define STARTF_FORCEOFFFEEDBACK 0x00000080
524 #define STARTF_USESTDHANDLES 0x00000100
525 #define STARTF_USEHOTKEY 0x00000200
527 typedef struct _STARTUPINFOA{
528 DWORD cb; /* 00: size of struct */
529 LPSTR lpReserved; /* 04: */
530 LPSTR lpDesktop; /* 08: */
531 LPSTR lpTitle; /* 0c: */
534 DWORD dwXSize; /* 18: */
535 DWORD dwYSize; /* 1c: */
536 DWORD dwXCountChars; /* 20: */
537 DWORD dwYCountChars; /* 24: */
538 DWORD dwFillAttribute; /* 28: */
539 DWORD dwFlags; /* 2c: */
540 WORD wShowWindow; /* 30: */
541 WORD cbReserved2; /* 32: */
542 BYTE *lpReserved2; /* 34: */
543 HANDLE hStdInput; /* 38: */
544 HANDLE hStdOutput; /* 3c: */
545 HANDLE hStdError; /* 40: */
546 } STARTUPINFOA, *LPSTARTUPINFOA;
548 typedef struct _STARTUPINFOW{
559 DWORD dwFillAttribute;
567 } STARTUPINFOW, *LPSTARTUPINFOW;
569 DECL_WINELIB_TYPE_AW(STARTUPINFO)
570 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
572 typedef struct _PROCESS_INFORMATION{
577 } PROCESS_INFORMATION, *PPROCESS_INFORMATION, *LPPROCESS_INFORMATION;
579 typedef struct _TIME_ZONE_INFORMATION{
581 WCHAR StandardName[32];
582 SYSTEMTIME StandardDate;
584 WCHAR DaylightName[32];
585 SYSTEMTIME DaylightDate;
587 } TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
589 #define TIME_ZONE_ID_INVALID ((DWORD)0xFFFFFFFF)
590 #define TIME_ZONE_ID_UNKNOWN 0
591 #define TIME_ZONE_ID_STANDARD 1
592 #define TIME_ZONE_ID_DAYLIGHT 2
594 /* CreateProcess: dwCreationFlag values
596 #define DEBUG_PROCESS 0x00000001
597 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
598 #define CREATE_SUSPENDED 0x00000004
599 #define DETACHED_PROCESS 0x00000008
600 #define CREATE_NEW_CONSOLE 0x00000010
601 #define NORMAL_PRIORITY_CLASS 0x00000020
602 #define IDLE_PRIORITY_CLASS 0x00000040
603 #define HIGH_PRIORITY_CLASS 0x00000080
604 #define REALTIME_PRIORITY_CLASS 0x00000100
605 #define BELOW_NORMAL_PRIORITY_CLASS 0x00004000
606 #define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
607 #define CREATE_NEW_PROCESS_GROUP 0x00000200
608 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
609 #define CREATE_SEPARATE_WOW_VDM 0x00000800
610 #define CREATE_SHARED_WOW_VDM 0x00001000
611 #define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000
612 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
613 #define CREATE_NO_WINDOW 0x08000000
614 #define PROFILE_USER 0x10000000
615 #define PROFILE_KERNEL 0x20000000
616 #define PROFILE_SERVER 0x40000000
619 /* File object type definitions
621 #define FILE_TYPE_UNKNOWN 0
622 #define FILE_TYPE_DISK 1
623 #define FILE_TYPE_CHAR 2
624 #define FILE_TYPE_PIPE 3
625 #define FILE_TYPE_REMOTE 32768
627 /* File creation flags
629 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
630 #define FILE_FLAG_OVERLAPPED 0x40000000L
631 #define FILE_FLAG_NO_BUFFERING 0x20000000L
632 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
633 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
634 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
635 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
636 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
638 #define CREATE_ALWAYS 2
639 #define OPEN_EXISTING 3
640 #define OPEN_ALWAYS 4
641 #define TRUNCATE_EXISTING 5
643 /* Standard handle identifiers
645 #define STD_INPUT_HANDLE ((DWORD) -10)
646 #define STD_OUTPUT_HANDLE ((DWORD) -11)
647 #define STD_ERROR_HANDLE ((DWORD) -12)
649 typedef struct _BY_HANDLE_FILE_INFORMATION
651 DWORD dwFileAttributes;
652 FILETIME ftCreationTime;
653 FILETIME ftLastAccessTime;
654 FILETIME ftLastWriteTime;
655 DWORD dwVolumeSerialNumber;
658 DWORD nNumberOfLinks;
659 DWORD nFileIndexHigh;
661 } BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION ;
663 #define PIPE_ACCESS_INBOUND 1
664 #define PIPE_ACCESS_OUTBOUND 2
665 #define PIPE_ACCESS_DUPLEX 3
667 #define PIPE_TYPE_BYTE 0
668 #define PIPE_TYPE_MESSAGE 4
670 #define PIPE_READMODE_BYTE 0
671 #define PIPE_READMODE_MESSAGE 2
674 #define PIPE_NOWAIT 1
676 #define PIPE_UNLIMITED_INSTANCES 255
678 #define NMPWAIT_WAIT_FOREVER 0xffffffff
679 #define NMPWAIT_NOWAIT 0x00000001
680 #define NMPWAIT_USE_DEFAULT_WAIT 0x00000000
682 typedef struct _SYSTEM_POWER_STATUS
686 BYTE BatteryLifePercent;
688 DWORD BatteryLifeTime;
689 DWORD BatteryFullLifeTime;
690 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
693 typedef struct _SYSTEM_INFO
696 DWORD dwOemId; /* Obsolete field - do not use */
698 WORD wProcessorArchitecture;
703 LPVOID lpMinimumApplicationAddress;
704 LPVOID lpMaximumApplicationAddress;
705 DWORD dwActiveProcessorMask;
706 DWORD dwNumberOfProcessors;
707 DWORD dwProcessorType;
708 DWORD dwAllocationGranularity;
709 WORD wProcessorLevel;
710 WORD wProcessorRevision;
711 } SYSTEM_INFO, *LPSYSTEM_INFO;
713 typedef BOOL (CALLBACK *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG_PTR);
714 typedef BOOL (CALLBACK *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG_PTR);
715 typedef BOOL (CALLBACK *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG_PTR);
716 typedef BOOL (CALLBACK *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG_PTR);
717 typedef BOOL (CALLBACK *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG_PTR);
718 typedef BOOL (CALLBACK *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG_PTR);
720 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
721 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
722 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
724 /* flags that can be passed to LoadLibraryEx */
725 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
726 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
727 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
729 typedef PLDT_ENTRY LPLDT_ENTRY;
731 typedef enum _GET_FILEEX_INFO_LEVELS {
732 GetFileExInfoStandard
733 } GET_FILEEX_INFO_LEVELS;
735 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
736 DWORD dwFileAttributes;
737 FILETIME ftCreationTime;
738 FILETIME ftLastAccessTime;
739 FILETIME ftLastWriteTime;
742 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
745 * This one seems to be a Win32 only definition. It also is defined with
746 * WINAPI instead of CALLBACK in the windows headers.
748 typedef DWORD (CALLBACK *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
749 LARGE_INTEGER, DWORD, DWORD, HANDLE,
753 #define WAIT_FAILED 0xffffffff
754 #define WAIT_OBJECT_0 0
755 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
756 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
757 #define WAIT_IO_COMPLETION STATUS_USER_APC
758 #define WAIT_TIMEOUT STATUS_TIMEOUT
759 #define STILL_ACTIVE STATUS_PENDING
762 #define FILE_CURRENT 1
765 #define FILE_MAP_COPY 0x00000001
766 #define FILE_MAP_WRITE 0x00000002
767 #define FILE_MAP_READ 0x00000004
768 #define FILE_MAP_ALL_ACCESS 0x000f001f
769 #define FILE_MAP_EXECUTE 0x00000020
771 #define MOVEFILE_REPLACE_EXISTING 0x00000001
772 #define MOVEFILE_COPY_ALLOWED 0x00000002
773 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
775 #define REPLACEFILE_WRITE_THROUGH 0x00000001
776 #define REPLACEFILE_IGNORE_MERGE_ERRORS 0x00000002
778 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
779 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
780 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
781 #define FS_PERSISTENT_ACLS FILE_PERSISTENT_ACLS
782 #define FS_VOL_IS_COMPRESSED FILE_VOLUME_IS_COMPRESSED
783 #define FS_FILE_COMPRESSION FILE_FILE_COMPRESSION
785 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
786 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
787 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
788 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
789 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
790 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
791 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
792 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
793 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
794 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
795 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
796 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
797 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
798 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
799 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
800 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
801 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
802 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
803 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
804 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
805 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
806 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
807 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
809 #define HANDLE_FLAG_INHERIT 0x00000001
810 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
812 #define HINSTANCE_ERROR 32
814 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
815 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
816 #define THREAD_PRIORITY_NORMAL 0
817 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
818 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
819 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
820 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
821 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
823 /* flags to FormatMessage */
824 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
825 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
826 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
827 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
828 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
829 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
830 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
832 /* flags to ACTCTX[AW] */
833 #define ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID (0x00000001)
834 #define ACTCTX_FLAG_LANGID_VALID (0x00000002)
835 #define ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID (0x00000004)
836 #define ACTCTX_FLAG_RESOURCE_NAME_VALID (0x00000008)
837 #define ACTCTX_FLAG_SET_PROCESS_DEFAULT (0x00000010)
838 #define ACTCTX_FLAG_APPLICATION_NAME_VALID (0x00000020)
839 #define ACTCTX_FLAG_SOURCE_IS_ASSEMBLYREF (0x00000040)
840 #define ACTCTX_FLAG_HMODULE_VALID (0x00000080)
842 /* flags to DeactiveActCtx */
843 #define DEACTIVATE_ACTCTX_FLAG_FORCE_EARLY_DEACTIVATION (0x00000001)
845 /* flags to FindActCtxSection{Guid,String[AW]} */
846 #define FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX (0x00000001)
847 #define FIND_ACTCTX_SECTION_KEY_RETURN_FLAGS (0x00000002)
848 #define FIND_ACTCTX_SECTION_KEY_RETURN_ASSEMBLY_METADATA (0x00000004)
850 /* flags to QueryActCtxW */
851 #define QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX (0x00000004)
852 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE (0x00000008)
853 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS (0x00000010)
854 #define QUERY_ACTCTX_FLAG_NO_ADDREF (0x80000000)
856 typedef struct tagACTCTXA {
860 USHORT wProcessorArchitecture;
862 LPCSTR lpAssemblyDirectory;
863 LPCSTR lpResourceName;
864 LPCSTR lpApplicationName;
866 } ACTCTXA, *PACTCTXA;
868 typedef struct tagACTCTXW {
872 USHORT wProcessorArchitecture;
874 LPCWSTR lpAssemblyDirectory;
875 LPCWSTR lpResourceName;
876 LPCWSTR lpApplicationName;
878 } ACTCTXW, *PACTCTXW;
880 DECL_WINELIB_TYPE_AW(ACTCTX)
881 DECL_WINELIB_TYPE_AW(PACTCTX)
883 typedef const ACTCTXA *PCACTCTXA;
884 typedef const ACTCTXW *PCACTCTXW;
885 DECL_WINELIB_TYPE_AW(PCACTCTX)
887 typedef struct tagACTCTX_SECTION_KEYED_DATA_2600 {
889 ULONG ulDataFormatVersion;
892 PVOID lpSectionGlobalData;
893 ULONG ulSectionGlobalDataLength;
895 ULONG ulSectionTotalLength;
897 ULONG ulAssemblyRosterIndex;
898 } ACTCTX_SECTION_KEYED_DATA_2600, *PACTCTX_SECTION_KEYED_DATA_2600;
899 typedef const ACTCTX_SECTION_KEYED_DATA_2600 *PCACTCTX_SECTION_KEYED_DATA_2600;
901 typedef struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA {
904 ULONG ulSectionLength;
905 PVOID lpSectionGlobalDataBase;
906 ULONG ulSectionGlobalDataLength;
907 } ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, *PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA;
908 typedef const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA *PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA;
910 typedef struct tagACTCTX_SECTION_KEYED_DATA {
912 ULONG ulDataFormatVersion;
915 PVOID lpSectionGlobalData;
916 ULONG ulSectionGlobalDataLength;
918 ULONG ulSectionTotalLength;
920 ULONG ulAssemblyRosterIndex;
922 /* Non 2600 extra fields */
924 ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA AssemblyMetadata;
925 } ACTCTX_SECTION_KEYED_DATA, *PACTCTX_SECTION_KEYED_DATA;
926 typedef const ACTCTX_SECTION_KEYED_DATA *PCACTCTX_SECTION_KEYED_DATA;
928 typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION {
931 } ACTIVATION_CONTEXT_BASIC_INFORMATION, *PACTIVATION_CONTEXT_BASIC_INFORMATION;
933 typedef BOOL (WINAPI *PQUERYACTCTXW_FUNC)(DWORD,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T *);
935 typedef struct tagCOMSTAT
944 DWORD fReserved : 25;
947 } COMSTAT, *LPCOMSTAT;
949 typedef struct tagDCB
955 unsigned fOutxCtsFlow :1;
956 unsigned fOutxDsrFlow :1;
957 unsigned fDtrControl :2;
958 unsigned fDsrSensitivity :1;
959 unsigned fTXContinueOnXoff :1;
962 unsigned fErrorChar :1;
964 unsigned fRtsControl :2;
965 unsigned fAbortOnError :1;
966 unsigned fDummy2 :17;
981 typedef struct tagCOMMCONFIG {
986 DWORD dwProviderSubType;
987 DWORD dwProviderOffset;
988 DWORD dwProviderSize;
989 DWORD wcProviderData[1];
990 } COMMCONFIG, *LPCOMMCONFIG;
992 typedef struct tagCOMMPROP {
1000 DWORD dwProvSubType;
1001 DWORD dwProvCapabilities;
1002 DWORD dwSettableParams;
1003 DWORD dwSettableBaud;
1005 WORD wSettableStopParity;
1006 DWORD dwCurrentTxQueue;
1007 DWORD dwCurrentRxQueue;
1010 WCHAR wcProvChar[1];
1011 } COMMPROP, *LPCOMMPROP;
1013 #define SP_SERIALCOMM ((DWORD)1)
1015 #define BAUD_075 ((DWORD)0x01)
1016 #define BAUD_110 ((DWORD)0x02)
1017 #define BAUD_134_5 ((DWORD)0x04)
1018 #define BAUD_150 ((DWORD)0x08)
1019 #define BAUD_300 ((DWORD)0x10)
1020 #define BAUD_600 ((DWORD)0x20)
1021 #define BAUD_1200 ((DWORD)0x40)
1022 #define BAUD_1800 ((DWORD)0x80)
1023 #define BAUD_2400 ((DWORD)0x100)
1024 #define BAUD_4800 ((DWORD)0x200)
1025 #define BAUD_7200 ((DWORD)0x400)
1026 #define BAUD_9600 ((DWORD)0x800)
1027 #define BAUD_14400 ((DWORD)0x1000)
1028 #define BAUD_19200 ((DWORD)0x2000)
1029 #define BAUD_38400 ((DWORD)0x4000)
1030 #define BAUD_56K ((DWORD)0x8000)
1031 #define BAUD_57600 ((DWORD)0x40000)
1032 #define BAUD_115200 ((DWORD)0x20000)
1033 #define BAUD_128K ((DWORD)0x10000)
1034 #define BAUD_USER ((DWORD)0x10000000)
1036 #define PST_FAX ((DWORD)0x21)
1037 #define PST_LAT ((DWORD)0x101)
1038 #define PST_MODEM ((DWORD)0x06)
1039 #define PST_NETWORK_BRIDGE ((DWORD)0x100)
1040 #define PST_PARALLEL_PORT ((DWORD)0x02)
1041 #define PST_RS232 ((DWORD)0x01)
1042 #define PST_RS442 ((DWORD)0x03)
1043 #define PST_RS423 ((DWORD)0x04)
1044 #define PST_RS449 ((DWORD)0x06)
1045 #define PST_SCANNER ((DWORD)0x22)
1046 #define PST_TCPIP_TELNET ((DWORD)0x102)
1047 #define PST_UNSPECIFIED ((DWORD)0x00)
1048 #define PST_X25 ((DWORD)0x103)
1050 #define PCF_16BITMODE ((DWORD)0x200)
1051 #define PCF_DTRDSR ((DWORD)0x01)
1052 #define PCF_INTTIMEOUTS ((DWORD)0x80)
1053 #define PCF_PARITY_CHECK ((DWORD)0x08)
1054 #define PCF_RLSD ((DWORD)0x04)
1055 #define PCF_RTSCTS ((DWORD)0x02)
1056 #define PCF_SETXCHAR ((DWORD)0x20)
1057 #define PCF_SPECIALCHARS ((DWORD)0x100)
1058 #define PCF_TOTALTIMEOUTS ((DWORD)0x40)
1059 #define PCF_XONXOFF ((DWORD)0x10)
1061 #define SP_BAUD ((DWORD)0x02)
1062 #define SP_DATABITS ((DWORD)0x04)
1063 #define SP_HANDSHAKING ((DWORD)0x10)
1064 #define SP_PARITY ((DWORD)0x01)
1065 #define SP_PARITY_CHECK ((DWORD)0x20)
1066 #define SP_RLSD ((DWORD)0x40)
1067 #define SP_STOPBITS ((DWORD)0x08)
1069 #define DATABITS_5 ((DWORD)0x01)
1070 #define DATABITS_6 ((DWORD)0x02)
1071 #define DATABITS_7 ((DWORD)0x04)
1072 #define DATABITS_8 ((DWORD)0x08)
1073 #define DATABITS_16 ((DWORD)0x10)
1074 #define DATABITS_16X ((DWORD)0x20)
1076 #define STOPBITS_10 ((DWORD)1)
1077 #define STOPBITS_15 ((DWORD)2)
1078 #define STOPBITS_20 ((DWORD)4)
1080 #define PARITY_NONE ((DWORD)0x100)
1081 #define PARITY_ODD ((DWORD)0x200)
1082 #define PARITY_EVEN ((DWORD)0x400)
1083 #define PARITY_MARK ((DWORD)0x800)
1084 #define PARITY_SPACE ((DWORD)0x1000)
1086 typedef struct tagCOMMTIMEOUTS {
1087 DWORD ReadIntervalTimeout;
1088 DWORD ReadTotalTimeoutMultiplier;
1089 DWORD ReadTotalTimeoutConstant;
1090 DWORD WriteTotalTimeoutMultiplier;
1091 DWORD WriteTotalTimeoutConstant;
1092 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1094 typedef void (CALLBACK *PAPCFUNC)(ULONG_PTR);
1095 typedef void (CALLBACK *PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD);
1097 typedef enum _COMPUTER_NAME_FORMAT
1099 ComputerNameNetBIOS,
1100 ComputerNameDnsHostname,
1101 ComputerNameDnsDomain,
1102 ComputerNameDnsFullyQualified,
1103 ComputerNamePhysicalNetBIOS,
1104 ComputerNamePhysicalDnsHostname,
1105 ComputerNamePhysicalDnsDomain,
1106 ComputerNamePhysicalDnsFullyQualified,
1108 } COMPUTER_NAME_FORMAT;
1110 #define HW_PROFILE_GUIDLEN 39
1111 #define MAX_PROFILE_LEN 80
1113 #define DOCKINFO_UNDOCKED 0x1
1114 #define DOCKINFO_DOCKED 0x2
1115 #define DOCKINFO_USER_SUPPLIED 0x4
1116 #define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_UNDOCKED)
1117 #define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_DOCKED)
1119 typedef struct tagHW_PROFILE_INFOA {
1121 CHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
1122 CHAR szHwProfileName[MAX_PROFILE_LEN];
1123 } HW_PROFILE_INFOA, *LPHW_PROFILE_INFOA;
1125 typedef struct tagHW_PROFILE_INFOW {
1127 WCHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
1128 WCHAR szHwProfileName[MAX_PROFILE_LEN];
1129 } HW_PROFILE_INFOW, *LPHW_PROFILE_INFOW;
1131 DECL_WINELIB_TYPE_AW(HW_PROFILE_INFO)
1132 DECL_WINELIB_TYPE_AW(LPHW_PROFILE_INFO)
1134 /* Stream data structures and defines */
1135 /*the types of backup data -- WIN32_STREAM_ID.dwStreamId below*/
1136 #define BACKUP_INVALID 0
1137 #define BACKUP_DATA 1
1138 #define BACKUP_EA_DATA 2
1139 #define BACKUP_SECURITY_DATA 3
1140 #define BACKUP_ALTERNATE_DATA 4
1141 #define BACKUP_LINK 5
1142 #define BACKUP_PROPERTY_DATA 6
1143 #define BACKUP_OBJECT_ID 7
1144 #define BACKUP_REPARSE_DATA 8
1145 #define BACKUP_SPARSE_BLOCK 9
1147 /*flags for WIN32_STREAM_ID.dwStreamAttributes below*/
1148 #define STREAM_NORMAL_ATTRIBUTE 0
1149 #define STREAM_MODIFIED_WHEN_READ 1
1150 #define STREAM_CONTAINS_SECURITY 2
1151 #define STREAM_CONTAINS_PROPERTIES 4
1152 #define STREAM_SPARSE_ATTRIBUTE 8
1154 #include <pshpack8.h>
1155 typedef struct _WIN32_STREAM_ID {
1157 DWORD dwStreamAttributes;
1158 LARGE_INTEGER DECLSPEC_ALIGN(8) Size;
1159 DWORD dwStreamNameSize;
1160 WCHAR cStreamName[ANYSIZE_ARRAY];
1161 } WIN32_STREAM_ID, *LPWIN32_STREAM_ID;
1162 #include <poppack.h>
1165 /* GetBinaryType return values.
1168 #define SCS_32BIT_BINARY 0
1169 #define SCS_DOS_BINARY 1
1170 #define SCS_WOW_BINARY 2
1171 #define SCS_PIF_BINARY 3
1172 #define SCS_POSIX_BINARY 4
1173 #define SCS_OS216_BINARY 5
1175 /* flags for DefineDosDevice */
1176 #define DDD_RAW_TARGET_PATH 0x00000001
1177 #define DDD_REMOVE_DEFINITION 0x00000002
1178 #define DDD_EXACT_MATCH_ON_REMOVE 0x00000004
1179 #define DDD_NO_BROADCAST_SYSTEM 0x00000008
1180 #define DDD_LUID_BROADCAST_DRIVE 0x00000010
1182 BOOL WINAPI ActivateActCtx(HANDLE,ULONG_PTR *);
1183 BOOL WINAPI AddAccessAllowedAce(PACL,DWORD,DWORD,PSID);
1184 BOOL WINAPI AddAccessAllowedAceEx(PACL,DWORD,DWORD,DWORD,PSID);
1185 BOOL WINAPI AddAccessDeniedAce(PACL,DWORD,DWORD,PSID);
1186 BOOL WINAPI AddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID);
1187 BOOL WINAPI AddAce(PACL,DWORD,DWORD,LPVOID,DWORD);
1188 ATOM WINAPI AddAtomA(LPCSTR);
1189 ATOM WINAPI AddAtomW(LPCWSTR);
1190 #define AddAtom WINELIB_NAME_AW(AddAtom)
1191 BOOL WINAPI AddAuditAccessAce(PACL,DWORD,DWORD,PSID,BOOL,BOOL);
1192 VOID WINAPI AddRefActCtx(HANDLE);
1193 PVOID WINAPI AddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER);
1194 BOOL WINAPI AdjustTokenGroups(HANDLE,BOOL,PTOKEN_GROUPS,DWORD,PTOKEN_GROUPS,PDWORD);
1195 BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
1196 BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1197 BOOL WINAPI AccessCheckAndAuditAlarmA(LPCSTR,LPVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPBOOL,LPBOOL);
1198 BOOL WINAPI AccessCheckAndAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPBOOL,LPBOOL);
1199 #define AccessCheckAndAuditAlarm WINELIB_NAME_AW(AccessCheckAndAuditAlarm)
1200 BOOL WINAPI AccessCheckByType(PSECURITY_DESCRIPTOR,PSID,HANDLE,DWORD,POBJECT_TYPE_LIST,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1201 BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,LPVOID,DWORD,LPVOID,LPDWORD);
1202 BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
1203 BOOL WINAPI AllocateLocallyUniqueId(PLUID);
1204 BOOL WINAPI AreAllAccessesGranted(DWORD,DWORD);
1205 BOOL WINAPI AreAnyAccessesGranted(DWORD,DWORD);
1206 BOOL WINAPI AreFileApisANSI(void);
1207 BOOL WINAPI AssignProcessToJobObject(HANDLE,HANDLE);
1208 BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
1209 BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
1210 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1211 BOOL WINAPI BackupRead(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1212 BOOL WINAPI BackupSeek(HANDLE,DWORD,DWORD,LPDWORD,LPDWORD,LPVOID*);
1213 BOOL WINAPI BackupWrite(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1214 BOOL WINAPI Beep(DWORD,DWORD);
1215 HANDLE WINAPI BeginUpdateResourceA(LPCSTR,BOOL);
1216 HANDLE WINAPI BeginUpdateResourceW(LPCWSTR,BOOL);
1217 #define BeginUpdateResource WINELIB_NAME_AW(BeginUpdateResource)
1218 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1219 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1220 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1221 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1222 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1223 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1224 BOOL WINAPI CallNamedPipeA(LPCSTR,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,DWORD);
1225 BOOL WINAPI CallNamedPipeW(LPCWSTR,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,DWORD);
1226 #define CallNamedPipe WINELIB_NAME_AW(CallNamedPipe)
1227 BOOL WINAPI CancelIo(HANDLE);
1228 BOOL WINAPI CancelWaitableTimer(HANDLE);
1229 BOOL WINAPI CheckTokenMembership(HANDLE,PSID,PBOOL);
1230 BOOL WINAPI ClearCommBreak(HANDLE);
1231 BOOL WINAPI ClearCommError(HANDLE,LPDWORD,LPCOMSTAT);
1232 BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1233 BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1234 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1235 BOOL WINAPI CloseEventLog(HANDLE);
1236 BOOL WINAPI CloseHandle(HANDLE);
1237 BOOL WINAPI CommConfigDialogA(LPCSTR,HWND,LPCOMMCONFIG);
1238 BOOL WINAPI CommConfigDialogW(LPCWSTR,HWND,LPCOMMCONFIG);
1239 #define CommConfigDialog WINELIB_NAME_AW(CommConfigDialog)
1240 BOOL WINAPI ConnectNamedPipe(HANDLE,LPOVERLAPPED);
1241 BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1242 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1243 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1244 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1245 #define CopyFile WINELIB_NAME_AW(CopyFile)
1246 BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1247 BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1248 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1249 BOOL WINAPI CopySid(DWORD,PSID,PSID);
1250 INT WINAPI CompareFileTime(const FILETIME*,const FILETIME*);
1251 BOOL WINAPI ConvertFiberToThread(void);
1252 LPVOID WINAPI ConvertThreadToFiber(LPVOID);
1253 LPVOID WINAPI ConvertThreadToFiberEx(LPVOID,DWORD);
1254 HANDLE WINAPI CreateActCtxA(PCACTCTXA);
1255 HANDLE WINAPI CreateActCtxW(PCACTCTXW);
1256 #define CreateActCtx WINELIB_NAME_AW(CreateActCtx)
1257 BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1258 BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1259 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1260 BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1261 BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1262 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1263 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1264 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1265 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1266 LPVOID WINAPI CreateFiber(SIZE_T,LPFIBER_START_ROUTINE,LPVOID);
1267 LPVOID WINAPI CreateFiberEx(SIZE_T,SIZE_T,DWORD,LPFIBER_START_ROUTINE,LPVOID);
1268 HANDLE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE);
1269 HANDLE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE);
1270 #define CreateFile WINELIB_NAME_AW(CreateFile)
1271 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCSTR);
1272 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCWSTR);
1273 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1274 HANDLE WINAPI CreateIoCompletionPort(HANDLE,HANDLE,ULONG_PTR,DWORD);
1275 HANDLE WINAPI CreateJobObjectA(LPSECURITY_ATTRIBUTES,LPCSTR);
1276 HANDLE WINAPI CreateJobObjectW(LPSECURITY_ATTRIBUTES,LPCWSTR);
1277 #define CreateJobObject WINELIB_NAME_AW(CreateJobObject)
1278 HANDLE WINAPI CreateMailslotA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1279 HANDLE WINAPI CreateMailslotW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1280 #define CreateMailslot WINELIB_NAME_AW(CreateMailslot)
1281 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1282 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1283 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1284 HANDLE WINAPI CreateNamedPipeA(LPCSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1285 HANDLE WINAPI CreateNamedPipeW(LPCWSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1286 #define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
1287 BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1288 BOOL WINAPI CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,
1289 PSECURITY_DESCRIPTOR*,BOOL,HANDLE,PGENERIC_MAPPING);
1290 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1291 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1292 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1293 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1294 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1295 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1296 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1297 BOOL WINAPI CreateProcessAsUserA(HANDLE,LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,
1298 BOOL,DWORD,LPVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1299 BOOL WINAPI CreateProcessAsUserW(HANDLE,LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,
1300 BOOL,DWORD,LPVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1301 #define CreateProcessAsUser WINELIB_NAME_AW(CreateProcessAsUser)
1302 HANDLE WINAPI CreateRemoteThread(HANDLE,LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1303 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1304 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1305 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1306 DWORD WINAPI CreateTapePartition(HANDLE,DWORD,DWORD,DWORD);
1307 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1308 HANDLE WINAPI CreateTimerQueue(void);
1309 BOOL WINAPI CreateTimerQueueTimer(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,DWORD,DWORD,ULONG);
1310 HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1311 HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1312 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1313 BOOL WINAPI DeactivateActCtx(DWORD,ULONG_PTR);
1314 BOOL WINAPI DebugActiveProcess(DWORD);
1315 BOOL WINAPI DebugActiveProcessStop(DWORD);
1316 void WINAPI DebugBreak(void);
1317 BOOL WINAPI DebugBreakProcess(HANDLE);
1318 BOOL WINAPI DebugSetProcessKillOnExit(BOOL);
1319 BOOL WINAPI DecryptFileA(LPCSTR,DWORD);
1320 BOOL WINAPI DecryptFileW(LPCWSTR,DWORD);
1321 #define DecryptFile WINELIB_NAME_AW(DecryptFile)
1322 BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1323 BOOL WINAPI DefineDosDeviceW(DWORD,LPCWSTR,LPCWSTR);
1324 #define DefineDosDevice WINELIB_NAME_AW(DefineDosDevice)
1325 #define DefineHandleTable(w) ((w),TRUE)
1326 BOOL WINAPI DeleteAce(PACL,DWORD);
1327 ATOM WINAPI DeleteAtom(ATOM);
1328 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1329 void WINAPI DeleteFiber(LPVOID);
1330 BOOL WINAPI DeleteFileA(LPCSTR);
1331 BOOL WINAPI DeleteFileW(LPCWSTR);
1332 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1333 BOOL WINAPI DeleteTimerQueueEx(HANDLE,HANDLE);
1334 BOOL WINAPI DeleteTimerQueueTimer(HANDLE,HANDLE,HANDLE);
1335 BOOL WINAPI DeleteVolumeMountPointA(LPCSTR);
1336 BOOL WINAPI DeleteVolumeMountPointW(LPCWSTR);
1337 #define DeleteVolumeMountPoint WINELIB_NAME_AW(DeleteVolumeMountPoint)
1338 BOOL WINAPI DeregisterEventSource(HANDLE);
1339 BOOL WINAPI DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR*);
1340 BOOL WINAPI DeviceIoControl(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1341 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1342 BOOL WINAPI DisconnectNamedPipe(HANDLE);
1343 BOOL WINAPI DnsHostnameToComputerNameA(LPCSTR,LPSTR,LPDWORD);
1344 BOOL WINAPI DnsHostnameToComputerNameW(LPCWSTR,LPWSTR,LPDWORD);
1345 #define DnsHostnameToComputerName WINELIB_NAME_AW(DnsHostnameToComputerName)
1346 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1347 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1348 BOOL WINAPI DuplicateToken(HANDLE,SECURITY_IMPERSONATION_LEVEL,PHANDLE);
1349 BOOL WINAPI DuplicateTokenEx(HANDLE,DWORD,LPSECURITY_ATTRIBUTES,SECURITY_IMPERSONATION_LEVEL,
1350 TOKEN_TYPE,PHANDLE);
1351 BOOL WINAPI EscapeCommFunction(HANDLE,UINT);
1352 BOOL WINAPI EncryptFileA(LPCSTR);
1353 BOOL WINAPI EncryptFileW(LPCWSTR);
1354 #define EncryptFile WINELIB_NAME_AW(EncryptFile)
1355 BOOL WINAPI EndUpdateResourceA(HANDLE,BOOL);
1356 BOOL WINAPI EndUpdateResourceW(HANDLE,BOOL);
1357 #define EndUpdateResource WINELIB_NAME_AW(EndUpdateResource)
1358 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1359 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,ENUMRESLANGPROCA,LONG_PTR);
1360 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,ENUMRESLANGPROCW,LONG_PTR);
1361 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1362 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,LONG_PTR);
1363 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,LONG_PTR);
1364 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1365 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG_PTR);
1366 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG_PTR);
1367 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1368 BOOL WINAPI EqualSid(PSID, PSID);
1369 BOOL WINAPI EqualPrefixSid(PSID,PSID);
1370 DWORD WINAPI EraseTape(HANDLE,DWORD,BOOL);
1371 VOID DECLSPEC_NORETURN WINAPI ExitProcess(DWORD);
1372 VOID DECLSPEC_NORETURN WINAPI ExitThread(DWORD);
1373 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1374 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1375 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1376 void WINAPI FatalAppExitA(UINT,LPCSTR);
1377 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1378 void WINAPI FatalExit(int);
1379 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1380 BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1381 BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1382 BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1383 BOOL WINAPI FindActCtxSectionStringA(DWORD,const GUID *,ULONG,LPCSTR,PACTCTX_SECTION_KEYED_DATA);
1384 BOOL WINAPI FindActCtxSectionStringW(DWORD,const GUID *,ULONG,LPCWSTR,PACTCTX_SECTION_KEYED_DATA);
1385 #define FindActCtxSectionString WINELIB_NAME_AW(FindActCtxSectionString)
1386 BOOL WINAPI FindActCtxSectionGuid(DWORD,const GUID *,ULONG,const GUID *,PACTCTX_SECTION_KEYED_DATA);
1387 ATOM WINAPI FindAtomA(LPCSTR);
1388 ATOM WINAPI FindAtomW(LPCWSTR);
1389 #define FindAtom WINELIB_NAME_AW(FindAtom)
1390 BOOL WINAPI FindClose(HANDLE);
1391 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1392 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1393 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1394 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1395 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1396 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1397 HANDLE WINAPI FindFirstFileExA(LPCSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1398 HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1399 #define FindFirstFileEx WINELIB_NAME_AW(FindFirstFileEx)
1400 BOOL WINAPI FindFirstFreeAce(PACL,LPVOID*);
1401 BOOL WINAPI FindNextChangeNotification(HANDLE);
1402 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1403 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1404 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1405 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1406 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1407 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1408 #define FindResource WINELIB_NAME_AW(FindResource)
1409 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1410 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1411 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1412 HANDLE WINAPI FindFirstVolumeA(LPSTR,DWORD);
1413 HANDLE WINAPI FindFirstVolumeW(LPWSTR,DWORD);
1414 #define FindFirstVolume WINELIB_NAME_AW(FindFirstVolume)
1415 HANDLE WINAPI FindFirstVolumeMountPointA(LPCSTR,LPSTR,DWORD);
1416 HANDLE WINAPI FindFirstVolumeMountPointW(LPCWSTR,LPWSTR,DWORD);
1417 #define FindFirstVolumeMountPoint WINELIB_NAME_AW(FindFirstVolumeMountPoint)
1418 BOOL WINAPI FindNextVolumeA(HANDLE,LPSTR,DWORD);
1419 BOOL WINAPI FindNextVolumeW(HANDLE,LPWSTR,DWORD);
1420 #define FindNextVolume WINELIB_NAME_AW(FindNextVolume)
1421 BOOL WINAPI FindNextVolumeMountPointA(HANDLE,LPSTR,DWORD);
1422 BOOL WINAPI FindNextVolumeMountPointW(HANDLE,LPWSTR,DWORD);
1423 #define FindNextVolumeMountPoint WINELIB_NAME_AW(FindNextVolumeMountPoint)
1424 BOOL WINAPI FindVolumeClose(HANDLE);
1425 BOOL WINAPI FindVolumeMountPointClose(HANDLE);
1426 BOOL WINAPI FlushFileBuffers(HANDLE);
1427 BOOL WINAPI FlushInstructionCache(HANDLE,LPCVOID,SIZE_T);
1428 BOOL WINAPI FlushViewOfFile(LPCVOID,SIZE_T);
1429 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,DWORD,va_list*);
1430 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,DWORD,va_list*);
1431 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1432 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1433 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1434 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1435 BOOL WINAPI FreeLibrary(HMODULE);
1436 VOID WINAPI FreeLibraryAndExitThread(HINSTANCE,DWORD);
1437 #define FreeModule(handle) FreeLibrary(handle)
1438 #define FreeProcInstance(proc) /*nothing*/
1439 BOOL WINAPI FreeResource(HGLOBAL);
1440 PVOID WINAPI FreeSid(PSID);
1441 BOOL WINAPI GetAce(PACL,DWORD,LPVOID*);
1442 BOOL WINAPI GetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS);
1443 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1444 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1445 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1446 BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1447 BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1448 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1449 BOOL WINAPI GetCurrentActCtx(HANDLE *);
1450 BOOL WINAPI GetCommConfig(HANDLE,LPCOMMCONFIG,LPDWORD);
1451 BOOL WINAPI GetCommMask(HANDLE,LPDWORD);
1452 BOOL WINAPI GetCommModemStatus(HANDLE,LPDWORD);
1453 BOOL WINAPI GetCommProperties(HANDLE,LPCOMMPROP);
1454 BOOL WINAPI GetCommState(HANDLE,LPDCB);
1455 BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1456 LPSTR WINAPI GetCommandLineA(void);
1457 LPWSTR WINAPI GetCommandLineW(void);
1458 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1459 DWORD WINAPI GetCompressedFileSizeA(LPCSTR,LPDWORD);
1460 DWORD WINAPI GetCompressedFileSizeW(LPCWSTR,LPDWORD);
1461 #define GetCompressedFileSize WINELIB_NAME_AW(GetCompressedFileSize)
1462 BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1463 BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1464 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1465 BOOL WINAPI GetComputerNameExA(COMPUTER_NAME_FORMAT,LPSTR,LPDWORD);
1466 BOOL WINAPI GetComputerNameExW(COMPUTER_NAME_FORMAT,LPWSTR,LPDWORD);
1467 #define GetComputerNameEx WINELIB_NAME_AW(GetComputerNameEx)
1468 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1469 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1470 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1471 BOOL WINAPI GetCurrentHwProfileA(LPHW_PROFILE_INFOA);
1472 BOOL WINAPI GetCurrentHwProfileW(LPHW_PROFILE_INFOW);
1473 #define GetCurrentHwProfile WINELIB_NAME_AW(GetCurrentHwProfile)
1474 HANDLE WINAPI GetCurrentProcess(void);
1475 HANDLE WINAPI GetCurrentThread(void);
1476 #define GetCurrentTime() GetTickCount()
1477 BOOL WINAPI GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,LPDWORD);
1478 BOOL WINAPI GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,LPDWORD);
1479 #define GetDefaultCommConfig WINELIB_NAME_AW(GetDefaultCommConfig)
1480 BOOL WINAPI GetDevicePowerState(HANDLE,BOOL*);
1481 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1482 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1483 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1484 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1485 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1486 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1487 DWORD WINAPI GetDllDirectoryA(DWORD,LPSTR);
1488 DWORD WINAPI GetDllDirectoryW(DWORD,LPWSTR);
1489 #define GetDllDirectory WINELIB_NAME_AW(GetDllDirectory)
1490 UINT WINAPI GetDriveTypeA(LPCSTR);
1491 UINT WINAPI GetDriveTypeW(LPCWSTR);
1492 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1493 LPSTR WINAPI GetEnvironmentStringsA(void);
1494 LPWSTR WINAPI GetEnvironmentStringsW(void);
1495 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1496 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1497 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1498 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1499 BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1500 BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1501 DWORD WINAPI GetFileAttributesA(LPCSTR);
1502 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1503 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1504 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1505 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1506 #define GetFileAttributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1507 BOOL WINAPI GetFileInformationByHandle(HANDLE,BY_HANDLE_FILE_INFORMATION*);
1508 BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1509 BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1510 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1511 DWORD WINAPI GetFileSize(HANDLE,LPDWORD);
1512 BOOL WINAPI GetFileSizeEx(HANDLE,PLARGE_INTEGER);
1513 BOOL WINAPI GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME);
1514 DWORD WINAPI GetFileType(HANDLE);
1515 #define GetFreeSpace(w) (0x100000L)
1516 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1517 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1518 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1519 BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1520 BOOL WINAPI GetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1521 DWORD WINAPI GetLengthSid(PSID);
1522 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1523 DWORD WINAPI GetLogicalDrives(void);
1524 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1525 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1526 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1527 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1528 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1529 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1530 BOOL WINAPI GetMailslotInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1531 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1532 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1533 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1534 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1535 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1536 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1537 BOOL WINAPI GetNamedPipeHandleStateA(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1538 BOOL WINAPI GetNamedPipeHandleStateW(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1539 #define GetNamedPipeHandleState WINELIB_NAME_AW(GetNamedPipeHandleState)
1540 BOOL WINAPI GetNamedPipeInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1541 BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
1542 BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
1543 BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL);
1544 DWORD WINAPI GetPriorityClass(HANDLE);
1545 BOOL WINAPI GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,PDWORD);
1546 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1547 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1548 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1549 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1550 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1551 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1552 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1553 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1554 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1555 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1556 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1557 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1558 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1559 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1560 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1561 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1562 BOOL WINAPI GetProcessAffinityMask(HANDLE,PDWORD,PDWORD);
1563 DWORD WINAPI GetProcessHeaps(DWORD,PHANDLE);
1564 DWORD WINAPI GetProcessId(HANDLE);
1565 BOOL WINAPI GetProcessIoCounters(HANDLE,PIO_COUNTERS);
1566 BOOL WINAPI GetProcessPriorityBoost(HANDLE,PBOOL);
1567 BOOL WINAPI GetProcessShutdownParameters(LPDWORD,LPDWORD);
1568 BOOL WINAPI GetProcessTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1569 DWORD WINAPI GetProcessVersion(DWORD);
1570 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,PSIZE_T,PSIZE_T);
1571 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1572 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1573 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1574 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1575 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1576 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1577 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1578 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1579 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1580 BOOL WINAPI GetQueuedCompletionStatus(HANDLE,LPDWORD,PULONG_PTR,LPOVERLAPPED*,DWORD);
1581 BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
1582 BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1583 BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1584 DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
1585 BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1586 BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1587 PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
1588 DWORD WINAPI GetSidLengthRequired(BYTE);
1589 PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
1590 PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
1591 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1592 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1593 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1594 VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1595 VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1596 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1597 HANDLE WINAPI GetStdHandle(DWORD);
1598 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1599 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1600 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1601 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1602 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1603 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1604 BOOL WINAPI GetSystemTimeAdjustment(PDWORD,PDWORD,PBOOL);
1605 VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME);
1606 UINT WINAPI GetSystemWindowsDirectoryA(LPSTR,UINT);
1607 UINT WINAPI GetSystemWindowsDirectoryW(LPWSTR,UINT);
1608 #define GetSystemWindowsDirectory WINELIB_NAME_AW(GetSystemWindowsDirectory)
1609 DWORD WINAPI GetTapeParameters(HANDLE,DWORD,LPDWORD,LPVOID);
1610 DWORD WINAPI GetTapePosition(HANDLE,DWORD,LPDWORD,LPDWORD,LPDWORD);
1611 DWORD WINAPI GetTapeStatus(HANDLE);
1612 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1613 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1614 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1615 DWORD WINAPI GetTempPathA(DWORD,LPSTR);
1616 DWORD WINAPI GetTempPathW(DWORD,LPWSTR);
1617 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1618 DWORD WINAPI GetTickCount(void);
1619 DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION);
1620 BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
1621 INT WINAPI GetThreadPriority(HANDLE);
1622 BOOL WINAPI GetThreadPriorityBoost(HANDLE,PBOOL);
1623 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1624 BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1625 BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
1626 BOOL WINAPI GetUserNameA(LPSTR,LPDWORD);
1627 BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD);
1628 #define GetUserName WINELIB_NAME_AW(GetUserName)
1629 DWORD WINAPI GetVersion(void);
1630 BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1631 BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1632 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1633 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1634 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1635 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1636 BOOL WINAPI GetVolumeNameForVolumeMountPointA(LPCSTR,LPSTR,DWORD);
1637 BOOL WINAPI GetVolumeNameForVolumeMountPointW(LPCWSTR,LPWSTR,DWORD);
1638 #define GetVolumeNameForVolumeMountPoint WINELIB_NAME_AW(GetVolumeNameForVolumeMountPoint)
1639 BOOL WINAPI GetVolumePathNameA(LPCSTR,LPSTR,DWORD);
1640 BOOL WINAPI GetVolumePathNameW(LPCWSTR,LPWSTR,DWORD);
1641 #define GetVolumePathName WINELIB_NAME_AW(GetVolumePathName)
1642 BOOL WINAPI GetVolumePathNamesForVolumeNameA(LPCSTR,LPSTR,DWORD,PDWORD);
1643 BOOL WINAPI GetVolumePathNamesForVolumeNameW(LPCWSTR,LPWSTR,DWORD,PDWORD);
1644 #define GetVolumePathNamesForVolumeName WINELIB_NAME_AW(GetVolumePathNamesForVolumeName)
1645 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1646 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1647 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1648 ATOM WINAPI GlobalAddAtomA(LPCSTR);
1649 ATOM WINAPI GlobalAddAtomW(LPCWSTR);
1650 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
1651 HGLOBAL WINAPI GlobalAlloc(UINT,SIZE_T);
1652 SIZE_T WINAPI GlobalCompact(DWORD);
1653 ATOM WINAPI GlobalDeleteAtom(ATOM);
1654 ATOM WINAPI GlobalFindAtomA(LPCSTR);
1655 ATOM WINAPI GlobalFindAtomW(LPCWSTR);
1656 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
1657 VOID WINAPI GlobalFix(HGLOBAL);
1658 UINT WINAPI GlobalFlags(HGLOBAL);
1659 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1660 UINT WINAPI GlobalGetAtomNameA(ATOM,LPSTR,INT);
1661 UINT WINAPI GlobalGetAtomNameW(ATOM,LPWSTR,INT);
1662 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
1663 HGLOBAL WINAPI GlobalHandle(LPCVOID);
1664 LPVOID WINAPI GlobalLock(HGLOBAL);
1665 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1666 BOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX);
1667 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,SIZE_T,UINT);
1668 SIZE_T WINAPI GlobalSize(HGLOBAL);
1669 VOID WINAPI GlobalUnfix(HGLOBAL);
1670 BOOL WINAPI GlobalUnlock(HGLOBAL);
1671 BOOL WINAPI GlobalUnWire(HGLOBAL);
1672 LPVOID WINAPI GlobalWire(HGLOBAL);
1673 #define HasOverlappedCompleted(lpOverlapped) ((lpOverlapped)->Internal != STATUS_PENDING)
1674 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,SIZE_T);
1675 SIZE_T WINAPI HeapCompact(HANDLE,DWORD);
1676 HANDLE WINAPI HeapCreate(DWORD,SIZE_T,SIZE_T);
1677 BOOL WINAPI HeapDestroy(HANDLE);
1678 BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1679 BOOL WINAPI HeapLock(HANDLE);
1680 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,SIZE_T);
1681 SIZE_T WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1682 BOOL WINAPI HeapUnlock(HANDLE);
1683 BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1684 BOOL WINAPI HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY);
1685 BOOL WINAPI InitAtomTable(DWORD);
1686 BOOL WINAPI InitializeAcl(PACL,DWORD,DWORD);
1687 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1688 BOOL WINAPI InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION *,DWORD);
1689 BOOL WINAPI InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD);
1690 BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1691 BOOL WINAPI IsBadCodePtr(FARPROC);
1692 BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1693 BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1694 BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1695 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1696 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1697 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1698 BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1699 BOOL WINAPI IsDebuggerPresent(void);
1700 BOOL WINAPI IsSystemResumeAutomatic(void);
1701 BOOL WINAPI IsTextUnicode(LPCVOID,INT,LPINT);
1702 BOOL WINAPI IsTokenRestricted(HANDLE);
1703 BOOL WINAPI IsValidAcl(PACL);
1704 BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1705 BOOL WINAPI IsValidSid(PSID);
1706 BOOL WINAPI ImpersonateLoggedOnUser(HANDLE);
1707 BOOL WINAPI ImpersonateNamedPipeClient(HANDLE);
1708 BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1709 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1710 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1711 HMODULE WINAPI LoadLibraryA(LPCSTR);
1712 HMODULE WINAPI LoadLibraryW(LPCWSTR);
1713 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1714 HMODULE WINAPI LoadLibraryExA(LPCSTR,HANDLE,DWORD);
1715 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HANDLE,DWORD);
1716 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1717 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1718 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1719 HLOCAL WINAPI LocalAlloc(UINT,SIZE_T);
1720 SIZE_T WINAPI LocalCompact(UINT);
1721 UINT WINAPI LocalFlags(HLOCAL);
1722 HLOCAL WINAPI LocalFree(HLOCAL);
1723 HLOCAL WINAPI LocalHandle(LPCVOID);
1724 LPVOID WINAPI LocalLock(HLOCAL);
1725 HLOCAL WINAPI LocalReAlloc(HLOCAL,SIZE_T,UINT);
1726 SIZE_T WINAPI LocalShrink(HGLOBAL,UINT);
1727 SIZE_T WINAPI LocalSize(HLOCAL);
1728 BOOL WINAPI LocalUnlock(HLOCAL);
1729 LPVOID WINAPI LockResource(HGLOBAL);
1730 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1731 BOOL WINAPI LookupAccountNameA(LPCSTR,LPCSTR,PSID,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
1732 BOOL WINAPI LookupAccountNameW(LPCWSTR,LPCWSTR,PSID,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE);
1733 #define LookupAccountName WINELIB_NAME_AW(LookupAccountName)
1734 BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
1735 BOOL WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE);
1736 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSid)
1737 BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1738 BOOL WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1739 BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1740 BOOL WINAPI LogonUserA(LPCSTR,LPCSTR,LPCSTR,DWORD,DWORD,PHANDLE);
1741 BOOL WINAPI LogonUserW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,PHANDLE);
1742 #define LogonUser WINELIB_NAME_AW(LogonUser)
1743 BOOL WINAPI LookupPrivilegeDisplayNameA(LPCSTR,LPCSTR,LPSTR,LPDWORD,LPDWORD);
1744 BOOL WINAPI LookupPrivilegeDisplayNameW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,LPDWORD);
1745 #define LookupPrivilegeDisplayName WINELIB_NAME_AW(LookupPrivilegeDisplayName)
1746 BOOL WINAPI LookupPrivilegeNameA(LPCSTR,PLUID,LPSTR,LPDWORD);
1747 BOOL WINAPI LookupPrivilegeNameW(LPCWSTR,PLUID,LPWSTR,LPDWORD);
1748 #define LookupPrivilegeName WINELIB_NAME_AW(LookupPrivilegeName)
1749 BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,PLUID);
1750 BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,PLUID);
1751 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1752 BOOL WINAPI MakeAbsoluteSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD,
1753 PACL,LPDWORD,PACL,LPDWORD,PSID,LPDWORD,PSID,LPDWORD);
1754 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1755 #define MakeProcInstance(proc,inst) (proc)
1756 BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
1757 VOID WINAPI MapGenericMask(PDWORD,PGENERIC_MAPPING);
1758 HMODULE WINAPI MapHModuleSL(WORD);
1759 WORD WINAPI MapHModuleLS(HMODULE);
1760 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,SIZE_T);
1761 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,SIZE_T,LPVOID);
1762 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1763 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1764 #define MoveFile WINELIB_NAME_AW(MoveFile)
1765 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1766 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1767 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1768 INT WINAPI MulDiv(INT,INT,INT);
1769 BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1770 BOOL WINAPI ObjectCloseAuditAlarmA(LPCSTR,LPVOID,BOOL);
1771 BOOL WINAPI ObjectCloseAuditAlarmW(LPCWSTR,LPVOID,BOOL);
1772 #define ObjectCloseAuditAlarm WINELIB_NAME_AW(ObjectCloseAuditAlarm)
1773 BOOL WINAPI ObjectOpenAuditAlarmA(LPCSTR,LPVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,HANDLE,
1774 DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,LPBOOL);
1775 BOOL WINAPI ObjectOpenAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,HANDLE,
1776 DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,LPBOOL);
1777 #define ObjectOpenAuditAlarm WINELIB_NAME_AW(ObjectOpenAuditAlarm)
1778 BOOL WINAPI ObjectPrivilegeAuditAlarmA(LPCSTR,LPVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL);
1779 BOOL WINAPI ObjectPrivilegeAuditAlarmW(LPCWSTR,LPVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL);
1780 #define ObjectPrivilegeAuditAlarm WINELIB_NAME_AW(ObjectPrivilegeAuditAlarm)
1781 HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1782 HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1783 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1784 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1785 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1786 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1787 HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
1788 HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1789 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1790 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1791 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1792 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1793 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1794 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1795 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1796 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1797 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1798 BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1799 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1800 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1801 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1802 HANDLE WINAPI OpenThread(DWORD,BOOL,DWORD);
1803 BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1804 HANDLE WINAPI OpenWaitableTimerA(DWORD,BOOL,LPCSTR);
1805 HANDLE WINAPI OpenWaitableTimerW(DWORD,BOOL,LPCWSTR);
1806 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
1807 VOID WINAPI OutputDebugStringA(LPCSTR);
1808 VOID WINAPI OutputDebugStringW(LPCWSTR);
1809 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1810 BOOL WINAPI PeekNamedPipe(HANDLE,PVOID,DWORD,PDWORD,PDWORD,PDWORD);
1811 DWORD WINAPI PrepareTape(HANDLE,DWORD,BOOL);
1812 BOOL WINAPI ProcessIdToSessionId(DWORD,DWORD*);
1813 BOOL WINAPI PrivilegeCheck(HANDLE,PPRIVILEGE_SET,LPBOOL);
1814 BOOL WINAPI PrivilegedServiceAuditAlarmA(LPCSTR,LPCSTR,HANDLE,PPRIVILEGE_SET,BOOL);
1815 BOOL WINAPI PrivilegedServiceAuditAlarmW(LPCWSTR,LPCWSTR,HANDLE,PPRIVILEGE_SET,BOOL);
1816 #define PrivilegedServiceAuditAlarm WINELIB_NAME_AW(PrivilegedServiceAuditAlarm)
1817 BOOL WINAPI PulseEvent(HANDLE);
1818 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1819 BOOL WINAPI QueryActCtxW(DWORD,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T *);
1820 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1821 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1822 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1823 BOOL WINAPI QueryPerformanceCounter(LARGE_INTEGER*);
1824 BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER*);
1825 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1826 BOOL WINAPI QueueUserWorkItem(LPTHREAD_START_ROUTINE,PVOID,ULONG);
1827 void WINAPI RaiseException(DWORD,DWORD,DWORD,const ULONG_PTR *);
1828 BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1829 BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1830 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1831 BOOL WINAPI ReadDirectoryChangesW(HANDLE,LPVOID,DWORD,BOOL,DWORD,LPDWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
1832 BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1833 BOOL WINAPI ReadFileEx(HANDLE,LPVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
1834 BOOL WINAPI ReadProcessMemory(HANDLE,LPCVOID,LPVOID,SIZE_T,SIZE_T*);
1835 HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
1836 HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1837 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1838 BOOL WINAPI RegisterWaitForSingleObject(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG);
1839 HANDLE WINAPI RegisterWaitForSingleObjectEx(HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG);
1840 VOID WINAPI ReleaseActCtx(HANDLE);
1841 BOOL WINAPI ReleaseMutex(HANDLE);
1842 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1843 ULONG WINAPI RemoveVectoredExceptionHandler(PVOID);
1844 BOOL WINAPI ReplaceFileA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPVOID,LPVOID);
1845 BOOL WINAPI ReplaceFileW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPVOID,LPVOID);
1846 #define ReplaceFile WINELIB_NAME_AW(ReplaceFile)
1847 BOOL WINAPI RemoveDirectoryA(LPCSTR);
1848 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1849 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1850 BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
1851 BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
1852 BOOL WINAPI RequestWakeupLatency(LATENCY_TIME latency);
1853 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
1854 BOOL WINAPI ResetEvent(HANDLE);
1855 DWORD WINAPI ResumeThread(HANDLE);
1856 BOOL WINAPI RevertToSelf(void);
1857 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1858 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1859 #define SearchPath WINELIB_NAME_AW(SearchPath)
1860 BOOL WINAPI SetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS);
1861 BOOL WINAPI SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD);
1862 BOOL WINAPI SetCommBreak(HANDLE);
1863 BOOL WINAPI SetCommMask(HANDLE,DWORD);
1864 BOOL WINAPI SetCommState(HANDLE,LPDCB);
1865 BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1866 BOOL WINAPI SetComputerNameA(LPCSTR);
1867 BOOL WINAPI SetComputerNameW(LPCWSTR);
1868 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1869 BOOL WINAPI SetComputerNameExA(COMPUTER_NAME_FORMAT,LPCSTR);
1870 BOOL WINAPI SetComputerNameExW(COMPUTER_NAME_FORMAT,LPCWSTR);
1871 #define SetComputerNameEx WINELIB_NAME_AW(SetComputerNameEx)
1872 DWORD WINAPI SetCriticalSectionSpinCount(LPCRITICAL_SECTION,DWORD);
1873 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1874 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1875 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1876 BOOL WINAPI SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD);
1877 BOOL WINAPI SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD);
1878 #define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1879 BOOL WINAPI SetDllDirectoryA(LPCSTR);
1880 BOOL WINAPI SetDllDirectoryW(LPCWSTR);
1881 #define SetDllDirectory WINELIB_NAME_AW(SetDllDirectory)
1882 BOOL WINAPI SetEndOfFile(HANDLE);
1883 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1884 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1885 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1886 UINT WINAPI SetErrorMode(UINT);
1887 BOOL WINAPI SetEvent(HANDLE);
1888 VOID WINAPI SetFileApisToANSI(void);
1889 VOID WINAPI SetFileApisToOEM(void);
1890 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1891 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1892 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1893 DWORD WINAPI SetFilePointer(HANDLE,LONG,LPLONG,DWORD);
1894 BOOL WINAPI SetFilePointerEx(HANDLE,LARGE_INTEGER,LARGE_INTEGER*,DWORD);
1895 BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1896 BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1897 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1898 BOOL WINAPI SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*);
1899 UINT WINAPI SetHandleCount(UINT);
1900 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1901 BOOL WINAPI SetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1902 BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
1903 BOOL WINAPI SetMailslotInfo(HANDLE,DWORD);
1904 BOOL WINAPI SetNamedPipeHandleState(HANDLE,LPDWORD,LPDWORD,LPDWORD);
1905 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1906 BOOL WINAPI SetPrivateObjectSecurity(SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,
1907 PSECURITY_DESCRIPTOR*,PGENERIC_MAPPING,HANDLE);
1908 BOOL WINAPI SetProcessAffinityMask(HANDLE,DWORD_PTR);
1909 BOOL WINAPI SetProcessPriorityBoost(HANDLE,BOOL);
1910 BOOL WINAPI SetProcessShutdownParameters(DWORD,DWORD);
1911 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,SIZE_T,SIZE_T);
1912 BOOL WINAPI SetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,SECURITY_DESCRIPTOR_CONTROL,
1913 SECURITY_DESCRIPTOR_CONTROL);
1914 BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1915 BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
1916 BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
1917 BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1918 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1919 #define SetSwapAreaSize(w) (w)
1920 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1921 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1922 BOOL WINAPI SetSystemTimeAdjustment(DWORD,BOOL);
1923 DWORD WINAPI SetTapeParameters(HANDLE,DWORD,LPVOID);
1924 DWORD WINAPI SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL);
1925 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1926 BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
1927 DWORD WINAPI SetThreadExecutionState(EXECUTION_STATE);
1928 DWORD WINAPI SetThreadIdealProcessor(HANDLE,DWORD);
1929 BOOL WINAPI SetThreadPriority(HANDLE,INT);
1930 BOOL WINAPI SetThreadPriorityBoost(HANDLE,BOOL);
1931 BOOL WINAPI SetThreadToken(PHANDLE,HANDLE);
1932 BOOL WINAPI SetTimeZoneInformation(const TIME_ZONE_INFORMATION *);
1933 BOOL WINAPI SetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD);
1934 BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
1935 BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
1936 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1937 BOOL WINAPI SetVolumeMountPointA(LPCSTR,LPCSTR);
1938 BOOL WINAPI SetVolumeMountPointW(LPCSTR,LPCSTR);
1939 #define SetVolumeMountPoint WINELIB_NAME_AW(SetVolumeMountPoint)
1940 BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,BOOL);
1941 BOOL WINAPI SetupComm(HANDLE,DWORD,DWORD);
1942 DWORD WINAPI SignalObjectAndWait(HANDLE,HANDLE,DWORD,BOOL);
1943 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1944 VOID WINAPI Sleep(DWORD);
1945 DWORD WINAPI SleepEx(DWORD,BOOL);
1946 DWORD WINAPI SuspendThread(HANDLE);
1947 void WINAPI SwitchToFiber(LPVOID);
1948 BOOL WINAPI SwitchToThread(void);
1949 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1950 BOOL WINAPI SystemTimeToTzSpecificLocalTime(LPTIME_ZONE_INFORMATION,LPSYSTEMTIME,LPSYSTEMTIME);
1951 BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1952 BOOL WINAPI TerminateThread(HANDLE,DWORD);
1953 DWORD WINAPI TlsAlloc(void);
1954 BOOL WINAPI TlsFree(DWORD);
1955 LPVOID WINAPI TlsGetValue(DWORD);
1956 BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1957 BOOL WINAPI TransactNamedPipe(HANDLE,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1958 BOOL WINAPI TransmitCommChar(HANDLE,CHAR);
1959 BOOL WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit);
1960 BOOL WINAPI TzSpecificLocalTimeToSystemTime(LPTIME_ZONE_INFORMATION,LPSYSTEMTIME,LPSYSTEMTIME);
1961 BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1962 BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
1963 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1964 BOOL WINAPI UnmapViewOfFile(LPVOID);
1965 BOOL WINAPI UnregisterWait(HANDLE);
1966 BOOL WINAPI UnregisterWaitEx(HANDLE,HANDLE);
1967 BOOL WINAPI UpdateResourceA(HANDLE,LPCSTR,LPCSTR,WORD,LPVOID,DWORD);
1968 BOOL WINAPI UpdateResourceW(HANDLE,LPCWSTR,LPCWSTR,WORD,LPVOID,DWORD);
1969 #define UpdateResource WINELIB_NAME_AW(UpdateResource)
1970 BOOL WINAPI VerifyVersionInfoA(LPOSVERSIONINFOEXA,DWORD,DWORDLONG);
1971 BOOL WINAPI VerifyVersionInfoW(LPOSVERSIONINFOEXW,DWORD,DWORDLONG);
1972 #define VerifyVersionInfo WINELIB_NAME_AW(VerifyVersionInfo)
1973 LPVOID WINAPI VirtualAlloc(LPVOID,SIZE_T,DWORD,DWORD);
1974 LPVOID WINAPI VirtualAllocEx(HANDLE,LPVOID,SIZE_T,DWORD,DWORD);
1975 BOOL WINAPI VirtualFree(LPVOID,SIZE_T,DWORD);
1976 BOOL WINAPI VirtualFreeEx(HANDLE,LPVOID,SIZE_T,DWORD);
1977 BOOL WINAPI VirtualLock(LPVOID,SIZE_T);
1978 BOOL WINAPI VirtualProtect(LPVOID,SIZE_T,DWORD,LPDWORD);
1979 BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,SIZE_T,DWORD,LPDWORD);
1980 SIZE_T WINAPI VirtualQuery(LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T);
1981 SIZE_T WINAPI VirtualQueryEx(HANDLE,LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T);
1982 BOOL WINAPI VirtualUnlock(LPVOID,SIZE_T);
1983 BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1984 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1985 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1986 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1987 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1988 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1989 BOOL WINAPI WaitNamedPipeA(LPCSTR,DWORD);
1990 BOOL WINAPI WaitNamedPipeW(LPCWSTR,DWORD);
1991 #define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
1992 UINT WINAPI WinExec(LPCSTR,UINT);
1993 BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1994 BOOL WINAPI WriteFileEx(HANDLE,LPCVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
1995 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1996 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1997 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1998 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
1999 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
2000 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
2001 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
2002 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
2003 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
2004 BOOL WINAPI WriteProcessMemory(HANDLE,LPVOID,LPCVOID,SIZE_T,SIZE_T*);
2005 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
2006 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
2007 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2008 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
2009 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
2010 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
2011 DWORD WINAPI WriteTapemark(HANDLE,DWORD,DWORD,BOOL);
2013 BOOL WINAPI ZombifyActCtx(HANDLE);
2015 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
2016 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
2017 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
2018 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
2019 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
2020 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
2021 INT WINAPI lstrlenA(LPCSTR);
2022 INT WINAPI lstrlenW(LPCWSTR);
2024 #if !defined(WINE_NO_INLINE_STRING) && defined(__WINESRC__)
2026 /* string functions without the exception handler */
2028 extern inline LPWSTR WINAPI lstrcpynW( LPWSTR dst, LPCWSTR src, INT n )
2034 while ((count > 1) && *s)
2043 extern inline LPSTR WINAPI lstrcpynA( LPSTR dst, LPCSTR src, INT n )
2049 while ((count > 1) && *s)
2058 extern inline INT WINAPI lstrlenW( LPCWSTR str )
2060 const WCHAR *s = str;
2065 extern inline INT WINAPI lstrlenA( LPCSTR str )
2067 return strlen( str );
2070 extern inline LPWSTR WINAPI lstrcpyW( LPWSTR dst, LPCWSTR src )
2073 while ((*p++ = *src++));
2077 extern inline LPSTR WINAPI lstrcpyA( LPSTR dst, LPCSTR src )
2079 return strcpy( dst, src );
2082 extern inline LPWSTR WINAPI lstrcatW( LPWSTR dst, LPCWSTR src )
2086 while ((*p++ = *src++));
2090 extern inline LPSTR WINAPI lstrcatA( LPSTR dst, LPCSTR src )
2092 return strcat( dst, src );
2095 /* strncpy doesn't do what you think, don't use it */
2097 #define strncpy(d,s,n) error do_not_use_strncpy_use_lstrcpynA_or_memcpy_instead
2099 #endif /* !defined(WINE_NO_INLINE_STRING) && defined(__WINESRC__) */
2101 #define lstrcat WINELIB_NAME_AW(lstrcat)
2102 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
2103 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
2104 #define lstrlen WINELIB_NAME_AW(lstrlen)
2106 LONG WINAPI _hread(HFILE,LPVOID,LONG);
2107 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
2108 HFILE WINAPI _lcreat(LPCSTR,INT);
2109 HFILE WINAPI _lclose(HFILE);
2110 LONG WINAPI _llseek(HFILE,LONG,INT);
2111 HFILE WINAPI _lopen(LPCSTR,INT);
2112 UINT WINAPI _lread(HFILE,LPVOID,UINT);
2113 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
2114 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
2115 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
2116 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
2117 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
2118 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
2119 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
2121 /* compatibility macros */
2122 #define FillMemory RtlFillMemory
2123 #define MoveMemory RtlMoveMemory
2124 #define ZeroMemory RtlZeroMemory
2125 #define CopyMemory RtlCopyMemory
2127 /* undocumented functions */
2129 typedef struct tagSYSLEVEL
2131 CRITICAL_SECTION crst;
2135 /* [GS]etProcessDword offsets */
2136 #define GPD_APP_COMPAT_FLAGS (-56)
2137 #define GPD_LOAD_DONE_EVENT (-52)
2138 #define GPD_HINSTANCE16 (-48)
2139 #define GPD_WINDOWS_VERSION (-44)
2140 #define GPD_THDB (-40)
2141 #define GPD_PDB (-36)
2142 #define GPD_STARTF_SHELLDATA (-32)
2143 #define GPD_STARTF_HOTKEY (-28)
2144 #define GPD_STARTF_SHOWWINDOW (-24)
2145 #define GPD_STARTF_SIZE (-20)
2146 #define GPD_STARTF_POSITION (-16)
2147 #define GPD_STARTF_FLAGS (-12)
2148 #define GPD_PARENT (- 8)
2149 #define GPD_FLAGS (- 4)
2150 #define GPD_USERDATA ( 0)
2152 void WINAPI DisposeLZ32Handle(HANDLE);
2153 HANDLE WINAPI DosFileHandleToWin32Handle(HFILE);
2154 DWORD WINAPI GetProcessDword(DWORD,INT);
2155 VOID WINAPI GetpWin16Lock(SYSLEVEL**);
2156 DWORD WINAPI MapLS(LPCVOID);
2157 LPVOID WINAPI MapSL(DWORD);
2158 VOID WINAPI ReleaseThunkLock(DWORD*);
2159 VOID WINAPI RestoreThunkLock(DWORD);
2160 VOID WINAPI UnMapLS(DWORD);
2161 HFILE WINAPI Win32HandleToDosFileHandle(HANDLE);
2162 VOID WINAPI _CheckNotSysLevel(SYSLEVEL *lock);
2163 DWORD WINAPI _ConfirmWin16Lock(void);
2164 DWORD WINAPI _ConfirmSysLevel(SYSLEVEL*);
2165 VOID WINAPI _EnterSysLevel(SYSLEVEL*);
2166 VOID WINAPI _LeaveSysLevel(SYSLEVEL*);
2169 /* Wine internal functions */
2171 extern char *wine_get_unix_file_name( LPCWSTR dos );
2172 extern WCHAR *wine_get_dos_file_name( LPCSTR str );
2175 /* a few optimizations for i386/gcc */
2177 #if defined(__i386__) && defined(__GNUC__) && defined(__WINESRC__) && !defined(_NTSYSTEM_)
2179 extern inline LONG WINAPI InterlockedCompareExchange( LONG volatile *dest, LONG xchg, LONG compare );
2180 extern inline LONG WINAPI InterlockedCompareExchange( LONG volatile *dest, LONG xchg, LONG compare )
2183 __asm__ __volatile__( "lock; cmpxchgl %2,(%1)"
2184 : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" );
2188 extern inline LONG WINAPI InterlockedExchange( LONG volatile *dest, LONG val );
2189 extern inline LONG WINAPI InterlockedExchange( LONG volatile *dest, LONG val )
2192 __asm__ __volatile__( "lock; xchgl %0,(%1)"
2193 : "=r" (ret) :"r" (dest), "0" (val) : "memory" );
2197 extern inline LONG WINAPI InterlockedExchangeAdd( LONG volatile *dest, LONG incr );
2198 extern inline LONG WINAPI InterlockedExchangeAdd( LONG volatile *dest, LONG incr )
2201 __asm__ __volatile__( "lock; xaddl %0,(%1)"
2202 : "=r" (ret) : "r" (dest), "0" (incr) : "memory" );
2206 extern inline LONG WINAPI InterlockedIncrement( LONG volatile *dest );
2207 extern inline LONG WINAPI InterlockedIncrement( LONG volatile *dest )
2209 return InterlockedExchangeAdd( dest, 1 ) + 1;
2212 extern inline LONG WINAPI InterlockedDecrement( LONG volatile *dest );
2213 extern inline LONG WINAPI InterlockedDecrement( LONG volatile *dest )
2215 return InterlockedExchangeAdd( dest, -1 ) - 1;
2218 extern inline DWORD WINAPI GetLastError(void);
2219 extern inline DWORD WINAPI GetLastError(void)
2222 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x34,%0" : "=r" (ret) );
2226 extern inline DWORD WINAPI GetCurrentProcessId(void);
2227 extern inline DWORD WINAPI GetCurrentProcessId(void)
2230 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x20,%0" : "=r" (ret) );
2234 extern inline DWORD WINAPI GetCurrentThreadId(void);
2235 extern inline DWORD WINAPI GetCurrentThreadId(void)
2238 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x24,%0" : "=r" (ret) );
2242 extern inline void WINAPI SetLastError( DWORD err );
2243 extern inline void WINAPI SetLastError( DWORD err )
2245 __asm__ __volatile__( ".byte 0x64\n\tmovl %0,0x34" : : "r" (err) : "memory" );
2248 extern inline HANDLE WINAPI GetProcessHeap(void);
2249 extern inline HANDLE WINAPI GetProcessHeap(void)
2252 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb) );
2253 return pdb[0x18 / sizeof(HANDLE)]; /* get dword at offset 0x18 in pdb */
2256 #else /* __i386__ && __GNUC__ && __WINESRC__ && !_NTSYSTEM_ */
2258 DWORD WINAPI GetCurrentProcessId(void);
2259 DWORD WINAPI GetCurrentThreadId(void);
2260 DWORD WINAPI GetLastError(void);
2261 HANDLE WINAPI GetProcessHeap(void);
2262 LONG WINAPI InterlockedCompareExchange(LONG volatile*,LONG,LONG);
2263 LONG WINAPI InterlockedDecrement(LONG volatile*);
2264 LONG WINAPI InterlockedExchange(LONG volatile*,LONG);
2265 LONG WINAPI InterlockedExchangeAdd(LONG volatile*,LONG);
2266 LONG WINAPI InterlockedIncrement(LONG volatile*);
2267 VOID WINAPI SetLastError(DWORD);
2269 #endif /* __i386__ && __GNUC__ && __WINESRC__ && !_NTSYSTEM_ */
2271 /* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */
2272 static inline PVOID WINAPI InterlockedCompareExchangePointer( PVOID volatile *dest, PVOID xchg, PVOID compare )
2274 return (PVOID)InterlockedCompareExchange( (PLONG)dest, (LONG)xchg, (LONG)compare );
2277 static inline PVOID WINAPI InterlockedExchangePointer( PVOID volatile *dest, PVOID val )
2279 return (PVOID)InterlockedExchange( (PLONG)dest, (LONG)val );
2283 #define GetCurrentProcess() ((HANDLE)0xffffffff)
2284 #define GetCurrentThread() ((HANDLE)0xfffffffe)
2287 /* WinMain(entry point) must be declared in winbase.h. */
2288 /* If this is not declared, we cannot compile many sources written with C++. */
2289 int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
2295 #endif /* __WINE_WINBASE_H */