- Don't add standard headers for the dll separation hacks.
[wine.git] / include / winbase.h
blob95d9782f47da84762cca62ca575f7f00d3c9e73c
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_WINBASE_H
20 #define __WINE_WINBASE_H
22 #ifndef RC_INVOKED
23 #include <stdarg.h>
24 #endif
26 #include "basetsd.h"
27 #include "windef.h"
28 #ifndef __WINE__
29 #include "winerror.h"
30 #endif
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
36 /* Windows Exit Procedure flag values */
37 #define WEP_FREE_DLL 0
38 #define WEP_SYSTEM_EXIT 1
40 typedef DWORD (CALLBACK *LPTHREAD_START_ROUTINE)(LPVOID);
42 typedef VOID (WINAPI *PFIBER_START_ROUTINE)( LPVOID lpFiberParameter );
43 typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE;
45 typedef RTL_CRITICAL_SECTION CRITICAL_SECTION;
46 typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION;
47 typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION;
49 typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG;
50 typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG;
51 typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG;
54 #define EXCEPTION_DEBUG_EVENT 1
55 #define CREATE_THREAD_DEBUG_EVENT 2
56 #define CREATE_PROCESS_DEBUG_EVENT 3
57 #define EXIT_THREAD_DEBUG_EVENT 4
58 #define EXIT_PROCESS_DEBUG_EVENT 5
59 #define LOAD_DLL_DEBUG_EVENT 6
60 #define UNLOAD_DLL_DEBUG_EVENT 7
61 #define OUTPUT_DEBUG_STRING_EVENT 8
62 #define RIP_EVENT 9
64 typedef struct _EXCEPTION_DEBUG_INFO {
65 EXCEPTION_RECORD ExceptionRecord;
66 DWORD dwFirstChance;
67 } EXCEPTION_DEBUG_INFO;
69 typedef struct _CREATE_THREAD_DEBUG_INFO {
70 HANDLE hThread;
71 LPVOID lpThreadLocalBase;
72 LPTHREAD_START_ROUTINE lpStartAddress;
73 } CREATE_THREAD_DEBUG_INFO;
75 typedef struct _CREATE_PROCESS_DEBUG_INFO {
76 HANDLE hFile;
77 HANDLE hProcess;
78 HANDLE hThread;
79 LPVOID lpBaseOfImage;
80 DWORD dwDebugInfoFileOffset;
81 DWORD nDebugInfoSize;
82 LPVOID lpThreadLocalBase;
83 LPTHREAD_START_ROUTINE lpStartAddress;
84 LPVOID lpImageName;
85 WORD fUnicode;
86 } CREATE_PROCESS_DEBUG_INFO;
88 typedef struct _EXIT_THREAD_DEBUG_INFO {
89 DWORD dwExitCode;
90 } EXIT_THREAD_DEBUG_INFO;
92 typedef struct _EXIT_PROCESS_DEBUG_INFO {
93 DWORD dwExitCode;
94 } EXIT_PROCESS_DEBUG_INFO;
96 typedef struct _LOAD_DLL_DEBUG_INFO {
97 HANDLE hFile;
98 LPVOID lpBaseOfDll;
99 DWORD dwDebugInfoFileOffset;
100 DWORD nDebugInfoSize;
101 LPVOID lpImageName;
102 WORD fUnicode;
103 } LOAD_DLL_DEBUG_INFO;
105 typedef struct _UNLOAD_DLL_DEBUG_INFO {
106 LPVOID lpBaseOfDll;
107 } UNLOAD_DLL_DEBUG_INFO;
109 typedef struct _OUTPUT_DEBUG_STRING_INFO {
110 LPSTR lpDebugStringData;
111 WORD fUnicode;
112 WORD nDebugStringLength;
113 } OUTPUT_DEBUG_STRING_INFO;
115 typedef struct _RIP_INFO {
116 DWORD dwError;
117 DWORD dwType;
118 } RIP_INFO;
120 typedef struct _DEBUG_EVENT {
121 DWORD dwDebugEventCode;
122 DWORD dwProcessId;
123 DWORD dwThreadId;
124 union {
125 EXCEPTION_DEBUG_INFO Exception;
126 CREATE_THREAD_DEBUG_INFO CreateThread;
127 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo;
128 EXIT_THREAD_DEBUG_INFO ExitThread;
129 EXIT_PROCESS_DEBUG_INFO ExitProcess;
130 LOAD_DLL_DEBUG_INFO LoadDll;
131 UNLOAD_DLL_DEBUG_INFO UnloadDll;
132 OUTPUT_DEBUG_STRING_INFO DebugString;
133 RIP_INFO RipInfo;
134 } u;
135 } DEBUG_EVENT, *LPDEBUG_EVENT;
137 typedef PCONTEXT LPCONTEXT;
138 typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD;
139 typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS;
141 #define OFS_MAXPATHNAME 128
142 typedef struct _OFSTRUCT
144 BYTE cBytes;
145 BYTE fFixedDisk;
146 WORD nErrCode;
147 BYTE reserved[4];
148 BYTE szPathName[OFS_MAXPATHNAME];
149 } OFSTRUCT, *POFSTRUCT, *LPOFSTRUCT;
151 #define OF_READ 0x0000
152 #define OF_WRITE 0x0001
153 #define OF_READWRITE 0x0002
154 #define OF_SHARE_COMPAT 0x0000
155 #define OF_SHARE_EXCLUSIVE 0x0010
156 #define OF_SHARE_DENY_WRITE 0x0020
157 #define OF_SHARE_DENY_READ 0x0030
158 #define OF_SHARE_DENY_NONE 0x0040
159 #define OF_PARSE 0x0100
160 #define OF_DELETE 0x0200
161 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
162 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
163 #define OF_CANCEL 0x0800
164 #define OF_CREATE 0x1000
165 #define OF_PROMPT 0x2000
166 #define OF_EXIST 0x4000
167 #define OF_REOPEN 0x8000
169 /* SetErrorMode values */
170 #define SEM_FAILCRITICALERRORS 0x0001
171 #define SEM_NOGPFAULTERRORBOX 0x0002
172 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
173 #define SEM_NOOPENFILEERRORBOX 0x8000
175 /* CopyFileEx flags */
176 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
177 #define COPY_FILE_RESTARTABLE 0x00000002
178 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
180 /* GetTempFileName() Flags */
181 #define TF_FORCEDRIVE 0x80
183 #define DRIVE_UNKNOWN 0
184 #define DRIVE_NO_ROOT_DIR 1
185 #define DRIVE_REMOVABLE 2
186 #define DRIVE_FIXED 3
187 #define DRIVE_REMOTE 4
188 /* Win32 additions */
189 #define DRIVE_CDROM 5
190 #define DRIVE_RAMDISK 6
192 #define MAX_COMPUTERNAME_LENGTH 31
194 /* The security attributes structure */
195 typedef struct _SECURITY_ATTRIBUTES
197 DWORD nLength;
198 LPVOID lpSecurityDescriptor;
199 BOOL bInheritHandle;
200 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
202 #ifndef _FILETIME_
203 #define _FILETIME_
204 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
205 typedef struct _FILETIME
207 #ifdef WORDS_BIGENDIAN
208 DWORD dwHighDateTime;
209 DWORD dwLowDateTime;
210 #else
211 DWORD dwLowDateTime;
212 DWORD dwHighDateTime;
213 #endif
214 } FILETIME, *PFILETIME, *LPFILETIME;
215 #endif /* _FILETIME_ */
217 /* Find* structures */
218 typedef struct _WIN32_FIND_DATAA
220 DWORD dwFileAttributes;
221 FILETIME ftCreationTime;
222 FILETIME ftLastAccessTime;
223 FILETIME ftLastWriteTime;
224 DWORD nFileSizeHigh;
225 DWORD nFileSizeLow;
226 DWORD dwReserved0;
227 DWORD dwReserved1;
228 CHAR cFileName[260];
229 CHAR cAlternateFileName[14];
230 } WIN32_FIND_DATAA, *PWIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
232 typedef struct _WIN32_FIND_DATAW
234 DWORD dwFileAttributes;
235 FILETIME ftCreationTime;
236 FILETIME ftLastAccessTime;
237 FILETIME ftLastWriteTime;
238 DWORD nFileSizeHigh;
239 DWORD nFileSizeLow;
240 DWORD dwReserved0;
241 DWORD dwReserved1;
242 WCHAR cFileName[260];
243 WCHAR cAlternateFileName[14];
244 } WIN32_FIND_DATAW, *PWIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
246 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
247 DECL_WINELIB_TYPE_AW(PWIN32_FIND_DATA)
248 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
250 typedef enum _FINDEX_INFO_LEVELS
252 FindExInfoStandard,
253 FindExInfoMaxInfoLevel
254 } FINDEX_INFO_LEVELS;
256 typedef enum _FINDEX_SEARCH_OPS
258 FindExSearchNameMatch,
259 FindExSearchLimitToDirectories,
260 FindExSearchLimitToDevices,
261 FindExSearchMaxSearchOp
262 } FINDEX_SEARCH_OPS;
264 typedef struct _PROCESS_HEAP_ENTRY
266 LPVOID lpData;
267 DWORD cbData;
268 BYTE cbOverhead;
269 BYTE iRegionIndex;
270 WORD wFlags;
271 union {
272 struct {
273 HANDLE hMem;
274 DWORD dwReserved[3];
275 } Block;
276 struct {
277 DWORD dwCommittedSize;
278 DWORD dwUnCommittedSize;
279 LPVOID lpFirstBlock;
280 LPVOID lpLastBlock;
281 } Region;
282 } DUMMYUNIONNAME;
283 } PROCESS_HEAP_ENTRY, *PPROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY;
285 #define PROCESS_HEAP_REGION 0x0001
286 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
287 #define PROCESS_HEAP_ENTRY_BUSY 0x0004
288 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
289 #define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
291 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
292 #define INVALID_FILE_SIZE ((DWORD)0xFFFFFFFF)
293 #define INVALID_SET_FILE_POINTER ((DWORD)-1)
294 #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
297 #define TLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
299 #define SHUTDOWN_NORETRY 1
301 /* comm */
303 #define CBR_110 0xFF10
304 #define CBR_300 0xFF11
305 #define CBR_600 0xFF12
306 #define CBR_1200 0xFF13
307 #define CBR_2400 0xFF14
308 #define CBR_4800 0xFF15
309 #define CBR_9600 0xFF16
310 #define CBR_14400 0xFF17
311 #define CBR_19200 0xFF18
312 #define CBR_38400 0xFF1B
313 #define CBR_56000 0xFF1F
314 #define CBR_57600 0xFF20
315 #define CBR_115200 0xFF21
316 #define CBR_128000 0xFF23
317 #define CBR_256000 0xFF27
319 #define NOPARITY 0
320 #define ODDPARITY 1
321 #define EVENPARITY 2
322 #define MARKPARITY 3
323 #define SPACEPARITY 4
324 #define ONESTOPBIT 0
325 #define ONE5STOPBITS 1
326 #define TWOSTOPBITS 2
328 #define IGNORE 0
329 #define INFINITE 0xFFFFFFFF
331 #define CE_RXOVER 0x0001
332 #define CE_OVERRUN 0x0002
333 #define CE_RXPARITY 0x0004
334 #define CE_FRAME 0x0008
335 #define CE_BREAK 0x0010
336 #define CE_CTSTO 0x0020
337 #define CE_DSRTO 0x0040
338 #define CE_RLSDTO 0x0080
339 #define CE_TXFULL 0x0100
340 #define CE_PTO 0x0200
341 #define CE_IOE 0x0400
342 #define CE_DNS 0x0800
343 #define CE_OOP 0x1000
344 #define CE_MODE 0x8000
346 #define IE_BADID -1
347 #define IE_OPEN -2
348 #define IE_NOPEN -3
349 #define IE_MEMORY -4
350 #define IE_DEFAULT -5
351 #define IE_HARDWARE -10
352 #define IE_BYTESIZE -11
353 #define IE_BAUDRATE -12
355 #define EV_RXCHAR 0x0001
356 #define EV_RXFLAG 0x0002
357 #define EV_TXEMPT 0x0004
358 #define EV_CTS 0x0008
359 #define EV_DSR 0x0010
360 #define EV_RLSD 0x0020
361 #define EV_BREAK 0x0040
362 #define EV_ERR 0x0080
363 #define EV_RING 0x0100
364 #define EV_PERR 0x0200
365 #define EV_RX80FULL 0x0400
366 #define EV_EVENT1 0x0800
367 #define EV_EVENT2 0x1000
369 #define SETXOFF 1
370 #define SETXON 2
371 #define SETRTS 3
372 #define CLRRTS 4
373 #define SETDTR 5
374 #define CLRDTR 6
375 #define RESETDEV 7
376 #define SETBREAK 8
377 #define CLRBREAK 9
379 /* Purge functions for Comm Port */
380 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
381 comm port */
382 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
383 the comm port */
384 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
385 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
388 /* Modem Status Flags */
389 #define MS_CTS_ON ((DWORD)0x0010)
390 #define MS_DSR_ON ((DWORD)0x0020)
391 #define MS_RING_ON ((DWORD)0x0040)
392 #define MS_RLSD_ON ((DWORD)0x0080)
394 #define RTS_CONTROL_DISABLE 0
395 #define RTS_CONTROL_ENABLE 1
396 #define RTS_CONTROL_HANDSHAKE 2
397 #define RTS_CONTROL_TOGGLE 3
399 #define DTR_CONTROL_DISABLE 0
400 #define DTR_CONTROL_ENABLE 1
401 #define DTR_CONTROL_HANDSHAKE 2
404 #define LMEM_FIXED 0
405 #define LMEM_MOVEABLE 0x0002
406 #define LMEM_NOCOMPACT 0x0010
407 #define LMEM_NODISCARD 0x0020
408 #define LMEM_ZEROINIT 0x0040
409 #define LMEM_MODIFY 0x0080
410 #define LMEM_DISCARDABLE 0x0F00
411 #define LMEM_DISCARDED 0x4000
412 #define LMEM_LOCKCOUNT 0x00FF
414 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
415 #define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT)
417 #define NONZEROLHND (LMEM_MOVEABLE)
418 #define NONZEROLPTR (LMEM_FIXED)
420 #define GMEM_FIXED 0x0000
421 #define GMEM_MOVEABLE 0x0002
422 #define GMEM_NOCOMPACT 0x0010
423 #define GMEM_NODISCARD 0x0020
424 #define GMEM_ZEROINIT 0x0040
425 #define GMEM_MODIFY 0x0080
426 #define GMEM_DISCARDABLE 0x0100
427 #define GMEM_NOT_BANKED 0x1000
428 #define GMEM_SHARE 0x2000
429 #define GMEM_DDESHARE 0x2000
430 #define GMEM_NOTIFY 0x4000
431 #define GMEM_LOWER GMEM_NOT_BANKED
432 #define GMEM_DISCARDED 0x4000
433 #define GMEM_LOCKCOUNT 0x00ff
434 #define GMEM_INVALID_HANDLE 0x8000
436 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
437 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
439 #define INVALID_ATOM ((ATOM)0)
440 #define MAXINTATOM 0xc000
441 #define MAKEINTATOMA(atom) ((LPCSTR)((ULONG_PTR)((WORD)(atom))))
442 #define MAKEINTATOMW(atom) ((LPCWSTR)((ULONG_PTR)((WORD)(atom))))
443 #define MAKEINTATOM WINELIB_NAME_AW(MAKEINTATOM)
445 typedef struct tagMEMORYSTATUS
447 DWORD dwLength;
448 DWORD dwMemoryLoad;
449 SIZE_T dwTotalPhys;
450 SIZE_T dwAvailPhys;
451 SIZE_T dwTotalPageFile;
452 SIZE_T dwAvailPageFile;
453 SIZE_T dwTotalVirtual;
454 SIZE_T dwAvailVirtual;
455 } MEMORYSTATUS, *LPMEMORYSTATUS;
458 typedef struct _SYSTEMTIME{
459 WORD wYear;
460 WORD wMonth;
461 WORD wDayOfWeek;
462 WORD wDay;
463 WORD wHour;
464 WORD wMinute;
465 WORD wSecond;
466 WORD wMilliseconds;
467 } SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME;
469 /* The 'overlapped' data structure used by async I/O functions.
471 typedef struct _OVERLAPPED {
472 DWORD Internal;
473 DWORD InternalHigh;
474 DWORD Offset;
475 DWORD OffsetHigh;
476 HANDLE hEvent;
477 } OVERLAPPED, *LPOVERLAPPED;
479 typedef VOID (CALLBACK *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD dwErrorCode, DWORD dwNumberOfBytesTransfered, LPOVERLAPPED lpOverlapped);
481 /* Process startup information.
484 /* STARTUPINFO.dwFlags */
485 #define STARTF_USESHOWWINDOW 0x00000001
486 #define STARTF_USESIZE 0x00000002
487 #define STARTF_USEPOSITION 0x00000004
488 #define STARTF_USECOUNTCHARS 0x00000008
489 #define STARTF_USEFILLATTRIBUTE 0x00000010
490 #define STARTF_RUNFULLSCREEN 0x00000020
491 #define STARTF_FORCEONFEEDBACK 0x00000040
492 #define STARTF_FORCEOFFFEEDBACK 0x00000080
493 #define STARTF_USESTDHANDLES 0x00000100
494 #define STARTF_USEHOTKEY 0x00000200
496 typedef struct _STARTUPINFOA{
497 DWORD cb; /* 00: size of struct */
498 LPSTR lpReserved; /* 04: */
499 LPSTR lpDesktop; /* 08: */
500 LPSTR lpTitle; /* 0c: */
501 DWORD dwX; /* 10: */
502 DWORD dwY; /* 14: */
503 DWORD dwXSize; /* 18: */
504 DWORD dwYSize; /* 1c: */
505 DWORD dwXCountChars; /* 20: */
506 DWORD dwYCountChars; /* 24: */
507 DWORD dwFillAttribute; /* 28: */
508 DWORD dwFlags; /* 2c: */
509 WORD wShowWindow; /* 30: */
510 WORD cbReserved2; /* 32: */
511 BYTE *lpReserved2; /* 34: */
512 HANDLE hStdInput; /* 38: */
513 HANDLE hStdOutput; /* 3c: */
514 HANDLE hStdError; /* 40: */
515 } STARTUPINFOA, *LPSTARTUPINFOA;
517 typedef struct _STARTUPINFOW{
518 DWORD cb;
519 LPWSTR lpReserved;
520 LPWSTR lpDesktop;
521 LPWSTR lpTitle;
522 DWORD dwX;
523 DWORD dwY;
524 DWORD dwXSize;
525 DWORD dwYSize;
526 DWORD dwXCountChars;
527 DWORD dwYCountChars;
528 DWORD dwFillAttribute;
529 DWORD dwFlags;
530 WORD wShowWindow;
531 WORD cbReserved2;
532 BYTE *lpReserved2;
533 HANDLE hStdInput;
534 HANDLE hStdOutput;
535 HANDLE hStdError;
536 } STARTUPINFOW, *LPSTARTUPINFOW;
538 DECL_WINELIB_TYPE_AW(STARTUPINFO)
539 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
541 typedef struct _PROCESS_INFORMATION{
542 HANDLE hProcess;
543 HANDLE hThread;
544 DWORD dwProcessId;
545 DWORD dwThreadId;
546 } PROCESS_INFORMATION, *PPROCESS_INFORMATION, *LPPROCESS_INFORMATION;
548 typedef struct _TIME_ZONE_INFORMATION{
549 LONG Bias;
550 WCHAR StandardName[32];
551 SYSTEMTIME StandardDate;
552 LONG StandardBias;
553 WCHAR DaylightName[32];
554 SYSTEMTIME DaylightDate;
555 LONG DaylightBias;
556 } TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
558 #define TIME_ZONE_ID_INVALID ((DWORD)0xFFFFFFFF)
559 #define TIME_ZONE_ID_UNKNOWN 0
560 #define TIME_ZONE_ID_STANDARD 1
561 #define TIME_ZONE_ID_DAYLIGHT 2
563 /* CreateProcess: dwCreationFlag values
565 #define DEBUG_PROCESS 0x00000001
566 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
567 #define CREATE_SUSPENDED 0x00000004
568 #define DETACHED_PROCESS 0x00000008
569 #define CREATE_NEW_CONSOLE 0x00000010
570 #define NORMAL_PRIORITY_CLASS 0x00000020
571 #define IDLE_PRIORITY_CLASS 0x00000040
572 #define HIGH_PRIORITY_CLASS 0x00000080
573 #define REALTIME_PRIORITY_CLASS 0x00000100
574 #define CREATE_NEW_PROCESS_GROUP 0x00000200
575 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
576 #define CREATE_SEPARATE_WOW_VDM 0x00000800
577 #define CREATE_SHARED_WOW_VDM 0x00001000
578 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
579 #define CREATE_NO_WINDOW 0x08000000
580 #define PROFILE_USER 0x10000000
581 #define PROFILE_KERNEL 0x20000000
582 #define PROFILE_SERVER 0x40000000
585 /* File object type definitions
587 #define FILE_TYPE_UNKNOWN 0
588 #define FILE_TYPE_DISK 1
589 #define FILE_TYPE_CHAR 2
590 #define FILE_TYPE_PIPE 3
591 #define FILE_TYPE_REMOTE 32768
593 /* File creation flags
595 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
596 #define FILE_FLAG_OVERLAPPED 0x40000000L
597 #define FILE_FLAG_NO_BUFFERING 0x20000000L
598 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
599 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
600 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
601 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
602 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
603 #define CREATE_NEW 1
604 #define CREATE_ALWAYS 2
605 #define OPEN_EXISTING 3
606 #define OPEN_ALWAYS 4
607 #define TRUNCATE_EXISTING 5
609 /* Standard handle identifiers
611 #define STD_INPUT_HANDLE ((DWORD) -10)
612 #define STD_OUTPUT_HANDLE ((DWORD) -11)
613 #define STD_ERROR_HANDLE ((DWORD) -12)
615 typedef struct _BY_HANDLE_FILE_INFORMATION
617 DWORD dwFileAttributes;
618 FILETIME ftCreationTime;
619 FILETIME ftLastAccessTime;
620 FILETIME ftLastWriteTime;
621 DWORD dwVolumeSerialNumber;
622 DWORD nFileSizeHigh;
623 DWORD nFileSizeLow;
624 DWORD nNumberOfLinks;
625 DWORD nFileIndexHigh;
626 DWORD nFileIndexLow;
627 } BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION ;
629 #define PIPE_ACCESS_INBOUND 1
630 #define PIPE_ACCESS_OUTBOUND 2
631 #define PIPE_ACCESS_DUPLEX 3
633 #define PIPE_TYPE_BYTE 0
634 #define PIPE_TYPE_MESSAGE 4
636 #define PIPE_READMODE_BYTE 0
637 #define PIPE_READMODE_MESSAGE 2
639 #define PIPE_WAIT 0
640 #define PIPE_NOWAIT 1
642 #define PIPE_UNLIMITED_INSTANCES 255
644 #define NMPWAIT_WAIT_FOREVER 0xffffffff
645 #define NMPWAIT_NOWAIT 0x00000001
646 #define NMPWAIT_USE_DEFAULT_WAIT 0x00000000
648 typedef struct _SYSTEM_POWER_STATUS
650 BYTE ACLineStatus;
651 BYTE BatteryFlag;
652 BYTE BatteryLifePercent;
653 BYTE reserved;
654 DWORD BatteryLifeTime;
655 DWORD BatteryFullLifeTime;
656 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
659 typedef struct tagSYSTEM_INFO
661 union {
662 DWORD dwOemId; /* Obsolete field - do not use */
663 struct {
664 WORD wProcessorArchitecture;
665 WORD wReserved;
666 } DUMMYSTRUCTNAME;
667 } DUMMYUNIONNAME;
668 DWORD dwPageSize;
669 LPVOID lpMinimumApplicationAddress;
670 LPVOID lpMaximumApplicationAddress;
671 DWORD dwActiveProcessorMask;
672 DWORD dwNumberOfProcessors;
673 DWORD dwProcessorType;
674 DWORD dwAllocationGranularity;
675 WORD wProcessorLevel;
676 WORD wProcessorRevision;
677 } SYSTEM_INFO, *LPSYSTEM_INFO;
679 typedef BOOL (CALLBACK *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
680 typedef BOOL (CALLBACK *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG);
681 typedef BOOL (CALLBACK *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG);
682 typedef BOOL (CALLBACK *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG);
683 typedef BOOL (CALLBACK *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG);
684 typedef BOOL (CALLBACK *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG);
686 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
687 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
688 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
690 /* flags that can be passed to LoadLibraryEx */
691 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
692 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
693 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
695 /* ifdef _x86_ ... */
696 typedef struct _LDT_ENTRY {
697 WORD LimitLow;
698 WORD BaseLow;
699 union {
700 struct {
701 BYTE BaseMid;
702 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
703 BYTE Flags2;
704 BYTE BaseHi;
705 } Bytes;
706 struct {
707 unsigned BaseMid : 8;
708 unsigned Type : 5;
709 unsigned Dpl : 2;
710 unsigned Pres : 1;
711 unsigned LimitHi : 4;
712 unsigned Sys : 1;
713 unsigned Reserved_0 : 1;
714 unsigned Default_Big : 1;
715 unsigned Granularity : 1;
716 unsigned BaseHi : 8;
717 } Bits;
718 } HighWord;
719 } LDT_ENTRY, *LPLDT_ENTRY;
722 typedef enum _GET_FILEEX_INFO_LEVELS {
723 GetFileExInfoStandard
724 } GET_FILEEX_INFO_LEVELS;
726 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
727 DWORD dwFileAttributes;
728 FILETIME ftCreationTime;
729 FILETIME ftLastAccessTime;
730 FILETIME ftLastWriteTime;
731 DWORD nFileSizeHigh;
732 DWORD nFileSizeLow;
733 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
736 * This one seems to be a Win32 only definition. It also is defined with
737 * WINAPI instead of CALLBACK in the windows headers.
739 typedef DWORD (CALLBACK *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
740 LARGE_INTEGER, DWORD, DWORD, HANDLE,
741 HANDLE, LPVOID);
744 #define WAIT_FAILED 0xffffffff
745 #define WAIT_OBJECT_0 0
746 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
747 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
748 #define WAIT_IO_COMPLETION STATUS_USER_APC
749 #define WAIT_TIMEOUT STATUS_TIMEOUT
750 #define STILL_ACTIVE STATUS_PENDING
752 #define FILE_BEGIN 0
753 #define FILE_CURRENT 1
754 #define FILE_END 2
756 #define FILE_MAP_COPY 0x00000001
757 #define FILE_MAP_WRITE 0x00000002
758 #define FILE_MAP_READ 0x00000004
759 #define FILE_MAP_ALL_ACCESS 0x000f001f
761 #define MOVEFILE_REPLACE_EXISTING 0x00000001
762 #define MOVEFILE_COPY_ALLOWED 0x00000002
763 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
765 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
766 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
767 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
768 #define FS_PERSISTENT_ACLS FILE_PERSISTENT_ACLS
769 #define FS_VOL_IS_COMPRESSED FILE_VOLUME_IS_COMPRESSED
770 #define FS_FILE_COMPRESSION FILE_FILE_COMPRESSION
772 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
773 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
774 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
775 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
776 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
777 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
778 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
779 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
780 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
781 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
782 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
783 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
784 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
785 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
786 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
787 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
788 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
789 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
790 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
791 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
792 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
793 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
794 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
796 /* Wine extension; Windows doesn't have a name for this code */
797 #define EXCEPTION_CRITICAL_SECTION_WAIT 0xc0000194
799 #define DUPLICATE_CLOSE_SOURCE 0x00000001
800 #define DUPLICATE_SAME_ACCESS 0x00000002
802 #define HANDLE_FLAG_INHERIT 0x00000001
803 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
805 #define HINSTANCE_ERROR 32
807 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
808 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
809 #define THREAD_PRIORITY_NORMAL 0
810 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
811 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
812 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
813 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
814 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
816 /* flags to FormatMessage */
817 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100
818 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x00000200
819 #define FORMAT_MESSAGE_FROM_STRING 0x00000400
820 #define FORMAT_MESSAGE_FROM_HMODULE 0x00000800
821 #define FORMAT_MESSAGE_FROM_SYSTEM 0x00001000
822 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x00002000
823 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0x000000FF
825 #ifdef __WINE__
826 #define CRITICAL_SECTION_INIT(name) { (void *)(__FILE__ ": " name), -1, 0, 0, 0, 0 }
827 #endif
829 typedef struct {
830 DWORD dwOSVersionInfoSize;
831 DWORD dwMajorVersion;
832 DWORD dwMinorVersion;
833 DWORD dwBuildNumber;
834 DWORD dwPlatformId;
835 CHAR szCSDVersion[128];
836 } OSVERSIONINFOA, *POSVERSIONINFOA, *LPOSVERSIONINFOA;
838 typedef struct {
839 DWORD dwOSVersionInfoSize;
840 DWORD dwMajorVersion;
841 DWORD dwMinorVersion;
842 DWORD dwBuildNumber;
843 DWORD dwPlatformId;
844 WCHAR szCSDVersion[128];
845 } OSVERSIONINFOW, *POSVERSIONINFOW, *LPOSVERSIONINFOW;
847 DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
848 DECL_WINELIB_TYPE_AW(POSVERSIONINFO)
849 DECL_WINELIB_TYPE_AW(LPOSVERSIONINFO)
851 typedef struct {
852 DWORD dwOSVersionInfoSize;
853 DWORD dwMajorVersion;
854 DWORD dwMinorVersion;
855 DWORD dwBuildNumber;
856 DWORD dwPlatformId;
857 CHAR szCSDVersion[128];
858 WORD wServicePackMajor;
859 WORD wServicePackMinor;
860 WORD wSuiteMask;
861 BYTE wProductType;
862 BYTE wReserved;
863 } OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
865 typedef struct {
866 DWORD dwOSVersionInfoSize;
867 DWORD dwMajorVersion;
868 DWORD dwMinorVersion;
869 DWORD dwBuildNumber;
870 DWORD dwPlatformId;
871 WCHAR szCSDVersion[128];
872 WORD wServicePackMajor;
873 WORD wServicePackMinor;
874 WORD wSuiteMask;
875 BYTE wProductType;
876 BYTE wReserved;
877 } OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW;
879 DECL_WINELIB_TYPE_AW(OSVERSIONINFOEX)
880 DECL_WINELIB_TYPE_AW(POSVERSIONINFOEX)
881 DECL_WINELIB_TYPE_AW(LPOSVERSIONINFOEX)
883 ULONGLONG WINAPI VerSetConditionMask(ULONGLONG,DWORD,BYTE);
885 #define VER_SET_CONDITION(_m_,_t_,_c_) ((_m_)=VerSetConditionMask((_m_),(_t_),(_c_)))
887 #define VER_PLATFORM_WIN32s 0
888 #define VER_PLATFORM_WIN32_WINDOWS 1
889 #define VER_PLATFORM_WIN32_NT 2
891 #define VER_MINORVERSION 0x00000001
892 #define VER_MAJORVERSION 0x00000002
893 #define VER_BUILDNUMBER 0x00000004
894 #define VER_PLATFORMID 0x00000008
895 #define VER_SERVICEPACKMINOR 0x00000010
896 #define VER_SERVICEPACKMAJOR 0x00000020
897 #define VER_SUITENAME 0x00000040
898 #define VER_PRODUCT_TYPE 0x00000080
900 #define VER_NT_WORKSTATION 1
901 #define VER_NT_DOMAIN_CONTROLLER 2
902 #define VER_NT_SERVER 3
904 #define VER_SUITE_SMALLBUSINESS 0x00000001
905 #define VER_SUITE_ENTERPRISE 0x00000002
906 #define VER_SUITE_BACKOFFICE 0x00000004
907 #define VER_SUITE_COMMUNICATIONS 0x00000008
908 #define VER_SUITE_TERMINAL 0x00000010
909 #define VER_SUITE_SMALLBUSINESS_RESTRICTED 0x00000020
910 #define VER_SUITE_EMBEDDEDNT 0x00000040
911 #define VER_SUITE_DATACENTER 0x00000080
912 #define VER_SUITE_SINGLEUSERTS 0x00000100
913 #define VER_SUITE_PERSONAL 0x00000200
915 #define VER_EQUAL 1
916 #define VER_GREATER 2
917 #define VER_GREATER_EQUAL 3
918 #define VER_LESS 4
919 #define VER_LESS_EQUAL 5
920 #define VER_AND 6
921 #define VER_OR 7
923 typedef struct tagCOMSTAT
925 DWORD status;
926 DWORD cbInQue;
927 DWORD cbOutQue;
928 } COMSTAT,*LPCOMSTAT;
930 typedef struct tagDCB
932 DWORD DCBlength;
933 DWORD BaudRate;
934 unsigned fBinary :1;
935 unsigned fParity :1;
936 unsigned fOutxCtsFlow :1;
937 unsigned fOutxDsrFlow :1;
938 unsigned fDtrControl :2;
939 unsigned fDsrSensitivity :1;
940 unsigned fTXContinueOnXoff :1;
941 unsigned fOutX :1;
942 unsigned fInX :1;
943 unsigned fErrorChar :1;
944 unsigned fNull :1;
945 unsigned fRtsControl :2;
946 unsigned fAbortOnError :1;
947 unsigned fDummy2 :17;
948 WORD wReserved;
949 WORD XonLim;
950 WORD XoffLim;
951 BYTE ByteSize;
952 BYTE Parity;
953 BYTE StopBits;
954 char XonChar;
955 char XoffChar;
956 char ErrorChar;
957 char EofChar;
958 char EvtChar;
959 } DCB, *LPDCB;
961 typedef struct tagCOMMCONFIG {
962 DWORD dwSize;
963 WORD wVersion;
964 WORD wReserved;
965 DCB dcb;
966 DWORD dwProviderSubType;
967 DWORD dwProviderOffset;
968 DWORD dwProviderSize;
969 DWORD wcProviderData[1];
970 } COMMCONFIG, *LPCOMMCONFIG;
972 typedef struct tagCOMMPROP {
973 WORD wPacketLength;
974 WORD wPacketVersion;
975 DWORD dwServiceMask;
976 DWORD dwReserved1;
977 DWORD dwMaxTxQueue;
978 DWORD dwMaxRxQueue;
979 DWORD dwMaxBaud;
980 DWORD dwProvSubType;
981 DWORD dwProvCapabilities;
982 DWORD dwSettableParams;
983 DWORD dwSettableBaud;
984 WORD wSettableData;
985 WORD wSettableStopParity;
986 DWORD dwCurrentTxQueue;
987 DWORD dwCurrentRxQueue;
988 DWORD dwProvSpec1;
989 DWORD dwProvSpec2;
990 WCHAR wcProvChar[1];
991 } COMMPROP, *LPCOMMPROP;
993 #define SP_SERIALCOMM ((DWORD)1)
995 #define BAUD_075 ((DWORD)0x01)
996 #define BAUD_110 ((DWORD)0x02)
997 #define BAUD_134_5 ((DWORD)0x04)
998 #define BAUD_150 ((DWORD)0x08)
999 #define BAUD_300 ((DWORD)0x10)
1000 #define BAUD_600 ((DWORD)0x20)
1001 #define BAUD_1200 ((DWORD)0x40)
1002 #define BAUD_1800 ((DWORD)0x80)
1003 #define BAUD_2400 ((DWORD)0x100)
1004 #define BAUD_4800 ((DWORD)0x200)
1005 #define BAUD_7200 ((DWORD)0x400)
1006 #define BAUD_9600 ((DWORD)0x800)
1007 #define BAUD_14400 ((DWORD)0x1000)
1008 #define BAUD_19200 ((DWORD)0x2000)
1009 #define BAUD_38400 ((DWORD)0x4000)
1010 #define BAUD_56K ((DWORD)0x8000)
1011 #define BAUD_57600 ((DWORD)0x40000)
1012 #define BAUD_115200 ((DWORD)0x20000)
1013 #define BAUD_128K ((DWORD)0x10000)
1014 #define BAUD_USER ((DWORD)0x10000000)
1016 #define PST_FAX ((DWORD)0x21)
1017 #define PST_LAT ((DWORD)0x101)
1018 #define PST_MODEM ((DWORD)0x06)
1019 #define PST_NETWORK_BRIDGE ((DWORD)0x100)
1020 #define PST_PARALLEL_PORT ((DWORD)0x02)
1021 #define PST_RS232 ((DWORD)0x01)
1022 #define PST_RS442 ((DWORD)0x03)
1023 #define PST_RS423 ((DWORD)0x04)
1024 #define PST_RS449 ((DWORD)0x06)
1025 #define PST_SCANNER ((DWORD)0x22)
1026 #define PST_TCPIP_TELNET ((DWORD)0x102)
1027 #define PST_UNSPECIFIED ((DWORD)0x00)
1028 #define PST_X25 ((DWORD)0x103)
1030 #define PCF_16BITMODE ((DWORD)0x200)
1031 #define PCF_DTRDSR ((DWORD)0x01)
1032 #define PCF_INTTIMEOUTS ((DWORD)0x80)
1033 #define PCF_PARITY_CHECK ((DWORD)0x08)
1034 #define PCF_RLSD ((DWORD)0x04)
1035 #define PCF_RTSCTS ((DWORD)0x02)
1036 #define PCF_SETXCHAR ((DWORD)0x20)
1037 #define PCF_SPECIALCHARS ((DWORD)0x100)
1038 #define PCF_TOTALTIMEOUTS ((DWORD)0x40)
1039 #define PCF_XONXOFF ((DWORD)0x10)
1041 #define SP_BAUD ((DWORD)0x02)
1042 #define SP_DATABITS ((DWORD)0x04)
1043 #define SP_HANDSHAKING ((DWORD)0x10)
1044 #define SP_PARITY ((DWORD)0x01)
1045 #define SP_PARITY_CHECK ((DWORD)0x20)
1046 #define SP_RLSD ((DWORD)0x40)
1047 #define SP_STOPBITS ((DWORD)0x08)
1049 #define DATABITS_5 ((DWORD)0x01)
1050 #define DATABITS_6 ((DWORD)0x02)
1051 #define DATABITS_7 ((DWORD)0x04)
1052 #define DATABITS_8 ((DWORD)0x08)
1053 #define DATABITS_16 ((DWORD)0x10)
1054 #define DATABITS_16X ((DWORD)0x20)
1056 #define STOPBITS_10 ((DWORD)1)
1057 #define STOPBITS_15 ((DWORD)2)
1058 #define STOPBITS_20 ((DWORD)4)
1060 #define PARITY_NONE ((DWORD)0x100)
1061 #define PARITY_ODD ((DWORD)0x200)
1062 #define PARITY_EVEN ((DWORD)0x400)
1063 #define PARITY_MARK ((DWORD)0x800)
1064 #define PARITY_SPACE ((DWORD)0x1000)
1066 typedef struct tagCOMMTIMEOUTS {
1067 DWORD ReadIntervalTimeout;
1068 DWORD ReadTotalTimeoutMultiplier;
1069 DWORD ReadTotalTimeoutConstant;
1070 DWORD WriteTotalTimeoutMultiplier;
1071 DWORD WriteTotalTimeoutConstant;
1072 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1074 typedef void (CALLBACK *PAPCFUNC)(ULONG_PTR);
1075 typedef void (CALLBACK *PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD);
1077 typedef enum _COMPUTER_NAME_FORMAT
1079 ComputerNameNetBIOS,
1080 ComputerNameDnsHostname,
1081 ComputerNameDnsDomain,
1082 ComputerNameDnsFullyQualified,
1083 ComputerNamePhysicalNetBIOS,
1084 ComputerNamePhysicalDnsHostname,
1085 ComputerNamePhysicalDnsDomain,
1086 ComputerNamePhysicalDnsFullyQualified,
1087 ComputerNameMax
1088 } COMPUTER_NAME_FORMAT;
1090 /*DWORD WINAPI GetVersion( void );*/
1091 BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1092 BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1093 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1095 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1097 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1098 BOOL WINAPI InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION *,DWORD);
1099 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1100 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1101 BOOL WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit);
1102 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1103 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1104 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,PSIZE_T,PSIZE_T);
1105 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1106 void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1107 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,SIZE_T,SIZE_T);
1108 BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1109 BOOL WINAPI TerminateThread(HANDLE,DWORD);
1110 BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1112 /* GetBinaryType return values.
1115 #define SCS_32BIT_BINARY 0
1116 #define SCS_DOS_BINARY 1
1117 #define SCS_WOW_BINARY 2
1118 #define SCS_PIF_BINARY 3
1119 #define SCS_POSIX_BINARY 4
1120 #define SCS_OS216_BINARY 5
1122 BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1123 BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1124 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1126 /* Declarations for functions that exist only in Win32 */
1128 BOOL WINAPI AddAccessAllowedAce(PACL,DWORD,DWORD,PSID);
1129 BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
1130 BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1131 BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,LPVOID,DWORD,LPVOID,LPDWORD);
1132 BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
1133 BOOL WINAPI AllocateLocallyUniqueId(PLUID);
1134 BOOL WINAPI AreFileApisANSI(void);
1135 BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
1136 BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
1137 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1138 BOOL WINAPI BackupRead(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1139 BOOL WINAPI BackupSeek(HANDLE,DWORD,DWORD,LPDWORD,LPDWORD,LPVOID*);
1140 BOOL WINAPI BackupWrite(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1141 BOOL WINAPI Beep(DWORD,DWORD);
1142 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1143 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1144 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1145 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1146 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1147 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1148 BOOL WINAPI CancelIo(HANDLE);
1149 BOOL WINAPI CancelWaitableTimer(HANDLE);
1150 BOOL WINAPI CheckTokenMembership(HANDLE,PSID,PBOOL);
1151 BOOL WINAPI ClearCommBreak(HANDLE);
1152 BOOL WINAPI ClearCommError(HANDLE,LPDWORD,LPCOMSTAT);
1153 BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1154 BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1155 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1156 BOOL WINAPI CloseEventLog(HANDLE);
1157 BOOL WINAPI CloseHandle(HANDLE);
1158 BOOL WINAPI CommConfigDialogA(LPCSTR,HANDLE,LPCOMMCONFIG);
1159 BOOL WINAPI CommConfigDialogW(LPCWSTR,HANDLE,LPCOMMCONFIG);
1160 #define CommConfigDialog WINELIB_NAME_AW(CommConfigDialog)
1161 BOOL WINAPI ConnectNamedPipe(HANDLE,LPOVERLAPPED);
1162 BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1163 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1164 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1165 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1166 #define CopyFile WINELIB_NAME_AW(CopyFile)
1167 BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1168 BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1169 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1170 BOOL WINAPI CopySid(DWORD,PSID,PSID);
1171 INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1172 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1173 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1174 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1175 HANDLE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1176 DWORD,DWORD,HANDLE);
1177 HANDLE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1178 DWORD,DWORD,HANDLE);
1179 #define CreateFile WINELIB_NAME_AW(CreateFile)
1180 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1181 DWORD,DWORD,LPCSTR);
1182 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1183 DWORD,DWORD,LPCWSTR);
1184 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1185 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1186 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1187 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1188 HANDLE WINAPI CreateNamedPipeA(LPCSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1189 HANDLE WINAPI CreateNamedPipeW(LPCWSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1190 #define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
1191 BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1192 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1193 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1194 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1195 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1196 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1197 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1198 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1199 HANDLE WINAPI CreateRemoteThread(HANDLE,LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1200 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1201 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1202 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1203 DWORD WINAPI CreateTapePartition(HANDLE,DWORD,DWORD,DWORD);
1204 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1205 HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1206 HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1207 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1208 BOOL WINAPI DebugActiveProcess(DWORD);
1209 BOOL WINAPI DebugActiveProcessStop(DWORD);
1210 void WINAPI DebugBreak(void);
1211 BOOL WINAPI DebugBreakProcess(HANDLE);
1212 BOOL WINAPI DebugSetProcessKillOnExit(BOOL);
1213 BOOL WINAPI DeregisterEventSource(HANDLE);
1214 BOOL WINAPI DeviceIoControl(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1215 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1216 BOOL WINAPI DisconnectNamedPipe(HANDLE);
1217 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1218 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1219 BOOL WINAPI EscapeCommFunction(HANDLE,UINT);
1220 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1221 ENUMRESLANGPROCA,LONG);
1222 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1223 ENUMRESLANGPROCW,LONG);
1224 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1225 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1226 LONG);
1227 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1228 LONG);
1229 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1230 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1231 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1232 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1233 BOOL WINAPI EqualSid(PSID, PSID);
1234 BOOL WINAPI EqualPrefixSid(PSID,PSID);
1235 DWORD WINAPI EraseTape(HANDLE,DWORD,BOOL);
1236 VOID WINAPI ExitProcess(DWORD) WINE_NORETURN;
1237 VOID WINAPI ExitThread(DWORD) WINE_NORETURN;
1238 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1239 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1240 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1241 BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1242 BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1243 BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1244 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1245 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1246 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1247 BOOL WINAPI FindNextChangeNotification(HANDLE);
1248 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1249 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1250 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1251 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1252 BOOL WINAPI FlushFileBuffers(HANDLE);
1253 BOOL WINAPI FlushViewOfFile(LPCVOID,SIZE_T);
1254 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,DWORD,va_list*);
1255 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,DWORD,va_list*);
1256 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1257 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1258 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1259 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1260 VOID WINAPI FreeLibraryAndExitThread(HINSTANCE,DWORD);
1261 PVOID WINAPI FreeSid(PSID);
1262 BOOL WINAPI GetCommConfig(HANDLE,LPCOMMCONFIG,LPDWORD);
1263 BOOL WINAPI GetCommMask(HANDLE,LPDWORD);
1264 BOOL WINAPI GetCommModemStatus(HANDLE,LPDWORD);
1265 BOOL WINAPI GetCommProperties(HANDLE,LPCOMMPROP);
1266 BOOL WINAPI GetCommState(HANDLE,LPDCB);
1267 BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1268 LPSTR WINAPI GetCommandLineA(void);
1269 LPWSTR WINAPI GetCommandLineW(void);
1270 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1271 BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1272 BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1273 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1274 BOOL WINAPI GetComputerNameExA(COMPUTER_NAME_FORMAT,LPSTR,LPDWORD);
1275 BOOL WINAPI GetComputerNameExW(COMPUTER_NAME_FORMAT,LPWSTR,LPDWORD);
1276 #define GetComputerNameEx WINELIB_NAME_AW(GetComputerNameEx)
1277 HANDLE WINAPI GetCurrentProcess(void);
1278 HANDLE WINAPI GetCurrentThread(void);
1279 BOOL WINAPI GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,LPDWORD);
1280 BOOL WINAPI GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,LPDWORD);
1281 #define GetDefaultCommConfig WINELIB_NAME_AW(GetDefaultCommConfig)
1282 LPSTR WINAPI GetEnvironmentStringsA(void);
1283 LPWSTR WINAPI GetEnvironmentStringsW(void);
1284 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1285 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1286 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1287 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1288 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1289 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1290 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1291 DWORD WINAPI GetFileInformationByHandle(HANDLE,BY_HANDLE_FILE_INFORMATION*);
1292 BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1293 BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1294 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1295 DWORD WINAPI GetFileSize(HANDLE,LPDWORD);
1296 BOOL WINAPI GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME);
1297 DWORD WINAPI GetFileType(HANDLE);
1298 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1299 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1300 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1301 BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1302 DWORD WINAPI GetLengthSid(PSID);
1303 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1304 DWORD WINAPI GetLogicalDrives(void);
1305 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1306 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1307 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1308 BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
1309 BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
1310 DWORD WINAPI GetPriorityClass(HANDLE);
1311 BOOL WINAPI GetProcessAffinityMask(HANDLE,PDWORD,PDWORD);
1312 BOOL WINAPI GetProcessTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1313 DWORD WINAPI GetProcessVersion(DWORD);
1314 BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
1315 BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1316 BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1317 DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
1318 BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1319 BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1320 PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
1321 DWORD WINAPI GetSidLengthRequired(BYTE);
1322 PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
1323 PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
1324 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1325 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1326 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1327 HANDLE WINAPI GetStdHandle(DWORD);
1328 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1329 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1330 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1331 BOOL WINAPI GetSystemTimeAdjustment(PDWORD,PDWORD,PBOOL);
1332 VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME);
1333 DWORD WINAPI GetTapeParameters(HANDLE,DWORD,LPDWORD,LPVOID);
1334 DWORD WINAPI GetTapePosition(HANDLE,DWORD,LPDWORD,LPDWORD,LPDWORD);
1335 DWORD WINAPI GetTapeStatus(HANDLE);
1336 DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION);
1337 BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
1338 INT WINAPI GetThreadPriority(HANDLE);
1339 BOOL WINAPI GetThreadPriorityBoost(HANDLE,PBOOL);
1340 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1341 BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1342 BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
1343 BOOL WINAPI GetUserNameA(LPSTR,LPDWORD);
1344 BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD);
1345 #define GetUserName WINELIB_NAME_AW(GetUserName)
1346 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1347 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,SIZE_T);
1348 SIZE_T WINAPI HeapCompact(HANDLE,DWORD);
1349 HANDLE WINAPI HeapCreate(DWORD,SIZE_T,SIZE_T);
1350 BOOL WINAPI HeapDestroy(HANDLE);
1351 BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1352 BOOL WINAPI HeapLock(HANDLE);
1353 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,SIZE_T);
1354 SIZE_T WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1355 BOOL WINAPI HeapUnlock(HANDLE);
1356 BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1357 BOOL WINAPI HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY);
1358 DWORD WINAPI InitializeAcl(PACL,DWORD,DWORD);
1359 BOOL WINAPI InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD);
1360 BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1361 BOOL WINAPI IsTextUnicode(CONST LPVOID lpBuffer, int cb, LPINT lpi);
1362 BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1363 BOOL WINAPI IsValidSid(PSID);
1364 BOOL WINAPI ImpersonateLoggedOnUser(HANDLE);
1365 BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1366 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1367 BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
1368 BOOL WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE);
1369 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSid)
1370 BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1371 BOOL WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1372 BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1373 BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID);
1374 BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID);
1375 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1376 BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
1377 HMODULE WINAPI MapHModuleSL(WORD);
1378 WORD WINAPI MapHModuleLS(HMODULE);
1379 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,SIZE_T);
1380 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,SIZE_T,LPVOID);
1381 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1382 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1383 #define MoveFile WINELIB_NAME_AW(MoveFile)
1384 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1385 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1386 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1387 BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1388 HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1389 HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1390 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1391 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1392 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1393 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1394 HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
1395 HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1396 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1397 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1398 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1399 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1400 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1401 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1402 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1403 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1404 BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1405 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1406 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1407 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1408 HANDLE WINAPI OpenThread(DWORD,BOOL,DWORD);
1409 BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1410 HANDLE WINAPI OpenWaitableTimerA(DWORD,BOOL,LPCSTR);
1411 HANDLE WINAPI OpenWaitableTimerW(DWORD,BOOL,LPCWSTR);
1412 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
1413 DWORD WINAPI PrepareTape(HANDLE,DWORD,BOOL);
1414 BOOL WINAPI PulseEvent(HANDLE);
1415 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1416 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1417 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1418 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1419 BOOL WINAPI QueryPerformanceCounter(LARGE_INTEGER*);
1420 BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER*);
1421 BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1422 BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1423 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1424 BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1425 BOOL WINAPI ReadFileEx(HANDLE,LPVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
1426 HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
1427 HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1428 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1429 BOOL WINAPI ReleaseMutex(HANDLE);
1430 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1431 BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
1432 BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
1433 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
1434 BOOL WINAPI ResetEvent(HANDLE);
1435 DWORD WINAPI ResumeThread(HANDLE);
1436 BOOL WINAPI RevertToSelf(void);
1437 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1438 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1439 #define SearchPath WINELIB_NAME_AW(SearchPath)
1440 BOOL WINAPI SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD);
1441 BOOL WINAPI SetCommBreak(HANDLE);
1442 BOOL WINAPI SetCommMask(HANDLE,DWORD);
1443 BOOL WINAPI SetCommState(HANDLE,LPDCB);
1444 BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1445 BOOL WINAPI SetComputerNameA(LPCSTR);
1446 BOOL WINAPI SetComputerNameW(LPCWSTR);
1447 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1448 BOOL WINAPI SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD);
1449 BOOL WINAPI SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD);
1450 #define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1451 BOOL WINAPI SetEndOfFile(HANDLE);
1452 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1453 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1454 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1455 BOOL WINAPI SetEvent(HANDLE);
1456 VOID WINAPI SetFileApisToANSI(void);
1457 VOID WINAPI SetFileApisToOEM(void);
1458 DWORD WINAPI SetFilePointer(HANDLE,LONG,LPLONG,DWORD);
1459 BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1460 BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1461 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1462 BOOL WINAPI SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*);
1463 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1464 BOOL WINAPI SetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1465 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1466 BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
1467 BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1468 BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
1469 BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
1470 BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1471 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1472 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1473 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1474 DWORD WINAPI SetTapeParameters(HANDLE,DWORD,LPVOID);
1475 DWORD WINAPI SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL);
1476 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1477 BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
1478 DWORD WINAPI SetThreadExecutionState(EXECUTION_STATE);
1479 DWORD WINAPI SetThreadIdealProcessor(HANDLE,DWORD);
1480 BOOL WINAPI SetThreadPriority(HANDLE,INT);
1481 BOOL WINAPI SetThreadPriorityBoost(HANDLE,BOOL);
1482 BOOL WINAPI SetThreadToken(PHANDLE,HANDLE);
1483 BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1484 BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,BOOL);
1485 BOOL WINAPI SetupComm(HANDLE,DWORD,DWORD);
1486 VOID WINAPI Sleep(DWORD);
1487 DWORD WINAPI SleepEx(DWORD,BOOL);
1488 DWORD WINAPI SuspendThread(HANDLE);
1489 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1490 DWORD WINAPI TlsAlloc(void);
1491 BOOL WINAPI TlsFree(DWORD);
1492 LPVOID WINAPI TlsGetValue(DWORD);
1493 BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1494 BOOL WINAPI TransmitCommChar(HANDLE,CHAR);
1495 BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1496 BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
1497 BOOL WINAPI UnmapViewOfFile(LPVOID);
1498 BOOL WINAPI VerifyVersionInfoA(LPOSVERSIONINFOEXA,DWORD,DWORDLONG);
1499 BOOL WINAPI VerifyVersionInfoW(LPOSVERSIONINFOEXW,DWORD,DWORDLONG);
1500 #define VerifyVersionInfo WINELIB_NAME_AW(VerifyVersionInfo)
1501 LPVOID WINAPI VirtualAlloc(LPVOID,SIZE_T,DWORD,DWORD);
1502 LPVOID WINAPI VirtualAllocEx(HANDLE,LPVOID,SIZE_T,DWORD,DWORD);
1503 BOOL WINAPI VirtualFree(LPVOID,SIZE_T,DWORD);
1504 BOOL WINAPI VirtualFreeEx(HANDLE,LPVOID,SIZE_T,DWORD);
1505 BOOL WINAPI VirtualLock(LPVOID,SIZE_T);
1506 BOOL WINAPI VirtualProtect(LPVOID,SIZE_T,DWORD,LPDWORD);
1507 BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,SIZE_T,DWORD,LPDWORD);
1508 SIZE_T WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,SIZE_T);
1509 SIZE_T WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,SIZE_T);
1510 BOOL WINAPI VirtualUnlock(LPVOID,SIZE_T);
1511 BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1512 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1513 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1514 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1515 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1516 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1517 BOOL WINAPI WaitNamedPipeA(LPCSTR,DWORD);
1518 BOOL WINAPI WaitNamedPipeW(LPCWSTR,DWORD);
1519 #define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
1520 BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1521 BOOL WINAPI WriteFileEx(HANDLE,LPCVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
1522 DWORD WINAPI WriteTapemark(HANDLE,DWORD,DWORD,BOOL);
1523 ATOM WINAPI AddAtomA(LPCSTR);
1524 ATOM WINAPI AddAtomW(LPCWSTR);
1525 #define AddAtom WINELIB_NAME_AW(AddAtom)
1526 BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1527 BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1528 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1529 BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1530 BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1531 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1532 BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1533 #define DefineHandleTable(w) ((w),TRUE)
1534 ATOM WINAPI DeleteAtom(ATOM);
1535 BOOL WINAPI DeleteFileA(LPCSTR);
1536 BOOL WINAPI DeleteFileW(LPCWSTR);
1537 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1538 void WINAPI FatalAppExitA(UINT,LPCSTR);
1539 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1540 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1541 ATOM WINAPI FindAtomA(LPCSTR);
1542 ATOM WINAPI FindAtomW(LPCWSTR);
1543 #define FindAtom WINELIB_NAME_AW(FindAtom)
1544 BOOL WINAPI FindClose(HANDLE);
1545 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1546 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1547 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1548 HANDLE WINAPI FindFirstFileExA(LPCSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1549 HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1550 #define FindFirstFileEx WINELIB_NAME_AW(FindFirstFileEx)
1551 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1552 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1553 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1554 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1555 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1556 #define FindResource WINELIB_NAME_AW(FindResource)
1557 BOOL WINAPI FlushInstructionCache(HANDLE,LPCVOID,SIZE_T);
1558 BOOL WINAPI FreeLibrary(HMODULE);
1559 #define FreeModule(handle) FreeLibrary(handle)
1560 #define FreeProcInstance(proc) /*nothing*/
1561 BOOL WINAPI FreeResource(HGLOBAL);
1562 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1563 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1564 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1565 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1566 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1567 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1568 #define GetCurrentTime() GetTickCount()
1569 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1570 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1571 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1572 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1573 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1574 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1575 UINT WINAPI GetDriveTypeA(LPCSTR);
1576 UINT WINAPI GetDriveTypeW(LPCWSTR);
1577 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1578 BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1579 DWORD WINAPI GetFileAttributesA(LPCSTR);
1580 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1581 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1582 #define GetFreeSpace(w) (0x100000L)
1583 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1584 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1585 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1586 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1587 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1588 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1589 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1590 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1591 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1592 BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL);
1593 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1594 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1595 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1596 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1597 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1598 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1599 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1600 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1601 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1602 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1603 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1604 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1605 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1606 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1607 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1608 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1609 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1610 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1611 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1612 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1613 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1614 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1615 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1616 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1617 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1618 VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1619 VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1620 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1621 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1622 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1623 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1624 DWORD WINAPI GetTickCount(void);
1625 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1626 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1627 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1628 UINT WINAPI GetTempPathA(UINT,LPSTR);
1629 UINT WINAPI GetTempPathW(UINT,LPWSTR);
1630 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1631 LONG WINAPI GetVersion(void);
1632 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1633 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1634 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1635 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1636 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1637 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1638 ATOM WINAPI GlobalAddAtomA(LPCSTR);
1639 ATOM WINAPI GlobalAddAtomW(LPCWSTR);
1640 #define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
1641 HGLOBAL WINAPI GlobalAlloc(UINT,SIZE_T);
1642 SIZE_T WINAPI GlobalCompact(DWORD);
1643 ATOM WINAPI GlobalDeleteAtom(ATOM);
1644 ATOM WINAPI GlobalFindAtomA(LPCSTR);
1645 ATOM WINAPI GlobalFindAtomW(LPCWSTR);
1646 #define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
1647 UINT WINAPI GlobalFlags(HGLOBAL);
1648 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1649 UINT WINAPI GlobalGetAtomNameA(ATOM,LPSTR,INT);
1650 UINT WINAPI GlobalGetAtomNameW(ATOM,LPWSTR,INT);
1651 #define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
1652 HGLOBAL WINAPI GlobalHandle(LPCVOID);
1653 VOID WINAPI GlobalFix(HGLOBAL);
1654 LPVOID WINAPI GlobalLock(HGLOBAL);
1655 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,SIZE_T,UINT);
1656 SIZE_T WINAPI GlobalSize(HGLOBAL);
1657 VOID WINAPI GlobalUnfix(HGLOBAL);
1658 BOOL WINAPI GlobalUnlock(HGLOBAL);
1659 BOOL WINAPI GlobalUnWire(HGLOBAL);
1660 LPVOID WINAPI GlobalWire(HGLOBAL);
1661 #define HasOverlappedCompleted(lpOverlapped) ((lpOverlapped)->Internal != STATUS_PENDING)
1662 BOOL WINAPI InitAtomTable(DWORD);
1663 BOOL WINAPI IsBadCodePtr(FARPROC);
1664 BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1665 BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1666 BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1667 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1668 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1669 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1670 BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1671 BOOL WINAPI IsDebuggerPresent(void);
1672 HMODULE WINAPI LoadLibraryA(LPCSTR);
1673 HMODULE WINAPI LoadLibraryW(LPCWSTR);
1674 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1675 HMODULE WINAPI LoadLibraryExA(LPCSTR,HANDLE,DWORD);
1676 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HANDLE,DWORD);
1677 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1678 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1679 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1680 HLOCAL WINAPI LocalAlloc(UINT,SIZE_T);
1681 SIZE_T WINAPI LocalCompact(UINT);
1682 UINT WINAPI LocalFlags(HLOCAL);
1683 HLOCAL WINAPI LocalFree(HLOCAL);
1684 HLOCAL WINAPI LocalHandle(LPCVOID);
1685 LPVOID WINAPI LocalLock(HLOCAL);
1686 HLOCAL WINAPI LocalReAlloc(HLOCAL,SIZE_T,UINT);
1687 SIZE_T WINAPI LocalShrink(HGLOBAL,UINT);
1688 SIZE_T WINAPI LocalSize(HLOCAL);
1689 BOOL WINAPI LocalUnlock(HLOCAL);
1690 LPVOID WINAPI LockResource(HGLOBAL);
1691 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1692 #define MakeProcInstance(proc,inst) (proc)
1693 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1694 VOID WINAPI OutputDebugStringA(LPCSTR);
1695 VOID WINAPI OutputDebugStringW(LPCWSTR);
1696 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1697 BOOL WINAPI ReadProcessMemory(HANDLE,LPCVOID,LPVOID,SIZE_T,SIZE_T*);
1698 BOOL WINAPI RemoveDirectoryA(LPCSTR);
1699 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1700 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1701 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1702 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1703 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1704 UINT WINAPI SetErrorMode(UINT);
1705 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1706 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1707 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1708 UINT WINAPI SetHandleCount(UINT);
1709 #define SetSwapAreaSize(w) (w)
1710 BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
1711 BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
1712 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1713 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1714 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1715 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1716 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1717 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1718 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
1719 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
1720 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1721 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
1722 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
1723 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1724 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1725 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1726 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1727 BOOL WINAPI WriteProcessMemory(HANDLE,LPVOID,LPCVOID,SIZE_T,SIZE_T*);
1728 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
1729 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
1730 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1731 #define Yield()
1732 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
1733 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
1734 #define lstrcat WINELIB_NAME_AW(lstrcat)
1735 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
1736 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
1737 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1738 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
1739 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
1740 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1741 INT WINAPI lstrlenA(LPCSTR);
1742 INT WINAPI lstrlenW(LPCWSTR);
1743 #define lstrlen WINELIB_NAME_AW(lstrlen)
1744 UINT WINAPI WinExec(LPCSTR,UINT);
1745 LONG WINAPI _hread(HFILE,LPVOID,LONG);
1746 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
1747 HFILE WINAPI _lcreat(LPCSTR,INT);
1748 HFILE WINAPI _lclose(HFILE);
1749 LONG WINAPI _llseek(HFILE,LONG,INT);
1750 HFILE WINAPI _lopen(LPCSTR,INT);
1751 UINT WINAPI _lread(HFILE,LPVOID,UINT);
1752 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
1753 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
1754 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
1755 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1756 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
1757 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
1758 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1760 /* compatibility macros */
1761 #define FillMemory RtlFillMemory
1762 #define MoveMemory RtlMoveMemory
1763 #define ZeroMemory RtlZeroMemory
1764 #define CopyMemory RtlCopyMemory
1766 /* undocumented functions */
1768 typedef struct tagSYSLEVEL
1770 CRITICAL_SECTION crst;
1771 INT level;
1772 } SYSLEVEL;
1774 /* [GS]etProcessDword offsets */
1775 #define GPD_APP_COMPAT_FLAGS (-56)
1776 #define GPD_LOAD_DONE_EVENT (-52)
1777 #define GPD_HINSTANCE16 (-48)
1778 #define GPD_WINDOWS_VERSION (-44)
1779 #define GPD_THDB (-40)
1780 #define GPD_PDB (-36)
1781 #define GPD_STARTF_SHELLDATA (-32)
1782 #define GPD_STARTF_HOTKEY (-28)
1783 #define GPD_STARTF_SHOWWINDOW (-24)
1784 #define GPD_STARTF_SIZE (-20)
1785 #define GPD_STARTF_POSITION (-16)
1786 #define GPD_STARTF_FLAGS (-12)
1787 #define GPD_PARENT (- 8)
1788 #define GPD_FLAGS (- 4)
1789 #define GPD_USERDATA ( 0)
1791 void WINAPI DisposeLZ32Handle(HANDLE);
1792 HANDLE WINAPI DosFileHandleToWin32Handle(HFILE);
1793 DWORD WINAPI GetProcessDword(DWORD,INT);
1794 VOID WINAPI GetpWin16Lock(SYSLEVEL**);
1795 DWORD WINAPI MapLS(LPCVOID);
1796 DWORD WINAPI MapProcessHandle(HANDLE);
1797 LPVOID WINAPI MapSL(DWORD);
1798 VOID WINAPI ReleaseThunkLock(DWORD*);
1799 VOID WINAPI RestoreThunkLock(DWORD);
1800 void WINAPI SetProcessDword(DWORD,INT,DWORD);
1801 VOID WINAPI UnMapLS(DWORD);
1802 HFILE WINAPI Win32HandleToDosFileHandle(HANDLE);
1803 VOID WINAPI _CheckNotSysLevel(SYSLEVEL *lock);
1804 DWORD WINAPI _ConfirmWin16Lock(void);
1805 DWORD WINAPI _ConfirmSysLevel(SYSLEVEL*);
1806 VOID WINAPI _EnterSysLevel(SYSLEVEL*);
1807 VOID WINAPI _LeaveSysLevel(SYSLEVEL*);
1810 /* Wine internal functions */
1812 BOOL WINAPI wine_get_unix_file_name( LPCSTR dos, LPSTR buffer, DWORD len );
1815 /* a few optimizations for i386/gcc */
1817 #if defined(__i386__) && defined(__GNUC__)
1819 extern inline LONG WINAPI InterlockedCompareExchange( PLONG dest, LONG xchg, LONG compare );
1820 extern inline LONG WINAPI InterlockedCompareExchange( PLONG dest, LONG xchg, LONG compare )
1822 LONG ret;
1823 __asm__ __volatile__( "lock; cmpxchgl %2,(%1)"
1824 : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" );
1825 return ret;
1828 extern inline LONG WINAPI InterlockedExchange( PLONG dest, LONG val );
1829 extern inline LONG WINAPI InterlockedExchange( PLONG dest, LONG val )
1831 LONG ret;
1832 __asm__ __volatile__( "lock; xchgl %0,(%1)"
1833 : "=r" (ret) :"r" (dest), "0" (val) : "memory" );
1834 return ret;
1837 extern inline LONG WINAPI InterlockedExchangeAdd( PLONG dest, LONG incr );
1838 extern inline LONG WINAPI InterlockedExchangeAdd( PLONG dest, LONG incr )
1840 LONG ret;
1841 __asm__ __volatile__( "lock; xaddl %0,(%1)"
1842 : "=r" (ret) : "r" (dest), "0" (incr) : "memory" );
1843 return ret;
1846 extern inline LONG WINAPI InterlockedIncrement( PLONG dest );
1847 extern inline LONG WINAPI InterlockedIncrement( PLONG dest )
1849 return InterlockedExchangeAdd( dest, 1 ) + 1;
1852 extern inline LONG WINAPI InterlockedDecrement( PLONG dest );
1853 extern inline LONG WINAPI InterlockedDecrement( PLONG dest )
1855 return InterlockedExchangeAdd( dest, -1 ) - 1;
1858 extern inline DWORD WINAPI GetLastError(void);
1859 extern inline DWORD WINAPI GetLastError(void)
1861 DWORD ret;
1862 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x60,%0" : "=r" (ret) );
1863 return ret;
1866 extern inline DWORD WINAPI GetCurrentProcessId(void);
1867 extern inline DWORD WINAPI GetCurrentProcessId(void)
1869 DWORD ret;
1870 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x20,%0" : "=r" (ret) );
1871 return ret;
1874 extern inline DWORD WINAPI GetCurrentThreadId(void);
1875 extern inline DWORD WINAPI GetCurrentThreadId(void)
1877 DWORD ret;
1878 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x24,%0" : "=r" (ret) );
1879 return ret;
1882 extern inline void WINAPI SetLastError( DWORD err );
1883 extern inline void WINAPI SetLastError( DWORD err )
1885 __asm__ __volatile__( ".byte 0x64\n\tmovl %0,0x60" : : "r" (err) : "memory" );
1888 extern inline HANDLE WINAPI GetProcessHeap(void);
1889 extern inline HANDLE WINAPI GetProcessHeap(void)
1891 HANDLE *pdb;
1892 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb) );
1893 return pdb[0x18 / sizeof(HANDLE)]; /* get dword at offset 0x18 in pdb */
1896 #else /* __i386__ && __GNUC__ */
1897 DWORD WINAPI GetCurrentProcessId(void);
1898 DWORD WINAPI GetCurrentThreadId(void);
1899 DWORD WINAPI GetLastError(void);
1900 HANDLE WINAPI GetProcessHeap(void);
1901 LONG WINAPI InterlockedCompareExchange(LONG*,LONG,LONG);
1902 LONG WINAPI InterlockedDecrement(PLONG);
1903 LONG WINAPI InterlockedExchange(PLONG,LONG);
1904 LONG WINAPI InterlockedExchangeAdd(PLONG,LONG);
1905 LONG WINAPI InterlockedIncrement(PLONG);
1906 VOID WINAPI SetLastError(DWORD);
1907 #endif /* __i386__ && __GNUC__ */
1909 /* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */
1910 static inline PVOID WINAPI InterlockedCompareExchangePointer( PVOID *dest, PVOID xchg, PVOID compare )
1912 return (PVOID)InterlockedCompareExchange( (PLONG)dest, (LONG)xchg, (LONG)compare );
1915 static inline PVOID WINAPI InterlockedExchangePointer( PVOID *dest, PVOID val )
1917 return (PVOID)InterlockedExchange( (PLONG)dest, (LONG)val );
1920 #ifdef __WINE__
1921 #define GetCurrentProcess() ((HANDLE)0xffffffff)
1922 #define GetCurrentThread() ((HANDLE)0xfffffffe)
1923 #endif
1925 /* WinMain(entry point) must be declared in winbase.h. */
1926 /* If this is not declared, we cannot compile many sources written with C++. */
1927 int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
1929 #define HW_PROFILE_GUIDLEN 39
1930 #define MAX_PROFILE_LEN 80
1932 #define DOCKINFO_UNDOCKED 0x1
1933 #define DOCKINFO_DOCKED 0x2
1934 #define DOCKINFO_USER_SUPPLIED 0x4
1935 #define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_UNDOCKED)
1936 #define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_DOCKED)
1938 typedef struct HW_PROFILE_INFOAtag {
1939 DWORD dwDockInfo;
1940 CHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
1941 CHAR szHwProfileName[MAX_PROFILE_LEN];
1942 } HW_PROFILE_INFOA, *LPHW_PROFILE_INFOA;
1944 /* Stream data structures and defines */
1945 /*the types of backup data -- WIN32_STREAM_ID.dwStreamID below*/
1946 #define BACKUP_INVALID 0
1947 #define BACKUP_DATA 1
1948 #define BACKUP_EA_DATA 2
1949 #define BACKUP_SECURITY_DATA 3
1950 #define BACKUP_ALTERNATE_DATA 4
1951 #define BACKUP_LINK 5
1952 #define BACKUP_PROPERTY_DATA 6
1953 #define BACKUP_OBJECT_ID 7
1954 #define BACKUP_REPARSE_DATA 8
1955 #define BACKUP_SPARSE_BLOCK 9
1957 /*flags for WIN32_STREAM_ID.dwStreamAttributes below*/
1958 #define STREAM_NORMAL_ATTRIBUTE 0
1959 #define STREAM_MODIFIED_WHEN_READ 1
1960 #define STREAM_CONTAINS_SECURITY 2
1961 #define STREAM_CONTAINS_PROPERTIES 4
1962 #define STREAM_SPARSE_ATTRIBUTE 8
1964 typedef struct _WIN32_STREAM_ID {
1965 DWORD dwStreamID;
1966 DWORD dwStreamAttributes;
1967 LARGE_INTEGER Size;
1968 DWORD dwStreamNameSize;
1969 WCHAR cStreamName[ANYSIZE_ARRAY];
1970 } WIN32_STREAM_ID, *LPWIN32_STREAM_ID;
1972 #ifdef __cplusplus
1974 #endif
1976 #endif /* __WINE_WINBASE_H */