wgl: Remove GL scissors/viewport override.
[wine/multimedia.git] / include / winbase.h
blob2ad4314a5e69b1933c6a10073d62b27fb0bf0dda
1 /*
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_WINBASE_H
20 #define __WINE_WINBASE_H
22 #include <winerror.h>
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
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
55 #define RIP_EVENT 9
57 typedef struct _EXCEPTION_DEBUG_INFO {
58 EXCEPTION_RECORD ExceptionRecord;
59 DWORD dwFirstChance;
60 } EXCEPTION_DEBUG_INFO;
62 typedef struct _CREATE_THREAD_DEBUG_INFO {
63 HANDLE hThread;
64 LPVOID lpThreadLocalBase;
65 LPTHREAD_START_ROUTINE lpStartAddress;
66 } CREATE_THREAD_DEBUG_INFO;
68 typedef struct _CREATE_PROCESS_DEBUG_INFO {
69 HANDLE hFile;
70 HANDLE hProcess;
71 HANDLE hThread;
72 LPVOID lpBaseOfImage;
73 DWORD dwDebugInfoFileOffset;
74 DWORD nDebugInfoSize;
75 LPVOID lpThreadLocalBase;
76 LPTHREAD_START_ROUTINE lpStartAddress;
77 LPVOID lpImageName;
78 WORD fUnicode;
79 } CREATE_PROCESS_DEBUG_INFO;
81 typedef struct _EXIT_THREAD_DEBUG_INFO {
82 DWORD dwExitCode;
83 } EXIT_THREAD_DEBUG_INFO;
85 typedef struct _EXIT_PROCESS_DEBUG_INFO {
86 DWORD dwExitCode;
87 } EXIT_PROCESS_DEBUG_INFO;
89 typedef struct _LOAD_DLL_DEBUG_INFO {
90 HANDLE hFile;
91 LPVOID lpBaseOfDll;
92 DWORD dwDebugInfoFileOffset;
93 DWORD nDebugInfoSize;
94 LPVOID lpImageName;
95 WORD fUnicode;
96 } LOAD_DLL_DEBUG_INFO;
98 typedef struct _UNLOAD_DLL_DEBUG_INFO {
99 LPVOID lpBaseOfDll;
100 } UNLOAD_DLL_DEBUG_INFO;
102 typedef struct _OUTPUT_DEBUG_STRING_INFO {
103 LPSTR lpDebugStringData;
104 WORD fUnicode;
105 WORD nDebugStringLength;
106 } OUTPUT_DEBUG_STRING_INFO;
108 typedef struct _RIP_INFO {
109 DWORD dwError;
110 DWORD dwType;
111 } RIP_INFO;
113 typedef struct _DEBUG_EVENT {
114 DWORD dwDebugEventCode;
115 DWORD dwProcessId;
116 DWORD dwThreadId;
117 union {
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;
126 RIP_INFO RipInfo;
127 } u;
128 } DEBUG_EVENT, *LPDEBUG_EVENT;
130 typedef PCONTEXT LPCONTEXT;
131 typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD;
132 typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS;
134 typedef LONG (CALLBACK *PTOP_LEVEL_EXCEPTION_FILTER)(PEXCEPTION_POINTERS);
135 typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER;
137 #define OFS_MAXPATHNAME 128
138 typedef struct _OFSTRUCT
140 BYTE cBytes;
141 BYTE fFixedDisk;
142 WORD nErrCode;
143 WORD Reserved1;
144 WORD Reserved2;
145 CHAR szPathName[OFS_MAXPATHNAME];
146 } OFSTRUCT, *POFSTRUCT, *LPOFSTRUCT;
148 #define OF_READ 0x0000
149 #define OF_WRITE 0x0001
150 #define OF_READWRITE 0x0002
151 #define OF_SHARE_COMPAT 0x0000
152 #define OF_SHARE_EXCLUSIVE 0x0010
153 #define OF_SHARE_DENY_WRITE 0x0020
154 #define OF_SHARE_DENY_READ 0x0030
155 #define OF_SHARE_DENY_NONE 0x0040
156 #define OF_PARSE 0x0100
157 #define OF_DELETE 0x0200
158 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
159 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
160 #define OF_CANCEL 0x0800
161 #define OF_CREATE 0x1000
162 #define OF_PROMPT 0x2000
163 #define OF_EXIST 0x4000
164 #define OF_REOPEN 0x8000
166 /* SetErrorMode values */
167 #define SEM_FAILCRITICALERRORS 0x0001
168 #define SEM_NOGPFAULTERRORBOX 0x0002
169 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
170 #define SEM_NOOPENFILEERRORBOX 0x8000
172 /* CopyFileEx flags */
173 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
174 #define COPY_FILE_RESTARTABLE 0x00000002
175 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
177 /* return values for CopyProgressRoutine */
178 #define PROGRESS_CONTINUE 0
179 #define PROGRESS_CANCEL 1
180 #define PROGRESS_STOP 2
181 #define PROGRESS_QUIET 3
183 /* reason codes for CopyProgressRoutine */
184 #define CALLBACK_CHUNK_FINISHED 0
185 #define CALLBACK_STREAM_SWITCH 1
187 /* GetTempFileName() Flags */
188 #define TF_FORCEDRIVE 0x80
190 #define DRIVE_UNKNOWN 0
191 #define DRIVE_NO_ROOT_DIR 1
192 #define DRIVE_REMOVABLE 2
193 #define DRIVE_FIXED 3
194 #define DRIVE_REMOTE 4
195 /* Win32 additions */
196 #define DRIVE_CDROM 5
197 #define DRIVE_RAMDISK 6
199 #define MAX_COMPUTERNAME_LENGTH 15
201 /* The security attributes structure */
202 typedef struct _SECURITY_ATTRIBUTES
204 DWORD nLength;
205 LPVOID lpSecurityDescriptor;
206 BOOL bInheritHandle;
207 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
209 #ifndef _FILETIME_
210 #define _FILETIME_
211 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
212 typedef struct _FILETIME
214 #ifdef WORDS_BIGENDIAN
215 DWORD dwHighDateTime;
216 DWORD dwLowDateTime;
217 #else
218 DWORD dwLowDateTime;
219 DWORD dwHighDateTime;
220 #endif
221 } FILETIME, *PFILETIME, *LPFILETIME;
222 #endif /* _FILETIME_ */
224 /* Find* structures */
225 typedef struct _WIN32_FIND_DATAA
227 DWORD dwFileAttributes;
228 FILETIME ftCreationTime;
229 FILETIME ftLastAccessTime;
230 FILETIME ftLastWriteTime;
231 DWORD nFileSizeHigh;
232 DWORD nFileSizeLow;
233 DWORD dwReserved0;
234 DWORD dwReserved1;
235 CHAR cFileName[260];
236 CHAR cAlternateFileName[14];
237 } WIN32_FIND_DATAA, *PWIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
239 typedef struct _WIN32_FIND_DATAW
241 DWORD dwFileAttributes;
242 FILETIME ftCreationTime;
243 FILETIME ftLastAccessTime;
244 FILETIME ftLastWriteTime;
245 DWORD nFileSizeHigh;
246 DWORD nFileSizeLow;
247 DWORD dwReserved0;
248 DWORD dwReserved1;
249 WCHAR cFileName[260];
250 WCHAR cAlternateFileName[14];
251 } WIN32_FIND_DATAW, *PWIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
253 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
254 DECL_WINELIB_TYPE_AW(PWIN32_FIND_DATA)
255 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
257 typedef enum _FINDEX_INFO_LEVELS
259 FindExInfoStandard,
260 FindExInfoMaxInfoLevel
261 } FINDEX_INFO_LEVELS;
263 typedef enum _FINDEX_SEARCH_OPS
265 FindExSearchNameMatch,
266 FindExSearchLimitToDirectories,
267 FindExSearchLimitToDevices,
268 FindExSearchMaxSearchOp
269 } FINDEX_SEARCH_OPS;
271 typedef struct _PROCESS_HEAP_ENTRY
273 LPVOID lpData;
274 DWORD cbData;
275 BYTE cbOverhead;
276 BYTE iRegionIndex;
277 WORD wFlags;
278 union {
279 struct {
280 HANDLE hMem;
281 DWORD dwReserved[3];
282 } Block;
283 struct {
284 DWORD dwCommittedSize;
285 DWORD dwUnCommittedSize;
286 LPVOID lpFirstBlock;
287 LPVOID lpLastBlock;
288 } Region;
289 } DUMMYUNIONNAME;
290 } PROCESS_HEAP_ENTRY, *PPROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY;
292 #define PROCESS_HEAP_REGION 0x0001
293 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
294 #define PROCESS_HEAP_ENTRY_BUSY 0x0004
295 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
296 #define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
298 #define INVALID_HANDLE_VALUE ((HANDLE)~0UL)
299 #define INVALID_FILE_SIZE ((DWORD)~0UL)
300 #define INVALID_SET_FILE_POINTER ((DWORD)~0UL)
301 #define INVALID_FILE_ATTRIBUTES ((DWORD)~0UL)
303 #define LOCKFILE_FAIL_IMMEDIATELY 1
304 #define LOCKFILE_EXCLUSIVE_LOCK 2
306 #define TLS_OUT_OF_INDEXES ((DWORD)~0UL)
308 #define SHUTDOWN_NORETRY 1
310 /* comm */
312 #define CBR_110 0xFF10
313 #define CBR_300 0xFF11
314 #define CBR_600 0xFF12
315 #define CBR_1200 0xFF13
316 #define CBR_2400 0xFF14
317 #define CBR_4800 0xFF15
318 #define CBR_9600 0xFF16
319 #define CBR_14400 0xFF17
320 #define CBR_19200 0xFF18
321 #define CBR_38400 0xFF1B
322 #define CBR_56000 0xFF1F
323 #define CBR_57600 0xFF20
324 #define CBR_115200 0xFF21
325 #define CBR_128000 0xFF23
326 #define CBR_256000 0xFF27
328 #define NOPARITY 0
329 #define ODDPARITY 1
330 #define EVENPARITY 2
331 #define MARKPARITY 3
332 #define SPACEPARITY 4
333 #define ONESTOPBIT 0
334 #define ONE5STOPBITS 1
335 #define TWOSTOPBITS 2
337 #define IGNORE 0
338 #define INFINITE 0xFFFFFFFF
340 #define CE_RXOVER 0x0001
341 #define CE_OVERRUN 0x0002
342 #define CE_RXPARITY 0x0004
343 #define CE_FRAME 0x0008
344 #define CE_BREAK 0x0010
345 #define CE_CTSTO 0x0020
346 #define CE_DSRTO 0x0040
347 #define CE_RLSDTO 0x0080
348 #define CE_TXFULL 0x0100
349 #define CE_PTO 0x0200
350 #define CE_IOE 0x0400
351 #define CE_DNS 0x0800
352 #define CE_OOP 0x1000
353 #define CE_MODE 0x8000
355 #define IE_BADID -1
356 #define IE_OPEN -2
357 #define IE_NOPEN -3
358 #define IE_MEMORY -4
359 #define IE_DEFAULT -5
360 #define IE_HARDWARE -10
361 #define IE_BYTESIZE -11
362 #define IE_BAUDRATE -12
364 #define EV_RXCHAR 0x0001
365 #define EV_RXFLAG 0x0002
366 #define EV_TXEMPTY 0x0004
367 #define EV_CTS 0x0008
368 #define EV_DSR 0x0010
369 #define EV_RLSD 0x0020
370 #define EV_BREAK 0x0040
371 #define EV_ERR 0x0080
372 #define EV_RING 0x0100
373 #define EV_PERR 0x0200
374 #define EV_RX80FULL 0x0400
375 #define EV_EVENT1 0x0800
376 #define EV_EVENT2 0x1000
378 #define SETXOFF 1
379 #define SETXON 2
380 #define SETRTS 3
381 #define CLRRTS 4
382 #define SETDTR 5
383 #define CLRDTR 6
384 #define RESETDEV 7
385 #define SETBREAK 8
386 #define CLRBREAK 9
388 /* Purge functions for Comm Port */
389 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
390 comm port */
391 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
392 the comm port */
393 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
394 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
397 /* Modem Status Flags */
398 #define MS_CTS_ON ((DWORD)0x0010)
399 #define MS_DSR_ON ((DWORD)0x0020)
400 #define MS_RING_ON ((DWORD)0x0040)
401 #define MS_RLSD_ON ((DWORD)0x0080)
403 #define RTS_CONTROL_DISABLE 0
404 #define RTS_CONTROL_ENABLE 1
405 #define RTS_CONTROL_HANDSHAKE 2
406 #define RTS_CONTROL_TOGGLE 3
408 #define DTR_CONTROL_DISABLE 0
409 #define DTR_CONTROL_ENABLE 1
410 #define DTR_CONTROL_HANDSHAKE 2
413 #define LMEM_FIXED 0
414 #define LMEM_MOVEABLE 0x0002
415 #define LMEM_NOCOMPACT 0x0010
416 #define LMEM_NODISCARD 0x0020
417 #define LMEM_ZEROINIT 0x0040
418 #define LMEM_MODIFY 0x0080
419 #define LMEM_DISCARDABLE 0x0F00
420 #define LMEM_DISCARDED 0x4000
421 #define LMEM_INVALID_HANDLE 0x8000
422 #define LMEM_LOCKCOUNT 0x00FF
424 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
425 #define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT)
427 #define NONZEROLHND (LMEM_MOVEABLE)
428 #define NONZEROLPTR (LMEM_FIXED)
430 #define LocalDiscard(h) (LocalReAlloc((h),0,LMEM_MOVEABLE))
432 #define GMEM_FIXED 0x0000
433 #define GMEM_MOVEABLE 0x0002
434 #define GMEM_NOCOMPACT 0x0010
435 #define GMEM_NODISCARD 0x0020
436 #define GMEM_ZEROINIT 0x0040
437 #define GMEM_MODIFY 0x0080
438 #define GMEM_DISCARDABLE 0x0100
439 #define GMEM_NOT_BANKED 0x1000
440 #define GMEM_SHARE 0x2000
441 #define GMEM_DDESHARE 0x2000
442 #define GMEM_NOTIFY 0x4000
443 #define GMEM_LOWER GMEM_NOT_BANKED
444 #define GMEM_DISCARDED 0x4000
445 #define GMEM_LOCKCOUNT 0x00ff
446 #define GMEM_INVALID_HANDLE 0x8000
448 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
449 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
451 #define GlobalLRUNewest(h) ((HANDLE)(h))
452 #define GlobalLRUOldest(h) ((HANDLE)(h))
453 #define GlobalDiscard(h) (GlobalReAlloc((h),0,GMEM_MOVEABLE))
455 #define INVALID_ATOM ((ATOM)0)
456 #define MAXINTATOM 0xc000
457 #ifdef __WINESRC__
458 /* force using a cast when inside Wine */
459 #define MAKEINTATOM(atom) ((ULONG_PTR)((WORD)(atom)))
460 #else
461 #define MAKEINTATOM(atom) ((LPTSTR)((ULONG_PTR)((WORD)(atom))))
462 #endif
464 typedef struct tagMEMORYSTATUS
466 DWORD dwLength;
467 DWORD dwMemoryLoad;
468 SIZE_T dwTotalPhys;
469 SIZE_T dwAvailPhys;
470 SIZE_T dwTotalPageFile;
471 SIZE_T dwAvailPageFile;
472 SIZE_T dwTotalVirtual;
473 SIZE_T dwAvailVirtual;
474 } MEMORYSTATUS, *LPMEMORYSTATUS;
476 #include <pshpack8.h>
477 typedef struct tagMEMORYSTATUSEX {
478 DWORD dwLength;
479 DWORD dwMemoryLoad;
480 DWORDLONG DECLSPEC_ALIGN(8) ullTotalPhys;
481 DWORDLONG DECLSPEC_ALIGN(8) ullAvailPhys;
482 DWORDLONG DECLSPEC_ALIGN(8) ullTotalPageFile;
483 DWORDLONG DECLSPEC_ALIGN(8) ullAvailPageFile;
484 DWORDLONG DECLSPEC_ALIGN(8) ullTotalVirtual;
485 DWORDLONG DECLSPEC_ALIGN(8) ullAvailVirtual;
486 DWORDLONG DECLSPEC_ALIGN(8) ullAvailExtendedVirtual;
487 } MEMORYSTATUSEX, *LPMEMORYSTATUSEX;
488 #include <poppack.h>
491 typedef struct _SYSTEMTIME{
492 WORD wYear;
493 WORD wMonth;
494 WORD wDayOfWeek;
495 WORD wDay;
496 WORD wHour;
497 WORD wMinute;
498 WORD wSecond;
499 WORD wMilliseconds;
500 } SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME;
502 /* The 'overlapped' data structure used by async I/O functions.
504 typedef struct _OVERLAPPED {
505 #ifdef WORDS_BIGENDIAN
506 ULONG_PTR InternalHigh;
507 ULONG_PTR Internal;
508 #else
509 ULONG_PTR Internal;
510 ULONG_PTR InternalHigh;
511 #endif
512 union {
513 struct {
514 #ifdef WORDS_BIGENDIAN
515 DWORD OffsetHigh;
516 DWORD Offset;
517 #else
518 DWORD Offset;
519 DWORD OffsetHigh;
520 #endif
521 } DUMMYSTRUCTNAME;
522 PVOID Pointer;
523 } DUMMYUNIONNAME;
524 HANDLE hEvent;
525 } OVERLAPPED, *LPOVERLAPPED;
527 typedef VOID (CALLBACK *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD,DWORD,LPOVERLAPPED);
529 /* Process startup information.
532 /* STARTUPINFO.dwFlags */
533 #define STARTF_USESHOWWINDOW 0x00000001
534 #define STARTF_USESIZE 0x00000002
535 #define STARTF_USEPOSITION 0x00000004
536 #define STARTF_USECOUNTCHARS 0x00000008
537 #define STARTF_USEFILLATTRIBUTE 0x00000010
538 #define STARTF_RUNFULLSCREEN 0x00000020
539 #define STARTF_FORCEONFEEDBACK 0x00000040
540 #define STARTF_FORCEOFFFEEDBACK 0x00000080
541 #define STARTF_USESTDHANDLES 0x00000100
542 #define STARTF_USEHOTKEY 0x00000200
544 typedef struct _STARTUPINFOA{
545 DWORD cb; /* 00: size of struct */
546 LPSTR lpReserved; /* 04: */
547 LPSTR lpDesktop; /* 08: */
548 LPSTR lpTitle; /* 0c: */
549 DWORD dwX; /* 10: */
550 DWORD dwY; /* 14: */
551 DWORD dwXSize; /* 18: */
552 DWORD dwYSize; /* 1c: */
553 DWORD dwXCountChars; /* 20: */
554 DWORD dwYCountChars; /* 24: */
555 DWORD dwFillAttribute; /* 28: */
556 DWORD dwFlags; /* 2c: */
557 WORD wShowWindow; /* 30: */
558 WORD cbReserved2; /* 32: */
559 BYTE *lpReserved2; /* 34: */
560 HANDLE hStdInput; /* 38: */
561 HANDLE hStdOutput; /* 3c: */
562 HANDLE hStdError; /* 40: */
563 } STARTUPINFOA, *LPSTARTUPINFOA;
565 typedef struct _STARTUPINFOW{
566 DWORD cb;
567 LPWSTR lpReserved;
568 LPWSTR lpDesktop;
569 LPWSTR lpTitle;
570 DWORD dwX;
571 DWORD dwY;
572 DWORD dwXSize;
573 DWORD dwYSize;
574 DWORD dwXCountChars;
575 DWORD dwYCountChars;
576 DWORD dwFillAttribute;
577 DWORD dwFlags;
578 WORD wShowWindow;
579 WORD cbReserved2;
580 BYTE *lpReserved2;
581 HANDLE hStdInput;
582 HANDLE hStdOutput;
583 HANDLE hStdError;
584 } STARTUPINFOW, *LPSTARTUPINFOW;
586 DECL_WINELIB_TYPE_AW(STARTUPINFO)
587 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
589 typedef struct _PROCESS_INFORMATION{
590 HANDLE hProcess;
591 HANDLE hThread;
592 DWORD dwProcessId;
593 DWORD dwThreadId;
594 } PROCESS_INFORMATION, *PPROCESS_INFORMATION, *LPPROCESS_INFORMATION;
596 typedef struct _TIME_ZONE_INFORMATION{
597 LONG Bias;
598 WCHAR StandardName[32];
599 SYSTEMTIME StandardDate;
600 LONG StandardBias;
601 WCHAR DaylightName[32];
602 SYSTEMTIME DaylightDate;
603 LONG DaylightBias;
604 } TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
606 #define TIME_ZONE_ID_INVALID ((DWORD)0xFFFFFFFF)
607 #define TIME_ZONE_ID_UNKNOWN 0
608 #define TIME_ZONE_ID_STANDARD 1
609 #define TIME_ZONE_ID_DAYLIGHT 2
611 /* CreateProcess: dwCreationFlag values
613 #define DEBUG_PROCESS 0x00000001
614 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
615 #define CREATE_SUSPENDED 0x00000004
616 #define DETACHED_PROCESS 0x00000008
617 #define CREATE_NEW_CONSOLE 0x00000010
618 #define NORMAL_PRIORITY_CLASS 0x00000020
619 #define IDLE_PRIORITY_CLASS 0x00000040
620 #define HIGH_PRIORITY_CLASS 0x00000080
621 #define REALTIME_PRIORITY_CLASS 0x00000100
622 #define BELOW_NORMAL_PRIORITY_CLASS 0x00004000
623 #define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
624 #define CREATE_NEW_PROCESS_GROUP 0x00000200
625 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
626 #define CREATE_SEPARATE_WOW_VDM 0x00000800
627 #define CREATE_SHARED_WOW_VDM 0x00001000
628 #define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000
629 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
630 #define CREATE_NO_WINDOW 0x08000000
631 #define PROFILE_USER 0x10000000
632 #define PROFILE_KERNEL 0x20000000
633 #define PROFILE_SERVER 0x40000000
636 /* File object type definitions
638 #define FILE_TYPE_UNKNOWN 0
639 #define FILE_TYPE_DISK 1
640 #define FILE_TYPE_CHAR 2
641 #define FILE_TYPE_PIPE 3
642 #define FILE_TYPE_REMOTE 32768
644 /* File encryption status
646 #define FILE_ENCRYPTABLE 0
647 #define FILE_IS_ENCRYPTED 1
648 #define FILE_SYSTEM_ATTR 2
649 #define FILE_ROOT_DIR 3
650 #define FILE_SYSTEM_DIR 4
651 #define FILE_UNKNOWN 5
652 #define FILE_SYSTEM_NOT_SUPPORT 6
653 #define FILE_USER_DISALLOWED 7
654 #define FILE_READ_ONLY 8
655 #define FILE_DIR_DISALOWED 9
657 /* File creation flags
659 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
660 #define FILE_FLAG_OVERLAPPED 0x40000000L
661 #define FILE_FLAG_NO_BUFFERING 0x20000000L
662 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
663 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
664 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
665 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
666 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
667 #define FILE_FLAG_OPEN_REPARSE_POINT 0x00200000L
668 #define CREATE_NEW 1
669 #define CREATE_ALWAYS 2
670 #define OPEN_EXISTING 3
671 #define OPEN_ALWAYS 4
672 #define TRUNCATE_EXISTING 5
674 /* Standard handle identifiers
676 #define STD_INPUT_HANDLE ((DWORD) -10)
677 #define STD_OUTPUT_HANDLE ((DWORD) -11)
678 #define STD_ERROR_HANDLE ((DWORD) -12)
680 typedef struct _BY_HANDLE_FILE_INFORMATION
682 DWORD dwFileAttributes;
683 FILETIME ftCreationTime;
684 FILETIME ftLastAccessTime;
685 FILETIME ftLastWriteTime;
686 DWORD dwVolumeSerialNumber;
687 DWORD nFileSizeHigh;
688 DWORD nFileSizeLow;
689 DWORD nNumberOfLinks;
690 DWORD nFileIndexHigh;
691 DWORD nFileIndexLow;
692 } BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION ;
694 #define PIPE_ACCESS_INBOUND 1
695 #define PIPE_ACCESS_OUTBOUND 2
696 #define PIPE_ACCESS_DUPLEX 3
698 #define PIPE_CLIENT_END 0
699 #define PIPE_SERVER_END 1
700 #define PIPE_READMODE_BYTE 0
701 #define PIPE_READMODE_MESSAGE 2
702 #define PIPE_TYPE_BYTE 0
703 #define PIPE_TYPE_MESSAGE 4
705 #define PIPE_WAIT 0
706 #define PIPE_NOWAIT 1
708 #define PIPE_UNLIMITED_INSTANCES 255
710 #define NMPWAIT_WAIT_FOREVER 0xffffffff
711 #define NMPWAIT_NOWAIT 0x00000001
712 #define NMPWAIT_USE_DEFAULT_WAIT 0x00000000
714 /* Security flags for dwFlagsAndAttributes of CreateFile */
715 #define SECURITY_ANONYMOUS (SecurityAnonymous << 16)
716 #define SECURITY_IDENTIFICATION (SecurityIdentification << 16)
717 #define SECURITY_IMPERSONATION (SecurityImpersonation << 16)
718 #define SECURITY_DELEGATION (SecurityDelegation << 16)
720 #define SECURITY_CONTEXT_TRACKING 0x00040000
721 #define SECURITY_EFFECTIVE_ONLY 0x00080000
723 #define SECURITY_SQOS_PRESENT 0x00100000
724 #define SECURITY_VALID_SQOS_FLAGS 0x001f0000
726 typedef struct _SYSTEM_POWER_STATUS
728 BYTE ACLineStatus;
729 BYTE BatteryFlag;
730 BYTE BatteryLifePercent;
731 BYTE Reserved1;
732 DWORD BatteryLifeTime;
733 DWORD BatteryFullLifeTime;
734 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
737 typedef struct _SYSTEM_INFO
739 union {
740 DWORD dwOemId; /* Obsolete field - do not use */
741 struct {
742 WORD wProcessorArchitecture;
743 WORD wReserved;
744 } DUMMYSTRUCTNAME;
745 } DUMMYUNIONNAME;
746 DWORD dwPageSize;
747 LPVOID lpMinimumApplicationAddress;
748 LPVOID lpMaximumApplicationAddress;
749 DWORD dwActiveProcessorMask;
750 DWORD dwNumberOfProcessors;
751 DWORD dwProcessorType;
752 DWORD dwAllocationGranularity;
753 WORD wProcessorLevel;
754 WORD wProcessorRevision;
755 } SYSTEM_INFO, *LPSYSTEM_INFO;
757 typedef BOOL (CALLBACK *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG_PTR);
758 typedef BOOL (CALLBACK *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG_PTR);
759 typedef BOOL (CALLBACK *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG_PTR);
760 typedef BOOL (CALLBACK *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG_PTR);
761 typedef BOOL (CALLBACK *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG_PTR);
762 typedef BOOL (CALLBACK *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG_PTR);
764 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
765 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
766 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
768 /* flags that can be passed to LoadLibraryEx */
769 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
770 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
771 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
773 #define GET_MODULE_HANDLE_EX_FLAG_PIN 1
774 #define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT 2
775 #define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS 4
777 typedef PLDT_ENTRY LPLDT_ENTRY;
779 typedef enum _GET_FILEEX_INFO_LEVELS {
780 GetFileExInfoStandard
781 } GET_FILEEX_INFO_LEVELS;
783 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
784 DWORD dwFileAttributes;
785 FILETIME ftCreationTime;
786 FILETIME ftLastAccessTime;
787 FILETIME ftLastWriteTime;
788 DWORD nFileSizeHigh;
789 DWORD nFileSizeLow;
790 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
793 * This one seems to be a Win32 only definition. It also is defined with
794 * WINAPI instead of CALLBACK in the windows headers.
796 typedef DWORD (CALLBACK *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
797 LARGE_INTEGER, DWORD, DWORD, HANDLE,
798 HANDLE, LPVOID);
801 #define WAIT_FAILED 0xffffffff
802 #define WAIT_OBJECT_0 0
803 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
804 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
805 #define WAIT_IO_COMPLETION STATUS_USER_APC
806 #define WAIT_TIMEOUT STATUS_TIMEOUT
807 #define STILL_ACTIVE STATUS_PENDING
809 #define FILE_BEGIN 0
810 #define FILE_CURRENT 1
811 #define FILE_END 2
813 #define FILE_MAP_COPY 0x00000001
814 #define FILE_MAP_WRITE 0x00000002
815 #define FILE_MAP_READ 0x00000004
816 #define FILE_MAP_ALL_ACCESS 0x000f001f
817 #define FILE_MAP_EXECUTE 0x00000020
819 #define MOVEFILE_REPLACE_EXISTING 0x00000001
820 #define MOVEFILE_COPY_ALLOWED 0x00000002
821 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
823 #define REPLACEFILE_WRITE_THROUGH 0x00000001
824 #define REPLACEFILE_IGNORE_MERGE_ERRORS 0x00000002
826 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
827 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
828 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
829 #define FS_PERSISTENT_ACLS FILE_PERSISTENT_ACLS
830 #define FS_VOL_IS_COMPRESSED FILE_VOLUME_IS_COMPRESSED
831 #define FS_FILE_COMPRESSION FILE_FILE_COMPRESSION
833 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
834 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
835 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
836 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
837 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
838 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
839 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
840 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
841 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
842 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
843 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
844 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
845 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
846 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
847 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
848 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
849 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
850 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
851 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
852 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
853 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
854 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
855 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
857 #define HANDLE_FLAG_INHERIT 0x00000001
858 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
860 #define HINSTANCE_ERROR 32
862 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
863 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
864 #define THREAD_PRIORITY_NORMAL 0
865 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
866 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
867 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
868 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
869 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
871 /* flags to FormatMessage */
872 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
873 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
874 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
875 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
876 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
877 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
878 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
880 /* flags to ACTCTX[AW] */
881 #define ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID (0x00000001)
882 #define ACTCTX_FLAG_LANGID_VALID (0x00000002)
883 #define ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID (0x00000004)
884 #define ACTCTX_FLAG_RESOURCE_NAME_VALID (0x00000008)
885 #define ACTCTX_FLAG_SET_PROCESS_DEFAULT (0x00000010)
886 #define ACTCTX_FLAG_APPLICATION_NAME_VALID (0x00000020)
887 #define ACTCTX_FLAG_SOURCE_IS_ASSEMBLYREF (0x00000040)
888 #define ACTCTX_FLAG_HMODULE_VALID (0x00000080)
890 /* flags to DeactiveActCtx */
891 #define DEACTIVATE_ACTCTX_FLAG_FORCE_EARLY_DEACTIVATION (0x00000001)
893 /* flags to FindActCtxSection{Guid,String[AW]} */
894 #define FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX (0x00000001)
895 #define FIND_ACTCTX_SECTION_KEY_RETURN_FLAGS (0x00000002)
896 #define FIND_ACTCTX_SECTION_KEY_RETURN_ASSEMBLY_METADATA (0x00000004)
898 /* flags to QueryActCtxW */
899 #define QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX (0x00000004)
900 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE (0x00000008)
901 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS (0x00000010)
902 #define QUERY_ACTCTX_FLAG_NO_ADDREF (0x80000000)
904 typedef struct tagACTCTXA {
905 ULONG cbSize;
906 DWORD dwFlags;
907 LPCSTR lpSource;
908 USHORT wProcessorArchitecture;
909 LANGID wLangId;
910 LPCSTR lpAssemblyDirectory;
911 LPCSTR lpResourceName;
912 LPCSTR lpApplicationName;
913 HMODULE hModule;
914 } ACTCTXA, *PACTCTXA;
916 typedef struct tagACTCTXW {
917 ULONG cbSize;
918 DWORD dwFlags;
919 LPCWSTR lpSource;
920 USHORT wProcessorArchitecture;
921 LANGID wLangId;
922 LPCWSTR lpAssemblyDirectory;
923 LPCWSTR lpResourceName;
924 LPCWSTR lpApplicationName;
925 HMODULE hModule;
926 } ACTCTXW, *PACTCTXW;
928 DECL_WINELIB_TYPE_AW(ACTCTX)
929 DECL_WINELIB_TYPE_AW(PACTCTX)
931 typedef const ACTCTXA *PCACTCTXA;
932 typedef const ACTCTXW *PCACTCTXW;
933 DECL_WINELIB_TYPE_AW(PCACTCTX)
935 typedef struct tagACTCTX_SECTION_KEYED_DATA_2600 {
936 ULONG cbSize;
937 ULONG ulDataFormatVersion;
938 PVOID lpData;
939 ULONG ulLength;
940 PVOID lpSectionGlobalData;
941 ULONG ulSectionGlobalDataLength;
942 PVOID lpSectionBase;
943 ULONG ulSectionTotalLength;
944 HANDLE hActCtx;
945 ULONG ulAssemblyRosterIndex;
946 } ACTCTX_SECTION_KEYED_DATA_2600, *PACTCTX_SECTION_KEYED_DATA_2600;
947 typedef const ACTCTX_SECTION_KEYED_DATA_2600 *PCACTCTX_SECTION_KEYED_DATA_2600;
949 typedef struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA {
950 PVOID lpInformation;
951 PVOID lpSectionBase;
952 ULONG ulSectionLength;
953 PVOID lpSectionGlobalDataBase;
954 ULONG ulSectionGlobalDataLength;
955 } ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, *PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA;
956 typedef const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA *PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA;
958 typedef struct tagACTCTX_SECTION_KEYED_DATA {
959 ULONG cbSize;
960 ULONG ulDataFormatVersion;
961 PVOID lpData;
962 ULONG ulLength;
963 PVOID lpSectionGlobalData;
964 ULONG ulSectionGlobalDataLength;
965 PVOID lpSectionBase;
966 ULONG ulSectionTotalLength;
967 HANDLE hActCtx;
968 ULONG ulAssemblyRosterIndex;
970 /* Non 2600 extra fields */
971 ULONG ulFlags;
972 ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA AssemblyMetadata;
973 } ACTCTX_SECTION_KEYED_DATA, *PACTCTX_SECTION_KEYED_DATA;
974 typedef const ACTCTX_SECTION_KEYED_DATA *PCACTCTX_SECTION_KEYED_DATA;
976 typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION {
977 HANDLE hActCtx;
978 DWORD dwFlags;
979 } ACTIVATION_CONTEXT_BASIC_INFORMATION, *PACTIVATION_CONTEXT_BASIC_INFORMATION;
981 typedef BOOL (WINAPI *PQUERYACTCTXW_FUNC)(DWORD,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T *);
983 typedef struct tagCOMSTAT
985 DWORD fCtsHold : 1;
986 DWORD fDsrHold : 1;
987 DWORD fRlsdHold : 1;
988 DWORD fXoffHold : 1;
989 DWORD fXoffSent : 1;
990 DWORD fEof : 1;
991 DWORD fTxim : 1;
992 DWORD fReserved : 25;
993 DWORD cbInQue;
994 DWORD cbOutQue;
995 } COMSTAT, *LPCOMSTAT;
997 typedef struct tagDCB
999 DWORD DCBlength;
1000 DWORD BaudRate;
1001 unsigned fBinary :1;
1002 unsigned fParity :1;
1003 unsigned fOutxCtsFlow :1;
1004 unsigned fOutxDsrFlow :1;
1005 unsigned fDtrControl :2;
1006 unsigned fDsrSensitivity :1;
1007 unsigned fTXContinueOnXoff :1;
1008 unsigned fOutX :1;
1009 unsigned fInX :1;
1010 unsigned fErrorChar :1;
1011 unsigned fNull :1;
1012 unsigned fRtsControl :2;
1013 unsigned fAbortOnError :1;
1014 unsigned fDummy2 :17;
1015 WORD wReserved;
1016 WORD XonLim;
1017 WORD XoffLim;
1018 BYTE ByteSize;
1019 BYTE Parity;
1020 BYTE StopBits;
1021 char XonChar;
1022 char XoffChar;
1023 char ErrorChar;
1024 char EofChar;
1025 char EvtChar;
1026 WORD wReserved1;
1027 } DCB, *LPDCB;
1029 typedef struct tagCOMMCONFIG {
1030 DWORD dwSize;
1031 WORD wVersion;
1032 WORD wReserved;
1033 DCB dcb;
1034 DWORD dwProviderSubType;
1035 DWORD dwProviderOffset;
1036 DWORD dwProviderSize;
1037 DWORD wcProviderData[1];
1038 } COMMCONFIG, *LPCOMMCONFIG;
1040 typedef struct tagCOMMPROP {
1041 WORD wPacketLength;
1042 WORD wPacketVersion;
1043 DWORD dwServiceMask;
1044 DWORD dwReserved1;
1045 DWORD dwMaxTxQueue;
1046 DWORD dwMaxRxQueue;
1047 DWORD dwMaxBaud;
1048 DWORD dwProvSubType;
1049 DWORD dwProvCapabilities;
1050 DWORD dwSettableParams;
1051 DWORD dwSettableBaud;
1052 WORD wSettableData;
1053 WORD wSettableStopParity;
1054 DWORD dwCurrentTxQueue;
1055 DWORD dwCurrentRxQueue;
1056 DWORD dwProvSpec1;
1057 DWORD dwProvSpec2;
1058 WCHAR wcProvChar[1];
1059 } COMMPROP, *LPCOMMPROP;
1061 #define SP_SERIALCOMM ((DWORD)1)
1063 #define BAUD_075 ((DWORD)0x01)
1064 #define BAUD_110 ((DWORD)0x02)
1065 #define BAUD_134_5 ((DWORD)0x04)
1066 #define BAUD_150 ((DWORD)0x08)
1067 #define BAUD_300 ((DWORD)0x10)
1068 #define BAUD_600 ((DWORD)0x20)
1069 #define BAUD_1200 ((DWORD)0x40)
1070 #define BAUD_1800 ((DWORD)0x80)
1071 #define BAUD_2400 ((DWORD)0x100)
1072 #define BAUD_4800 ((DWORD)0x200)
1073 #define BAUD_7200 ((DWORD)0x400)
1074 #define BAUD_9600 ((DWORD)0x800)
1075 #define BAUD_14400 ((DWORD)0x1000)
1076 #define BAUD_19200 ((DWORD)0x2000)
1077 #define BAUD_38400 ((DWORD)0x4000)
1078 #define BAUD_56K ((DWORD)0x8000)
1079 #define BAUD_57600 ((DWORD)0x40000)
1080 #define BAUD_115200 ((DWORD)0x20000)
1081 #define BAUD_128K ((DWORD)0x10000)
1082 #define BAUD_USER ((DWORD)0x10000000)
1084 #define PST_FAX ((DWORD)0x21)
1085 #define PST_LAT ((DWORD)0x101)
1086 #define PST_MODEM ((DWORD)0x06)
1087 #define PST_NETWORK_BRIDGE ((DWORD)0x100)
1088 #define PST_PARALLEL_PORT ((DWORD)0x02)
1089 #define PST_RS232 ((DWORD)0x01)
1090 #define PST_RS442 ((DWORD)0x03)
1091 #define PST_RS423 ((DWORD)0x04)
1092 #define PST_RS449 ((DWORD)0x06)
1093 #define PST_SCANNER ((DWORD)0x22)
1094 #define PST_TCPIP_TELNET ((DWORD)0x102)
1095 #define PST_UNSPECIFIED ((DWORD)0x00)
1096 #define PST_X25 ((DWORD)0x103)
1098 #define PCF_16BITMODE ((DWORD)0x200)
1099 #define PCF_DTRDSR ((DWORD)0x01)
1100 #define PCF_INTTIMEOUTS ((DWORD)0x80)
1101 #define PCF_PARITY_CHECK ((DWORD)0x08)
1102 #define PCF_RLSD ((DWORD)0x04)
1103 #define PCF_RTSCTS ((DWORD)0x02)
1104 #define PCF_SETXCHAR ((DWORD)0x20)
1105 #define PCF_SPECIALCHARS ((DWORD)0x100)
1106 #define PCF_TOTALTIMEOUTS ((DWORD)0x40)
1107 #define PCF_XONXOFF ((DWORD)0x10)
1109 #define SP_BAUD ((DWORD)0x02)
1110 #define SP_DATABITS ((DWORD)0x04)
1111 #define SP_HANDSHAKING ((DWORD)0x10)
1112 #define SP_PARITY ((DWORD)0x01)
1113 #define SP_PARITY_CHECK ((DWORD)0x20)
1114 #define SP_RLSD ((DWORD)0x40)
1115 #define SP_STOPBITS ((DWORD)0x08)
1117 #define DATABITS_5 ((DWORD)0x01)
1118 #define DATABITS_6 ((DWORD)0x02)
1119 #define DATABITS_7 ((DWORD)0x04)
1120 #define DATABITS_8 ((DWORD)0x08)
1121 #define DATABITS_16 ((DWORD)0x10)
1122 #define DATABITS_16X ((DWORD)0x20)
1124 #define STOPBITS_10 ((DWORD)1)
1125 #define STOPBITS_15 ((DWORD)2)
1126 #define STOPBITS_20 ((DWORD)4)
1128 #define PARITY_NONE ((DWORD)0x100)
1129 #define PARITY_ODD ((DWORD)0x200)
1130 #define PARITY_EVEN ((DWORD)0x400)
1131 #define PARITY_MARK ((DWORD)0x800)
1132 #define PARITY_SPACE ((DWORD)0x1000)
1134 typedef struct tagCOMMTIMEOUTS {
1135 DWORD ReadIntervalTimeout;
1136 DWORD ReadTotalTimeoutMultiplier;
1137 DWORD ReadTotalTimeoutConstant;
1138 DWORD WriteTotalTimeoutMultiplier;
1139 DWORD WriteTotalTimeoutConstant;
1140 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1142 #define GET_TAPE_MEDIA_INFORMATION 0
1143 #define GET_TAPE_DRIVE_INFORMATION 1
1144 #define SET_TAPE_MEDIA_INFORMATION 0
1145 #define SET_TAPE_DRIVE_INFORMATION 1
1147 typedef void (CALLBACK *PAPCFUNC)(ULONG_PTR);
1148 typedef void (CALLBACK *PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD);
1150 typedef enum _COMPUTER_NAME_FORMAT
1152 ComputerNameNetBIOS,
1153 ComputerNameDnsHostname,
1154 ComputerNameDnsDomain,
1155 ComputerNameDnsFullyQualified,
1156 ComputerNamePhysicalNetBIOS,
1157 ComputerNamePhysicalDnsHostname,
1158 ComputerNamePhysicalDnsDomain,
1159 ComputerNamePhysicalDnsFullyQualified,
1160 ComputerNameMax
1161 } COMPUTER_NAME_FORMAT;
1163 #define HW_PROFILE_GUIDLEN 39
1164 #define MAX_PROFILE_LEN 80
1166 #define DOCKINFO_UNDOCKED 0x1
1167 #define DOCKINFO_DOCKED 0x2
1168 #define DOCKINFO_USER_SUPPLIED 0x4
1169 #define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_UNDOCKED)
1170 #define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_DOCKED)
1172 typedef struct tagHW_PROFILE_INFOA {
1173 DWORD dwDockInfo;
1174 CHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
1175 CHAR szHwProfileName[MAX_PROFILE_LEN];
1176 } HW_PROFILE_INFOA, *LPHW_PROFILE_INFOA;
1178 typedef struct tagHW_PROFILE_INFOW {
1179 DWORD dwDockInfo;
1180 WCHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
1181 WCHAR szHwProfileName[MAX_PROFILE_LEN];
1182 } HW_PROFILE_INFOW, *LPHW_PROFILE_INFOW;
1184 DECL_WINELIB_TYPE_AW(HW_PROFILE_INFO)
1185 DECL_WINELIB_TYPE_AW(LPHW_PROFILE_INFO)
1187 /* Stream data structures and defines */
1188 /*the types of backup data -- WIN32_STREAM_ID.dwStreamId below*/
1189 #define BACKUP_INVALID 0
1190 #define BACKUP_DATA 1
1191 #define BACKUP_EA_DATA 2
1192 #define BACKUP_SECURITY_DATA 3
1193 #define BACKUP_ALTERNATE_DATA 4
1194 #define BACKUP_LINK 5
1195 #define BACKUP_PROPERTY_DATA 6
1196 #define BACKUP_OBJECT_ID 7
1197 #define BACKUP_REPARSE_DATA 8
1198 #define BACKUP_SPARSE_BLOCK 9
1200 /*flags for WIN32_STREAM_ID.dwStreamAttributes below*/
1201 #define STREAM_NORMAL_ATTRIBUTE 0
1202 #define STREAM_MODIFIED_WHEN_READ 1
1203 #define STREAM_CONTAINS_SECURITY 2
1204 #define STREAM_CONTAINS_PROPERTIES 4
1205 #define STREAM_SPARSE_ATTRIBUTE 8
1207 #include <pshpack8.h>
1208 typedef struct _WIN32_STREAM_ID {
1209 DWORD dwStreamId;
1210 DWORD dwStreamAttributes;
1211 LARGE_INTEGER DECLSPEC_ALIGN(8) Size;
1212 DWORD dwStreamNameSize;
1213 WCHAR cStreamName[ANYSIZE_ARRAY];
1214 } WIN32_STREAM_ID, *LPWIN32_STREAM_ID;
1215 #include <poppack.h>
1218 /* GetBinaryType return values.
1221 #define SCS_32BIT_BINARY 0
1222 #define SCS_DOS_BINARY 1
1223 #define SCS_WOW_BINARY 2
1224 #define SCS_PIF_BINARY 3
1225 #define SCS_POSIX_BINARY 4
1226 #define SCS_OS216_BINARY 5
1227 #define SCS_64BIT_BINARY 6
1229 /* flags for DefineDosDevice */
1230 #define DDD_RAW_TARGET_PATH 0x00000001
1231 #define DDD_REMOVE_DEFINITION 0x00000002
1232 #define DDD_EXACT_MATCH_ON_REMOVE 0x00000004
1233 #define DDD_NO_BROADCAST_SYSTEM 0x00000008
1234 #define DDD_LUID_BROADCAST_DRIVE 0x00000010
1236 BOOL WINAPI ActivateActCtx(HANDLE,ULONG_PTR *);
1237 BOOL WINAPI AddAccessAllowedAce(PACL,DWORD,DWORD,PSID);
1238 BOOL WINAPI AddAccessAllowedAceEx(PACL,DWORD,DWORD,DWORD,PSID);
1239 BOOL WINAPI AddAccessDeniedAce(PACL,DWORD,DWORD,PSID);
1240 BOOL WINAPI AddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID);
1241 BOOL WINAPI AddAce(PACL,DWORD,DWORD,LPVOID,DWORD);
1242 ATOM WINAPI AddAtomA(LPCSTR);
1243 ATOM WINAPI AddAtomW(LPCWSTR);
1244 #define AddAtom WINELIB_NAME_AW(AddAtom)
1245 BOOL WINAPI AddAuditAccessAce(PACL,DWORD,DWORD,PSID,BOOL,BOOL);
1246 BOOL WINAPI AddAuditAccessAceEx(PACL,DWORD,DWORD,DWORD,PSID,BOOL,BOOL);
1247 VOID WINAPI AddRefActCtx(HANDLE);
1248 PVOID WINAPI AddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER);
1249 BOOL WINAPI AdjustTokenGroups(HANDLE,BOOL,PTOKEN_GROUPS,DWORD,PTOKEN_GROUPS,PDWORD);
1250 BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
1251 BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1252 BOOL WINAPI AccessCheckAndAuditAlarmA(LPCSTR,LPVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPBOOL,LPBOOL);
1253 BOOL WINAPI AccessCheckAndAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPBOOL,LPBOOL);
1254 #define AccessCheckAndAuditAlarm WINELIB_NAME_AW(AccessCheckAndAuditAlarm)
1255 BOOL WINAPI AccessCheckByType(PSECURITY_DESCRIPTOR,PSID,HANDLE,DWORD,POBJECT_TYPE_LIST,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1256 BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,LPVOID,DWORD,LPVOID,LPDWORD);
1257 BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
1258 BOOL WINAPI AllocateLocallyUniqueId(PLUID);
1259 BOOL WINAPI AreAllAccessesGranted(DWORD,DWORD);
1260 BOOL WINAPI AreAnyAccessesGranted(DWORD,DWORD);
1261 BOOL WINAPI AreFileApisANSI(void);
1262 BOOL WINAPI AssignProcessToJobObject(HANDLE,HANDLE);
1263 BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
1264 BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
1265 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1266 BOOL WINAPI BackupRead(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1267 BOOL WINAPI BackupSeek(HANDLE,DWORD,DWORD,LPDWORD,LPDWORD,LPVOID*);
1268 BOOL WINAPI BackupWrite(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1269 BOOL WINAPI Beep(DWORD,DWORD);
1270 HANDLE WINAPI BeginUpdateResourceA(LPCSTR,BOOL);
1271 HANDLE WINAPI BeginUpdateResourceW(LPCWSTR,BOOL);
1272 #define BeginUpdateResource WINELIB_NAME_AW(BeginUpdateResource)
1273 BOOL WINAPI BindIoCompletionCallback(HANDLE,LPOVERLAPPED_COMPLETION_ROUTINE,ULONG);
1274 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1275 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1276 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1277 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1278 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1279 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1280 BOOL WINAPI CallNamedPipeA(LPCSTR,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,DWORD);
1281 BOOL WINAPI CallNamedPipeW(LPCWSTR,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,DWORD);
1282 #define CallNamedPipe WINELIB_NAME_AW(CallNamedPipe)
1283 BOOL WINAPI CancelIo(HANDLE);
1284 BOOL WINAPI CancelWaitableTimer(HANDLE);
1285 BOOL WINAPI CheckTokenMembership(HANDLE,PSID,PBOOL);
1286 BOOL WINAPI ClearCommBreak(HANDLE);
1287 BOOL WINAPI ClearCommError(HANDLE,LPDWORD,LPCOMSTAT);
1288 BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1289 BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1290 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1291 BOOL WINAPI CloseEventLog(HANDLE);
1292 BOOL WINAPI CloseHandle(HANDLE);
1293 BOOL WINAPI CommConfigDialogA(LPCSTR,HWND,LPCOMMCONFIG);
1294 BOOL WINAPI CommConfigDialogW(LPCWSTR,HWND,LPCOMMCONFIG);
1295 #define CommConfigDialog WINELIB_NAME_AW(CommConfigDialog)
1296 BOOL WINAPI ConnectNamedPipe(HANDLE,LPOVERLAPPED);
1297 BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1298 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1299 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1300 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1301 #define CopyFile WINELIB_NAME_AW(CopyFile)
1302 BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1303 BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1304 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1305 BOOL WINAPI CopySid(DWORD,PSID,PSID);
1306 INT WINAPI CompareFileTime(const FILETIME*,const FILETIME*);
1307 BOOL WINAPI ConvertFiberToThread(void);
1308 LPVOID WINAPI ConvertThreadToFiber(LPVOID);
1309 LPVOID WINAPI ConvertThreadToFiberEx(LPVOID,DWORD);
1310 HANDLE WINAPI CreateActCtxA(PCACTCTXA);
1311 HANDLE WINAPI CreateActCtxW(PCACTCTXW);
1312 #define CreateActCtx WINELIB_NAME_AW(CreateActCtx)
1313 BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1314 BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1315 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1316 BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1317 BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1318 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1319 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1320 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1321 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1322 LPVOID WINAPI CreateFiber(SIZE_T,LPFIBER_START_ROUTINE,LPVOID);
1323 LPVOID WINAPI CreateFiberEx(SIZE_T,SIZE_T,DWORD,LPFIBER_START_ROUTINE,LPVOID);
1324 HANDLE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE);
1325 HANDLE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE);
1326 #define CreateFile WINELIB_NAME_AW(CreateFile)
1327 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCSTR);
1328 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCWSTR);
1329 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1330 HANDLE WINAPI CreateIoCompletionPort(HANDLE,HANDLE,ULONG_PTR,DWORD);
1331 HANDLE WINAPI CreateJobObjectA(LPSECURITY_ATTRIBUTES,LPCSTR);
1332 HANDLE WINAPI CreateJobObjectW(LPSECURITY_ATTRIBUTES,LPCWSTR);
1333 #define CreateJobObject WINELIB_NAME_AW(CreateJobObject)
1334 HANDLE WINAPI CreateMailslotA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1335 HANDLE WINAPI CreateMailslotW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1336 #define CreateMailslot WINELIB_NAME_AW(CreateMailslot)
1337 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1338 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1339 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1340 HANDLE WINAPI CreateNamedPipeA(LPCSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1341 HANDLE WINAPI CreateNamedPipeW(LPCWSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1342 #define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
1343 BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1344 BOOL WINAPI CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,
1345 PSECURITY_DESCRIPTOR*,BOOL,HANDLE,PGENERIC_MAPPING);
1346 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1347 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1348 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1349 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1350 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1351 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1352 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1353 BOOL WINAPI CreateProcessAsUserA(HANDLE,LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,
1354 BOOL,DWORD,LPVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1355 BOOL WINAPI CreateProcessAsUserW(HANDLE,LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,
1356 BOOL,DWORD,LPVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1357 #define CreateProcessAsUser WINELIB_NAME_AW(CreateProcessAsUser)
1358 HANDLE WINAPI CreateRemoteThread(HANDLE,LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1359 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1360 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1361 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1362 DWORD WINAPI CreateTapePartition(HANDLE,DWORD,DWORD,DWORD);
1363 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1364 HANDLE WINAPI CreateTimerQueue(void);
1365 BOOL WINAPI CreateTimerQueueTimer(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,DWORD,DWORD,ULONG);
1366 HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1367 HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1368 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1369 BOOL WINAPI CreateWellKnownSid(WELL_KNOWN_SID_TYPE,PSID,PSID,DWORD*);
1370 BOOL WINAPI DeactivateActCtx(DWORD,ULONG_PTR);
1371 BOOL WINAPI DebugActiveProcess(DWORD);
1372 BOOL WINAPI DebugActiveProcessStop(DWORD);
1373 void WINAPI DebugBreak(void);
1374 BOOL WINAPI DebugBreakProcess(HANDLE);
1375 BOOL WINAPI DebugSetProcessKillOnExit(BOOL);
1376 BOOL WINAPI DecryptFileA(LPCSTR,DWORD);
1377 BOOL WINAPI DecryptFileW(LPCWSTR,DWORD);
1378 #define DecryptFile WINELIB_NAME_AW(DecryptFile)
1379 BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1380 BOOL WINAPI DefineDosDeviceW(DWORD,LPCWSTR,LPCWSTR);
1381 #define DefineDosDevice WINELIB_NAME_AW(DefineDosDevice)
1382 #define DefineHandleTable(w) ((w),TRUE)
1383 BOOL WINAPI DeleteAce(PACL,DWORD);
1384 ATOM WINAPI DeleteAtom(ATOM);
1385 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1386 void WINAPI DeleteFiber(LPVOID);
1387 BOOL WINAPI DeleteFileA(LPCSTR);
1388 BOOL WINAPI DeleteFileW(LPCWSTR);
1389 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1390 BOOL WINAPI DeleteTimerQueueEx(HANDLE,HANDLE);
1391 BOOL WINAPI DeleteTimerQueueTimer(HANDLE,HANDLE,HANDLE);
1392 BOOL WINAPI DeleteVolumeMountPointA(LPCSTR);
1393 BOOL WINAPI DeleteVolumeMountPointW(LPCWSTR);
1394 #define DeleteVolumeMountPoint WINELIB_NAME_AW(DeleteVolumeMountPoint)
1395 BOOL WINAPI DeregisterEventSource(HANDLE);
1396 BOOL WINAPI DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR*);
1397 BOOL WINAPI DeviceIoControl(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1398 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1399 BOOL WINAPI DisconnectNamedPipe(HANDLE);
1400 BOOL WINAPI DnsHostnameToComputerNameA(LPCSTR,LPSTR,LPDWORD);
1401 BOOL WINAPI DnsHostnameToComputerNameW(LPCWSTR,LPWSTR,LPDWORD);
1402 #define DnsHostnameToComputerName WINELIB_NAME_AW(DnsHostnameToComputerName)
1403 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1404 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1405 BOOL WINAPI DuplicateToken(HANDLE,SECURITY_IMPERSONATION_LEVEL,PHANDLE);
1406 BOOL WINAPI DuplicateTokenEx(HANDLE,DWORD,LPSECURITY_ATTRIBUTES,SECURITY_IMPERSONATION_LEVEL,
1407 TOKEN_TYPE,PHANDLE);
1408 BOOL WINAPI EscapeCommFunction(HANDLE,UINT);
1409 BOOL WINAPI EncryptFileA(LPCSTR);
1410 BOOL WINAPI EncryptFileW(LPCWSTR);
1411 #define EncryptFile WINELIB_NAME_AW(EncryptFile)
1412 BOOL WINAPI EndUpdateResourceA(HANDLE,BOOL);
1413 BOOL WINAPI EndUpdateResourceW(HANDLE,BOOL);
1414 #define EndUpdateResource WINELIB_NAME_AW(EndUpdateResource)
1415 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1416 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,ENUMRESLANGPROCA,LONG_PTR);
1417 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,ENUMRESLANGPROCW,LONG_PTR);
1418 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1419 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,LONG_PTR);
1420 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,LONG_PTR);
1421 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1422 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG_PTR);
1423 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG_PTR);
1424 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1425 BOOL WINAPI EqualSid(PSID, PSID);
1426 BOOL WINAPI EqualPrefixSid(PSID,PSID);
1427 DWORD WINAPI EraseTape(HANDLE,DWORD,BOOL);
1428 VOID DECLSPEC_NORETURN WINAPI ExitProcess(DWORD);
1429 VOID DECLSPEC_NORETURN WINAPI ExitThread(DWORD);
1430 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1431 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1432 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1433 void WINAPI FatalAppExitA(UINT,LPCSTR);
1434 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1435 void WINAPI FatalExit(int);
1436 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1437 BOOL WINAPI FileEncryptionStatusA(LPCSTR,LPDWORD);
1438 BOOL WINAPI FileEncryptionStatusW(LPCWSTR,LPDWORD);
1439 #define FileEncryptionStatus WINELIB_NAME_AW(FileEncryptionStatus)
1440 BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1441 BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1442 BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1443 BOOL WINAPI FindActCtxSectionStringA(DWORD,const GUID *,ULONG,LPCSTR,PACTCTX_SECTION_KEYED_DATA);
1444 BOOL WINAPI FindActCtxSectionStringW(DWORD,const GUID *,ULONG,LPCWSTR,PACTCTX_SECTION_KEYED_DATA);
1445 #define FindActCtxSectionString WINELIB_NAME_AW(FindActCtxSectionString)
1446 BOOL WINAPI FindActCtxSectionGuid(DWORD,const GUID *,ULONG,const GUID *,PACTCTX_SECTION_KEYED_DATA);
1447 ATOM WINAPI FindAtomA(LPCSTR);
1448 ATOM WINAPI FindAtomW(LPCWSTR);
1449 #define FindAtom WINELIB_NAME_AW(FindAtom)
1450 BOOL WINAPI FindClose(HANDLE);
1451 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1452 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1453 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1454 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1455 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1456 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1457 HANDLE WINAPI FindFirstFileExA(LPCSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1458 HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1459 #define FindFirstFileEx WINELIB_NAME_AW(FindFirstFileEx)
1460 BOOL WINAPI FindFirstFreeAce(PACL,LPVOID*);
1461 BOOL WINAPI FindNextChangeNotification(HANDLE);
1462 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1463 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1464 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1465 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1466 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1467 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1468 #define FindResource WINELIB_NAME_AW(FindResource)
1469 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1470 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1471 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1472 HANDLE WINAPI FindFirstVolumeA(LPSTR,DWORD);
1473 HANDLE WINAPI FindFirstVolumeW(LPWSTR,DWORD);
1474 #define FindFirstVolume WINELIB_NAME_AW(FindFirstVolume)
1475 HANDLE WINAPI FindFirstVolumeMountPointA(LPCSTR,LPSTR,DWORD);
1476 HANDLE WINAPI FindFirstVolumeMountPointW(LPCWSTR,LPWSTR,DWORD);
1477 #define FindFirstVolumeMountPoint WINELIB_NAME_AW(FindFirstVolumeMountPoint)
1478 BOOL WINAPI FindNextVolumeA(HANDLE,LPSTR,DWORD);
1479 BOOL WINAPI FindNextVolumeW(HANDLE,LPWSTR,DWORD);
1480 #define FindNextVolume WINELIB_NAME_AW(FindNextVolume)
1481 BOOL WINAPI FindNextVolumeMountPointA(HANDLE,LPSTR,DWORD);
1482 BOOL WINAPI FindNextVolumeMountPointW(HANDLE,LPWSTR,DWORD);
1483 #define FindNextVolumeMountPoint WINELIB_NAME_AW(FindNextVolumeMountPoint)
1484 BOOL WINAPI FindVolumeClose(HANDLE);
1485 BOOL WINAPI FindVolumeMountPointClose(HANDLE);
1486 BOOL WINAPI FlushFileBuffers(HANDLE);
1487 BOOL WINAPI FlushInstructionCache(HANDLE,LPCVOID,SIZE_T);
1488 BOOL WINAPI FlushViewOfFile(LPCVOID,SIZE_T);
1489 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,DWORD,va_list*);
1490 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,DWORD,va_list*);
1491 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1492 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1493 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1494 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1495 BOOL WINAPI FreeLibrary(HMODULE);
1496 VOID WINAPI FreeLibraryAndExitThread(HINSTANCE,DWORD);
1497 #define FreeModule(handle) FreeLibrary(handle)
1498 #define FreeProcInstance(proc) /*nothing*/
1499 BOOL WINAPI FreeResource(HGLOBAL);
1500 PVOID WINAPI FreeSid(PSID);
1501 BOOL WINAPI GetAce(PACL,DWORD,LPVOID*);
1502 BOOL WINAPI GetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS);
1503 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1504 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1505 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1506 BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1507 BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1508 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1509 BOOL WINAPI GetCurrentActCtx(HANDLE *);
1510 BOOL WINAPI GetCommConfig(HANDLE,LPCOMMCONFIG,LPDWORD);
1511 BOOL WINAPI GetCommMask(HANDLE,LPDWORD);
1512 BOOL WINAPI GetCommModemStatus(HANDLE,LPDWORD);
1513 BOOL WINAPI GetCommProperties(HANDLE,LPCOMMPROP);
1514 BOOL WINAPI GetCommState(HANDLE,LPDCB);
1515 BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1516 LPSTR WINAPI GetCommandLineA(void);
1517 LPWSTR WINAPI GetCommandLineW(void);
1518 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1519 DWORD WINAPI GetCompressedFileSizeA(LPCSTR,LPDWORD);
1520 DWORD WINAPI GetCompressedFileSizeW(LPCWSTR,LPDWORD);
1521 #define GetCompressedFileSize WINELIB_NAME_AW(GetCompressedFileSize)
1522 BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1523 BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1524 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1525 BOOL WINAPI GetComputerNameExA(COMPUTER_NAME_FORMAT,LPSTR,LPDWORD);
1526 BOOL WINAPI GetComputerNameExW(COMPUTER_NAME_FORMAT,LPWSTR,LPDWORD);
1527 #define GetComputerNameEx WINELIB_NAME_AW(GetComputerNameEx)
1528 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1529 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1530 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1531 BOOL WINAPI GetCurrentHwProfileA(LPHW_PROFILE_INFOA);
1532 BOOL WINAPI GetCurrentHwProfileW(LPHW_PROFILE_INFOW);
1533 #define GetCurrentHwProfile WINELIB_NAME_AW(GetCurrentHwProfile)
1534 HANDLE WINAPI GetCurrentProcess(void);
1535 HANDLE WINAPI GetCurrentThread(void);
1536 #define GetCurrentTime() GetTickCount()
1537 BOOL WINAPI GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,LPDWORD);
1538 BOOL WINAPI GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,LPDWORD);
1539 #define GetDefaultCommConfig WINELIB_NAME_AW(GetDefaultCommConfig)
1540 BOOL WINAPI GetDevicePowerState(HANDLE,BOOL*);
1541 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1542 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1543 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1544 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1545 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1546 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1547 DWORD WINAPI GetDllDirectoryA(DWORD,LPSTR);
1548 DWORD WINAPI GetDllDirectoryW(DWORD,LPWSTR);
1549 #define GetDllDirectory WINELIB_NAME_AW(GetDllDirectory)
1550 UINT WINAPI GetDriveTypeA(LPCSTR);
1551 UINT WINAPI GetDriveTypeW(LPCWSTR);
1552 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1553 LPSTR WINAPI GetEnvironmentStringsA(void);
1554 LPWSTR WINAPI GetEnvironmentStringsW(void);
1555 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1556 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1557 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1558 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1559 BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1560 BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1561 DWORD WINAPI GetFileAttributesA(LPCSTR);
1562 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1563 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1564 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1565 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1566 #define GetFileAttributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1567 BOOL WINAPI GetFileInformationByHandle(HANDLE,BY_HANDLE_FILE_INFORMATION*);
1568 BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1569 BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1570 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1571 DWORD WINAPI GetFileSize(HANDLE,LPDWORD);
1572 BOOL WINAPI GetFileSizeEx(HANDLE,PLARGE_INTEGER);
1573 BOOL WINAPI GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME);
1574 DWORD WINAPI GetFileType(HANDLE);
1575 #define GetFreeSpace(w) (0x100000L)
1576 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1577 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1578 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1579 BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1580 BOOL WINAPI GetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1581 DWORD WINAPI GetLengthSid(PSID);
1582 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1583 DWORD WINAPI GetLogicalDrives(void);
1584 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1585 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1586 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1587 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1588 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1589 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1590 BOOL WINAPI GetMailslotInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1591 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1592 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1593 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1594 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1595 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1596 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1597 BOOL WINAPI GetModuleHandleExA(DWORD,LPCSTR,HMODULE*);
1598 BOOL WINAPI GetModuleHandleExW(DWORD,LPCWSTR,HMODULE*);
1599 #define GetModuleHandleEx WINELIB_NAME_AW(GetModuleHandleEx)
1600 BOOL WINAPI GetNamedPipeHandleStateA(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1601 BOOL WINAPI GetNamedPipeHandleStateW(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1602 #define GetNamedPipeHandleState WINELIB_NAME_AW(GetNamedPipeHandleState)
1603 BOOL WINAPI GetNamedPipeInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1604 VOID WINAPI GetNativeSystemInfo(LPSYSTEM_INFO);
1605 BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
1606 BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
1607 BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL);
1608 DWORD WINAPI GetPriorityClass(HANDLE);
1609 BOOL WINAPI GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,PDWORD);
1610 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1611 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1612 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1613 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1614 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1615 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1616 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1617 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1618 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1619 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1620 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1621 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1622 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1623 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1624 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1625 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1626 BOOL WINAPI GetProcessAffinityMask(HANDLE,PDWORD_PTR,PDWORD_PTR);
1627 DWORD WINAPI GetProcessHeaps(DWORD,PHANDLE);
1628 DWORD WINAPI GetProcessId(HANDLE);
1629 BOOL WINAPI GetProcessIoCounters(HANDLE,PIO_COUNTERS);
1630 BOOL WINAPI GetProcessPriorityBoost(HANDLE,PBOOL);
1631 BOOL WINAPI GetProcessShutdownParameters(LPDWORD,LPDWORD);
1632 BOOL WINAPI GetProcessTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1633 DWORD WINAPI GetProcessVersion(DWORD);
1634 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,PSIZE_T,PSIZE_T);
1635 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1636 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1637 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1638 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1639 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1640 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1641 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1642 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1643 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1644 BOOL WINAPI GetQueuedCompletionStatus(HANDLE,LPDWORD,PULONG_PTR,LPOVERLAPPED*,DWORD);
1645 BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
1646 BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1647 BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1648 DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
1649 BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1650 BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1651 PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
1652 DWORD WINAPI GetSidLengthRequired(BYTE);
1653 PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
1654 PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
1655 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1656 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1657 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1658 VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1659 VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1660 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1661 HANDLE WINAPI GetStdHandle(DWORD);
1662 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1663 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1664 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1665 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1666 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1667 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1668 BOOL WINAPI GetSystemTimeAdjustment(PDWORD,PDWORD,PBOOL);
1669 VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME);
1670 UINT WINAPI GetSystemWindowsDirectoryA(LPSTR,UINT);
1671 UINT WINAPI GetSystemWindowsDirectoryW(LPWSTR,UINT);
1672 #define GetSystemWindowsDirectory WINELIB_NAME_AW(GetSystemWindowsDirectory)
1673 DWORD WINAPI GetTapeParameters(HANDLE,DWORD,LPDWORD,LPVOID);
1674 DWORD WINAPI GetTapePosition(HANDLE,DWORD,LPDWORD,LPDWORD,LPDWORD);
1675 DWORD WINAPI GetTapeStatus(HANDLE);
1676 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1677 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1678 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1679 DWORD WINAPI GetTempPathA(DWORD,LPSTR);
1680 DWORD WINAPI GetTempPathW(DWORD,LPWSTR);
1681 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1682 DWORD WINAPI GetTickCount(void);
1683 ULONGLONG WINAPI GetTickCount64(void);
1684 DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION);
1685 BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
1686 INT WINAPI GetThreadPriority(HANDLE);
1687 BOOL WINAPI GetThreadPriorityBoost(HANDLE,PBOOL);
1688 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1689 BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1690 BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
1691 BOOL WINAPI GetUserNameA(LPSTR,LPDWORD);
1692 BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD);
1693 #define GetUserName WINELIB_NAME_AW(GetUserName)
1694 DWORD WINAPI GetVersion(void);
1695 BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1696 BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1697 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1698 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1699 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1700 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1701 BOOL WINAPI GetVolumeNameForVolumeMountPointA(LPCSTR,LPSTR,DWORD);
1702 BOOL WINAPI GetVolumeNameForVolumeMountPointW(LPCWSTR,LPWSTR,DWORD);
1703 #define GetVolumeNameForVolumeMountPoint WINELIB_NAME_AW(GetVolumeNameForVolumeMountPoint)
1704 BOOL WINAPI GetVolumePathNameA(LPCSTR,LPSTR,DWORD);
1705 BOOL WINAPI GetVolumePathNameW(LPCWSTR,LPWSTR,DWORD);
1706 #define GetVolumePathName WINELIB_NAME_AW(GetVolumePathName)
1707 BOOL WINAPI GetVolumePathNamesForVolumeNameA(LPCSTR,LPSTR,DWORD,PDWORD);
1708 BOOL WINAPI GetVolumePathNamesForVolumeNameW(LPCWSTR,LPWSTR,DWORD,PDWORD);
1709 #define GetVolumePathNamesForVolumeName WINELIB_NAME_AW(GetVolumePathNamesForVolumeName)
1710 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1711 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1712 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1713 ATOM WINAPI GlobalAddAtomA(LPCSTR);
1714 ATOM WINAPI GlobalAddAtomW(LPCWSTR);
1715 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
1716 HGLOBAL WINAPI GlobalAlloc(UINT,SIZE_T);
1717 SIZE_T WINAPI GlobalCompact(DWORD);
1718 ATOM WINAPI GlobalDeleteAtom(ATOM);
1719 ATOM WINAPI GlobalFindAtomA(LPCSTR);
1720 ATOM WINAPI GlobalFindAtomW(LPCWSTR);
1721 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
1722 VOID WINAPI GlobalFix(HGLOBAL);
1723 UINT WINAPI GlobalFlags(HGLOBAL);
1724 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1725 UINT WINAPI GlobalGetAtomNameA(ATOM,LPSTR,INT);
1726 UINT WINAPI GlobalGetAtomNameW(ATOM,LPWSTR,INT);
1727 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
1728 HGLOBAL WINAPI GlobalHandle(LPCVOID);
1729 LPVOID WINAPI GlobalLock(HGLOBAL);
1730 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1731 BOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX);
1732 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,SIZE_T,UINT);
1733 SIZE_T WINAPI GlobalSize(HGLOBAL);
1734 VOID WINAPI GlobalUnfix(HGLOBAL);
1735 BOOL WINAPI GlobalUnlock(HGLOBAL);
1736 BOOL WINAPI GlobalUnWire(HGLOBAL);
1737 LPVOID WINAPI GlobalWire(HGLOBAL);
1738 #define HasOverlappedCompleted(lpOverlapped) ((lpOverlapped)->Internal != STATUS_PENDING)
1739 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,SIZE_T);
1740 SIZE_T WINAPI HeapCompact(HANDLE,DWORD);
1741 HANDLE WINAPI HeapCreate(DWORD,SIZE_T,SIZE_T);
1742 BOOL WINAPI HeapDestroy(HANDLE);
1743 BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1744 BOOL WINAPI HeapLock(HANDLE);
1745 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,SIZE_T);
1746 BOOL WINAPI HeapQueryInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T,PSIZE_T);
1747 BOOL WINAPI HeapSetInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T);
1748 SIZE_T WINAPI HeapSize(HANDLE,DWORD,LPCVOID);
1749 BOOL WINAPI HeapUnlock(HANDLE);
1750 BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1751 BOOL WINAPI HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY);
1752 BOOL WINAPI InitAtomTable(DWORD);
1753 BOOL WINAPI InitializeAcl(PACL,DWORD,DWORD);
1754 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1755 BOOL WINAPI InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION *,DWORD);
1756 BOOL WINAPI InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD);
1757 BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1758 VOID WINAPI InitializeSListHead(PSLIST_HEADER);
1759 PSLIST_ENTRY WINAPI InterlockedFlushSList(PSLIST_HEADER);
1760 PSLIST_ENTRY WINAPI InterlockedPopEntrySList(PSLIST_HEADER);
1761 PSLIST_ENTRY WINAPI InterlockedPushEntrySList(PSLIST_HEADER, PSLIST_ENTRY);
1762 BOOL WINAPI IsBadCodePtr(FARPROC);
1763 BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1764 BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1765 BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1766 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1767 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1768 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1769 BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1770 BOOL WINAPI IsDebuggerPresent(void);
1771 BOOL WINAPI IsSystemResumeAutomatic(void);
1772 BOOL WINAPI IsTextUnicode(LPCVOID,INT,LPINT);
1773 BOOL WINAPI IsTokenRestricted(HANDLE);
1774 BOOL WINAPI IsValidAcl(PACL);
1775 BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1776 BOOL WINAPI IsValidSid(PSID);
1777 BOOL WINAPI IsWellKnownSid(PSID,WELL_KNOWN_SID_TYPE);
1778 BOOL WINAPI IsWow64Process(HANDLE,PBOOL);
1779 BOOL WINAPI ImpersonateLoggedOnUser(HANDLE);
1780 BOOL WINAPI ImpersonateNamedPipeClient(HANDLE);
1781 BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1782 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1783 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1784 HMODULE WINAPI LoadLibraryA(LPCSTR);
1785 HMODULE WINAPI LoadLibraryW(LPCWSTR);
1786 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1787 HMODULE WINAPI LoadLibraryExA(LPCSTR,HANDLE,DWORD);
1788 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HANDLE,DWORD);
1789 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1790 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1791 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1792 HLOCAL WINAPI LocalAlloc(UINT,SIZE_T);
1793 SIZE_T WINAPI LocalCompact(UINT);
1794 UINT WINAPI LocalFlags(HLOCAL);
1795 HLOCAL WINAPI LocalFree(HLOCAL);
1796 HLOCAL WINAPI LocalHandle(LPCVOID);
1797 LPVOID WINAPI LocalLock(HLOCAL);
1798 HLOCAL WINAPI LocalReAlloc(HLOCAL,SIZE_T,UINT);
1799 SIZE_T WINAPI LocalShrink(HGLOBAL,UINT);
1800 SIZE_T WINAPI LocalSize(HLOCAL);
1801 BOOL WINAPI LocalUnlock(HLOCAL);
1802 LPVOID WINAPI LockResource(HGLOBAL);
1803 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1804 BOOL WINAPI LookupAccountNameA(LPCSTR,LPCSTR,PSID,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
1805 BOOL WINAPI LookupAccountNameW(LPCWSTR,LPCWSTR,PSID,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE);
1806 #define LookupAccountName WINELIB_NAME_AW(LookupAccountName)
1807 BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
1808 BOOL WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE);
1809 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSid)
1810 BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1811 BOOL WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1812 BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1813 BOOL WINAPI LogonUserA(LPCSTR,LPCSTR,LPCSTR,DWORD,DWORD,PHANDLE);
1814 BOOL WINAPI LogonUserW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,PHANDLE);
1815 #define LogonUser WINELIB_NAME_AW(LogonUser)
1816 BOOL WINAPI LookupPrivilegeDisplayNameA(LPCSTR,LPCSTR,LPSTR,LPDWORD,LPDWORD);
1817 BOOL WINAPI LookupPrivilegeDisplayNameW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,LPDWORD);
1818 #define LookupPrivilegeDisplayName WINELIB_NAME_AW(LookupPrivilegeDisplayName)
1819 BOOL WINAPI LookupPrivilegeNameA(LPCSTR,PLUID,LPSTR,LPDWORD);
1820 BOOL WINAPI LookupPrivilegeNameW(LPCWSTR,PLUID,LPWSTR,LPDWORD);
1821 #define LookupPrivilegeName WINELIB_NAME_AW(LookupPrivilegeName)
1822 BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,PLUID);
1823 BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,PLUID);
1824 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1825 BOOL WINAPI MakeAbsoluteSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD,
1826 PACL,LPDWORD,PACL,LPDWORD,PSID,LPDWORD,PSID,LPDWORD);
1827 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1828 #define MakeProcInstance(proc,inst) (proc)
1829 BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
1830 VOID WINAPI MapGenericMask(PDWORD,PGENERIC_MAPPING);
1831 HMODULE WINAPI MapHModuleSL(WORD);
1832 WORD WINAPI MapHModuleLS(HMODULE);
1833 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,SIZE_T);
1834 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,SIZE_T,LPVOID);
1835 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1836 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1837 #define MoveFile WINELIB_NAME_AW(MoveFile)
1838 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1839 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1840 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1841 BOOL WINAPI MoveFileWithProgressA(LPCSTR,LPCSTR,LPPROGRESS_ROUTINE,LPVOID,DWORD);
1842 BOOL WINAPI MoveFileWithProgressW(LPCWSTR,LPCWSTR,LPPROGRESS_ROUTINE,LPVOID,DWORD);
1843 #define MoveFileWithProgress WINELIB_NAME_AW(MoveFileWithProgress)
1844 INT WINAPI MulDiv(INT,INT,INT);
1845 BOOL WINAPI NeedCurrentDirectoryForExePathA(LPCSTR);
1846 BOOL WINAPI NeedCurrentDirectoryForExePathW(LPCWSTR);
1847 #define NeedCurrentDirectoryForExePath WINELIB_NAME_AW(NeedCurrentDirectoryForExePath)
1848 BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1849 BOOL WINAPI ObjectCloseAuditAlarmA(LPCSTR,LPVOID,BOOL);
1850 BOOL WINAPI ObjectCloseAuditAlarmW(LPCWSTR,LPVOID,BOOL);
1851 #define ObjectCloseAuditAlarm WINELIB_NAME_AW(ObjectCloseAuditAlarm)
1852 BOOL WINAPI ObjectDeleteAuditAlarmA(LPCSTR,LPVOID,BOOL);
1853 BOOL WINAPI ObjectDeleteAuditAlarmW(LPCWSTR,LPVOID,BOOL);
1854 #define ObjectDeleteAuditAlarm WINELIB_NAME_AW(ObjectDeleteAuditAlarm)
1855 BOOL WINAPI ObjectOpenAuditAlarmA(LPCSTR,LPVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,HANDLE,
1856 DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,LPBOOL);
1857 BOOL WINAPI ObjectOpenAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,HANDLE,
1858 DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,LPBOOL);
1859 #define ObjectOpenAuditAlarm WINELIB_NAME_AW(ObjectOpenAuditAlarm)
1860 BOOL WINAPI ObjectPrivilegeAuditAlarmA(LPCSTR,LPVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL);
1861 BOOL WINAPI ObjectPrivilegeAuditAlarmW(LPCWSTR,LPVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL);
1862 #define ObjectPrivilegeAuditAlarm WINELIB_NAME_AW(ObjectPrivilegeAuditAlarm)
1863 HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1864 HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1865 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1866 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1867 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1868 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1869 HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
1870 HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1871 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1872 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1873 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1874 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1875 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1876 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1877 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1878 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1879 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1880 BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1881 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1882 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1883 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1884 HANDLE WINAPI OpenThread(DWORD,BOOL,DWORD);
1885 BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1886 HANDLE WINAPI OpenWaitableTimerA(DWORD,BOOL,LPCSTR);
1887 HANDLE WINAPI OpenWaitableTimerW(DWORD,BOOL,LPCWSTR);
1888 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
1889 VOID WINAPI OutputDebugStringA(LPCSTR);
1890 VOID WINAPI OutputDebugStringW(LPCWSTR);
1891 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1892 BOOL WINAPI PeekNamedPipe(HANDLE,PVOID,DWORD,PDWORD,PDWORD,PDWORD);
1893 BOOL WINAPI PostQueuedCompletionStatus(HANDLE,DWORD,ULONG_PTR,LPOVERLAPPED);
1894 DWORD WINAPI PrepareTape(HANDLE,DWORD,BOOL);
1895 BOOL WINAPI ProcessIdToSessionId(DWORD,DWORD*);
1896 BOOL WINAPI PrivilegeCheck(HANDLE,PPRIVILEGE_SET,LPBOOL);
1897 BOOL WINAPI PrivilegedServiceAuditAlarmA(LPCSTR,LPCSTR,HANDLE,PPRIVILEGE_SET,BOOL);
1898 BOOL WINAPI PrivilegedServiceAuditAlarmW(LPCWSTR,LPCWSTR,HANDLE,PPRIVILEGE_SET,BOOL);
1899 #define PrivilegedServiceAuditAlarm WINELIB_NAME_AW(PrivilegedServiceAuditAlarm)
1900 BOOL WINAPI PulseEvent(HANDLE);
1901 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1902 BOOL WINAPI QueryActCtxW(DWORD,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T *);
1903 USHORT WINAPI QueryDepthSList(PSLIST_HEADER);
1904 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1905 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1906 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1907 BOOL WINAPI QueryPerformanceCounter(LARGE_INTEGER*);
1908 BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER*);
1909 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1910 BOOL WINAPI QueueUserWorkItem(LPTHREAD_START_ROUTINE,PVOID,ULONG);
1911 void WINAPI RaiseException(DWORD,DWORD,DWORD,const ULONG_PTR *);
1912 BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1913 BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1914 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1915 BOOL WINAPI ReadDirectoryChangesW(HANDLE,LPVOID,DWORD,BOOL,DWORD,LPDWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
1916 BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1917 BOOL WINAPI ReadFileEx(HANDLE,LPVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
1918 BOOL WINAPI ReadProcessMemory(HANDLE,LPCVOID,LPVOID,SIZE_T,SIZE_T*);
1919 HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
1920 HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1921 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1922 BOOL WINAPI RegisterWaitForSingleObject(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG);
1923 HANDLE WINAPI RegisterWaitForSingleObjectEx(HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG);
1924 VOID WINAPI ReleaseActCtx(HANDLE);
1925 BOOL WINAPI ReleaseMutex(HANDLE);
1926 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1927 ULONG WINAPI RemoveVectoredExceptionHandler(PVOID);
1928 BOOL WINAPI ReplaceFileA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPVOID,LPVOID);
1929 BOOL WINAPI ReplaceFileW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPVOID,LPVOID);
1930 #define ReplaceFile WINELIB_NAME_AW(ReplaceFile)
1931 BOOL WINAPI RemoveDirectoryA(LPCSTR);
1932 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1933 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1934 BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
1935 BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
1936 BOOL WINAPI RequestWakeupLatency(LATENCY_TIME latency);
1937 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
1938 BOOL WINAPI ResetEvent(HANDLE);
1939 DWORD WINAPI ResumeThread(HANDLE);
1940 BOOL WINAPI RevertToSelf(void);
1941 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1942 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1943 #define SearchPath WINELIB_NAME_AW(SearchPath)
1944 BOOL WINAPI SetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS);
1945 BOOL WINAPI SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD);
1946 BOOL WINAPI SetCommBreak(HANDLE);
1947 BOOL WINAPI SetCommMask(HANDLE,DWORD);
1948 BOOL WINAPI SetCommState(HANDLE,LPDCB);
1949 BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1950 BOOL WINAPI SetComputerNameA(LPCSTR);
1951 BOOL WINAPI SetComputerNameW(LPCWSTR);
1952 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1953 BOOL WINAPI SetComputerNameExA(COMPUTER_NAME_FORMAT,LPCSTR);
1954 BOOL WINAPI SetComputerNameExW(COMPUTER_NAME_FORMAT,LPCWSTR);
1955 #define SetComputerNameEx WINELIB_NAME_AW(SetComputerNameEx)
1956 DWORD WINAPI SetCriticalSectionSpinCount(LPCRITICAL_SECTION,DWORD);
1957 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1958 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1959 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1960 BOOL WINAPI SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD);
1961 BOOL WINAPI SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD);
1962 #define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1963 BOOL WINAPI SetDllDirectoryA(LPCSTR);
1964 BOOL WINAPI SetDllDirectoryW(LPCWSTR);
1965 #define SetDllDirectory WINELIB_NAME_AW(SetDllDirectory)
1966 BOOL WINAPI SetEndOfFile(HANDLE);
1967 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1968 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1969 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1970 UINT WINAPI SetErrorMode(UINT);
1971 BOOL WINAPI SetEvent(HANDLE);
1972 VOID WINAPI SetFileApisToANSI(void);
1973 VOID WINAPI SetFileApisToOEM(void);
1974 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1975 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1976 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1977 DWORD WINAPI SetFilePointer(HANDLE,LONG,LPLONG,DWORD);
1978 BOOL WINAPI SetFilePointerEx(HANDLE,LARGE_INTEGER,LARGE_INTEGER*,DWORD);
1979 BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1980 BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1981 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1982 BOOL WINAPI SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*);
1983 UINT WINAPI SetHandleCount(UINT);
1984 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1985 BOOL WINAPI SetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1986 BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
1987 BOOL WINAPI SetMailslotInfo(HANDLE,DWORD);
1988 BOOL WINAPI SetNamedPipeHandleState(HANDLE,LPDWORD,LPDWORD,LPDWORD);
1989 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1990 BOOL WINAPI SetPrivateObjectSecurity(SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,
1991 PSECURITY_DESCRIPTOR*,PGENERIC_MAPPING,HANDLE);
1992 BOOL WINAPI SetProcessAffinityMask(HANDLE,DWORD_PTR);
1993 BOOL WINAPI SetProcessPriorityBoost(HANDLE,BOOL);
1994 BOOL WINAPI SetProcessShutdownParameters(DWORD,DWORD);
1995 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,SIZE_T,SIZE_T);
1996 BOOL WINAPI SetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,SECURITY_DESCRIPTOR_CONTROL,
1997 SECURITY_DESCRIPTOR_CONTROL);
1998 BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1999 BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
2000 BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
2001 BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
2002 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
2003 #define SetSwapAreaSize(w) (w)
2004 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
2005 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
2006 BOOL WINAPI SetSystemTimeAdjustment(DWORD,BOOL);
2007 DWORD WINAPI SetTapeParameters(HANDLE,DWORD,LPVOID);
2008 DWORD WINAPI SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL);
2009 DWORD_PTR WINAPI SetThreadAffinityMask(HANDLE,DWORD_PTR);
2010 BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
2011 DWORD WINAPI SetThreadExecutionState(EXECUTION_STATE);
2012 DWORD WINAPI SetThreadIdealProcessor(HANDLE,DWORD);
2013 BOOL WINAPI SetThreadPriority(HANDLE,INT);
2014 BOOL WINAPI SetThreadPriorityBoost(HANDLE,BOOL);
2015 BOOL WINAPI SetThreadToken(PHANDLE,HANDLE);
2016 BOOL WINAPI SetTimeZoneInformation(const TIME_ZONE_INFORMATION *);
2017 BOOL WINAPI SetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD);
2018 LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER);
2019 BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
2020 BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
2021 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
2022 BOOL WINAPI SetVolumeMountPointA(LPCSTR,LPCSTR);
2023 BOOL WINAPI SetVolumeMountPointW(LPCSTR,LPCSTR);
2024 #define SetVolumeMountPoint WINELIB_NAME_AW(SetVolumeMountPoint)
2025 BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,BOOL);
2026 BOOL WINAPI SetupComm(HANDLE,DWORD,DWORD);
2027 DWORD WINAPI SignalObjectAndWait(HANDLE,HANDLE,DWORD,BOOL);
2028 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
2029 VOID WINAPI Sleep(DWORD);
2030 DWORD WINAPI SleepEx(DWORD,BOOL);
2031 DWORD WINAPI SuspendThread(HANDLE);
2032 void WINAPI SwitchToFiber(LPVOID);
2033 BOOL WINAPI SwitchToThread(void);
2034 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
2035 BOOL WINAPI SystemTimeToTzSpecificLocalTime(LPTIME_ZONE_INFORMATION,LPSYSTEMTIME,LPSYSTEMTIME);
2036 BOOL WINAPI TerminateProcess(HANDLE,DWORD);
2037 BOOL WINAPI TerminateThread(HANDLE,DWORD);
2038 DWORD WINAPI TlsAlloc(void);
2039 BOOL WINAPI TlsFree(DWORD);
2040 LPVOID WINAPI TlsGetValue(DWORD);
2041 BOOL WINAPI TlsSetValue(DWORD,LPVOID);
2042 BOOL WINAPI TransactNamedPipe(HANDLE,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
2043 BOOL WINAPI TransmitCommChar(HANDLE,CHAR);
2044 BOOL WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit);
2045 BOOL WINAPI TzSpecificLocalTimeToSystemTime(LPTIME_ZONE_INFORMATION,LPSYSTEMTIME,LPSYSTEMTIME);
2046 LONG WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS);
2047 BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
2048 BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
2049 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
2050 BOOL WINAPI UnmapViewOfFile(LPCVOID);
2051 BOOL WINAPI UnregisterWait(HANDLE);
2052 BOOL WINAPI UnregisterWaitEx(HANDLE,HANDLE);
2053 BOOL WINAPI UpdateResourceA(HANDLE,LPCSTR,LPCSTR,WORD,LPVOID,DWORD);
2054 BOOL WINAPI UpdateResourceW(HANDLE,LPCWSTR,LPCWSTR,WORD,LPVOID,DWORD);
2055 #define UpdateResource WINELIB_NAME_AW(UpdateResource)
2056 BOOL WINAPI VerifyVersionInfoA(LPOSVERSIONINFOEXA,DWORD,DWORDLONG);
2057 BOOL WINAPI VerifyVersionInfoW(LPOSVERSIONINFOEXW,DWORD,DWORDLONG);
2058 #define VerifyVersionInfo WINELIB_NAME_AW(VerifyVersionInfo)
2059 LPVOID WINAPI VirtualAlloc(LPVOID,SIZE_T,DWORD,DWORD);
2060 LPVOID WINAPI VirtualAllocEx(HANDLE,LPVOID,SIZE_T,DWORD,DWORD);
2061 BOOL WINAPI VirtualFree(LPVOID,SIZE_T,DWORD);
2062 BOOL WINAPI VirtualFreeEx(HANDLE,LPVOID,SIZE_T,DWORD);
2063 BOOL WINAPI VirtualLock(LPVOID,SIZE_T);
2064 BOOL WINAPI VirtualProtect(LPVOID,SIZE_T,DWORD,LPDWORD);
2065 BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,SIZE_T,DWORD,LPDWORD);
2066 SIZE_T WINAPI VirtualQuery(LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T);
2067 SIZE_T WINAPI VirtualQueryEx(HANDLE,LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T);
2068 BOOL WINAPI VirtualUnlock(LPVOID,SIZE_T);
2069 BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
2070 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
2071 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
2072 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
2073 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
2074 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
2075 BOOL WINAPI WaitNamedPipeA(LPCSTR,DWORD);
2076 BOOL WINAPI WaitNamedPipeW(LPCWSTR,DWORD);
2077 #define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
2078 UINT WINAPI WinExec(LPCSTR,UINT);
2079 BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
2080 BOOL WINAPI WriteFileEx(HANDLE,LPCVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
2081 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
2082 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
2083 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2084 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
2085 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
2086 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
2087 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
2088 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
2089 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
2090 BOOL WINAPI WriteProcessMemory(HANDLE,LPVOID,LPCVOID,SIZE_T,SIZE_T*);
2091 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
2092 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
2093 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2094 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
2095 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
2096 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
2097 DWORD WINAPI WriteTapemark(HANDLE,DWORD,DWORD,BOOL);
2098 #define Yield()
2099 BOOL WINAPI ZombifyActCtx(HANDLE);
2101 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
2102 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
2103 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
2104 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
2105 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
2106 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
2107 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
2108 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
2109 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
2110 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
2111 INT WINAPI lstrlenA(LPCSTR);
2112 INT WINAPI lstrlenW(LPCWSTR);
2114 #if !defined(WINE_NO_INLINE_STRING) && defined(__WINESRC__)
2116 /* string functions without the exception handler */
2118 extern inline LPWSTR WINAPI lstrcpynW( LPWSTR dst, LPCWSTR src, INT n )
2120 LPWSTR d = dst;
2121 LPCWSTR s = src;
2122 UINT count = n;
2124 while ((count > 1) && *s)
2126 count--;
2127 *d++ = *s++;
2129 if (count) *d = 0;
2130 return dst;
2133 extern inline LPSTR WINAPI lstrcpynA( LPSTR dst, LPCSTR src, INT n )
2135 LPSTR d = dst;
2136 LPCSTR s = src;
2137 UINT count = n;
2139 while ((count > 1) && *s)
2141 count--;
2142 *d++ = *s++;
2144 if (count) *d = 0;
2145 return dst;
2148 extern inline INT WINAPI lstrlenW( LPCWSTR str )
2150 const WCHAR *s = str;
2151 while (*s) s++;
2152 return s - str;
2155 extern inline INT WINAPI lstrlenA( LPCSTR str )
2157 return strlen( str );
2160 extern inline LPWSTR WINAPI lstrcpyW( LPWSTR dst, LPCWSTR src )
2162 WCHAR *p = dst;
2163 while ((*p++ = *src++));
2164 return dst;
2167 extern inline LPSTR WINAPI lstrcpyA( LPSTR dst, LPCSTR src )
2169 return strcpy( dst, src );
2172 extern inline LPWSTR WINAPI lstrcatW( LPWSTR dst, LPCWSTR src )
2174 WCHAR *p = dst;
2175 while (*p) p++;
2176 while ((*p++ = *src++));
2177 return dst;
2180 extern inline LPSTR WINAPI lstrcatA( LPSTR dst, LPCSTR src )
2182 return strcat( dst, src );
2185 /* strncpy doesn't do what you think, don't use it */
2186 #undef strncpy
2187 #define strncpy(d,s,n) error do_not_use_strncpy_use_lstrcpynA_or_memcpy_instead
2189 #endif /* !defined(WINE_NO_INLINE_STRING) && defined(__WINESRC__) */
2191 #define lstrcat WINELIB_NAME_AW(lstrcat)
2192 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
2193 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
2194 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
2195 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
2196 #define lstrlen WINELIB_NAME_AW(lstrlen)
2198 LONG WINAPI _hread(HFILE,LPVOID,LONG);
2199 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
2200 HFILE WINAPI _lcreat(LPCSTR,INT);
2201 HFILE WINAPI _lclose(HFILE);
2202 LONG WINAPI _llseek(HFILE,LONG,INT);
2203 HFILE WINAPI _lopen(LPCSTR,INT);
2204 UINT WINAPI _lread(HFILE,LPVOID,UINT);
2205 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
2207 /* compatibility macros */
2208 #define FillMemory RtlFillMemory
2209 #define MoveMemory RtlMoveMemory
2210 #define ZeroMemory RtlZeroMemory
2211 #define CopyMemory RtlCopyMemory
2213 /* undocumented functions */
2215 typedef struct tagSYSLEVEL
2217 CRITICAL_SECTION crst;
2218 INT level;
2219 } SYSLEVEL;
2221 /* [GS]etProcessDword offsets */
2222 #define GPD_APP_COMPAT_FLAGS (-56)
2223 #define GPD_LOAD_DONE_EVENT (-52)
2224 #define GPD_HINSTANCE16 (-48)
2225 #define GPD_WINDOWS_VERSION (-44)
2226 #define GPD_THDB (-40)
2227 #define GPD_PDB (-36)
2228 #define GPD_STARTF_SHELLDATA (-32)
2229 #define GPD_STARTF_HOTKEY (-28)
2230 #define GPD_STARTF_SHOWWINDOW (-24)
2231 #define GPD_STARTF_SIZE (-20)
2232 #define GPD_STARTF_POSITION (-16)
2233 #define GPD_STARTF_FLAGS (-12)
2234 #define GPD_PARENT (- 8)
2235 #define GPD_FLAGS (- 4)
2236 #define GPD_USERDATA ( 0)
2238 void WINAPI DisposeLZ32Handle(HANDLE);
2239 HANDLE WINAPI DosFileHandleToWin32Handle(HFILE);
2240 DWORD WINAPI GetProcessDword(DWORD,INT);
2241 VOID WINAPI GetpWin16Lock(SYSLEVEL**);
2242 DWORD WINAPI MapLS(LPCVOID);
2243 LPVOID WINAPI MapSL(DWORD);
2244 VOID WINAPI ReleaseThunkLock(DWORD*);
2245 VOID WINAPI RestoreThunkLock(DWORD);
2246 VOID WINAPI UnMapLS(DWORD);
2247 HFILE WINAPI Win32HandleToDosFileHandle(HANDLE);
2248 VOID WINAPI _CheckNotSysLevel(SYSLEVEL *lock);
2249 DWORD WINAPI _ConfirmWin16Lock(void);
2250 DWORD WINAPI _ConfirmSysLevel(SYSLEVEL*);
2251 VOID WINAPI _EnterSysLevel(SYSLEVEL*);
2252 VOID WINAPI _LeaveSysLevel(SYSLEVEL*);
2255 /* Wine internal functions */
2257 extern char *wine_get_unix_file_name( LPCWSTR dos );
2258 extern WCHAR *wine_get_dos_file_name( LPCSTR str );
2261 /* a few optimizations for i386/gcc */
2263 #if defined(__i386__) && defined(__GNUC__) && defined(__WINESRC__) && !defined(_NTSYSTEM_)
2265 extern inline LONG WINAPI InterlockedCompareExchange( LONG volatile *dest, LONG xchg, LONG compare );
2266 extern inline LONG WINAPI InterlockedCompareExchange( LONG volatile *dest, LONG xchg, LONG compare )
2268 LONG ret;
2269 __asm__ __volatile__( "lock; cmpxchgl %2,(%1)"
2270 : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" );
2271 return ret;
2274 extern inline LONG WINAPI InterlockedExchange( LONG volatile *dest, LONG val );
2275 extern inline LONG WINAPI InterlockedExchange( LONG volatile *dest, LONG val )
2277 LONG ret;
2278 __asm__ __volatile__( "lock; xchgl %0,(%1)"
2279 : "=r" (ret) :"r" (dest), "0" (val) : "memory" );
2280 return ret;
2283 extern inline LONG WINAPI InterlockedExchangeAdd( LONG volatile *dest, LONG incr );
2284 extern inline LONG WINAPI InterlockedExchangeAdd( LONG volatile *dest, LONG incr )
2286 LONG ret;
2287 __asm__ __volatile__( "lock; xaddl %0,(%1)"
2288 : "=r" (ret) : "r" (dest), "0" (incr) : "memory" );
2289 return ret;
2292 extern inline LONG WINAPI InterlockedIncrement( LONG volatile *dest );
2293 extern inline LONG WINAPI InterlockedIncrement( LONG volatile *dest )
2295 return InterlockedExchangeAdd( dest, 1 ) + 1;
2298 extern inline LONG WINAPI InterlockedDecrement( LONG volatile *dest );
2299 extern inline LONG WINAPI InterlockedDecrement( LONG volatile *dest )
2301 return InterlockedExchangeAdd( dest, -1 ) - 1;
2304 extern inline DWORD WINAPI GetLastError(void);
2305 extern inline DWORD WINAPI GetLastError(void)
2307 DWORD ret;
2308 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x34,%0" : "=r" (ret) );
2309 return ret;
2312 extern inline DWORD WINAPI GetCurrentProcessId(void);
2313 extern inline DWORD WINAPI GetCurrentProcessId(void)
2315 DWORD ret;
2316 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x20,%0" : "=r" (ret) );
2317 return ret;
2320 extern inline DWORD WINAPI GetCurrentThreadId(void);
2321 extern inline DWORD WINAPI GetCurrentThreadId(void)
2323 DWORD ret;
2324 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x24,%0" : "=r" (ret) );
2325 return ret;
2328 extern inline void WINAPI SetLastError( DWORD err );
2329 extern inline void WINAPI SetLastError( DWORD err )
2331 __asm__ __volatile__( ".byte 0x64\n\tmovl %0,0x34" : : "r" (err) : "memory" );
2334 extern inline HANDLE WINAPI GetProcessHeap(void);
2335 extern inline HANDLE WINAPI GetProcessHeap(void)
2337 HANDLE *pdb;
2338 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb) );
2339 return pdb[0x18 / sizeof(HANDLE)]; /* get dword at offset 0x18 in pdb */
2342 #else /* __i386__ && __GNUC__ && __WINESRC__ && !_NTSYSTEM_ */
2344 DWORD WINAPI GetCurrentProcessId(void);
2345 DWORD WINAPI GetCurrentThreadId(void);
2346 DWORD WINAPI GetLastError(void);
2347 HANDLE WINAPI GetProcessHeap(void);
2348 LONG WINAPI InterlockedCompareExchange(LONG volatile*,LONG,LONG);
2349 LONG WINAPI InterlockedDecrement(LONG volatile*);
2350 LONG WINAPI InterlockedExchange(LONG volatile*,LONG);
2351 LONG WINAPI InterlockedExchangeAdd(LONG volatile*,LONG);
2352 LONG WINAPI InterlockedIncrement(LONG volatile*);
2353 VOID WINAPI SetLastError(DWORD);
2355 #endif /* __i386__ && __GNUC__ && __WINESRC__ && !_NTSYSTEM_ */
2357 static inline PVOID WINAPI InterlockedCompareExchangePointer( PVOID volatile *dest, PVOID xchg, PVOID compare )
2359 #if defined(__x86_64__) && defined(__GNUC__)
2360 PVOID ret;
2361 __asm__ __volatile__( "lock; cmpxchgq %2,(%1)"
2362 : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" );
2363 return ret;
2364 #else
2365 return (PVOID)InterlockedCompareExchange( (LONG volatile*)dest, (LONG)xchg, (LONG)compare );
2366 #endif
2369 static inline PVOID WINAPI InterlockedExchangePointer( PVOID volatile *dest, PVOID val )
2371 #if defined(__x86_64__) && defined(__GNUC__)
2372 PVOID ret;
2373 __asm__ __volatile__( "lock; xchgq %0,(%1)"
2374 : "=r" (ret) :"r" (dest), "0" (val) : "memory" );
2375 return ret;
2376 #else
2377 return (PVOID)InterlockedExchange( (LONG volatile*)dest, (LONG)val );
2378 #endif
2381 #ifdef __WINESRC__
2382 #define GetCurrentProcess() ((HANDLE)0xffffffff)
2383 #define GetCurrentThread() ((HANDLE)0xfffffffe)
2384 #endif
2386 /* WinMain(entry point) must be declared in winbase.h. */
2387 /* If this is not declared, we cannot compile many sources written with C++. */
2388 int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
2390 #ifdef __WINESRC__
2391 /* shouldn't be here, but is nice for type checking */
2392 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) DECLSPEC_HIDDEN;
2393 #endif
2395 #ifdef __cplusplus
2397 #endif
2399 #endif /* __WINE_WINBASE_H */