Fixed warning.
[wine.git] / include / winbase.h
blobb61749dadd14a583b07c6c36e3858b2cb99f36ef
1 #ifndef __WINE_WINBASE_H
2 #define __WINE_WINBASE_H
4 #include "basetsd.h"
5 #include "winnt.h"
6 #include "wine/winestring.h"
7 #include "pshpack1.h"
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
14 /* Windows Exit Procedure flag values */
15 #define WEP_FREE_DLL 0
16 #define WEP_SYSTEM_EXIT 1
18 typedef DWORD (CALLBACK *LPTHREAD_START_ROUTINE)(LPVOID);
20 #define EXCEPTION_DEBUG_EVENT 1
21 #define CREATE_THREAD_DEBUG_EVENT 2
22 #define CREATE_PROCESS_DEBUG_EVENT 3
23 #define EXIT_THREAD_DEBUG_EVENT 4
24 #define EXIT_PROCESS_DEBUG_EVENT 5
25 #define LOAD_DLL_DEBUG_EVENT 6
26 #define UNLOAD_DLL_DEBUG_EVENT 7
27 #define OUTPUT_DEBUG_STRING_EVENT 8
28 #define RIP_EVENT 9
30 typedef struct _EXCEPTION_DEBUG_INFO {
31 EXCEPTION_RECORD ExceptionRecord;
32 DWORD dwFirstChance;
33 } EXCEPTION_DEBUG_INFO;
35 typedef struct _CREATE_THREAD_DEBUG_INFO {
36 HANDLE hThread;
37 LPVOID lpThreadLocalBase;
38 LPTHREAD_START_ROUTINE lpStartAddress;
39 } CREATE_THREAD_DEBUG_INFO;
41 typedef struct _CREATE_PROCESS_DEBUG_INFO {
42 HANDLE hFile;
43 HANDLE hProcess;
44 HANDLE hThread;
45 LPVOID lpBaseOfImage;
46 DWORD dwDebugInfoFileOffset;
47 DWORD nDebugInfoSize;
48 LPVOID lpThreadLocalBase;
49 LPTHREAD_START_ROUTINE lpStartAddress;
50 LPVOID lpImageName;
51 WORD fUnicode;
52 } CREATE_PROCESS_DEBUG_INFO;
54 typedef struct _EXIT_THREAD_DEBUG_INFO {
55 DWORD dwExitCode;
56 } EXIT_THREAD_DEBUG_INFO;
58 typedef struct _EXIT_PROCESS_DEBUG_INFO {
59 DWORD dwExitCode;
60 } EXIT_PROCESS_DEBUG_INFO;
62 typedef struct _LOAD_DLL_DEBUG_INFO {
63 HANDLE hFile;
64 LPVOID lpBaseOfDll;
65 DWORD dwDebugInfoFileOffset;
66 DWORD nDebugInfoSize;
67 LPVOID lpImageName;
68 WORD fUnicode;
69 } LOAD_DLL_DEBUG_INFO;
71 typedef struct _UNLOAD_DLL_DEBUG_INFO {
72 LPVOID lpBaseOfDll;
73 } UNLOAD_DLL_DEBUG_INFO;
75 typedef struct _OUTPUT_DEBUG_STRING_INFO {
76 LPSTR lpDebugStringData;
77 WORD fUnicode;
78 WORD nDebugStringLength;
79 } OUTPUT_DEBUG_STRING_INFO;
81 typedef struct _RIP_INFO {
82 DWORD dwError;
83 DWORD dwType;
84 } RIP_INFO;
86 typedef struct _DEBUG_EVENT {
87 DWORD dwDebugEventCode;
88 DWORD dwProcessId;
89 DWORD dwThreadId;
90 union {
91 EXCEPTION_DEBUG_INFO Exception;
92 CREATE_THREAD_DEBUG_INFO CreateThread;
93 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo;
94 EXIT_THREAD_DEBUG_INFO ExitThread;
95 EXIT_PROCESS_DEBUG_INFO ExitProcess;
96 LOAD_DLL_DEBUG_INFO LoadDll;
97 UNLOAD_DLL_DEBUG_INFO UnloadDll;
98 OUTPUT_DEBUG_STRING_INFO DebugString;
99 RIP_INFO RipInfo;
100 } u;
101 } DEBUG_EVENT, *LPDEBUG_EVENT;
103 #define OFS_MAXPATHNAME 128
104 typedef struct
106 BYTE cBytes;
107 BYTE fFixedDisk;
108 WORD nErrCode;
109 BYTE reserved[4];
110 BYTE szPathName[OFS_MAXPATHNAME];
111 } OFSTRUCT, *LPOFSTRUCT;
113 #define OF_READ 0x0000
114 #define OF_WRITE 0x0001
115 #define OF_READWRITE 0x0002
116 #define OF_SHARE_COMPAT 0x0000
117 #define OF_SHARE_EXCLUSIVE 0x0010
118 #define OF_SHARE_DENY_WRITE 0x0020
119 #define OF_SHARE_DENY_READ 0x0030
120 #define OF_SHARE_DENY_NONE 0x0040
121 #define OF_PARSE 0x0100
122 #define OF_DELETE 0x0200
123 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
124 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
125 #define OF_CANCEL 0x0800
126 #define OF_CREATE 0x1000
127 #define OF_PROMPT 0x2000
128 #define OF_EXIST 0x4000
129 #define OF_REOPEN 0x8000
131 /* SetErrorMode values */
132 #define SEM_FAILCRITICALERRORS 0x0001
133 #define SEM_NOGPFAULTERRORBOX 0x0002
134 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
135 #define SEM_NOOPENFILEERRORBOX 0x8000
137 /* CopyFileEx flags */
138 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
139 #define COPY_FILE_RESTARTABLE 0x00000002
140 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
142 /* GetTempFileName() Flags */
143 #define TF_FORCEDRIVE 0x80
145 #define DRIVE_CANNOTDETERMINE 0
146 #define DRIVE_DOESNOTEXIST 1
147 #define DRIVE_REMOVABLE 2
148 #define DRIVE_FIXED 3
149 #define DRIVE_REMOTE 4
150 /* Win32 additions */
151 #define DRIVE_CDROM 5
152 #define DRIVE_RAMDISK 6
154 /* The security attributes structure */
155 typedef struct _SECURITY_ATTRIBUTES
157 DWORD nLength;
158 LPVOID lpSecurityDescriptor;
159 BOOL bInheritHandle;
160 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
162 #ifndef _FILETIME_
163 #define _FILETIME_
164 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
165 typedef struct
167 DWORD dwLowDateTime;
168 DWORD dwHighDateTime;
169 } FILETIME, *LPFILETIME;
170 #endif /* _FILETIME_ */
172 /* Find* structures */
173 typedef struct
175 DWORD dwFileAttributes;
176 FILETIME ftCreationTime;
177 FILETIME ftLastAccessTime;
178 FILETIME ftLastWriteTime;
179 DWORD nFileSizeHigh;
180 DWORD nFileSizeLow;
181 DWORD dwReserved0;
182 DWORD dwReserved1;
183 CHAR cFileName[260];
184 CHAR cAlternateFileName[14];
185 } WIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
187 typedef struct
189 DWORD dwFileAttributes;
190 FILETIME ftCreationTime;
191 FILETIME ftLastAccessTime;
192 FILETIME ftLastWriteTime;
193 DWORD nFileSizeHigh;
194 DWORD nFileSizeLow;
195 DWORD dwReserved0;
196 DWORD dwReserved1;
197 WCHAR cFileName[260];
198 WCHAR cAlternateFileName[14];
199 } WIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
201 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
202 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
204 typedef struct
206 LPVOID lpData;
207 DWORD cbData;
208 BYTE cbOverhead;
209 BYTE iRegionIndex;
210 WORD wFlags;
211 union {
212 struct {
213 HANDLE hMem;
214 DWORD dwReserved[3];
215 } Block;
216 struct {
217 DWORD dwCommittedSize;
218 DWORD dwUnCommittedSize;
219 LPVOID lpFirstBlock;
220 LPVOID lpLastBlock;
221 } Region;
222 } Foo;
223 } PROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY;
225 #define PROCESS_HEAP_REGION 0x0001
226 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
227 #define PROCESS_HEAP_ENTRY_BUSY 0x0004
228 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
229 #define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
231 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
232 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
234 #define TLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
236 /* comm */
238 #define CBR_110 0xFF10
239 #define CBR_300 0xFF11
240 #define CBR_600 0xFF12
241 #define CBR_1200 0xFF13
242 #define CBR_2400 0xFF14
243 #define CBR_4800 0xFF15
244 #define CBR_9600 0xFF16
245 #define CBR_14400 0xFF17
246 #define CBR_19200 0xFF18
247 #define CBR_38400 0xFF1B
248 #define CBR_56000 0xFF1F
249 #define CBR_128000 0xFF23
250 #define CBR_256000 0xFF27
252 #define NOPARITY 0
253 #define ODDPARITY 1
254 #define EVENPARITY 2
255 #define MARKPARITY 3
256 #define SPACEPARITY 4
257 #define ONESTOPBIT 0
258 #define ONE5STOPBITS 1
259 #define TWOSTOPBITS 2
261 #define IGNORE 0
262 #define INFINITE16 0xFFFF
263 #define INFINITE 0xFFFFFFFF
265 #define CE_RXOVER 0x0001
266 #define CE_OVERRUN 0x0002
267 #define CE_RXPARITY 0x0004
268 #define CE_FRAME 0x0008
269 #define CE_BREAK 0x0010
270 #define CE_CTSTO 0x0020
271 #define CE_DSRTO 0x0040
272 #define CE_RLSDTO 0x0080
273 #define CE_TXFULL 0x0100
274 #define CE_PTO 0x0200
275 #define CE_IOE 0x0400
276 #define CE_DNS 0x0800
277 #define CE_OOP 0x1000
278 #define CE_MODE 0x8000
280 #define IE_BADID -1
281 #define IE_OPEN -2
282 #define IE_NOPEN -3
283 #define IE_MEMORY -4
284 #define IE_DEFAULT -5
285 #define IE_HARDWARE -10
286 #define IE_BYTESIZE -11
287 #define IE_BAUDRATE -12
289 #define EV_RXCHAR 0x0001
290 #define EV_RXFLAG 0x0002
291 #define EV_TXEMPTY 0x0004
292 #define EV_CTS 0x0008
293 #define EV_DSR 0x0010
294 #define EV_RLSD 0x0020
295 #define EV_BREAK 0x0040
296 #define EV_ERR 0x0080
297 #define EV_RING 0x0100
298 #define EV_PERR 0x0200
299 #define EV_CTSS 0x0400
300 #define EV_DSRS 0x0800
301 #define EV_RLSDS 0x1000
302 #define EV_RINGTE 0x2000
303 #define EV_RingTe EV_RINGTE
305 #define SETXOFF 1
306 #define SETXON 2
307 #define SETRTS 3
308 #define CLRRTS 4
309 #define SETDTR 5
310 #define CLRDTR 6
311 #define RESETDEV 7
312 #define SETBREAK 8
313 #define CLRBREAK 9
315 #define GETBASEIRQ 10
317 /* Purge functions for Comm Port */
318 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
319 comm port */
320 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
321 the comm port */
322 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
323 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
326 /* Modem Status Flags */
327 #define MS_CTS_ON ((DWORD)0x0010)
328 #define MS_DSR_ON ((DWORD)0x0020)
329 #define MS_RING_ON ((DWORD)0x0040)
330 #define MS_RLSD_ON ((DWORD)0x0080)
332 #define RTS_CONTROL_DISABLE 0
333 #define RTS_CONTROL_ENABLE 1
334 #define RTS_CONTROL_HANDSHAKE 2
335 #define RTS_CONTROL_TOGGLE 3
337 #define DTR_CONTROL_DISABLE 0
338 #define DTR_CONTROL_ENABLE 1
339 #define DTR_CONTROL_HANDSHAKE 2
341 #define CSTF_CTSHOLD 0x01
342 #define CSTF_DSRHOLD 0x02
343 #define CSTF_RLSDHOLD 0x04
344 #define CSTF_XOFFHOLD 0x08
345 #define CSTF_XOFFSENT 0x10
346 #define CSTF_EOF 0x20
347 #define CSTF_TXIM 0x40
349 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
350 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
351 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
353 /* Predefined resource types */
354 #define RT_CURSORA MAKEINTRESOURCEA(1)
355 #define RT_CURSORW MAKEINTRESOURCEW(1)
356 #define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
357 #define RT_BITMAPA MAKEINTRESOURCEA(2)
358 #define RT_BITMAPW MAKEINTRESOURCEW(2)
359 #define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
360 #define RT_ICONA MAKEINTRESOURCEA(3)
361 #define RT_ICONW MAKEINTRESOURCEW(3)
362 #define RT_ICON WINELIB_NAME_AW(RT_ICON)
363 #define RT_MENUA MAKEINTRESOURCEA(4)
364 #define RT_MENUW MAKEINTRESOURCEW(4)
365 #define RT_MENU WINELIB_NAME_AW(RT_MENU)
366 #define RT_DIALOGA MAKEINTRESOURCEA(5)
367 #define RT_DIALOGW MAKEINTRESOURCEW(5)
368 #define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
369 #define RT_STRINGA MAKEINTRESOURCEA(6)
370 #define RT_STRINGW MAKEINTRESOURCEW(6)
371 #define RT_STRING WINELIB_NAME_AW(RT_STRING)
372 #define RT_FONTDIRA MAKEINTRESOURCEA(7)
373 #define RT_FONTDIRW MAKEINTRESOURCEW(7)
374 #define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
375 #define RT_FONTA MAKEINTRESOURCEA(8)
376 #define RT_FONTW MAKEINTRESOURCEW(8)
377 #define RT_FONT WINELIB_NAME_AW(RT_FONT)
378 #define RT_ACCELERATORA MAKEINTRESOURCEA(9)
379 #define RT_ACCELERATORW MAKEINTRESOURCEW(9)
380 #define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
381 #define RT_RCDATAA MAKEINTRESOURCEA(10)
382 #define RT_RCDATAW MAKEINTRESOURCEW(10)
383 #define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
384 #define RT_MESSAGELISTA MAKEINTRESOURCEA(11)
385 #define RT_MESSAGELISTW MAKEINTRESOURCEW(11)
386 #define RT_MESSAGELIST WINELIB_NAME_AW(RT_MESSAGELIST)
387 #define RT_GROUP_CURSORA MAKEINTRESOURCEA(12)
388 #define RT_GROUP_CURSORW MAKEINTRESOURCEW(12)
389 #define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
390 #define RT_GROUP_ICONA MAKEINTRESOURCEA(14)
391 #define RT_GROUP_ICONW MAKEINTRESOURCEW(14)
392 #define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
395 #define LMEM_FIXED 0
396 #define LMEM_MOVEABLE 0x0002
397 #define LMEM_NOCOMPACT 0x0010
398 #define LMEM_NODISCARD 0x0020
399 #define LMEM_ZEROINIT 0x0040
400 #define LMEM_MODIFY 0x0080
401 #define LMEM_DISCARDABLE 0x0F00
402 #define LMEM_DISCARDED 0x4000
403 #define LMEM_LOCKCOUNT 0x00FF
405 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
407 #define GMEM_FIXED 0x0000
408 #define GMEM_MOVEABLE 0x0002
409 #define GMEM_NOCOMPACT 0x0010
410 #define GMEM_NODISCARD 0x0020
411 #define GMEM_ZEROINIT 0x0040
412 #define GMEM_MODIFY 0x0080
413 #define GMEM_DISCARDABLE 0x0100
414 #define GMEM_NOT_BANKED 0x1000
415 #define GMEM_SHARE 0x2000
416 #define GMEM_DDESHARE 0x2000
417 #define GMEM_NOTIFY 0x4000
418 #define GMEM_LOWER GMEM_NOT_BANKED
419 #define GMEM_DISCARDED 0x4000
420 #define GMEM_LOCKCOUNT 0x00ff
421 #define GMEM_INVALID_HANDLE 0x8000
423 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
424 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
427 typedef struct tagMEMORYSTATUS
429 DWORD dwLength;
430 DWORD dwMemoryLoad;
431 DWORD dwTotalPhys;
432 DWORD dwAvailPhys;
433 DWORD dwTotalPageFile;
434 DWORD dwAvailPageFile;
435 DWORD dwTotalVirtual;
436 DWORD dwAvailVirtual;
437 } MEMORYSTATUS, *LPMEMORYSTATUS;
440 #ifndef NOLOGERROR
442 /* LogParamError and LogError values */
444 /* Error modifier bits */
445 #define ERR_WARNING 0x8000
446 #define ERR_PARAM 0x4000
448 #define ERR_SIZE_MASK 0x3000
449 #define ERR_BYTE 0x1000
450 #define ERR_WORD 0x2000
451 #define ERR_DWORD 0x3000
453 /* LogParamError() values */
455 /* Generic parameter values */
456 #define ERR_BAD_VALUE 0x6001
457 #define ERR_BAD_FLAGS 0x6002
458 #define ERR_BAD_INDEX 0x6003
459 #define ERR_BAD_DVALUE 0x7004
460 #define ERR_BAD_DFLAGS 0x7005
461 #define ERR_BAD_DINDEX 0x7006
462 #define ERR_BAD_PTR 0x7007
463 #define ERR_BAD_FUNC_PTR 0x7008
464 #define ERR_BAD_SELECTOR 0x6009
465 #define ERR_BAD_STRING_PTR 0x700a
466 #define ERR_BAD_HANDLE 0x600b
468 /* KERNEL parameter errors */
469 #define ERR_BAD_HINSTANCE 0x6020
470 #define ERR_BAD_HMODULE 0x6021
471 #define ERR_BAD_GLOBAL_HANDLE 0x6022
472 #define ERR_BAD_LOCAL_HANDLE 0x6023
473 #define ERR_BAD_ATOM 0x6024
474 #define ERR_BAD_HFILE 0x6025
476 /* USER parameter errors */
477 #define ERR_BAD_HWND 0x6040
478 #define ERR_BAD_HMENU 0x6041
479 #define ERR_BAD_HCURSOR 0x6042
480 #define ERR_BAD_HICON 0x6043
481 #define ERR_BAD_HDWP 0x6044
482 #define ERR_BAD_CID 0x6045
483 #define ERR_BAD_HDRVR 0x6046
485 /* GDI parameter errors */
486 #define ERR_BAD_COORDS 0x7060
487 #define ERR_BAD_GDI_OBJECT 0x6061
488 #define ERR_BAD_HDC 0x6062
489 #define ERR_BAD_HPEN 0x6063
490 #define ERR_BAD_HFONT 0x6064
491 #define ERR_BAD_HBRUSH 0x6065
492 #define ERR_BAD_HBITMAP 0x6066
493 #define ERR_BAD_HRGN 0x6067
494 #define ERR_BAD_HPALETTE 0x6068
495 #define ERR_BAD_HMETAFILE 0x6069
498 /* LogError() values */
500 /* KERNEL errors */
501 #define ERR_GALLOC 0x0001
502 #define ERR_GREALLOC 0x0002
503 #define ERR_GLOCK 0x0003
504 #define ERR_LALLOC 0x0004
505 #define ERR_LREALLOC 0x0005
506 #define ERR_LLOCK 0x0006
507 #define ERR_ALLOCRES 0x0007
508 #define ERR_LOCKRES 0x0008
509 #define ERR_LOADMODULE 0x0009
511 /* USER errors */
512 #define ERR_CREATEDLG 0x0040
513 #define ERR_CREATEDLG2 0x0041
514 #define ERR_REGISTERCLASS 0x0042
515 #define ERR_DCBUSY 0x0043
516 #define ERR_CREATEWND 0x0044
517 #define ERR_STRUCEXTRA 0x0045
518 #define ERR_LOADSTR 0x0046
519 #define ERR_LOADMENU 0x0047
520 #define ERR_NESTEDBEGINPAINT 0x0048
521 #define ERR_BADINDEX 0x0049
522 #define ERR_CREATEMENU 0x004a
524 /* GDI errors */
525 #define ERR_CREATEDC 0x0080
526 #define ERR_CREATEMETA 0x0081
527 #define ERR_DELOBJSELECTED 0x0082
528 #define ERR_SELBITMAP 0x0083
532 /* Debugging support (DEBUG SYSTEM ONLY) */
533 typedef struct
535 WORD flags;
536 DWORD dwOptions WINE_PACKED;
537 DWORD dwFilter WINE_PACKED;
538 CHAR achAllocModule[8] WINE_PACKED;
539 DWORD dwAllocBreak WINE_PACKED;
540 DWORD dwAllocCount WINE_PACKED;
541 } WINDEBUGINFO, *LPWINDEBUGINFO;
543 /* WINDEBUGINFO flags values */
544 #define WDI_OPTIONS 0x0001
545 #define WDI_FILTER 0x0002
546 #define WDI_ALLOCBREAK 0x0004
548 /* dwOptions values */
549 #define DBO_CHECKHEAP 0x0001
550 #define DBO_BUFFERFILL 0x0004
551 #define DBO_DISABLEGPTRAPPING 0x0010
552 #define DBO_CHECKFREE 0x0020
554 #define DBO_SILENT 0x8000
556 #define DBO_TRACEBREAK 0x2000
557 #define DBO_WARNINGBREAK 0x1000
558 #define DBO_NOERRORBREAK 0x0800
559 #define DBO_NOFATALBREAK 0x0400
560 #define DBO_INT3BREAK 0x0100
562 /* DebugOutput flags values */
563 #define DBF_TRACE 0x0000
564 #define DBF_WARNING 0x4000
565 #define DBF_ERROR 0x8000
566 #define DBF_FATAL 0xc000
568 /* dwFilter values */
569 #define DBF_KERNEL 0x1000
570 #define DBF_KRN_MEMMAN 0x0001
571 #define DBF_KRN_LOADMODULE 0x0002
572 #define DBF_KRN_SEGMENTLOAD 0x0004
573 #define DBF_USER 0x0800
574 #define DBF_GDI 0x0400
575 #define DBF_MMSYSTEM 0x0040
576 #define DBF_PENWIN 0x0020
577 #define DBF_APPLICATION 0x0008
578 #define DBF_DRIVER 0x0010
580 #endif /* NOLOGERROR */
582 typedef struct {
583 WORD wYear;
584 WORD wMonth;
585 WORD wDayOfWeek;
586 WORD wDay;
587 WORD wHour;
588 WORD wMinute;
589 WORD wSecond;
590 WORD wMilliseconds;
591 } SYSTEMTIME, *LPSYSTEMTIME;
593 /* The 'overlapped' data structure used by async I/O functions.
595 typedef struct {
596 DWORD Internal;
597 DWORD InternalHigh;
598 DWORD Offset;
599 DWORD OffsetHigh;
600 HANDLE hEvent;
601 } OVERLAPPED, *LPOVERLAPPED;
603 typedef VOID (CALLBACK *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD dwErrorCode, DWORD dwNumberOfBytesTransfered, LPOVERLAPPED lpOverlapped);
605 /* Process startup information.
608 /* STARTUPINFO.dwFlags */
609 #define STARTF_USESHOWWINDOW 0x00000001
610 #define STARTF_USESIZE 0x00000002
611 #define STARTF_USEPOSITION 0x00000004
612 #define STARTF_USECOUNTCHARS 0x00000008
613 #define STARTF_USEFILLATTRIBUTE 0x00000010
614 #define STARTF_RUNFULLSCREEN 0x00000020
615 #define STARTF_FORCEONFEEDBACK 0x00000040
616 #define STARTF_FORCEOFFFEEDBACK 0x00000080
617 #define STARTF_USESTDHANDLES 0x00000100
618 #define STARTF_USEHOTKEY 0x00000200
620 typedef struct {
621 DWORD cb; /* 00: size of struct */
622 LPSTR lpReserved; /* 04: */
623 LPSTR lpDesktop; /* 08: */
624 LPSTR lpTitle; /* 0c: */
625 DWORD dwX; /* 10: */
626 DWORD dwY; /* 14: */
627 DWORD dwXSize; /* 18: */
628 DWORD dwYSize; /* 1c: */
629 DWORD dwXCountChars; /* 20: */
630 DWORD dwYCountChars; /* 24: */
631 DWORD dwFillAttribute; /* 28: */
632 DWORD dwFlags; /* 2c: */
633 WORD wShowWindow; /* 30: */
634 WORD cbReserved2; /* 32: */
635 BYTE *lpReserved2; /* 34: */
636 HANDLE hStdInput; /* 38: */
637 HANDLE hStdOutput; /* 3c: */
638 HANDLE hStdError; /* 40: */
639 } STARTUPINFOA, *LPSTARTUPINFOA;
641 typedef struct {
642 DWORD cb;
643 LPWSTR lpReserved;
644 LPWSTR lpDesktop;
645 LPWSTR lpTitle;
646 DWORD dwX;
647 DWORD dwY;
648 DWORD dwXSize;
649 DWORD dwYSize;
650 DWORD dwXCountChars;
651 DWORD dwYCountChars;
652 DWORD dwFillAttribute;
653 DWORD dwFlags;
654 WORD wShowWindow;
655 WORD cbReserved2;
656 BYTE *lpReserved2;
657 HANDLE hStdInput;
658 HANDLE hStdOutput;
659 HANDLE hStdError;
660 } STARTUPINFOW, *LPSTARTUPINFOW;
662 DECL_WINELIB_TYPE_AW(STARTUPINFO)
663 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
665 typedef struct {
666 HANDLE hProcess;
667 HANDLE hThread;
668 DWORD dwProcessId;
669 DWORD dwThreadId;
670 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
672 typedef struct {
673 LONG Bias;
674 WCHAR StandardName[32];
675 SYSTEMTIME StandardDate;
676 LONG StandardBias;
677 WCHAR DaylightName[32];
678 SYSTEMTIME DaylightDate;
679 LONG DaylightBias;
680 } TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
682 #define TIME_ZONE_ID_UNKNOWN 0
683 #define TIME_ZONE_ID_STANDARD 1
684 #define TIME_ZONE_ID_DAYLIGHT 2
686 /* CreateProcess: dwCreationFlag values
688 #define DEBUG_PROCESS 0x00000001
689 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
690 #define CREATE_SUSPENDED 0x00000004
691 #define DETACHED_PROCESS 0x00000008
692 #define CREATE_NEW_CONSOLE 0x00000010
693 #define NORMAL_PRIORITY_CLASS 0x00000020
694 #define IDLE_PRIORITY_CLASS 0x00000040
695 #define HIGH_PRIORITY_CLASS 0x00000080
696 #define REALTIME_PRIORITY_CLASS 0x00000100
697 #define CREATE_NEW_PROCESS_GROUP 0x00000200
698 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
699 #define CREATE_SEPARATE_WOW_VDM 0x00000800
700 #define CREATE_SHARED_WOW_VDM 0x00001000
701 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
702 #define CREATE_NO_WINDOW 0x08000000
703 #define PROFILE_USER 0x10000000
704 #define PROFILE_KERNEL 0x20000000
705 #define PROFILE_SERVER 0x40000000
708 /* File object type definitions
710 #define FILE_TYPE_UNKNOWN 0
711 #define FILE_TYPE_DISK 1
712 #define FILE_TYPE_CHAR 2
713 #define FILE_TYPE_PIPE 3
714 #define FILE_TYPE_REMOTE 32768
716 /* File creation flags
718 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
719 #define FILE_FLAG_OVERLAPPED 0x40000000L
720 #define FILE_FLAG_NO_BUFFERING 0x20000000L
721 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
722 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
723 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
724 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
725 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
726 #define CREATE_NEW 1
727 #define CREATE_ALWAYS 2
728 #define OPEN_EXISTING 3
729 #define OPEN_ALWAYS 4
730 #define TRUNCATE_EXISTING 5
732 /* Standard handle identifiers
734 #define STD_INPUT_HANDLE ((DWORD) -10)
735 #define STD_OUTPUT_HANDLE ((DWORD) -11)
736 #define STD_ERROR_HANDLE ((DWORD) -12)
738 typedef struct
740 int dwFileAttributes;
741 FILETIME ftCreationTime;
742 FILETIME ftLastAccessTime;
743 FILETIME ftLastWriteTime;
744 int dwVolumeSerialNumber;
745 int nFileSizeHigh;
746 int nFileSizeLow;
747 int nNumberOfLinks;
748 int nFileIndexHigh;
749 int nFileIndexLow;
750 } BY_HANDLE_FILE_INFORMATION ;
753 typedef struct _SYSTEM_POWER_STATUS
755 BYTE ACLineStatus;
756 BYTE BatteryFlag;
757 BYTE BatteryLifePercent;
758 BYTE reserved;
759 DWORD BatteryLifeTime;
760 DWORD BatteryFullLifeTime;
761 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
764 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
765 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
766 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
767 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
768 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
769 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
771 typedef struct tagSYSTEM_INFO
773 union {
774 DWORD dwOemId; /* Obsolete field - do not use */
775 struct {
776 WORD wProcessorArchitecture;
777 WORD wReserved;
778 } DUMMYSTRUCTNAME;
779 } DUMMYUNIONNAME;
780 DWORD dwPageSize;
781 LPVOID lpMinimumApplicationAddress;
782 LPVOID lpMaximumApplicationAddress;
783 DWORD dwActiveProcessorMask;
784 DWORD dwNumberOfProcessors;
785 DWORD dwProcessorType;
786 DWORD dwAllocationGranularity;
787 WORD wProcessorLevel;
788 WORD wProcessorRevision;
789 } SYSTEM_INFO, *LPSYSTEM_INFO;
791 /* {G,S}etPriorityClass */
792 #define NORMAL_PRIORITY_CLASS 0x00000020
793 #define IDLE_PRIORITY_CLASS 0x00000040
794 #define HIGH_PRIORITY_CLASS 0x00000080
795 #define REALTIME_PRIORITY_CLASS 0x00000100
797 typedef BOOL (CALLBACK *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
798 typedef BOOL (CALLBACK *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG);
799 typedef BOOL (CALLBACK *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG);
800 typedef BOOL (CALLBACK *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG);
801 typedef BOOL (CALLBACK *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG);
802 typedef BOOL (CALLBACK *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG);
804 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
805 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
806 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
808 /* flags that can be passed to LoadLibraryEx */
809 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
810 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
811 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
813 /* ifdef _x86_ ... */
814 typedef struct _LDT_ENTRY {
815 WORD LimitLow;
816 WORD BaseLow;
817 union {
818 struct {
819 BYTE BaseMid;
820 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
821 BYTE Flags2;
822 BYTE BaseHi;
823 } Bytes;
824 struct {
825 unsigned BaseMid : 8;
826 unsigned Type : 5;
827 unsigned Dpl : 2;
828 unsigned Pres : 1;
829 unsigned LimitHi : 4;
830 unsigned Sys : 1;
831 unsigned Reserved_0 : 1;
832 unsigned Default_Big : 1;
833 unsigned Granularity : 1;
834 unsigned BaseHi : 8;
835 } Bits;
836 } HighWord;
837 } LDT_ENTRY, *LPLDT_ENTRY;
840 typedef enum _GET_FILEEX_INFO_LEVELS {
841 GetFileExInfoStandard
842 } GET_FILEEX_INFO_LEVELS;
844 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
845 DWORD dwFileAttributes;
846 FILETIME ftCreationTime;
847 FILETIME ftLastAccessTime;
848 FILETIME ftLastWriteTime;
849 DWORD nFileSizeHigh;
850 DWORD nFileSizeLow;
851 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
853 typedef struct _DllVersionInfo {
854 DWORD cbSize;
855 DWORD dwMajorVersion;
856 DWORD dwMinorVersion;
857 DWORD dwBuildNumber;
858 DWORD dwPlatformID;
859 } DLLVERSIONINFO;
862 * This one seems to be a Win32 only definition. It also is defined with
863 * WINAPI instead of CALLBACK in the windows headers.
865 typedef DWORD (CALLBACK *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
866 LARGE_INTEGER, DWORD, DWORD, HANDLE,
867 HANDLE, LPVOID);
870 #define WAIT_FAILED 0xffffffff
871 #define WAIT_OBJECT_0 0
872 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
873 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
874 #define WAIT_IO_COMPLETION STATUS_USER_APC
875 #define WAIT_TIMEOUT STATUS_TIMEOUT
876 #define STILL_ACTIVE STATUS_PENDING
878 #define FILE_BEGIN 0
879 #define FILE_CURRENT 1
880 #define FILE_END 2
882 #define FILE_MAP_COPY 0x00000001
883 #define FILE_MAP_WRITE 0x00000002
884 #define FILE_MAP_READ 0x00000004
885 #define FILE_MAP_ALL_ACCESS 0x000f001f
887 #define MOVEFILE_REPLACE_EXISTING 0x00000001
888 #define MOVEFILE_COPY_ALLOWED 0x00000002
889 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
891 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
892 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
893 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
895 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
896 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
897 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
898 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
899 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
900 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
901 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
902 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
903 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
904 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
905 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
906 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
907 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
908 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
909 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
910 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
911 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
912 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
913 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
914 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
915 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
916 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
917 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
919 /* Wine extension; Windows doesn't have a name for this code */
920 #define EXCEPTION_CRITICAL_SECTION_WAIT 0xc0000194
922 #define DUPLICATE_CLOSE_SOURCE 0x00000001
923 #define DUPLICATE_SAME_ACCESS 0x00000002
925 #define HANDLE_FLAG_INHERIT 0x00000001
926 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
928 #define HINSTANCE_ERROR 32
930 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
931 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
932 #define THREAD_PRIORITY_NORMAL 0
933 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
934 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
935 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
936 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
937 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
939 /* Could this type be considered opaque? */
940 typedef struct {
941 LPVOID DebugInfo;
942 LONG LockCount;
943 LONG RecursionCount;
944 HANDLE OwningThread;
945 HANDLE LockSemaphore;
946 DWORD Reserved;
947 }CRITICAL_SECTION;
949 #ifdef __WINE__
950 #define CRITICAL_SECTION_INIT { 0, -1, 0, 0, 0, 0 }
951 #endif
953 typedef struct {
954 DWORD dwOSVersionInfoSize;
955 DWORD dwMajorVersion;
956 DWORD dwMinorVersion;
957 DWORD dwBuildNumber;
958 DWORD dwPlatformId;
959 CHAR szCSDVersion[128];
960 } OSVERSIONINFO16;
962 typedef struct {
963 DWORD dwOSVersionInfoSize;
964 DWORD dwMajorVersion;
965 DWORD dwMinorVersion;
966 DWORD dwBuildNumber;
967 DWORD dwPlatformId;
968 CHAR szCSDVersion[128];
969 } OSVERSIONINFOA;
971 typedef struct {
972 DWORD dwOSVersionInfoSize;
973 DWORD dwMajorVersion;
974 DWORD dwMinorVersion;
975 DWORD dwBuildNumber;
976 DWORD dwPlatformId;
977 WCHAR szCSDVersion[128];
978 } OSVERSIONINFOW;
980 DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
982 #define VER_PLATFORM_WIN32s 0
983 #define VER_PLATFORM_WIN32_WINDOWS 1
984 #define VER_PLATFORM_WIN32_NT 2
986 typedef struct tagCOMSTAT
988 DWORD status;
989 DWORD cbInQue;
990 DWORD cbOutQue;
991 } COMSTAT,*LPCOMSTAT;
993 typedef struct tagDCB
995 DWORD DCBlength;
996 DWORD BaudRate;
997 unsigned fBinary :1;
998 unsigned fParity :1;
999 unsigned fOutxCtsFlow :1;
1000 unsigned fOutxDsrFlow :1;
1001 unsigned fDtrControl :2;
1002 unsigned fDsrSensitivity :1;
1003 unsigned fTXContinueOnXoff :1;
1004 unsigned fOutX :1;
1005 unsigned fInX :1;
1006 unsigned fErrorChar :1;
1007 unsigned fNull :1;
1008 unsigned fRtsControl :2;
1009 unsigned fAbortOnError :1;
1010 unsigned fDummy2 :17;
1011 WORD wReserved;
1012 WORD XonLim;
1013 WORD XoffLim;
1014 BYTE ByteSize;
1015 BYTE Parity;
1016 BYTE StopBits;
1017 char XonChar;
1018 char XoffChar;
1019 char ErrorChar;
1020 char EofChar;
1021 char EvtChar;
1022 } DCB, *LPDCB;
1026 typedef struct tagCOMMTIMEOUTS {
1027 DWORD ReadIntervalTimeout;
1028 DWORD ReadTotalTimeoutMultiplier;
1029 DWORD ReadTotalTimeoutConstant;
1030 DWORD WriteTotalTimeoutMultiplier;
1031 DWORD WriteTotalTimeoutConstant;
1032 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1034 #include "poppack.h"
1036 typedef void (CALLBACK *PAPCFUNC)(ULONG_PTR);
1037 typedef void (CALLBACK *PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD);
1039 BOOL WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT);
1040 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1041 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1042 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1043 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1044 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1045 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1046 BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1047 BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1048 BOOL WINAPI GetCommState(INT,LPDCB);
1049 BOOL WINAPI SetCommState(INT,LPDCB);
1050 BOOL WINAPI TransmitCommChar(INT,CHAR);
1051 BOOL WINAPI SetupComm(HANDLE, DWORD, DWORD);
1052 BOOL WINAPI GetCommProperties(HANDLE, LPDCB *);
1054 /*DWORD WINAPI GetVersion( void );*/
1055 BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*);
1056 BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1057 BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1058 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1060 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1062 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1063 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1064 BOOL WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit);
1065 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1066 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1067 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1068 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1069 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1070 void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1071 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1072 BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1073 BOOL WINAPI TerminateThread(HANDLE,DWORD);
1074 BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1076 /* GetBinaryType return values.
1079 #define SCS_32BIT_BINARY 0
1080 #define SCS_DOS_BINARY 1
1081 #define SCS_WOW_BINARY 2
1082 #define SCS_PIF_BINARY 3
1083 #define SCS_POSIX_BINARY 4
1084 #define SCS_OS216_BINARY 5
1086 BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1087 BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1088 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1090 BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1091 BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1092 /* Declarations for functions that exist only in Win32 */
1095 BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
1096 BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1097 BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,LPVOID,DWORD,LPVOID,LPDWORD);
1098 BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
1099 BOOL WINAPI AllocateLocallyUniqueId(PLUID);
1100 BOOL WINAPI AllocConsole(void);
1101 BOOL WINAPI AreFileApisANSI(void);
1102 BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
1103 BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
1104 #define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1105 BOOL WINAPI Beep(DWORD,DWORD);
1106 BOOL WINAPI CancelWaitableTimer(HANDLE);
1107 BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1108 BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1109 #define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1110 BOOL WINAPI CloseEventLog(HANDLE);
1111 BOOL WINAPI CloseHandle(HANDLE);
1112 BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1113 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1114 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1115 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1116 #define CopyFile WINELIB_NAME_AW(CopyFile)
1117 BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1118 BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1119 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1120 BOOL WINAPI CopySid(DWORD,PSID,PSID);
1121 INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1122 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1123 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1124 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1125 HANDLE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1126 DWORD,DWORD,HANDLE);
1127 HANDLE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1128 DWORD,DWORD,HANDLE);
1129 #define CreateFile WINELIB_NAME_AW(CreateFile)
1130 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1131 DWORD,DWORD,LPCSTR);
1132 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1133 DWORD,DWORD,LPCWSTR);
1134 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1135 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1136 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1137 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1138 BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1139 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1140 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1141 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1142 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1143 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1144 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1145 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1146 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1147 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1148 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1149 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1150 HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1151 HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1152 #define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1153 BOOL WINAPI DebugActiveProcess(DWORD);
1154 void WINAPI DebugBreak(void);
1155 BOOL WINAPI DeregisterEventSource(HANDLE);
1156 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1157 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1158 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1159 BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1160 BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1161 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1162 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1163 ENUMRESLANGPROCA,LONG);
1164 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1165 ENUMRESLANGPROCW,LONG);
1166 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1167 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1168 LONG);
1169 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1170 LONG);
1171 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1172 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1173 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1174 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1175 BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
1176 BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
1177 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1178 BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
1179 BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
1180 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1181 BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1182 BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1183 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1184 BOOL WINAPI EqualSid(PSID, PSID);
1185 BOOL WINAPI EqualPrefixSid(PSID,PSID);
1186 VOID WINAPI ExitProcess(DWORD) WINE_NORETURN;
1187 VOID WINAPI ExitThread(DWORD) WINE_NORETURN;
1188 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1189 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1190 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1191 BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1192 BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1193 BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1194 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1195 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1196 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1197 BOOL WINAPI FindNextChangeNotification(HANDLE);
1198 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1199 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1200 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1201 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1202 BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1203 BOOL WINAPI FlushFileBuffers(HANDLE);
1204 BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1205 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1206 DWORD,LPDWORD);
1207 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1208 DWORD,LPDWORD);
1209 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1210 BOOL WINAPI FreeConsole(void);
1211 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1212 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1213 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1214 PVOID WINAPI FreeSid(PSID);
1215 UINT WINAPI GetACP(void);
1216 LPCSTR WINAPI GetCommandLineA(void);
1217 LPCWSTR WINAPI GetCommandLineW(void);
1218 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1219 BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1220 BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1221 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1222 UINT WINAPI GetConsoleCP(void);
1223 BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1224 UINT WINAPI GetConsoleOutputCP(void);
1225 DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1226 DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1227 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1228 BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1229 BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1230 HANDLE WINAPI GetCurrentProcess(void);
1231 HANDLE WINAPI GetCurrentThread(void);
1232 INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1233 INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1234 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1235 LPSTR WINAPI GetEnvironmentStringsA(void);
1236 LPWSTR WINAPI GetEnvironmentStringsW(void);
1237 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1238 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1239 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1240 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1241 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1242 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1243 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1244 DWORD WINAPI GetFileInformationByHandle(HANDLE,BY_HANDLE_FILE_INFORMATION*);
1245 BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1246 BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1247 #define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1248 DWORD WINAPI GetFileSize(HANDLE,LPDWORD);
1249 BOOL WINAPI GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME);
1250 DWORD WINAPI GetFileType(HANDLE);
1251 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1252 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1253 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1254 BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1255 DWORD WINAPI GetLengthSid(PSID);
1256 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1257 DWORD WINAPI GetLogicalDrives(void);
1258 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1259 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1260 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1261 BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1262 BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1263 BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
1264 UINT WINAPI GetOEMCP(void);
1265 BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
1266 DWORD WINAPI GetPriorityClass(HANDLE);
1267 DWORD WINAPI GetProcessVersion(DWORD);
1268 BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
1269 BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1270 BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1271 DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
1272 BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1273 BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1274 PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
1275 DWORD WINAPI GetSidLengthRequired(BYTE);
1276 PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
1277 PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
1278 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1279 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1280 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1281 HFILE WINAPI GetStdHandle(DWORD);
1282 BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1283 BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1284 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1285 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1286 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1287 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1288 VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME);
1289 INT WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1290 INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1291 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1292 BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
1293 LCID WINAPI GetThreadLocale(void);
1294 INT WINAPI GetThreadPriority(HANDLE);
1295 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1296 BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1297 BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
1298 BOOL WINAPI GetUserNameA(LPSTR,LPDWORD);
1299 BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD);
1300 #define GetUserName WINELIB_NAME_AW(GetUserName)
1301 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1302 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1303 DWORD WINAPI HeapCompact(HANDLE,DWORD);
1304 HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1305 BOOL WINAPI HeapDestroy(HANDLE);
1306 BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1307 BOOL WINAPI HeapLock(HANDLE);
1308 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1309 DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1310 BOOL WINAPI HeapUnlock(HANDLE);
1311 BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1312 BOOL WINAPI HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY);
1313 BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1314 BOOL WINAPI IsTextUnicode(CONST LPVOID lpBuffer, int cb, LPINT lpi);
1315 BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1316 BOOL WINAPI IsValidSid(PSID);
1317 BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1318 BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1319 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1320 BOOL WINAPI IsValidLocale(DWORD,DWORD);
1321 BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE);
1322 BOOL WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE);
1323 #define LookupAccountSid WINELIB_NAME_AW(LookupAccountSidW)
1324 BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1325 BOOL WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1326 BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1327 BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID);
1328 BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID);
1329 #define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1330 BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
1331 HMODULE WINAPI MapHModuleSL(HMODULE16);
1332 HMODULE16 WINAPI MapHModuleLS(HMODULE);
1333 SEGPTR WINAPI MapLS(LPVOID);
1334 LPVOID WINAPI MapSL(SEGPTR);
1335 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1336 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1337 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1338 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1339 #define MoveFile WINELIB_NAME_AW(MoveFile)
1340 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1341 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1342 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1343 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1344 BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1345 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1346 HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1347 HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1348 #define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1349 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1350 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1351 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1352 HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
1353 HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1354 #define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1355 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1356 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1357 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1358 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1359 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1360 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1361 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1362 BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1363 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1364 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1365 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1366 BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1367 HANDLE WINAPI OpenWaitableTimerA(DWORD,BOOL,LPCSTR);
1368 HANDLE WINAPI OpenWaitableTimerW(DWORD,BOOL,LPCWSTR);
1369 #define OpenWaitableTimer WINELIB_NAME_AW(OpenWaitableTimer)
1370 BOOL WINAPI PulseEvent(HANDLE);
1371 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1372 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1373 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1374 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1375 BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1376 BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1377 BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1378 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
1379 BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1380 BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1381 #define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1382 BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1383 HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
1384 HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1385 #define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1386 BOOL WINAPI ReleaseMutex(HANDLE);
1387 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1388 BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
1389 BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
1390 #define ReportEvent WINELIB_NAME_AW(ReportEvent)
1391 BOOL WINAPI ResetEvent(HANDLE);
1392 DWORD WINAPI ResumeThread(HANDLE);
1393 BOOL WINAPI RevertToSelf(void);
1394 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1395 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1396 #define SearchPath WINELIB_NAME_AW(SearchPath)
1397 BOOL WINAPI SetCommMask(INT,DWORD);
1398 BOOL WINAPI SetComputerNameA(LPCSTR);
1399 BOOL WINAPI SetComputerNameW(LPCWSTR);
1400 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1401 BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1402 BOOL WINAPI SetConsoleTitleA(LPCSTR);
1403 BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1404 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1405 BOOL WINAPI SetEndOfFile(HANDLE);
1406 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1407 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1408 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1409 BOOL WINAPI SetEvent(HANDLE);
1410 VOID WINAPI SetFileApisToANSI(void);
1411 VOID WINAPI SetFileApisToOEM(void);
1412 DWORD WINAPI SetFilePointer(HANDLE,LONG,LPLONG,DWORD);
1413 BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1414 BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1415 #define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1416 BOOL WINAPI SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*);
1417 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1418 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1419 BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
1420 BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1421 BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
1422 BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
1423 BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1424 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1425 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1426 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1427 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1428 BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
1429 BOOL WINAPI SetThreadLocale(LCID);
1430 BOOL WINAPI SetThreadPriority(HANDLE,INT);
1431 BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1432 BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,BOOL);
1433 VOID WINAPI Sleep(DWORD);
1434 DWORD WINAPI SleepEx(DWORD,BOOL);
1435 DWORD WINAPI SuspendThread(HANDLE);
1436 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1437 DWORD WINAPI TlsAlloc(void);
1438 BOOL WINAPI TlsFree(DWORD);
1439 LPVOID WINAPI TlsGetValue(DWORD);
1440 BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1441 VOID WINAPI UnMapLS(SEGPTR);
1442 BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1443 BOOL WINAPI UnmapViewOfFile(LPVOID);
1444 LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1445 BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1446 BOOL WINAPI VirtualLock(LPVOID,DWORD);
1447 BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1448 BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1449 DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1450 DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1451 BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1452 BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1453 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1454 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1455 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1456 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1457 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1458 BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1459 BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1460 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
1461 BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1462 LANGID WINAPI GetSystemDefaultLangID(void);
1463 LCID WINAPI GetSystemDefaultLCID(void);
1464 LANGID WINAPI GetUserDefaultLangID(void);
1465 LCID WINAPI GetUserDefaultLCID(void);
1466 ATOM WINAPI AddAtomA(LPCSTR);
1467 ATOM WINAPI AddAtomW(LPCWSTR);
1468 #define AddAtom WINELIB_NAME_AW(AddAtom)
1469 UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
1470 UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
1471 #define CompareString WINELIB_NAME_AW(CompareString)
1472 BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1473 BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1474 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1475 BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1476 BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1477 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1478 BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1479 #define DefineHandleTable(w) ((w),TRUE)
1480 ATOM WINAPI DeleteAtom(ATOM);
1481 BOOL WINAPI DeleteFileA(LPCSTR);
1482 BOOL WINAPI DeleteFileW(LPCWSTR);
1483 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1484 void WINAPI FatalAppExitA(UINT,LPCSTR);
1485 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1486 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1487 ATOM WINAPI FindAtomA(LPCSTR);
1488 ATOM WINAPI FindAtomW(LPCWSTR);
1489 #define FindAtom WINELIB_NAME_AW(FindAtom)
1490 BOOL WINAPI FindClose(HANDLE);
1491 HANDLE16 WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA);
1492 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1493 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1494 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1495 BOOL16 WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA);
1496 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1497 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1498 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1499 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1500 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1501 #define FindResource WINELIB_NAME_AW(FindResource)
1502 BOOL WINAPI FreeLibrary(HMODULE);
1503 #define FreeModule(handle) FreeLibrary(handle)
1504 #define FreeProcInstance(proc) /*nothing*/
1505 BOOL WINAPI FreeResource(HGLOBAL);
1506 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1507 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1508 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1509 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1510 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1511 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1512 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1513 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1514 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1515 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1516 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1517 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1518 UINT WINAPI GetDriveTypeA(LPCSTR);
1519 UINT WINAPI GetDriveTypeW(LPCWSTR);
1520 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1521 DWORD WINAPI GetFileAttributesA(LPCSTR);
1522 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1523 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1524 #define GetFreeSpace(w) (0x100000L)
1525 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1526 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1527 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1528 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1529 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1530 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1531 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1532 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1533 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1534 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1535 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1536 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1537 BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL);
1538 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1539 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1540 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1541 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1542 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1543 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1544 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1545 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1546 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1547 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1548 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1549 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1550 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1551 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1552 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1553 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1554 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1555 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1556 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1557 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1558 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1559 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1560 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1561 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1562 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1563 VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1564 VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1565 #define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1566 BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1567 BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
1568 #define GetStringType WINELIB_NAME_AW(GetStringType)
1569 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1570 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1571 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1572 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1573 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1574 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1575 UINT WINAPI GetTempPathA(UINT,LPSTR);
1576 UINT WINAPI GetTempPathW(UINT,LPWSTR);
1577 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1578 LONG WINAPI GetVersion(void);
1579 BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1580 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1581 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1582 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1583 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1584 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1585 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1586 HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
1587 HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1588 DWORD WINAPI GlobalCompact(DWORD);
1589 UINT WINAPI GlobalFlags(HGLOBAL);
1590 HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
1591 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1592 HGLOBAL WINAPI GlobalHandle(LPCVOID);
1593 WORD WINAPI GlobalFix16(HGLOBAL16);
1594 VOID WINAPI GlobalFix(HGLOBAL);
1595 LPVOID WINAPI GlobalLock16(HGLOBAL16);
1596 LPVOID WINAPI GlobalLock(HGLOBAL);
1597 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1598 DWORD WINAPI GlobalSize16(HGLOBAL16);
1599 DWORD WINAPI GlobalSize(HGLOBAL);
1600 VOID WINAPI GlobalUnfix16(HGLOBAL16);
1601 VOID WINAPI GlobalUnfix(HGLOBAL);
1602 BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
1603 BOOL WINAPI GlobalUnlock(HGLOBAL);
1604 BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
1605 BOOL WINAPI GlobalUnWire(HGLOBAL);
1606 SEGPTR WINAPI GlobalWire16(HGLOBAL16);
1607 LPVOID WINAPI GlobalWire(HGLOBAL);
1608 BOOL WINAPI InitAtomTable(DWORD);
1609 BOOL WINAPI IsBadCodePtr(FARPROC);
1610 BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1611 BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1612 BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1613 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1614 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1615 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1616 BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1617 BOOL WINAPI IsDBCSLeadByte(BYTE);
1618 BOOL WINAPI IsDebuggerPresent(void);
1619 HMODULE WINAPI LoadLibraryA(LPCSTR);
1620 HMODULE WINAPI LoadLibraryW(LPCWSTR);
1621 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1622 HMODULE WINAPI LoadLibraryExA(LPCSTR,HANDLE,DWORD);
1623 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HANDLE,DWORD);
1624 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1625 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1626 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1627 HLOCAL WINAPI LocalAlloc(UINT,DWORD);
1628 UINT WINAPI LocalCompact(UINT);
1629 UINT WINAPI LocalFlags(HLOCAL);
1630 HLOCAL WINAPI LocalFree(HLOCAL);
1631 HLOCAL WINAPI LocalHandle(LPCVOID);
1632 LPVOID WINAPI LocalLock(HLOCAL);
1633 HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
1634 UINT WINAPI LocalShrink(HGLOBAL,UINT);
1635 UINT WINAPI LocalSize(HLOCAL);
1636 BOOL WINAPI LocalUnlock(HLOCAL);
1637 LPVOID WINAPI LockResource(HGLOBAL);
1638 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1639 #define MakeProcInstance(proc,inst) (proc)
1640 HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
1641 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1642 VOID WINAPI OutputDebugStringA(LPCSTR);
1643 VOID WINAPI OutputDebugStringW(LPCWSTR);
1644 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1645 BOOL WINAPI ReadProcessMemory(HANDLE, LPCVOID, LPVOID, DWORD, LPDWORD);
1646 BOOL WINAPI RemoveDirectoryA(LPCSTR);
1647 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1648 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1649 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1650 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1651 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1652 UINT WINAPI SetErrorMode(UINT);
1653 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1654 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1655 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1656 UINT WINAPI SetHandleCount(UINT);
1657 #define SetSwapAreaSize(w) (w)
1658 BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
1659 BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
1660 #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1661 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1662 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1663 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1664 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1665 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1666 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
1667 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
1668 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1669 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
1670 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
1671 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1672 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1673 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1674 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1675 BOOL WINAPI WriteProcessMemory(HANDLE, LPVOID, LPVOID, DWORD, LPDWORD);
1676 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
1677 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
1678 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1679 #define Yield32()
1680 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
1681 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
1682 #define lstrcat WINELIB_NAME_AW(lstrcat)
1683 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
1684 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
1685 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1686 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
1687 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
1688 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1689 INT WINAPI lstrlenA(LPCSTR);
1690 INT WINAPI lstrlenW(LPCWSTR);
1691 #define lstrlen WINELIB_NAME_AW(lstrlen)
1692 HINSTANCE WINAPI WinExec(LPCSTR,UINT);
1693 LONG WINAPI _hread(HFILE,LPVOID,LONG);
1694 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
1695 HFILE WINAPI _lcreat(LPCSTR,INT);
1696 HFILE WINAPI _lclose(HFILE);
1697 LONG WINAPI _llseek(HFILE,LONG,INT);
1698 HFILE WINAPI _lopen(LPCSTR,INT);
1699 UINT WINAPI _lread(HFILE,LPVOID,UINT);
1700 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
1701 SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
1702 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
1703 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
1704 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1705 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
1706 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
1707 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1709 /* compatibility macros */
1710 #define FillMemory RtlFillMemory
1711 #define MoveMemory RtlMoveMemory
1712 #define ZeroMemory RtlZeroMemory
1713 #define CopyMemory RtlCopyMemory
1715 /* a few optimizations for i386/gcc */
1717 #if defined(__i386__) && defined(__GNUC__)
1719 extern inline PVOID WINAPI InterlockedCompareExchange( PVOID *dest, PVOID xchg, PVOID compare );
1720 extern inline PVOID WINAPI InterlockedCompareExchange( PVOID *dest, PVOID xchg, PVOID compare )
1722 PVOID ret;
1723 __asm__ __volatile__( "lock; cmpxchgl %2,(%1)"
1724 : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" );
1725 return ret;
1728 extern inline LONG WINAPI InterlockedExchange( PLONG dest, LONG val );
1729 extern inline LONG WINAPI InterlockedExchange( PLONG dest, LONG val )
1731 LONG ret;
1732 __asm__ __volatile__( "lock; xchgl %0,(%1)"
1733 : "=r" (ret) :"r" (dest), "0" (val) : "memory" );
1734 return ret;
1737 extern inline LONG WINAPI InterlockedExchangeAdd( PLONG dest, LONG incr );
1738 extern inline LONG WINAPI InterlockedExchangeAdd( PLONG dest, LONG incr )
1740 LONG ret;
1741 __asm__ __volatile__( "lock; xaddl %0,(%1)"
1742 : "=r" (ret) : "r" (dest), "0" (incr) : "memory" );
1743 return ret;
1746 extern inline LONG WINAPI InterlockedIncrement( PLONG dest );
1747 extern inline LONG WINAPI InterlockedIncrement( PLONG dest )
1749 return InterlockedExchangeAdd( dest, 1 ) + 1;
1752 extern inline LONG WINAPI InterlockedDecrement( PLONG dest );
1753 extern inline LONG WINAPI InterlockedDecrement( PLONG dest )
1755 return InterlockedExchangeAdd( dest, -1 ) - 1;
1758 extern inline DWORD WINAPI GetLastError(void);
1759 extern inline DWORD WINAPI GetLastError(void)
1761 DWORD ret;
1762 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x60,%0" : "=r" (ret) );
1763 return ret;
1766 extern inline DWORD WINAPI GetCurrentProcessId(void);
1767 extern inline DWORD WINAPI GetCurrentProcessId(void)
1769 DWORD ret;
1770 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x20,%0" : "=r" (ret) );
1771 return ret;
1774 extern inline DWORD WINAPI GetCurrentThreadId(void);
1775 extern inline DWORD WINAPI GetCurrentThreadId(void)
1777 DWORD ret;
1778 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x24,%0" : "=r" (ret) );
1779 return ret;
1782 extern inline void WINAPI SetLastError( DWORD err );
1783 extern inline void WINAPI SetLastError( DWORD err )
1785 __asm__ __volatile__( ".byte 0x64\n\tmovl %0,0x60" : : "r" (err) : "memory" );
1788 extern inline HANDLE WINAPI GetProcessHeap(void);
1789 extern inline HANDLE WINAPI GetProcessHeap(void)
1791 HANDLE *pdb;
1792 __asm__ __volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb) );
1793 return pdb[0x18 / sizeof(HANDLE)]; /* get dword at offset 0x18 in pdb */
1796 #else /* __i386__ && __GNUC__ */
1797 DWORD WINAPI GetCurrentProcessId(void);
1798 DWORD WINAPI GetCurrentThreadId(void);
1799 DWORD WINAPI GetLastError(void);
1800 HANDLE WINAPI GetProcessHeap(void);
1801 PVOID WINAPI InterlockedCompareExchange(PVOID*,PVOID,PVOID);
1802 LONG WINAPI InterlockedDecrement(PLONG);
1803 LONG WINAPI InterlockedExchange(PLONG,LONG);
1804 LONG WINAPI InterlockedExchangeAdd(PLONG,LONG);
1805 LONG WINAPI InterlockedIncrement(PLONG);
1806 VOID WINAPI SetLastError(DWORD);
1807 #endif /* __i386__ && __GNUC__ */
1809 #ifdef __WINE__
1810 #define GetCurrentProcess() ((HANDLE)0xffffffff)
1811 #define GetCurrentThread() ((HANDLE)0xfffffffe)
1812 #endif
1814 #ifdef __cplusplus
1816 #endif
1818 #endif /* __WINE_WINBASE_H */