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