Fixed a silly VGA-emulation palette bug.
[wine/multimedia.git] / include / winbase.h
bloba9fb92ef3263c4285b3b71be92c6d342fc613df7
1 #ifndef __WINE_WINBASE_H
2 #define __WINE_WINBASE_H
4 #include "winnt.h"
6 #pragma pack(1)
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 typedef struct tagCOORD {
14 INT16 x;
15 INT16 y;
16 } COORD, *LPCOORD;
19 /* Windows Exit Procedure flag values */
20 #define WEP_FREE_DLL 0
21 #define WEP_SYSTEM_EXIT 1
23 typedef DWORD (CALLBACK *LPTHREAD_START_ROUTINE)(LPVOID);
25 /* This is also defined in winnt.h */
26 /* typedef struct _EXCEPTION_RECORD {
27 DWORD ExceptionCode;
28 DWORD ExceptionFlags;
29 struct _EXCEPTION_RECORD *ExceptionRecord;
30 LPVOID ExceptionAddress;
31 DWORD NumberParameters;
32 DWORD ExceptionInformation[15];
33 } EXCEPTION_RECORD; */
35 typedef struct _EXCEPTION_DEBUG_INFO {
36 /* EXCEPTION_RECORD ExceptionRecord; */
37 DWORD dwFirstChange;
38 } EXCEPTION_DEBUG_INFO;
40 typedef struct _CREATE_THREAD_DEBUG_INFO {
41 HANDLE hThread;
42 LPVOID lpThreadLocalBase;
43 LPTHREAD_START_ROUTINE lpStartAddress;
44 } CREATE_THREAD_DEBUG_INFO;
46 typedef struct _CREATE_PROCESS_DEBUG_INFO {
47 HANDLE hFile;
48 HANDLE hProcess;
49 HANDLE hThread;
50 LPVOID lpBaseOfImage;
51 DWORD dwDebugInfoFileOffset;
52 DWORD nDebugInfoSize;
53 LPVOID lpThreadLocalBase;
54 LPTHREAD_START_ROUTINE lpStartAddress;
55 LPVOID lpImageName;
56 WORD fUnicode;
57 } CREATE_PROCESS_DEBUG_INFO;
59 typedef struct _EXIT_THREAD_DEBUG_INFO {
60 DWORD dwExitCode;
61 } EXIT_THREAD_DEBUG_INFO;
63 typedef struct _EXIT_PROCESS_DEBUG_INFO {
64 DWORD dwExitCode;
65 } EXIT_PROCESS_DEBUG_INFO;
67 typedef struct _LOAD_DLL_DEBUG_INFO {
68 HANDLE hFile;
69 LPVOID lpBaseOfDll;
70 DWORD dwDebugInfoFileOffset;
71 DWORD nDebugInfoSize;
72 LPVOID lpImageName;
73 WORD fUnicode;
74 } LOAD_DLL_DEBUG_INFO;
76 typedef struct _UNLOAD_DLL_DEBUG_INFO {
77 LPVOID lpBaseOfDll;
78 } UNLOAD_DLL_DEBUG_INFO;
80 typedef struct _OUTPUT_DEBUG_STRING_INFO {
81 LPSTR lpDebugStringData;
82 WORD fUnicode;
83 WORD nDebugStringLength;
84 } OUTPUT_DEBUG_STRING_INFO;
86 typedef struct _RIP_INFO {
87 DWORD dwError;
88 DWORD dwType;
89 } RIP_INFO;
91 typedef struct _DEBUG_EVENT {
92 DWORD dwDebugEventCode;
93 DWORD dwProcessId;
94 DWORD dwThreadId;
95 union {
96 EXCEPTION_DEBUG_INFO Exception;
97 CREATE_THREAD_DEBUG_INFO CreateThread;
98 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo;
99 EXIT_THREAD_DEBUG_INFO ExitThread;
100 EXIT_PROCESS_DEBUG_INFO ExitProcess;
101 LOAD_DLL_DEBUG_INFO LoadDll;
102 UNLOAD_DLL_DEBUG_INFO UnloadDll;
103 OUTPUT_DEBUG_STRING_INFO DebugString;
104 RIP_INFO RipInfo;
105 } u;
106 } DEBUG_EVENT, *LPDEBUG_EVENT;
108 #define OFS_MAXPATHNAME 128
109 typedef struct
111 BYTE cBytes;
112 BYTE fFixedDisk;
113 WORD nErrCode;
114 BYTE reserved[4];
115 BYTE szPathName[OFS_MAXPATHNAME];
116 } OFSTRUCT, *LPOFSTRUCT;
118 #define OF_READ 0x0000
119 #define OF_WRITE 0x0001
120 #define OF_READWRITE 0x0002
121 #define OF_SHARE_COMPAT 0x0000
122 #define OF_SHARE_EXCLUSIVE 0x0010
123 #define OF_SHARE_DENY_WRITE 0x0020
124 #define OF_SHARE_DENY_READ 0x0030
125 #define OF_SHARE_DENY_NONE 0x0040
126 #define OF_PARSE 0x0100
127 #define OF_DELETE 0x0200
128 #define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
129 #define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
130 #define OF_CANCEL 0x0800
131 #define OF_CREATE 0x1000
132 #define OF_PROMPT 0x2000
133 #define OF_EXIST 0x4000
134 #define OF_REOPEN 0x8000
136 /* SetErrorMode values */
137 #define SEM_FAILCRITICALERRORS 0x0001
138 #define SEM_NOGPFAULTERRORBOX 0x0002
139 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
140 #define SEM_NOOPENFILEERRORBOX 0x8000
142 /* CopyFileEx flags */
143 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
144 #define COPY_FILE_RESTARTABLE 0x00000002
145 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
147 /* GetTempFileName() Flags */
148 #define TF_FORCEDRIVE 0x80
150 #define DRIVE_CANNOTDETERMINE 0
151 #define DRIVE_DOESNOTEXIST 1
152 #define DRIVE_REMOVABLE 2
153 #define DRIVE_FIXED 3
154 #define DRIVE_REMOTE 4
155 /* Win32 additions */
156 #define DRIVE_CDROM 5
157 #define DRIVE_RAMDISK 6
159 /* The security attributes structure */
160 typedef struct
162 DWORD nLength;
163 LPVOID lpSecurityDescriptor;
164 BOOL bInheritHandle;
165 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
167 #ifndef _FILETIME_
168 #define _FILETIME_
169 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
170 typedef struct
172 DWORD dwLowDateTime;
173 DWORD dwHighDateTime;
174 } FILETIME, *LPFILETIME;
175 #endif /* _FILETIME_ */
177 /* Find* structures */
178 typedef struct
180 DWORD dwFileAttributes;
181 FILETIME ftCreationTime;
182 FILETIME ftLastAccessTime;
183 FILETIME ftLastWriteTime;
184 DWORD nFileSizeHigh;
185 DWORD nFileSizeLow;
186 DWORD dwReserved0;
187 DWORD dwReserved1;
188 CHAR cFileName[260];
189 CHAR cAlternateFileName[14];
190 } WIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
192 typedef struct
194 DWORD dwFileAttributes;
195 FILETIME ftCreationTime;
196 FILETIME ftLastAccessTime;
197 FILETIME ftLastWriteTime;
198 DWORD nFileSizeHigh;
199 DWORD nFileSizeLow;
200 DWORD dwReserved0;
201 DWORD dwReserved1;
202 WCHAR cFileName[260];
203 WCHAR cAlternateFileName[14];
204 } WIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
206 DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
207 DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
209 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
210 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
212 /* comm */
214 #define CBR_110 0xFF10
215 #define CBR_300 0xFF11
216 #define CBR_600 0xFF12
217 #define CBR_1200 0xFF13
218 #define CBR_2400 0xFF14
219 #define CBR_4800 0xFF15
220 #define CBR_9600 0xFF16
221 #define CBR_14400 0xFF17
222 #define CBR_19200 0xFF18
223 #define CBR_38400 0xFF1B
224 #define CBR_56000 0xFF1F
225 #define CBR_128000 0xFF23
226 #define CBR_256000 0xFF27
228 #define NOPARITY 0
229 #define ODDPARITY 1
230 #define EVENPARITY 2
231 #define MARKPARITY 3
232 #define SPACEPARITY 4
233 #define ONESTOPBIT 0
234 #define ONE5STOPBITS 1
235 #define TWOSTOPBITS 2
237 #define IGNORE 0
238 #define INFINITE16 0xFFFF
239 #define INFINITE 0xFFFFFFFF
241 #define CE_RXOVER 0x0001
242 #define CE_OVERRUN 0x0002
243 #define CE_RXPARITY 0x0004
244 #define CE_FRAME 0x0008
245 #define CE_BREAK 0x0010
246 #define CE_CTSTO 0x0020
247 #define CE_DSRTO 0x0040
248 #define CE_RLSDTO 0x0080
249 #define CE_TXFULL 0x0100
250 #define CE_PTO 0x0200
251 #define CE_IOE 0x0400
252 #define CE_DNS 0x0800
253 #define CE_OOP 0x1000
254 #define CE_MODE 0x8000
256 #define IE_BADID -1
257 #define IE_OPEN -2
258 #define IE_NOPEN -3
259 #define IE_MEMORY -4
260 #define IE_DEFAULT -5
261 #define IE_HARDWARE -10
262 #define IE_BYTESIZE -11
263 #define IE_BAUDRATE -12
265 #define EV_RXCHAR 0x0001
266 #define EV_RXFLAG 0x0002
267 #define EV_TXEMPTY 0x0004
268 #define EV_CTS 0x0008
269 #define EV_DSR 0x0010
270 #define EV_RLSD 0x0020
271 #define EV_BREAK 0x0040
272 #define EV_ERR 0x0080
273 #define EV_RING 0x0100
274 #define EV_PERR 0x0200
275 #define EV_CTSS 0x0400
276 #define EV_DSRS 0x0800
277 #define EV_RLSDS 0x1000
278 #define EV_RINGTE 0x2000
279 #define EV_RingTe EV_RINGTE
281 #define SETXOFF 1
282 #define SETXON 2
283 #define SETRTS 3
284 #define CLRRTS 4
285 #define SETDTR 5
286 #define CLRDTR 6
287 #define RESETDEV 7
288 #define SETBREAK 8
289 #define CLRBREAK 9
291 #define GETBASEIRQ 10
293 /* Purge functions for Comm Port */
294 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
295 comm port */
296 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
297 the comm port */
298 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
299 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
302 /* Modem Status Flags */
303 #define MS_CTS_ON ((DWORD)0x0010)
304 #define MS_DSR_ON ((DWORD)0x0020)
305 #define MS_RING_ON ((DWORD)0x0040)
306 #define MS_RLSD_ON ((DWORD)0x0080)
308 #define RTS_CONTROL_DISABLE 0
309 #define RTS_CONTROL_ENABLE 1
310 #define RTS_CONTROL_HANDSHAKE 2
311 #define RTS_CONTROL_TOGGLE 3
313 #define DTR_CONTROL_DISABLE 0
314 #define DTR_CONTROL_ENABLE 1
315 #define DTR_CONTROL_HANDSHAKE 2
317 #define CSTF_CTSHOLD 0x01
318 #define CSTF_DSRHOLD 0x02
319 #define CSTF_RLSDHOLD 0x04
320 #define CSTF_XOFFHOLD 0x08
321 #define CSTF_XOFFSENT 0x10
322 #define CSTF_EOF 0x20
323 #define CSTF_TXIM 0x40
325 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
326 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
327 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
329 /* Predefined resource types */
330 #define RT_CURSORA MAKEINTRESOURCEA(1)
331 #define RT_CURSORW MAKEINTRESOURCEW(1)
332 #define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
333 #define RT_BITMAPA MAKEINTRESOURCEA(2)
334 #define RT_BITMAPW MAKEINTRESOURCEW(2)
335 #define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
336 #define RT_ICONA MAKEINTRESOURCEA(3)
337 #define RT_ICONW MAKEINTRESOURCEW(3)
338 #define RT_ICON WINELIB_NAME_AW(RT_ICON)
339 #define RT_MENUA MAKEINTRESOURCEA(4)
340 #define RT_MENUW MAKEINTRESOURCEW(4)
341 #define RT_MENU WINELIB_NAME_AW(RT_MENU)
342 #define RT_DIALOGA MAKEINTRESOURCEA(5)
343 #define RT_DIALOGW MAKEINTRESOURCEW(5)
344 #define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
345 #define RT_STRINGA MAKEINTRESOURCEA(6)
346 #define RT_STRINGW MAKEINTRESOURCEW(6)
347 #define RT_STRING WINELIB_NAME_AW(RT_STRING)
348 #define RT_FONTDIRA MAKEINTRESOURCEA(7)
349 #define RT_FONTDIRW MAKEINTRESOURCEW(7)
350 #define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
351 #define RT_FONTA MAKEINTRESOURCEA(8)
352 #define RT_FONTW MAKEINTRESOURCEW(8)
353 #define RT_FONT WINELIB_NAME_AW(RT_FONT)
354 #define RT_ACCELERATORA MAKEINTRESOURCEA(9)
355 #define RT_ACCELERATORW MAKEINTRESOURCEW(9)
356 #define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
357 #define RT_RCDATAA MAKEINTRESOURCEA(10)
358 #define RT_RCDATAW MAKEINTRESOURCEW(10)
359 #define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
360 #define RT_MESSAGELISTA MAKEINTRESOURCEA(11)
361 #define RT_MESSAGELISTW MAKEINTRESOURCEW(11)
362 #define RT_MESSAGELIST WINELIB_NAME_AW(RT_MESSAGELIST)
363 #define RT_GROUP_CURSORA MAKEINTRESOURCEA(12)
364 #define RT_GROUP_CURSORW MAKEINTRESOURCEW(12)
365 #define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
366 #define RT_GROUP_ICONA MAKEINTRESOURCEA(14)
367 #define RT_GROUP_ICONW MAKEINTRESOURCEW(14)
368 #define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
371 #define LMEM_FIXED 0
372 #define LMEM_MOVEABLE 0x0002
373 #define LMEM_NOCOMPACT 0x0010
374 #define LMEM_NODISCARD 0x0020
375 #define LMEM_ZEROINIT 0x0040
376 #define LMEM_MODIFY 0x0080
377 #define LMEM_DISCARDABLE 0x0F00
378 #define LMEM_DISCARDED 0x4000
379 #define LMEM_LOCKCOUNT 0x00FF
381 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
383 #define GMEM_FIXED 0x0000
384 #define GMEM_MOVEABLE 0x0002
385 #define GMEM_NOCOMPACT 0x0010
386 #define GMEM_NODISCARD 0x0020
387 #define GMEM_ZEROINIT 0x0040
388 #define GMEM_MODIFY 0x0080
389 #define GMEM_DISCARDABLE 0x0100
390 #define GMEM_NOT_BANKED 0x1000
391 #define GMEM_SHARE 0x2000
392 #define GMEM_DDESHARE 0x2000
393 #define GMEM_NOTIFY 0x4000
394 #define GMEM_LOWER GMEM_NOT_BANKED
395 #define GMEM_DISCARDED 0x4000
396 #define GMEM_LOCKCOUNT 0x00ff
397 #define GMEM_INVALID_HANDLE 0x8000
399 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
400 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
403 typedef struct tagMEMORYSTATUS
405 DWORD dwLength;
406 DWORD dwMemoryLoad;
407 DWORD dwTotalPhys;
408 DWORD dwAvailPhys;
409 DWORD dwTotalPageFile;
410 DWORD dwAvailPageFile;
411 DWORD dwTotalVirtual;
412 DWORD dwAvailVirtual;
413 } MEMORYSTATUS, *LPMEMORYSTATUS;
416 #ifndef NOLOGERROR
418 /* LogParamError and LogError values */
420 /* Error modifier bits */
421 #define ERR_WARNING 0x8000
422 #define ERR_PARAM 0x4000
424 #define ERR_SIZE_MASK 0x3000
425 #define ERR_BYTE 0x1000
426 #define ERR_WORD 0x2000
427 #define ERR_DWORD 0x3000
429 /* LogParamError() values */
431 /* Generic parameter values */
432 #define ERR_BAD_VALUE 0x6001
433 #define ERR_BAD_FLAGS 0x6002
434 #define ERR_BAD_INDEX 0x6003
435 #define ERR_BAD_DVALUE 0x7004
436 #define ERR_BAD_DFLAGS 0x7005
437 #define ERR_BAD_DINDEX 0x7006
438 #define ERR_BAD_PTR 0x7007
439 #define ERR_BAD_FUNC_PTR 0x7008
440 #define ERR_BAD_SELECTOR 0x6009
441 #define ERR_BAD_STRING_PTR 0x700a
442 #define ERR_BAD_HANDLE 0x600b
444 /* KERNEL parameter errors */
445 #define ERR_BAD_HINSTANCE 0x6020
446 #define ERR_BAD_HMODULE 0x6021
447 #define ERR_BAD_GLOBAL_HANDLE 0x6022
448 #define ERR_BAD_LOCAL_HANDLE 0x6023
449 #define ERR_BAD_ATOM 0x6024
450 #define ERR_BAD_HFILE 0x6025
452 /* USER parameter errors */
453 #define ERR_BAD_HWND 0x6040
454 #define ERR_BAD_HMENU 0x6041
455 #define ERR_BAD_HCURSOR 0x6042
456 #define ERR_BAD_HICON 0x6043
457 #define ERR_BAD_HDWP 0x6044
458 #define ERR_BAD_CID 0x6045
459 #define ERR_BAD_HDRVR 0x6046
461 /* GDI parameter errors */
462 #define ERR_BAD_COORDS 0x7060
463 #define ERR_BAD_GDI_OBJECT 0x6061
464 #define ERR_BAD_HDC 0x6062
465 #define ERR_BAD_HPEN 0x6063
466 #define ERR_BAD_HFONT 0x6064
467 #define ERR_BAD_HBRUSH 0x6065
468 #define ERR_BAD_HBITMAP 0x6066
469 #define ERR_BAD_HRGN 0x6067
470 #define ERR_BAD_HPALETTE 0x6068
471 #define ERR_BAD_HMETAFILE 0x6069
474 /* LogError() values */
476 /* KERNEL errors */
477 #define ERR_GALLOC 0x0001
478 #define ERR_GREALLOC 0x0002
479 #define ERR_GLOCK 0x0003
480 #define ERR_LALLOC 0x0004
481 #define ERR_LREALLOC 0x0005
482 #define ERR_LLOCK 0x0006
483 #define ERR_ALLOCRES 0x0007
484 #define ERR_LOCKRES 0x0008
485 #define ERR_LOADMODULE 0x0009
487 /* USER errors */
488 #define ERR_CREATEDLG 0x0040
489 #define ERR_CREATEDLG2 0x0041
490 #define ERR_REGISTERCLASS 0x0042
491 #define ERR_DCBUSY 0x0043
492 #define ERR_CREATEWND 0x0044
493 #define ERR_STRUCEXTRA 0x0045
494 #define ERR_LOADSTR 0x0046
495 #define ERR_LOADMENU 0x0047
496 #define ERR_NESTEDBEGINPAINT 0x0048
497 #define ERR_BADINDEX 0x0049
498 #define ERR_CREATEMENU 0x004a
500 /* GDI errors */
501 #define ERR_CREATEDC 0x0080
502 #define ERR_CREATEMETA 0x0081
503 #define ERR_DELOBJSELECTED 0x0082
504 #define ERR_SELBITMAP 0x0083
508 /* Debugging support (DEBUG SYSTEM ONLY) */
509 typedef struct
511 UINT16 flags;
512 DWORD dwOptions WINE_PACKED;
513 DWORD dwFilter WINE_PACKED;
514 CHAR achAllocModule[8] WINE_PACKED;
515 DWORD dwAllocBreak WINE_PACKED;
516 DWORD dwAllocCount WINE_PACKED;
517 } WINDEBUGINFO, *LPWINDEBUGINFO;
519 /* WINDEBUGINFO flags values */
520 #define WDI_OPTIONS 0x0001
521 #define WDI_FILTER 0x0002
522 #define WDI_ALLOCBREAK 0x0004
524 /* dwOptions values */
525 #define DBO_CHECKHEAP 0x0001
526 #define DBO_BUFFERFILL 0x0004
527 #define DBO_DISABLEGPTRAPPING 0x0010
528 #define DBO_CHECKFREE 0x0020
530 #define DBO_SILENT 0x8000
532 #define DBO_TRACEBREAK 0x2000
533 #define DBO_WARNINGBREAK 0x1000
534 #define DBO_NOERRORBREAK 0x0800
535 #define DBO_NOFATALBREAK 0x0400
536 #define DBO_INT3BREAK 0x0100
538 /* DebugOutput flags values */
539 #define DBF_TRACE 0x0000
540 #define DBF_WARNING 0x4000
541 #define DBF_ERROR 0x8000
542 #define DBF_FATAL 0xc000
544 /* dwFilter values */
545 #define DBF_KERNEL 0x1000
546 #define DBF_KRN_MEMMAN 0x0001
547 #define DBF_KRN_LOADMODULE 0x0002
548 #define DBF_KRN_SEGMENTLOAD 0x0004
549 #define DBF_USER 0x0800
550 #define DBF_GDI 0x0400
551 #define DBF_MMSYSTEM 0x0040
552 #define DBF_PENWIN 0x0020
553 #define DBF_APPLICATION 0x0008
554 #define DBF_DRIVER 0x0010
556 #endif /* NOLOGERROR */
558 typedef struct {
559 WORD wYear;
560 WORD wMonth;
561 WORD wDayOfWeek;
562 WORD wDay;
563 WORD wHour;
564 WORD wMinute;
565 WORD wSecond;
566 WORD wMilliseconds;
567 } SYSTEMTIME, *LPSYSTEMTIME;
570 /* Code page information.
572 #define MAX_LEADBYTES 12
573 #define MAX_DEFAULTCHAR 2
575 typedef struct
577 UINT MaxCharSize;
578 BYTE DefaultChar[MAX_DEFAULTCHAR];
579 BYTE LeadByte[MAX_LEADBYTES];
580 } CPINFO, *LPCPINFO;
582 /* The 'overlapped' data structure used by async I/O functions.
584 typedef struct {
585 DWORD Internal;
586 DWORD InternalHigh;
587 DWORD Offset;
588 DWORD OffsetHigh;
589 HANDLE hEvent;
590 } OVERLAPPED, *LPOVERLAPPED;
592 /* Process startup information.
595 /* STARTUPINFO.dwFlags */
596 #define STARTF_USESHOWWINDOW 0x00000001
597 #define STARTF_USESIZE 0x00000002
598 #define STARTF_USEPOSITION 0x00000004
599 #define STARTF_USECOUNTCHARS 0x00000008
600 #define STARTF_USEFILLATTRIBUTE 0x00000010
601 #define STARTF_RUNFULLSCREEN 0x00000020
602 #define STARTF_FORCEONFEEDBACK 0x00000040
603 #define STARTF_FORCEOFFFEEDBACK 0x00000080
604 #define STARTF_USESTDHANDLES 0x00000100
605 #define STARTF_USEHOTKEY 0x00000200
607 typedef struct {
608 DWORD cb; /* 00: size of struct */
609 LPSTR lpReserved; /* 04: */
610 LPSTR lpDesktop; /* 08: */
611 LPSTR lpTitle; /* 0c: */
612 DWORD dwX; /* 10: */
613 DWORD dwY; /* 14: */
614 DWORD dwXSize; /* 18: */
615 DWORD dwYSize; /* 1c: */
616 DWORD dwXCountChars; /* 20: */
617 DWORD dwYCountChars; /* 24: */
618 DWORD dwFillAttribute; /* 28: */
619 DWORD dwFlags; /* 2c: */
620 WORD wShowWindow; /* 30: */
621 WORD cbReserved2; /* 32: */
622 BYTE *lpReserved2; /* 34: */
623 HANDLE hStdInput; /* 38: */
624 HANDLE hStdOutput; /* 3c: */
625 HANDLE hStdError; /* 40: */
626 } STARTUPINFOA, *LPSTARTUPINFOA;
628 typedef struct {
629 DWORD cb;
630 LPWSTR lpReserved;
631 LPWSTR lpDesktop;
632 LPWSTR lpTitle;
633 DWORD dwX;
634 DWORD dwY;
635 DWORD dwXSize;
636 DWORD dwYSize;
637 DWORD dwXCountChars;
638 DWORD dwYCountChars;
639 DWORD dwFillAttribute;
640 DWORD dwFlags;
641 WORD wShowWindow;
642 WORD cbReserved2;
643 BYTE *lpReserved2;
644 HANDLE hStdInput;
645 HANDLE hStdOutput;
646 HANDLE hStdError;
647 } STARTUPINFOW, *LPSTARTUPINFOW;
649 DECL_WINELIB_TYPE_AW(STARTUPINFO)
650 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
652 typedef struct {
653 HANDLE hProcess;
654 HANDLE hThread;
655 DWORD dwProcessId;
656 DWORD dwThreadId;
657 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
659 typedef struct {
660 LONG Bias;
661 WCHAR StandardName[32];
662 SYSTEMTIME StandardDate;
663 LONG StandardBias;
664 WCHAR DaylightName[32];
665 SYSTEMTIME DaylightDate;
666 LONG DaylightBias;
667 } TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
669 #define TIME_ZONE_ID_UNKNOWN 0
670 #define TIME_ZONE_ID_STANDARD 1
671 #define TIME_ZONE_ID_DAYLIGHT 2
673 /* CreateProcess: dwCreationFlag values
675 #define DEBUG_PROCESS 0x00000001
676 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
677 #define CREATE_SUSPENDED 0x00000004
678 #define DETACHED_PROCESS 0x00000008
679 #define CREATE_NEW_CONSOLE 0x00000010
680 #define NORMAL_PRIORITY_CLASS 0x00000020
681 #define IDLE_PRIORITY_CLASS 0x00000040
682 #define HIGH_PRIORITY_CLASS 0x00000080
683 #define REALTIME_PRIORITY_CLASS 0x00000100
684 #define CREATE_NEW_PROCESS_GROUP 0x00000200
685 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
686 #define CREATE_SEPARATE_WOW_VDM 0x00000800
687 #define CREATE_SHARED_WOW_VDM 0x00001000
688 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
689 #define CREATE_NO_WINDOW 0x08000000
690 #define PROFILE_USER 0x10000000
691 #define PROFILE_KERNEL 0x20000000
692 #define PROFILE_SERVER 0x40000000
695 /* File object type definitions
697 #define FILE_TYPE_UNKNOWN 0
698 #define FILE_TYPE_DISK 1
699 #define FILE_TYPE_CHAR 2
700 #define FILE_TYPE_PIPE 3
701 #define FILE_TYPE_REMOTE 32768
703 /* File creation flags
705 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
706 #define FILE_FLAG_OVERLAPPED 0x40000000L
707 #define FILE_FLAG_NO_BUFFERING 0x20000000L
708 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
709 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
710 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
711 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
712 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
713 #define CREATE_NEW 1
714 #define CREATE_ALWAYS 2
715 #define OPEN_EXISTING 3
716 #define OPEN_ALWAYS 4
717 #define TRUNCATE_EXISTING 5
719 /* Standard handle identifiers
721 #define STD_INPUT_HANDLE ((DWORD) -10)
722 #define STD_OUTPUT_HANDLE ((DWORD) -11)
723 #define STD_ERROR_HANDLE ((DWORD) -12)
725 typedef struct
727 int dwFileAttributes;
728 FILETIME ftCreationTime;
729 FILETIME ftLastAccessTime;
730 FILETIME ftLastWriteTime;
731 int dwVolumeSerialNumber;
732 int nFileSizeHigh;
733 int nFileSizeLow;
734 int nNumberOfLinks;
735 int nFileIndexHigh;
736 int nFileIndexLow;
737 } BY_HANDLE_FILE_INFORMATION ;
740 typedef struct _SYSTEM_POWER_STATUS
742 BOOL16 ACLineStatus;
743 BYTE BatteryFlag;
744 BYTE BatteryLifePercent;
745 BYTE reserved;
746 DWORD BatteryLifeTime;
747 DWORD BatteryFullLifeTime;
748 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
750 typedef struct _MEMORY_BASIC_INFORMATION
752 LPVOID BaseAddress;
753 LPVOID AllocationBase;
754 DWORD AllocationProtect;
755 DWORD RegionSize;
756 DWORD State;
757 DWORD Protect;
758 DWORD Type;
759 } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
762 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
763 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
764 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
765 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
766 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
767 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
769 typedef struct tagSYSTEM_INFO
771 union {
772 DWORD dwOemId;
773 struct {
774 WORD wProcessorArchitecture;
775 WORD wReserved;
776 } x;
777 } u;
778 DWORD dwPageSize;
779 LPVOID lpMinimumApplicationAddress;
780 LPVOID lpMaximumApplicationAddress;
781 DWORD dwActiveProcessorMask;
782 DWORD dwNumberOfProcessors;
783 DWORD dwProcessorType;
784 DWORD dwAllocationGranularity;
785 WORD wProcessorLevel;
786 WORD wProcessorRevision;
787 } SYSTEM_INFO, *LPSYSTEM_INFO;
789 /* service main function prototype */
790 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONA)(DWORD,LPSTR);
791 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONW)(DWORD,LPWSTR);
792 DECL_WINELIB_TYPE_AW(LPSERVICE_MAIN_FUNCTION)
794 /* service start table */
795 typedef struct
797 LPSTR lpServiceName;
798 LPSERVICE_MAIN_FUNCTIONA lpServiceProc;
799 } *LPSERVICE_TABLE_ENTRYA, SERVICE_TABLE_ENTRYA;
801 typedef struct
803 LPWSTR lpServiceName;
804 LPSERVICE_MAIN_FUNCTIONW lpServiceProc;
805 } *LPSERVICE_TABLE_ENTRYW, SERVICE_TABLE_ENTRYW;
807 DECL_WINELIB_TYPE_AW(SERVICE_TABLE_ENTRY)
808 DECL_WINELIB_TYPE_AW(LPSERVICE_TABLE_ENTRY)
810 /* {G,S}etPriorityClass */
811 #define NORMAL_PRIORITY_CLASS 0x00000020
812 #define IDLE_PRIORITY_CLASS 0x00000040
813 #define HIGH_PRIORITY_CLASS 0x00000080
814 #define REALTIME_PRIORITY_CLASS 0x00000100
816 typedef BOOL (CALLBACK *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
817 typedef BOOL (CALLBACK *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG);
818 typedef BOOL (CALLBACK *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG);
819 typedef BOOL (CALLBACK *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG);
820 typedef BOOL (CALLBACK *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG);
821 typedef BOOL (CALLBACK *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG);
823 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
824 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
825 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
827 /* flags that can be passed to LoadLibraryEx */
828 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
829 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
830 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
832 /* ifdef _x86_ ... */
833 typedef struct _LDT_ENTRY {
834 WORD LimitLow;
835 WORD BaseLow;
836 union {
837 struct {
838 BYTE BaseMid;
839 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
840 BYTE Flags2;
841 BYTE BaseHi;
842 } Bytes;
843 struct {
844 DWORD BaseMid : 8;
845 DWORD Type : 5;
846 DWORD Dpl : 2;
847 DWORD Pres : 1;
848 DWORD LimitHi : 4;
849 DWORD Sys : 1;
850 DWORD Reserved_0 : 1;
851 DWORD Default_Big : 1;
852 DWORD Granularity : 1;
853 DWORD BaseHi : 8;
854 } Bits;
855 } HighWord;
856 } LDT_ENTRY, *LPLDT_ENTRY;
858 /* for WOWHandle{16,32} */
859 typedef enum _WOW_HANDLE_TYPE { /* WOW */
860 WOW_TYPE_HWND,
861 WOW_TYPE_HMENU,
862 WOW_TYPE_HDWP,
863 WOW_TYPE_HDROP,
864 WOW_TYPE_HDC,
865 WOW_TYPE_HFONT,
866 WOW_TYPE_HMETAFILE,
867 WOW_TYPE_HRGN,
868 WOW_TYPE_HBITMAP,
869 WOW_TYPE_HBRUSH,
870 WOW_TYPE_HPALETTE,
871 WOW_TYPE_HPEN,
872 WOW_TYPE_HACCEL,
873 WOW_TYPE_HTASK,
874 WOW_TYPE_FULLHWND
875 } WOW_HANDLE_TYPE;
877 /* WOWCallback16Ex defines */
878 #define WCB16_MAX_CBARGS 16
879 /* ... dwFlags */
880 #define WCB16_PASCAL 0x0
881 #define WCB16_CDECL 0x1
883 typedef enum _GET_FILEEX_INFO_LEVELS {
884 GetFileExInfoStandard
885 } GET_FILEEX_INFO_LEVELS;
887 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
888 DWORD dwFileAttributes;
889 FILETIME ftCreationTime;
890 FILETIME ftLastAccessTime;
891 FILETIME ftLastWriteTime;
892 DWORD nFileSizeHigh;
893 DWORD nFileSizeLow;
894 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
896 typedef struct _DllVersionInfo {
897 DWORD cbSize;
898 DWORD dwMajorVersion;
899 DWORD dwMinorVersion;
900 DWORD dwBuildNumber;
901 DWORD dwPlatformID;
902 } DLLVERSIONINFO;
905 * This one seems to be a Win32 only definition. It also is defined with
906 * WINAPI instead of CALLBACK in the windows headers.
908 typedef DWORD (WINAPI *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
909 LARGE_INTEGER, DWORD, DWORD, HANDLE,
910 HANDLE, LPVOID);
912 #define DM_UPDATE 1
913 #define DM_COPY 2
914 #define DM_PROMPT 4
915 #define DM_MODIFY 8
917 #define DM_IN_BUFFER DM_MODIFY
918 #define DM_IN_PROMPT DM_PROMPT
919 #define DM_OUT_BUFFER DM_COPY
920 #define DM_OUT_DEFAULT DM_UPDATE
922 #define DM_ORIENTATION 0x00000001L
923 #define DM_PAPERSIZE 0x00000002L
924 #define DM_PAPERLENGTH 0x00000004L
925 #define DM_PAPERWIDTH 0x00000008L
926 #define DM_SCALE 0x00000010L
927 #define DM_COPIES 0x00000100L
928 #define DM_DEFAULTSOURCE 0x00000200L
929 #define DM_PRINTQUALITY 0x00000400L
930 #define DM_COLOR 0x00000800L
931 #define DM_DUPLEX 0x00001000L
932 #define DM_YRESOLUTION 0x00002000L
933 #define DM_TTOPTION 0x00004000L
934 #define DM_BITSPERPEL 0x00040000L
935 #define DM_PELSWIDTH 0x00080000L
936 #define DM_PELSHEIGHT 0x00100000L
937 #define DM_DISPLAYFLAGS 0x00200000L
938 #define DM_DISPLAYFREQUENCY 0x00400000L
940 /* etc.... */
942 #define DMORIENT_PORTRAIT 1
943 #define DMORIENT_LANDSCAPE 2
945 #define DMPAPER_LETTER 1
946 #define DMPAPER_LETTERSMALL 2
947 #define DMPAPER_TABLOID 3
948 #define DMPAPER_LEDGER 4
949 #define DMPAPER_LEGAL 5
950 #define DMPAPER_STATEMENT 6
951 #define DMPAPER_EXECUTIVE 7
952 #define DMPAPER_A3 8
953 #define DMPAPER_A4 9
954 #define DMPAPER_A4SMALL 10
955 #define DMPAPER_A5 11
956 #define DMPAPER_B4 12
957 #define DMPAPER_B5 13
958 #define DMPAPER_FOLIO 14
959 #define DMPAPER_QUARTO 15
960 #define DMPAPER_10X14 16
961 #define DMPAPER_11X17 17
962 #define DMPAPER_NOTE 18
963 #define DMPAPER_ENV_9 19
964 #define DMPAPER_ENV_10 20
965 #define DMPAPER_ENV_11 21
966 #define DMPAPER_ENV_12 22
967 #define DMPAPER_ENV_14 23
968 #define DMPAPER_CSHEET 24
969 #define DMPAPER_DSHEET 25
970 #define DMPAPER_ESHEET 26
971 #define DMPAPER_ENV_DL 27
972 #define DMPAPER_ENV_C5 28
973 #define DMPAPER_ENV_C3 29
974 #define DMPAPER_ENV_C4 30
975 #define DMPAPER_ENV_C6 31
976 #define DMPAPER_ENV_C65 32
977 #define DMPAPER_ENV_B4 33
978 #define DMPAPER_ENV_B5 34
979 #define DMPAPER_ENV_B6 35
980 #define DMPAPER_ENV_ITALY 36
981 #define DMPAPER_ENV_MONARCH 37
982 #define DMPAPER_ENV_PERSONAL 38
983 #define DMPAPER_FANFOLD_US 39
984 #define DMPAPER_FANFOLD_STD_GERMAN 40
985 #define DMPAPER_FANFOLD_LGL_GERMAN 41
987 #define DMBIN_UPPER 1
988 #define DMBIN_LOWER 2
989 #define DMBIN_MIDDLE 3
990 #define DMBIN_MANUAL 4
991 #define DMBIN_ENVELOPE 5
992 #define DMBIN_ENVMANUAL 6
993 #define DMBIN_AUTO 7
994 #define DMBIN_LARGECAPACITY 11
996 #define DMCOLOR_MONOCHROME 1
997 #define DMCOLOR_COLOR 2
999 #define DMTT_BITMAP 1
1000 #define DMTT_DOWNLOAD 2
1001 #define DMTT_SUBDEV 3
1003 #define WAIT_FAILED 0xffffffff
1004 #define WAIT_OBJECT_0 0
1005 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
1006 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
1007 #define WAIT_IO_COMPLETION STATUS_USER_APC
1008 #define WAIT_TIMEOUT STATUS_TIMEOUT
1010 #define PAGE_NOACCESS 0x01
1011 #define PAGE_READONLY 0x02
1012 #define PAGE_READWRITE 0x04
1013 #define PAGE_WRITECOPY 0x08
1014 #define PAGE_EXECUTE 0x10
1015 #define PAGE_EXECUTE_READ 0x20
1016 #define PAGE_EXECUTE_READWRITE 0x40
1017 #define PAGE_EXECUTE_WRITECOPY 0x80
1018 #define PAGE_GUARD 0x100
1019 #define PAGE_NOCACHE 0x200
1021 #define MEM_COMMIT 0x00001000
1022 #define MEM_RESERVE 0x00002000
1023 #define MEM_DECOMMIT 0x00004000
1024 #define MEM_RELEASE 0x00008000
1025 #define MEM_FREE 0x00010000
1026 #define MEM_PRIVATE 0x00020000
1027 #define MEM_MAPPED 0x00040000
1028 #define MEM_TOP_DOWN 0x00100000
1030 #define SEC_FILE 0x00800000
1031 #define SEC_IMAGE 0x01000000
1032 #define SEC_RESERVE 0x04000000
1033 #define SEC_COMMIT 0x08000000
1034 #define SEC_NOCACHE 0x10000000
1036 #define FILE_BEGIN 0
1037 #define FILE_CURRENT 1
1038 #define FILE_END 2
1040 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001
1041 #define FILE_CASE_PRESERVED_NAMES 0x00000002
1042 #define FILE_UNICODE_ON_DISK 0x00000004
1043 #define FILE_PERSISTENT_ACLS 0x00000008
1045 #define FILE_MAP_COPY 0x00000001
1046 #define FILE_MAP_WRITE 0x00000002
1047 #define FILE_MAP_READ 0x00000004
1048 #define FILE_MAP_ALL_ACCESS 0x000f001f
1050 #define MOVEFILE_REPLACE_EXISTING 0x00000001
1051 #define MOVEFILE_COPY_ALLOWED 0x00000002
1052 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
1054 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
1055 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
1056 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
1059 #define STATUS_SUCCESS 0x00000000
1060 #define STATUS_WAIT_0 0x00000000
1061 #define STATUS_ABANDONED_WAIT_0 0x00000080
1062 #define STATUS_USER_APC 0x000000C0
1063 #define STATUS_TIMEOUT 0x00000102
1064 #define STATUS_PENDING 0x00000103
1065 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001
1066 #define STATUS_DATATYPE_MISALIGNMENT 0x80000002
1067 #define STATUS_BREAKPOINT 0x80000003
1068 #define STATUS_SINGLE_STEP 0x80000004
1069 #define STATUS_BUFFER_OVERFLOW 0x80000005
1070 #define STATUS_ACCESS_VIOLATION 0xC0000005
1071 #define STATUS_IN_PAGE_ERROR 0xC0000006
1072 #define STATUS_INVALID_PARAMETER 0xC000000D
1073 #define STATUS_NO_MEMORY 0xC0000017
1074 #define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
1075 #define STATUS_BUFFER_TOO_SMALL 0xC0000023
1076 #define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
1077 #define STATUS_INVALID_DISPOSITION 0xC0000026
1078 #define STATUS_UNKNOWN_REVISION 0xC0000058
1079 #define STATUS_INVALID_SECURITY_DESCR 0xC0000079
1080 #define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
1081 #define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
1082 #define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
1083 #define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
1084 #define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
1085 #define STATUS_FLOAT_OVERFLOW 0xC0000091
1086 #define STATUS_FLOAT_STACK_CHECK 0xC0000092
1087 #define STATUS_FLOAT_UNDERFLOW 0xC0000093
1088 #define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
1089 #define STATUS_INTEGER_OVERFLOW 0xC0000095
1090 #define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
1091 #define STATUS_INVALID_PARAMETER_2 0xC00000F0
1092 #define STATUS_STACK_OVERFLOW 0xC00000FD
1093 #define STATUS_CONTROL_C_EXIT 0xC000013A
1095 #define DUPLICATE_CLOSE_SOURCE 0x00000001
1096 #define DUPLICATE_SAME_ACCESS 0x00000002
1098 #define HANDLE_FLAG_INHERIT 0x00000001
1099 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
1101 #define HINSTANCE_ERROR 32
1103 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
1104 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
1105 #define THREAD_PRIORITY_NORMAL 0
1106 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
1107 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
1108 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
1109 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
1110 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
1112 typedef struct
1114 int type;
1115 } wine_exception;
1117 typedef struct
1119 int pad[39];
1120 int edi;
1121 int esi;
1122 int ebx;
1123 int edx;
1124 int ecx;
1125 int eax;
1127 int ebp;
1128 int eip;
1129 int cs;
1130 int eflags;
1131 int esp;
1132 int ss;
1133 } exception_info;
1135 /* Could this type be considered opaque? */
1136 typedef struct {
1137 LPVOID DebugInfo;
1138 LONG LockCount;
1139 LONG RecursionCount;
1140 HANDLE OwningThread;
1141 HANDLE LockSemaphore;
1142 DWORD Reserved;
1143 }CRITICAL_SECTION;
1145 typedef struct {
1146 DWORD dwOSVersionInfoSize;
1147 DWORD dwMajorVersion;
1148 DWORD dwMinorVersion;
1149 DWORD dwBuildNumber;
1150 DWORD dwPlatformId;
1151 CHAR szCSDVersion[128];
1152 } OSVERSIONINFO16;
1154 typedef struct {
1155 DWORD dwOSVersionInfoSize;
1156 DWORD dwMajorVersion;
1157 DWORD dwMinorVersion;
1158 DWORD dwBuildNumber;
1159 DWORD dwPlatformId;
1160 CHAR szCSDVersion[128];
1161 } OSVERSIONINFOA;
1163 typedef struct {
1164 DWORD dwOSVersionInfoSize;
1165 DWORD dwMajorVersion;
1166 DWORD dwMinorVersion;
1167 DWORD dwBuildNumber;
1168 DWORD dwPlatformId;
1169 WCHAR szCSDVersion[128];
1170 } OSVERSIONINFOW;
1172 DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
1174 #define VER_PLATFORM_WIN32s 0
1175 #define VER_PLATFORM_WIN32_WINDOWS 1
1176 #define VER_PLATFORM_WIN32_NT 2
1178 typedef struct tagCOMSTAT
1180 BYTE status;
1181 UINT16 cbInQue WINE_PACKED;
1182 UINT16 cbOutQue WINE_PACKED;
1183 } COMSTAT,*LPCOMSTAT;
1185 typedef struct tagDCB16
1187 BYTE Id;
1188 UINT16 BaudRate WINE_PACKED;
1189 BYTE ByteSize;
1190 BYTE Parity;
1191 BYTE StopBits;
1192 UINT16 RlsTimeout;
1193 UINT16 CtsTimeout;
1194 UINT16 DsrTimeout;
1196 UINT16 fBinary :1;
1197 UINT16 fRtsDisable :1;
1198 UINT16 fParity :1;
1199 UINT16 fOutxCtsFlow :1;
1200 UINT16 fOutxDsrFlow :1;
1201 UINT16 fDummy :2;
1202 UINT16 fDtrDisable :1;
1204 UINT16 fOutX :1;
1205 UINT16 fInX :1;
1206 UINT16 fPeChar :1;
1207 UINT16 fNull :1;
1208 UINT16 fChEvt :1;
1209 UINT16 fDtrflow :1;
1210 UINT16 fRtsflow :1;
1211 UINT16 fDummy2 :1;
1213 CHAR XonChar;
1214 CHAR XoffChar;
1215 UINT16 XonLim;
1216 UINT16 XoffLim;
1217 CHAR PeChar;
1218 CHAR EofChar;
1219 CHAR EvtChar;
1220 UINT16 TxDelay WINE_PACKED;
1221 } DCB16, *LPDCB16;
1223 typedef struct tagDCB
1225 DWORD DCBlength;
1226 DWORD BaudRate;
1227 DWORD fBinary :1;
1228 DWORD fParity :1;
1229 DWORD fOutxCtsFlow :1;
1230 DWORD fOutxDsrFlow :1;
1231 DWORD fDtrControl :2;
1232 DWORD fDsrSensitivity :1;
1233 DWORD fTXContinueOnXoff :1;
1234 DWORD fOutX :1;
1235 DWORD fInX :1;
1236 DWORD fErrorChar :1;
1237 DWORD fNull :1;
1238 DWORD fRtsControl :2;
1239 DWORD fAbortOnError :1;
1240 DWORD fDummy2 :17;
1241 WORD wReserved;
1242 WORD XonLim;
1243 WORD XoffLim;
1244 BYTE ByteSize;
1245 BYTE Parity;
1246 BYTE StopBits;
1247 char XonChar;
1248 char XoffChar;
1249 char ErrorChar;
1250 char EofChar;
1251 char EvtChar;
1252 } DCB, *LPDCB;
1256 typedef struct tagCOMMTIMEOUTS {
1257 DWORD ReadIntervalTimeout;
1258 DWORD ReadTotalTimeoutMultiplier;
1259 DWORD ReadTotalTimeoutConstant;
1260 DWORD WriteTotalTimeoutMultiplier;
1261 DWORD WriteTotalTimeoutConstant;
1262 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1264 #pragma pack(4)
1266 typedef VOID (CALLBACK *PAPCFUNC)(ULONG_PTR);
1268 BOOL WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT);
1269 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1270 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1271 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1272 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1273 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1274 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1275 BOOL WINAPI GetCommTimeouts(INT,LPCOMMTIMEOUTS);
1276 BOOL WINAPI SetCommTimeouts(INT,LPCOMMTIMEOUTS);
1277 BOOL WINAPI GetCommState(INT,LPDCB);
1278 BOOL WINAPI SetCommState(INT,LPDCB);
1279 BOOL WINAPI TransmitCommChar(INT,CHAR);
1282 /*DWORD WINAPI GetVersion( void );*/
1283 BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*);
1284 BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1285 BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1286 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1288 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1290 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1291 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1292 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1293 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1294 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1295 HANDLE WINAPI OpenProcess(DWORD access, BOOL inherit, DWORD id);
1296 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1297 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1298 void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1299 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1300 BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1301 BOOL WINAPI TerminateThread(HANDLE,DWORD);
1304 /* GetBinaryType return values.
1307 #define SCS_32BIT_BINARY 0
1308 #define SCS_DOS_BINARY 1
1309 #define SCS_WOW_BINARY 2
1310 #define SCS_PIF_BINARY 3
1311 #define SCS_POSIX_BINARY 4
1312 #define SCS_OS216_BINARY 5
1314 BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1315 BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1316 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1318 BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1319 BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1320 /* Declarations for functions that exist only in Win32 */
1322 BOOL WINAPI AllocConsole(void);
1323 BOOL WINAPI AreFileApisANSI(void);
1324 BOOL WINAPI Beep(DWORD,DWORD);
1325 BOOL WINAPI CloseHandle(HANDLE);
1326 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1327 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1328 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1329 #define CopyFile WINELIB_NAME_AW(CopyFile)
1330 BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1331 BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1332 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1333 INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1334 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1335 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1336 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1337 HFILE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1338 DWORD,DWORD,HANDLE);
1339 HFILE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1340 DWORD,DWORD,HANDLE);
1341 #define CreateFile WINELIB_NAME_AW(CreateFile)
1342 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1343 DWORD,DWORD,LPCSTR);
1344 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1345 DWORD,DWORD,LPCWSTR);
1346 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1347 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1348 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1349 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1350 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1351 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1352 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1353 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1354 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1355 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1356 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1357 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1358 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1359 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1360 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1361 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1362 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1363 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1364 BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1365 BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1366 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1367 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1368 ENUMRESLANGPROCA,LONG);
1369 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1370 ENUMRESLANGPROCW,LONG);
1371 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1372 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1373 LONG);
1374 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1375 LONG);
1376 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1377 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1378 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1379 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1380 BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
1381 BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
1382 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1383 BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
1384 BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
1385 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1386 BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1387 BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1388 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1389 VOID WINAPI ExitProcess(DWORD);
1390 VOID WINAPI ExitThread(DWORD);
1391 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1392 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1393 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1394 BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1395 BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1396 BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1397 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1398 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1399 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1400 BOOL WINAPI FindNextChangeNotification(HANDLE);
1401 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1402 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1403 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1404 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1405 BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1406 BOOL WINAPI FlushFileBuffers(HFILE);
1407 BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1408 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1409 DWORD,LPDWORD);
1410 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1411 DWORD,LPDWORD);
1412 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1413 BOOL WINAPI FreeConsole(void);
1414 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1415 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1416 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1417 UINT WINAPI GetACP(void);
1418 LPCSTR WINAPI GetCommandLineA(void);
1419 LPCWSTR WINAPI GetCommandLineW(void);
1420 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1421 BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1422 BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1423 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1424 UINT WINAPI GetConsoleCP(void);
1425 BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1426 UINT WINAPI GetConsoleOutputCP(void);
1427 DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1428 DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1429 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1430 BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
1431 BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1432 BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1433 HANDLE WINAPI GetCurrentProcess(void);
1434 DWORD WINAPI GetCurrentProcessId(void);
1435 HANDLE WINAPI GetCurrentThread(void);
1436 DWORD WINAPI GetCurrentThreadId(void);
1437 INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1438 INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1439 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1440 LPSTR WINAPI GetEnvironmentStringsA(void);
1441 LPWSTR WINAPI GetEnvironmentStringsW(void);
1442 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1443 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1444 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1445 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1446 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1447 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1448 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1449 DWORD WINAPI GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
1450 DWORD WINAPI GetFileSize(HFILE,LPDWORD);
1451 BOOL WINAPI GetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
1452 DWORD WINAPI GetFileType(HFILE);
1453 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1454 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1455 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1456 BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1457 DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
1458 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1459 DWORD WINAPI GetLogicalDrives(void);
1460 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1461 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1462 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1463 BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1464 BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1465 UINT WINAPI GetOEMCP(void);
1466 DWORD WINAPI GetPriorityClass(HANDLE);
1467 HANDLE WINAPI GetProcessHeap(void);
1468 DWORD WINAPI GetProcessVersion(DWORD);
1469 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1470 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1471 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1472 HFILE WINAPI GetStdHandle(DWORD);
1473 BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1474 BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1475 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1476 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1477 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1478 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1479 INT WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1480 INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1481 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1482 LCID WINAPI GetThreadLocale(void);
1483 INT WINAPI GetThreadPriority(HANDLE);
1484 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1485 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1486 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1487 DWORD WINAPI HeapCompact(HANDLE,DWORD);
1488 HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1489 BOOL WINAPI HeapDestroy(HANDLE);
1490 BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1491 BOOL WINAPI HeapLock(HANDLE);
1492 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1493 DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1494 BOOL WINAPI HeapUnlock(HANDLE);
1495 BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1496 LONG WINAPI InterlockedDecrement(LPLONG);
1497 LONG WINAPI InterlockedExchange(LPLONG,LONG);
1498 LONG WINAPI InterlockedIncrement(LPLONG);
1499 BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1500 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1501 BOOL WINAPI IsValidLocale(DWORD,DWORD);
1502 BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1503 BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1504 HMODULE WINAPI MapHModuleSL(HMODULE16);
1505 HMODULE16 WINAPI MapHModuleLS(HMODULE);
1506 SEGPTR WINAPI MapLS(LPVOID);
1507 LPVOID WINAPI MapSL(SEGPTR);
1508 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1509 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1510 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1511 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1512 #define MoveFile WINELIB_NAME_AW(MoveFile)
1513 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1514 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1515 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1516 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1517 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1518 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1519 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1520 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1521 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1522 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1523 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1524 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1525 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1526 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1527 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1528 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1529 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1530 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1531 BOOL WINAPI PulseEvent(HANDLE);
1532 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1533 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1534 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1535 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1536 BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1537 BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1538 BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1539 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
1540 BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1541 COORD,LPDWORD);
1542 #define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1543 BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1544 BOOL WINAPI ReleaseMutex(HANDLE);
1545 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1546 BOOL WINAPI ResetEvent(HANDLE);
1547 DWORD WINAPI ResumeThread(HANDLE);
1548 VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1549 VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1550 VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1551 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1552 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1553 #define SearchPath WINELIB_NAME_AW(SearchPath)
1554 BOOL WINAPI SetCommMask(INT,DWORD);
1555 BOOL WINAPI SetComputerNameA(LPCSTR);
1556 BOOL WINAPI SetComputerNameW(LPCWSTR);
1557 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1558 BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1559 BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1560 BOOL WINAPI SetConsoleTitleA(LPCSTR);
1561 BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1562 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1563 BOOL WINAPI SetEndOfFile(HFILE);
1564 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1565 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1566 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1567 BOOL WINAPI SetEvent(HANDLE);
1568 VOID WINAPI SetFileApisToANSI(void);
1569 VOID WINAPI SetFileApisToOEM(void);
1570 DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1571 BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,
1572 const FILETIME*);
1573 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1574 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1575 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1576 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1577 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1578 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1579 BOOL WINAPI SetThreadLocale(LCID);
1580 BOOL WINAPI SetThreadPriority(HANDLE,INT);
1581 BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1582 VOID WINAPI Sleep(DWORD);
1583 DWORD WINAPI SleepEx(DWORD,BOOL);
1584 DWORD WINAPI SuspendThread(HANDLE);
1585 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1586 DWORD WINAPI TlsAlloc(void);
1587 BOOL WINAPI TlsFree(DWORD);
1588 LPVOID WINAPI TlsGetValue(DWORD);
1589 BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1590 VOID WINAPI UnMapLS(SEGPTR);
1591 BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1592 BOOL WINAPI UnmapViewOfFile(LPVOID);
1593 LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1594 BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1595 BOOL WINAPI VirtualLock(LPVOID,DWORD);
1596 BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1597 BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1598 DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1599 DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1600 BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1601 BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1602 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1603 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1604 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1605 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1606 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1607 SEGPTR WINAPI WOWGlobalAllocLock16(DWORD,DWORD,HGLOBAL16*);
1608 DWORD WINAPI WOWCallback16(FARPROC16,DWORD);
1609 BOOL WINAPI WOWCallback16Ex(FARPROC16,DWORD,DWORD,LPVOID,LPDWORD);
1610 HANDLE WINAPI WOWHandle32(WORD,WOW_HANDLE_TYPE);
1611 BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1612 BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1613 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
1614 BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1615 VOID WINAPI ZeroMemory(LPVOID,UINT);
1616 #define ZeroMemory RtlZeroMemory
1617 DWORD WINAPI GetLastError(void);
1618 LANGID WINAPI GetSystemDefaultLangID(void);
1619 LCID WINAPI GetSystemDefaultLCID(void);
1620 LANGID WINAPI GetUserDefaultLangID(void);
1621 LCID WINAPI GetUserDefaultLCID(void);
1622 VOID WINAPI SetLastError(DWORD);
1623 ATOM WINAPI AddAtomA(LPCSTR);
1624 ATOM WINAPI AddAtomW(LPCWSTR);
1625 #define AddAtom WINELIB_NAME_AW(AddAtom)
1626 UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
1627 UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
1628 #define CompareString WINELIB_NAME_AW(CompareString)
1629 BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1630 BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1631 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1632 BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1633 BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1634 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1635 #define DefineHandleTable(w) ((w),TRUE)
1636 ATOM WINAPI DeleteAtom(ATOM);
1637 BOOL WINAPI DeleteFileA(LPCSTR);
1638 BOOL WINAPI DeleteFileW(LPCWSTR);
1639 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1640 void WINAPI FatalAppExitA(UINT,LPCSTR);
1641 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1642 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1643 ATOM WINAPI FindAtomA(LPCSTR);
1644 ATOM WINAPI FindAtomW(LPCWSTR);
1645 #define FindAtom WINELIB_NAME_AW(FindAtom)
1646 BOOL WINAPI FindClose(HANDLE);
1647 HANDLE16 WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA);
1648 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1649 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1650 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1651 BOOL16 WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA);
1652 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1653 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1654 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1655 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1656 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1657 #define FindResource WINELIB_NAME_AW(FindResource)
1658 VOID WINAPI FreeLibrary16(HINSTANCE16);
1659 BOOL WINAPI FreeLibrary(HMODULE);
1660 #define FreeModule(handle) FreeLibrary(handle)
1661 #define FreeProcInstance(proc) /*nothing*/
1662 BOOL WINAPI FreeResource(HGLOBAL);
1663 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1664 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1665 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1666 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1667 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1668 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1669 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1670 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1671 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1672 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1673 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1674 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1675 UINT WINAPI GetDriveTypeA(LPCSTR);
1676 UINT WINAPI GetDriveTypeW(LPCWSTR);
1677 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1678 DWORD WINAPI GetFileAttributesA(LPCSTR);
1679 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1680 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1681 #define GetFreeSpace(w) (0x100000L)
1682 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1683 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1684 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1685 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1686 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1687 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1688 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1689 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1690 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1691 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1692 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1693 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1694 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1695 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1696 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1697 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1698 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1699 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1700 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1701 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1702 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1703 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1704 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1705 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1706 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1707 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1708 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1709 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1710 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1711 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1712 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1713 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1714 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1715 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1716 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1717 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1718 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1719 BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1720 BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
1721 #define GetStringType WINELIB_NAME_AW(GetStringType)
1722 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1723 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1724 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1725 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1726 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1727 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1728 UINT WINAPI GetTempPathA(UINT,LPSTR);
1729 UINT WINAPI GetTempPathW(UINT,LPWSTR);
1730 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1731 LONG WINAPI GetVersion(void);
1732 BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1733 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1734 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1735 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1736 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1737 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1738 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1739 HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
1740 HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1741 DWORD WINAPI GlobalCompact(DWORD);
1742 UINT WINAPI GlobalFlags(HGLOBAL);
1743 HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
1744 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1745 HGLOBAL WINAPI GlobalHandle(LPCVOID);
1746 WORD WINAPI GlobalFix16(HGLOBAL16);
1747 VOID WINAPI GlobalFix(HGLOBAL);
1748 LPVOID WINAPI GlobalLock16(HGLOBAL16);
1749 LPVOID WINAPI GlobalLock(HGLOBAL);
1750 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1751 DWORD WINAPI GlobalSize16(HGLOBAL16);
1752 DWORD WINAPI GlobalSize(HGLOBAL);
1753 VOID WINAPI GlobalUnfix16(HGLOBAL16);
1754 VOID WINAPI GlobalUnfix(HGLOBAL);
1755 BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
1756 BOOL WINAPI GlobalUnlock(HGLOBAL);
1757 BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
1758 BOOL WINAPI GlobalUnWire(HGLOBAL);
1759 SEGPTR WINAPI GlobalWire16(HGLOBAL16);
1760 LPVOID WINAPI GlobalWire(HGLOBAL);
1761 BOOL WINAPI InitAtomTable(DWORD);
1762 BOOL WINAPI IsBadCodePtr(FARPROC);
1763 BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1764 BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1765 BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1766 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1767 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1768 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1769 BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1770 BOOL WINAPI IsDBCSLeadByte(BYTE);
1771 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
1772 HMODULE WINAPI LoadLibraryA(LPCSTR);
1773 HMODULE WINAPI LoadLibraryW(LPCWSTR);
1774 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1775 HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
1776 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
1777 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1778 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
1779 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1780 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1781 HLOCAL WINAPI LocalAlloc(UINT,DWORD);
1782 UINT WINAPI LocalCompact(UINT);
1783 UINT WINAPI LocalFlags(HLOCAL);
1784 HLOCAL WINAPI LocalFree(HLOCAL);
1785 HLOCAL WINAPI LocalHandle(LPCVOID);
1786 LPVOID WINAPI LocalLock(HLOCAL);
1787 HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
1788 UINT WINAPI LocalShrink(HGLOBAL,UINT);
1789 UINT WINAPI LocalSize(HLOCAL);
1790 BOOL WINAPI LocalUnlock(HLOCAL);
1791 LPVOID WINAPI LockResource(HGLOBAL);
1792 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1793 #define MakeProcInstance(proc,inst) (proc)
1794 HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
1795 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1796 VOID WINAPI OutputDebugStringA(LPCSTR);
1797 VOID WINAPI OutputDebugStringW(LPCWSTR);
1798 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1799 BOOL WINAPI RemoveDirectoryA(LPCSTR);
1800 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1801 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1802 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1803 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1804 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1805 UINT WINAPI SetErrorMode(UINT);
1806 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1807 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1808 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1809 UINT WINAPI SetHandleCount(UINT);
1810 #define SetSwapAreaSize(w) (w)
1811 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1812 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1813 DWORD WINAPI VerLanguageNameA(UINT,LPSTR,UINT);
1814 DWORD WINAPI VerLanguageNameW(UINT,LPWSTR,UINT);
1815 #define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
1816 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1817 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1818 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1819 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
1820 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
1821 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1822 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
1823 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
1824 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1825 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1826 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1827 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1828 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
1829 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
1830 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1831 #define Yield32()
1832 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
1833 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
1834 #define lstrcat WINELIB_NAME_AW(lstrcat)
1835 LPSTR WINAPI lstrcatnA(LPSTR,LPCSTR,INT);
1836 LPWSTR WINAPI lstrcatnW(LPWSTR,LPCWSTR,INT);
1837 #define lstrcatn WINELIB_NAME_AW(lstrcatn)
1838 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
1839 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
1840 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1841 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
1842 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
1843 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1844 INT WINAPI lstrlenA(LPCSTR);
1845 INT WINAPI lstrlenW(LPCWSTR);
1846 #define lstrlen WINELIB_NAME_AW(lstrlen)
1847 HINSTANCE WINAPI WinExec(LPCSTR,UINT);
1848 LONG WINAPI _hread(HFILE,LPVOID,LONG);
1849 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
1850 HFILE WINAPI _lcreat(LPCSTR,INT);
1851 HFILE WINAPI _lclose(HFILE);
1852 LONG WINAPI _llseek(HFILE,LONG,INT);
1853 HFILE WINAPI _lopen(LPCSTR,INT);
1854 UINT WINAPI _lread(HFILE,LPVOID,UINT);
1855 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
1856 SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
1857 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
1858 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
1859 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1860 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
1861 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
1862 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1865 #ifdef __cplusplus
1867 #endif
1869 #endif /* __WINE_WINBASE_H */