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