Bug fixes.
[wine/multimedia.git] / include / winbase.h
blobd9bfe5665de33b8f3ea2bd890441704128d6666b
1 #ifndef __WINE_WINBASE_H
2 #define __WINE_WINBASE_H
4 #include "winnt.h"
6 #include "pshpack1.h"
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 typedef struct
211 LPVOID lpData;
212 DWORD cbData;
213 BYTE cbOverhead;
214 BYTE iRegionIndex;
215 WORD wFlags;
216 union {
217 struct {
218 HANDLE hMem;
219 DWORD dwReserved[3];
220 } Block;
221 struct {
222 DWORD dwCommittedSize;
223 DWORD dwUnCommittedSize;
224 LPVOID lpFirstBlock;
225 LPVOID lpLastBlock;
226 } Region;
227 } Foo;
228 } PROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY;
230 #define PROCESS_HEAP_REGION 0x0001
231 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
232 #define PROCESS_HEAP_ENTRY_BUSY 0x0004
233 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
234 #define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
236 #define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
237 #define INVALID_HANDLE_VALUE ((HANDLE) -1)
239 /* comm */
241 #define CBR_110 0xFF10
242 #define CBR_300 0xFF11
243 #define CBR_600 0xFF12
244 #define CBR_1200 0xFF13
245 #define CBR_2400 0xFF14
246 #define CBR_4800 0xFF15
247 #define CBR_9600 0xFF16
248 #define CBR_14400 0xFF17
249 #define CBR_19200 0xFF18
250 #define CBR_38400 0xFF1B
251 #define CBR_56000 0xFF1F
252 #define CBR_128000 0xFF23
253 #define CBR_256000 0xFF27
255 #define NOPARITY 0
256 #define ODDPARITY 1
257 #define EVENPARITY 2
258 #define MARKPARITY 3
259 #define SPACEPARITY 4
260 #define ONESTOPBIT 0
261 #define ONE5STOPBITS 1
262 #define TWOSTOPBITS 2
264 #define IGNORE 0
265 #define INFINITE16 0xFFFF
266 #define INFINITE 0xFFFFFFFF
268 #define CE_RXOVER 0x0001
269 #define CE_OVERRUN 0x0002
270 #define CE_RXPARITY 0x0004
271 #define CE_FRAME 0x0008
272 #define CE_BREAK 0x0010
273 #define CE_CTSTO 0x0020
274 #define CE_DSRTO 0x0040
275 #define CE_RLSDTO 0x0080
276 #define CE_TXFULL 0x0100
277 #define CE_PTO 0x0200
278 #define CE_IOE 0x0400
279 #define CE_DNS 0x0800
280 #define CE_OOP 0x1000
281 #define CE_MODE 0x8000
283 #define IE_BADID -1
284 #define IE_OPEN -2
285 #define IE_NOPEN -3
286 #define IE_MEMORY -4
287 #define IE_DEFAULT -5
288 #define IE_HARDWARE -10
289 #define IE_BYTESIZE -11
290 #define IE_BAUDRATE -12
292 #define EV_RXCHAR 0x0001
293 #define EV_RXFLAG 0x0002
294 #define EV_TXEMPTY 0x0004
295 #define EV_CTS 0x0008
296 #define EV_DSR 0x0010
297 #define EV_RLSD 0x0020
298 #define EV_BREAK 0x0040
299 #define EV_ERR 0x0080
300 #define EV_RING 0x0100
301 #define EV_PERR 0x0200
302 #define EV_CTSS 0x0400
303 #define EV_DSRS 0x0800
304 #define EV_RLSDS 0x1000
305 #define EV_RINGTE 0x2000
306 #define EV_RingTe EV_RINGTE
308 #define SETXOFF 1
309 #define SETXON 2
310 #define SETRTS 3
311 #define CLRRTS 4
312 #define SETDTR 5
313 #define CLRDTR 6
314 #define RESETDEV 7
315 #define SETBREAK 8
316 #define CLRBREAK 9
318 #define GETBASEIRQ 10
320 /* Purge functions for Comm Port */
321 #define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
322 comm port */
323 #define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
324 the comm port */
325 #define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
326 #define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
329 /* Modem Status Flags */
330 #define MS_CTS_ON ((DWORD)0x0010)
331 #define MS_DSR_ON ((DWORD)0x0020)
332 #define MS_RING_ON ((DWORD)0x0040)
333 #define MS_RLSD_ON ((DWORD)0x0080)
335 #define RTS_CONTROL_DISABLE 0
336 #define RTS_CONTROL_ENABLE 1
337 #define RTS_CONTROL_HANDSHAKE 2
338 #define RTS_CONTROL_TOGGLE 3
340 #define DTR_CONTROL_DISABLE 0
341 #define DTR_CONTROL_ENABLE 1
342 #define DTR_CONTROL_HANDSHAKE 2
344 #define CSTF_CTSHOLD 0x01
345 #define CSTF_DSRHOLD 0x02
346 #define CSTF_RLSDHOLD 0x04
347 #define CSTF_XOFFHOLD 0x08
348 #define CSTF_XOFFSENT 0x10
349 #define CSTF_EOF 0x20
350 #define CSTF_TXIM 0x40
352 #define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
353 #define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
354 #define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
356 /* Predefined resource types */
357 #define RT_CURSORA MAKEINTRESOURCEA(1)
358 #define RT_CURSORW MAKEINTRESOURCEW(1)
359 #define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
360 #define RT_BITMAPA MAKEINTRESOURCEA(2)
361 #define RT_BITMAPW MAKEINTRESOURCEW(2)
362 #define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
363 #define RT_ICONA MAKEINTRESOURCEA(3)
364 #define RT_ICONW MAKEINTRESOURCEW(3)
365 #define RT_ICON WINELIB_NAME_AW(RT_ICON)
366 #define RT_MENUA MAKEINTRESOURCEA(4)
367 #define RT_MENUW MAKEINTRESOURCEW(4)
368 #define RT_MENU WINELIB_NAME_AW(RT_MENU)
369 #define RT_DIALOGA MAKEINTRESOURCEA(5)
370 #define RT_DIALOGW MAKEINTRESOURCEW(5)
371 #define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
372 #define RT_STRINGA MAKEINTRESOURCEA(6)
373 #define RT_STRINGW MAKEINTRESOURCEW(6)
374 #define RT_STRING WINELIB_NAME_AW(RT_STRING)
375 #define RT_FONTDIRA MAKEINTRESOURCEA(7)
376 #define RT_FONTDIRW MAKEINTRESOURCEW(7)
377 #define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
378 #define RT_FONTA MAKEINTRESOURCEA(8)
379 #define RT_FONTW MAKEINTRESOURCEW(8)
380 #define RT_FONT WINELIB_NAME_AW(RT_FONT)
381 #define RT_ACCELERATORA MAKEINTRESOURCEA(9)
382 #define RT_ACCELERATORW MAKEINTRESOURCEW(9)
383 #define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
384 #define RT_RCDATAA MAKEINTRESOURCEA(10)
385 #define RT_RCDATAW MAKEINTRESOURCEW(10)
386 #define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
387 #define RT_MESSAGELISTA MAKEINTRESOURCEA(11)
388 #define RT_MESSAGELISTW MAKEINTRESOURCEW(11)
389 #define RT_MESSAGELIST WINELIB_NAME_AW(RT_MESSAGELIST)
390 #define RT_GROUP_CURSORA MAKEINTRESOURCEA(12)
391 #define RT_GROUP_CURSORW MAKEINTRESOURCEW(12)
392 #define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
393 #define RT_GROUP_ICONA MAKEINTRESOURCEA(14)
394 #define RT_GROUP_ICONW MAKEINTRESOURCEW(14)
395 #define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
398 #define LMEM_FIXED 0
399 #define LMEM_MOVEABLE 0x0002
400 #define LMEM_NOCOMPACT 0x0010
401 #define LMEM_NODISCARD 0x0020
402 #define LMEM_ZEROINIT 0x0040
403 #define LMEM_MODIFY 0x0080
404 #define LMEM_DISCARDABLE 0x0F00
405 #define LMEM_DISCARDED 0x4000
406 #define LMEM_LOCKCOUNT 0x00FF
408 #define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
410 #define GMEM_FIXED 0x0000
411 #define GMEM_MOVEABLE 0x0002
412 #define GMEM_NOCOMPACT 0x0010
413 #define GMEM_NODISCARD 0x0020
414 #define GMEM_ZEROINIT 0x0040
415 #define GMEM_MODIFY 0x0080
416 #define GMEM_DISCARDABLE 0x0100
417 #define GMEM_NOT_BANKED 0x1000
418 #define GMEM_SHARE 0x2000
419 #define GMEM_DDESHARE 0x2000
420 #define GMEM_NOTIFY 0x4000
421 #define GMEM_LOWER GMEM_NOT_BANKED
422 #define GMEM_DISCARDED 0x4000
423 #define GMEM_LOCKCOUNT 0x00ff
424 #define GMEM_INVALID_HANDLE 0x8000
426 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
427 #define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
430 typedef struct tagMEMORYSTATUS
432 DWORD dwLength;
433 DWORD dwMemoryLoad;
434 DWORD dwTotalPhys;
435 DWORD dwAvailPhys;
436 DWORD dwTotalPageFile;
437 DWORD dwAvailPageFile;
438 DWORD dwTotalVirtual;
439 DWORD dwAvailVirtual;
440 } MEMORYSTATUS, *LPMEMORYSTATUS;
443 #ifndef NOLOGERROR
445 /* LogParamError and LogError values */
447 /* Error modifier bits */
448 #define ERR_WARNING 0x8000
449 #define ERR_PARAM 0x4000
451 #define ERR_SIZE_MASK 0x3000
452 #define ERR_BYTE 0x1000
453 #define ERR_WORD 0x2000
454 #define ERR_DWORD 0x3000
456 /* LogParamError() values */
458 /* Generic parameter values */
459 #define ERR_BAD_VALUE 0x6001
460 #define ERR_BAD_FLAGS 0x6002
461 #define ERR_BAD_INDEX 0x6003
462 #define ERR_BAD_DVALUE 0x7004
463 #define ERR_BAD_DFLAGS 0x7005
464 #define ERR_BAD_DINDEX 0x7006
465 #define ERR_BAD_PTR 0x7007
466 #define ERR_BAD_FUNC_PTR 0x7008
467 #define ERR_BAD_SELECTOR 0x6009
468 #define ERR_BAD_STRING_PTR 0x700a
469 #define ERR_BAD_HANDLE 0x600b
471 /* KERNEL parameter errors */
472 #define ERR_BAD_HINSTANCE 0x6020
473 #define ERR_BAD_HMODULE 0x6021
474 #define ERR_BAD_GLOBAL_HANDLE 0x6022
475 #define ERR_BAD_LOCAL_HANDLE 0x6023
476 #define ERR_BAD_ATOM 0x6024
477 #define ERR_BAD_HFILE 0x6025
479 /* USER parameter errors */
480 #define ERR_BAD_HWND 0x6040
481 #define ERR_BAD_HMENU 0x6041
482 #define ERR_BAD_HCURSOR 0x6042
483 #define ERR_BAD_HICON 0x6043
484 #define ERR_BAD_HDWP 0x6044
485 #define ERR_BAD_CID 0x6045
486 #define ERR_BAD_HDRVR 0x6046
488 /* GDI parameter errors */
489 #define ERR_BAD_COORDS 0x7060
490 #define ERR_BAD_GDI_OBJECT 0x6061
491 #define ERR_BAD_HDC 0x6062
492 #define ERR_BAD_HPEN 0x6063
493 #define ERR_BAD_HFONT 0x6064
494 #define ERR_BAD_HBRUSH 0x6065
495 #define ERR_BAD_HBITMAP 0x6066
496 #define ERR_BAD_HRGN 0x6067
497 #define ERR_BAD_HPALETTE 0x6068
498 #define ERR_BAD_HMETAFILE 0x6069
501 /* LogError() values */
503 /* KERNEL errors */
504 #define ERR_GALLOC 0x0001
505 #define ERR_GREALLOC 0x0002
506 #define ERR_GLOCK 0x0003
507 #define ERR_LALLOC 0x0004
508 #define ERR_LREALLOC 0x0005
509 #define ERR_LLOCK 0x0006
510 #define ERR_ALLOCRES 0x0007
511 #define ERR_LOCKRES 0x0008
512 #define ERR_LOADMODULE 0x0009
514 /* USER errors */
515 #define ERR_CREATEDLG 0x0040
516 #define ERR_CREATEDLG2 0x0041
517 #define ERR_REGISTERCLASS 0x0042
518 #define ERR_DCBUSY 0x0043
519 #define ERR_CREATEWND 0x0044
520 #define ERR_STRUCEXTRA 0x0045
521 #define ERR_LOADSTR 0x0046
522 #define ERR_LOADMENU 0x0047
523 #define ERR_NESTEDBEGINPAINT 0x0048
524 #define ERR_BADINDEX 0x0049
525 #define ERR_CREATEMENU 0x004a
527 /* GDI errors */
528 #define ERR_CREATEDC 0x0080
529 #define ERR_CREATEMETA 0x0081
530 #define ERR_DELOBJSELECTED 0x0082
531 #define ERR_SELBITMAP 0x0083
535 /* Debugging support (DEBUG SYSTEM ONLY) */
536 typedef struct
538 UINT16 flags;
539 DWORD dwOptions WINE_PACKED;
540 DWORD dwFilter WINE_PACKED;
541 CHAR achAllocModule[8] WINE_PACKED;
542 DWORD dwAllocBreak WINE_PACKED;
543 DWORD dwAllocCount WINE_PACKED;
544 } WINDEBUGINFO, *LPWINDEBUGINFO;
546 /* WINDEBUGINFO flags values */
547 #define WDI_OPTIONS 0x0001
548 #define WDI_FILTER 0x0002
549 #define WDI_ALLOCBREAK 0x0004
551 /* dwOptions values */
552 #define DBO_CHECKHEAP 0x0001
553 #define DBO_BUFFERFILL 0x0004
554 #define DBO_DISABLEGPTRAPPING 0x0010
555 #define DBO_CHECKFREE 0x0020
557 #define DBO_SILENT 0x8000
559 #define DBO_TRACEBREAK 0x2000
560 #define DBO_WARNINGBREAK 0x1000
561 #define DBO_NOERRORBREAK 0x0800
562 #define DBO_NOFATALBREAK 0x0400
563 #define DBO_INT3BREAK 0x0100
565 /* DebugOutput flags values */
566 #define DBF_TRACE 0x0000
567 #define DBF_WARNING 0x4000
568 #define DBF_ERROR 0x8000
569 #define DBF_FATAL 0xc000
571 /* dwFilter values */
572 #define DBF_KERNEL 0x1000
573 #define DBF_KRN_MEMMAN 0x0001
574 #define DBF_KRN_LOADMODULE 0x0002
575 #define DBF_KRN_SEGMENTLOAD 0x0004
576 #define DBF_USER 0x0800
577 #define DBF_GDI 0x0400
578 #define DBF_MMSYSTEM 0x0040
579 #define DBF_PENWIN 0x0020
580 #define DBF_APPLICATION 0x0008
581 #define DBF_DRIVER 0x0010
583 #endif /* NOLOGERROR */
585 typedef struct {
586 WORD wYear;
587 WORD wMonth;
588 WORD wDayOfWeek;
589 WORD wDay;
590 WORD wHour;
591 WORD wMinute;
592 WORD wSecond;
593 WORD wMilliseconds;
594 } SYSTEMTIME, *LPSYSTEMTIME;
597 /* Code page information.
599 #define MAX_LEADBYTES 12
600 #define MAX_DEFAULTCHAR 2
602 typedef struct
604 UINT MaxCharSize;
605 BYTE DefaultChar[MAX_DEFAULTCHAR];
606 BYTE LeadByte[MAX_LEADBYTES];
607 } CPINFO, *LPCPINFO;
609 /* The 'overlapped' data structure used by async I/O functions.
611 typedef struct {
612 DWORD Internal;
613 DWORD InternalHigh;
614 DWORD Offset;
615 DWORD OffsetHigh;
616 HANDLE hEvent;
617 } OVERLAPPED, *LPOVERLAPPED;
619 /* Process startup information.
622 /* STARTUPINFO.dwFlags */
623 #define STARTF_USESHOWWINDOW 0x00000001
624 #define STARTF_USESIZE 0x00000002
625 #define STARTF_USEPOSITION 0x00000004
626 #define STARTF_USECOUNTCHARS 0x00000008
627 #define STARTF_USEFILLATTRIBUTE 0x00000010
628 #define STARTF_RUNFULLSCREEN 0x00000020
629 #define STARTF_FORCEONFEEDBACK 0x00000040
630 #define STARTF_FORCEOFFFEEDBACK 0x00000080
631 #define STARTF_USESTDHANDLES 0x00000100
632 #define STARTF_USEHOTKEY 0x00000200
634 typedef struct {
635 DWORD cb; /* 00: size of struct */
636 LPSTR lpReserved; /* 04: */
637 LPSTR lpDesktop; /* 08: */
638 LPSTR lpTitle; /* 0c: */
639 DWORD dwX; /* 10: */
640 DWORD dwY; /* 14: */
641 DWORD dwXSize; /* 18: */
642 DWORD dwYSize; /* 1c: */
643 DWORD dwXCountChars; /* 20: */
644 DWORD dwYCountChars; /* 24: */
645 DWORD dwFillAttribute; /* 28: */
646 DWORD dwFlags; /* 2c: */
647 WORD wShowWindow; /* 30: */
648 WORD cbReserved2; /* 32: */
649 BYTE *lpReserved2; /* 34: */
650 HANDLE hStdInput; /* 38: */
651 HANDLE hStdOutput; /* 3c: */
652 HANDLE hStdError; /* 40: */
653 } STARTUPINFOA, *LPSTARTUPINFOA;
655 typedef struct {
656 DWORD cb;
657 LPWSTR lpReserved;
658 LPWSTR lpDesktop;
659 LPWSTR lpTitle;
660 DWORD dwX;
661 DWORD dwY;
662 DWORD dwXSize;
663 DWORD dwYSize;
664 DWORD dwXCountChars;
665 DWORD dwYCountChars;
666 DWORD dwFillAttribute;
667 DWORD dwFlags;
668 WORD wShowWindow;
669 WORD cbReserved2;
670 BYTE *lpReserved2;
671 HANDLE hStdInput;
672 HANDLE hStdOutput;
673 HANDLE hStdError;
674 } STARTUPINFOW, *LPSTARTUPINFOW;
676 DECL_WINELIB_TYPE_AW(STARTUPINFO)
677 DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
679 typedef struct {
680 HANDLE hProcess;
681 HANDLE hThread;
682 DWORD dwProcessId;
683 DWORD dwThreadId;
684 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
686 typedef struct {
687 LONG Bias;
688 WCHAR StandardName[32];
689 SYSTEMTIME StandardDate;
690 LONG StandardBias;
691 WCHAR DaylightName[32];
692 SYSTEMTIME DaylightDate;
693 LONG DaylightBias;
694 } TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
696 #define TIME_ZONE_ID_UNKNOWN 0
697 #define TIME_ZONE_ID_STANDARD 1
698 #define TIME_ZONE_ID_DAYLIGHT 2
700 /* CreateProcess: dwCreationFlag values
702 #define DEBUG_PROCESS 0x00000001
703 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
704 #define CREATE_SUSPENDED 0x00000004
705 #define DETACHED_PROCESS 0x00000008
706 #define CREATE_NEW_CONSOLE 0x00000010
707 #define NORMAL_PRIORITY_CLASS 0x00000020
708 #define IDLE_PRIORITY_CLASS 0x00000040
709 #define HIGH_PRIORITY_CLASS 0x00000080
710 #define REALTIME_PRIORITY_CLASS 0x00000100
711 #define CREATE_NEW_PROCESS_GROUP 0x00000200
712 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
713 #define CREATE_SEPARATE_WOW_VDM 0x00000800
714 #define CREATE_SHARED_WOW_VDM 0x00001000
715 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
716 #define CREATE_NO_WINDOW 0x08000000
717 #define PROFILE_USER 0x10000000
718 #define PROFILE_KERNEL 0x20000000
719 #define PROFILE_SERVER 0x40000000
722 /* File object type definitions
724 #define FILE_TYPE_UNKNOWN 0
725 #define FILE_TYPE_DISK 1
726 #define FILE_TYPE_CHAR 2
727 #define FILE_TYPE_PIPE 3
728 #define FILE_TYPE_REMOTE 32768
730 /* File creation flags
732 #define FILE_FLAG_WRITE_THROUGH 0x80000000UL
733 #define FILE_FLAG_OVERLAPPED 0x40000000L
734 #define FILE_FLAG_NO_BUFFERING 0x20000000L
735 #define FILE_FLAG_RANDOM_ACCESS 0x10000000L
736 #define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
737 #define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
738 #define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
739 #define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
740 #define CREATE_NEW 1
741 #define CREATE_ALWAYS 2
742 #define OPEN_EXISTING 3
743 #define OPEN_ALWAYS 4
744 #define TRUNCATE_EXISTING 5
746 /* Standard handle identifiers
748 #define STD_INPUT_HANDLE ((DWORD) -10)
749 #define STD_OUTPUT_HANDLE ((DWORD) -11)
750 #define STD_ERROR_HANDLE ((DWORD) -12)
752 typedef struct
754 int dwFileAttributes;
755 FILETIME ftCreationTime;
756 FILETIME ftLastAccessTime;
757 FILETIME ftLastWriteTime;
758 int dwVolumeSerialNumber;
759 int nFileSizeHigh;
760 int nFileSizeLow;
761 int nNumberOfLinks;
762 int nFileIndexHigh;
763 int nFileIndexLow;
764 } BY_HANDLE_FILE_INFORMATION ;
767 typedef struct _SYSTEM_POWER_STATUS
769 BOOL16 ACLineStatus;
770 BYTE BatteryFlag;
771 BYTE BatteryLifePercent;
772 BYTE reserved;
773 DWORD BatteryLifeTime;
774 DWORD BatteryFullLifeTime;
775 } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
777 typedef struct _MEMORY_BASIC_INFORMATION
779 LPVOID BaseAddress;
780 LPVOID AllocationBase;
781 DWORD AllocationProtect;
782 DWORD RegionSize;
783 DWORD State;
784 DWORD Protect;
785 DWORD Type;
786 } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
789 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
790 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
791 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
792 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
793 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
794 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
796 typedef struct tagSYSTEM_INFO
798 union {
799 DWORD dwOemId;
800 struct {
801 WORD wProcessorArchitecture;
802 WORD wReserved;
803 } x;
804 } u;
805 DWORD dwPageSize;
806 LPVOID lpMinimumApplicationAddress;
807 LPVOID lpMaximumApplicationAddress;
808 DWORD dwActiveProcessorMask;
809 DWORD dwNumberOfProcessors;
810 DWORD dwProcessorType;
811 DWORD dwAllocationGranularity;
812 WORD wProcessorLevel;
813 WORD wProcessorRevision;
814 } SYSTEM_INFO, *LPSYSTEM_INFO;
816 /* service main function prototype */
817 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONA)(DWORD,LPSTR);
818 typedef VOID (CALLBACK *LPSERVICE_MAIN_FUNCTIONW)(DWORD,LPWSTR);
819 DECL_WINELIB_TYPE_AW(LPSERVICE_MAIN_FUNCTION)
821 /* service start table */
822 typedef struct
824 LPSTR lpServiceName;
825 LPSERVICE_MAIN_FUNCTIONA lpServiceProc;
826 } *LPSERVICE_TABLE_ENTRYA, SERVICE_TABLE_ENTRYA;
828 typedef struct
830 LPWSTR lpServiceName;
831 LPSERVICE_MAIN_FUNCTIONW lpServiceProc;
832 } *LPSERVICE_TABLE_ENTRYW, SERVICE_TABLE_ENTRYW;
834 DECL_WINELIB_TYPE_AW(SERVICE_TABLE_ENTRY)
835 DECL_WINELIB_TYPE_AW(LPSERVICE_TABLE_ENTRY)
837 /* {G,S}etPriorityClass */
838 #define NORMAL_PRIORITY_CLASS 0x00000020
839 #define IDLE_PRIORITY_CLASS 0x00000040
840 #define HIGH_PRIORITY_CLASS 0x00000080
841 #define REALTIME_PRIORITY_CLASS 0x00000100
843 typedef BOOL (CALLBACK *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
844 typedef BOOL (CALLBACK *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG);
845 typedef BOOL (CALLBACK *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG);
846 typedef BOOL (CALLBACK *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG);
847 typedef BOOL (CALLBACK *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG);
848 typedef BOOL (CALLBACK *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG);
850 DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
851 DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
852 DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
854 /* flags that can be passed to LoadLibraryEx */
855 #define DONT_RESOLVE_DLL_REFERENCES 0x00000001
856 #define LOAD_LIBRARY_AS_DATAFILE 0x00000002
857 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
859 /* ifdef _x86_ ... */
860 typedef struct _LDT_ENTRY {
861 WORD LimitLow;
862 WORD BaseLow;
863 union {
864 struct {
865 BYTE BaseMid;
866 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
867 BYTE Flags2;
868 BYTE BaseHi;
869 } Bytes;
870 struct {
871 unsigned BaseMid : 8;
872 unsigned Type : 5;
873 unsigned Dpl : 2;
874 unsigned Pres : 1;
875 unsigned LimitHi : 4;
876 unsigned Sys : 1;
877 unsigned Reserved_0 : 1;
878 unsigned Default_Big : 1;
879 unsigned Granularity : 1;
880 unsigned BaseHi : 8;
881 } Bits;
882 } HighWord;
883 } LDT_ENTRY, *LPLDT_ENTRY;
885 /* for WOWHandle{16,32} */
886 typedef enum _WOW_HANDLE_TYPE { /* WOW */
887 WOW_TYPE_HWND,
888 WOW_TYPE_HMENU,
889 WOW_TYPE_HDWP,
890 WOW_TYPE_HDROP,
891 WOW_TYPE_HDC,
892 WOW_TYPE_HFONT,
893 WOW_TYPE_HMETAFILE,
894 WOW_TYPE_HRGN,
895 WOW_TYPE_HBITMAP,
896 WOW_TYPE_HBRUSH,
897 WOW_TYPE_HPALETTE,
898 WOW_TYPE_HPEN,
899 WOW_TYPE_HACCEL,
900 WOW_TYPE_HTASK,
901 WOW_TYPE_FULLHWND
902 } WOW_HANDLE_TYPE;
904 /* WOWCallback16Ex defines */
905 #define WCB16_MAX_CBARGS 16
906 /* ... dwFlags */
907 #define WCB16_PASCAL 0x0
908 #define WCB16_CDECL 0x1
910 typedef enum _GET_FILEEX_INFO_LEVELS {
911 GetFileExInfoStandard
912 } GET_FILEEX_INFO_LEVELS;
914 typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
915 DWORD dwFileAttributes;
916 FILETIME ftCreationTime;
917 FILETIME ftLastAccessTime;
918 FILETIME ftLastWriteTime;
919 DWORD nFileSizeHigh;
920 DWORD nFileSizeLow;
921 } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
923 typedef struct _DllVersionInfo {
924 DWORD cbSize;
925 DWORD dwMajorVersion;
926 DWORD dwMinorVersion;
927 DWORD dwBuildNumber;
928 DWORD dwPlatformID;
929 } DLLVERSIONINFO;
932 * This one seems to be a Win32 only definition. It also is defined with
933 * WINAPI instead of CALLBACK in the windows headers.
935 typedef DWORD (WINAPI *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
936 LARGE_INTEGER, DWORD, DWORD, HANDLE,
937 HANDLE, LPVOID);
940 #define WAIT_FAILED 0xffffffff
941 #define WAIT_OBJECT_0 0
942 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
943 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
944 #define WAIT_IO_COMPLETION STATUS_USER_APC
945 #define WAIT_TIMEOUT STATUS_TIMEOUT
947 #define PAGE_NOACCESS 0x01
948 #define PAGE_READONLY 0x02
949 #define PAGE_READWRITE 0x04
950 #define PAGE_WRITECOPY 0x08
951 #define PAGE_EXECUTE 0x10
952 #define PAGE_EXECUTE_READ 0x20
953 #define PAGE_EXECUTE_READWRITE 0x40
954 #define PAGE_EXECUTE_WRITECOPY 0x80
955 #define PAGE_GUARD 0x100
956 #define PAGE_NOCACHE 0x200
958 #define MEM_COMMIT 0x00001000
959 #define MEM_RESERVE 0x00002000
960 #define MEM_DECOMMIT 0x00004000
961 #define MEM_RELEASE 0x00008000
962 #define MEM_FREE 0x00010000
963 #define MEM_PRIVATE 0x00020000
964 #define MEM_MAPPED 0x00040000
965 #define MEM_TOP_DOWN 0x00100000
967 #define SEC_FILE 0x00800000
968 #define SEC_IMAGE 0x01000000
969 #define SEC_RESERVE 0x04000000
970 #define SEC_COMMIT 0x08000000
971 #define SEC_NOCACHE 0x10000000
973 #define FILE_BEGIN 0
974 #define FILE_CURRENT 1
975 #define FILE_END 2
977 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001
978 #define FILE_CASE_PRESERVED_NAMES 0x00000002
979 #define FILE_UNICODE_ON_DISK 0x00000004
980 #define FILE_PERSISTENT_ACLS 0x00000008
982 #define FILE_MAP_COPY 0x00000001
983 #define FILE_MAP_WRITE 0x00000002
984 #define FILE_MAP_READ 0x00000004
985 #define FILE_MAP_ALL_ACCESS 0x000f001f
987 #define MOVEFILE_REPLACE_EXISTING 0x00000001
988 #define MOVEFILE_COPY_ALLOWED 0x00000002
989 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
991 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
992 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
993 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
996 #define STATUS_SUCCESS 0x00000000
997 #define STATUS_WAIT_0 0x00000000
998 #define STATUS_ABANDONED_WAIT_0 0x00000080
999 #define STATUS_USER_APC 0x000000C0
1000 #define STATUS_TIMEOUT 0x00000102
1001 #define STATUS_PENDING 0x00000103
1002 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001
1003 #define STATUS_DATATYPE_MISALIGNMENT 0x80000002
1004 #define STATUS_BREAKPOINT 0x80000003
1005 #define STATUS_SINGLE_STEP 0x80000004
1006 #define STATUS_BUFFER_OVERFLOW 0x80000005
1007 #define STATUS_ACCESS_VIOLATION 0xC0000005
1008 #define STATUS_IN_PAGE_ERROR 0xC0000006
1009 #define STATUS_INVALID_PARAMETER 0xC000000D
1010 #define STATUS_NO_MEMORY 0xC0000017
1011 #define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
1012 #define STATUS_BUFFER_TOO_SMALL 0xC0000023
1013 #define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
1014 #define STATUS_INVALID_DISPOSITION 0xC0000026
1015 #define STATUS_UNKNOWN_REVISION 0xC0000058
1016 #define STATUS_INVALID_SECURITY_DESCR 0xC0000079
1017 #define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
1018 #define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
1019 #define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
1020 #define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
1021 #define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
1022 #define STATUS_FLOAT_OVERFLOW 0xC0000091
1023 #define STATUS_FLOAT_STACK_CHECK 0xC0000092
1024 #define STATUS_FLOAT_UNDERFLOW 0xC0000093
1025 #define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
1026 #define STATUS_INTEGER_OVERFLOW 0xC0000095
1027 #define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
1028 #define STATUS_INVALID_PARAMETER_2 0xC00000F0
1029 #define STATUS_STACK_OVERFLOW 0xC00000FD
1030 #define STATUS_CONTROL_C_EXIT 0xC000013A
1032 #define DUPLICATE_CLOSE_SOURCE 0x00000001
1033 #define DUPLICATE_SAME_ACCESS 0x00000002
1035 #define HANDLE_FLAG_INHERIT 0x00000001
1036 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
1038 #define HINSTANCE_ERROR 32
1040 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
1041 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
1042 #define THREAD_PRIORITY_NORMAL 0
1043 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
1044 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
1045 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
1046 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
1047 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
1049 typedef struct
1051 int type;
1052 } wine_exception;
1054 typedef struct
1056 int pad[39];
1057 int edi;
1058 int esi;
1059 int ebx;
1060 int edx;
1061 int ecx;
1062 int eax;
1064 int ebp;
1065 int eip;
1066 int cs;
1067 int eflags;
1068 int esp;
1069 int ss;
1070 } exception_info;
1072 /* Could this type be considered opaque? */
1073 typedef struct {
1074 LPVOID DebugInfo;
1075 LONG LockCount;
1076 LONG RecursionCount;
1077 HANDLE OwningThread;
1078 HANDLE LockSemaphore;
1079 DWORD Reserved;
1080 }CRITICAL_SECTION;
1082 typedef struct {
1083 DWORD dwOSVersionInfoSize;
1084 DWORD dwMajorVersion;
1085 DWORD dwMinorVersion;
1086 DWORD dwBuildNumber;
1087 DWORD dwPlatformId;
1088 CHAR szCSDVersion[128];
1089 } OSVERSIONINFO16;
1091 typedef struct {
1092 DWORD dwOSVersionInfoSize;
1093 DWORD dwMajorVersion;
1094 DWORD dwMinorVersion;
1095 DWORD dwBuildNumber;
1096 DWORD dwPlatformId;
1097 CHAR szCSDVersion[128];
1098 } OSVERSIONINFOA;
1100 typedef struct {
1101 DWORD dwOSVersionInfoSize;
1102 DWORD dwMajorVersion;
1103 DWORD dwMinorVersion;
1104 DWORD dwBuildNumber;
1105 DWORD dwPlatformId;
1106 WCHAR szCSDVersion[128];
1107 } OSVERSIONINFOW;
1109 DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
1111 #define VER_PLATFORM_WIN32s 0
1112 #define VER_PLATFORM_WIN32_WINDOWS 1
1113 #define VER_PLATFORM_WIN32_NT 2
1115 typedef struct tagCOMSTAT
1117 DWORD status;
1118 DWORD cbInQue;
1119 DWORD cbOutQue;
1120 } COMSTAT,*LPCOMSTAT;
1122 typedef struct tagDCB
1124 DWORD DCBlength;
1125 DWORD BaudRate;
1126 unsigned fBinary :1;
1127 unsigned fParity :1;
1128 unsigned fOutxCtsFlow :1;
1129 unsigned fOutxDsrFlow :1;
1130 unsigned fDtrControl :2;
1131 unsigned fDsrSensitivity :1;
1132 unsigned fTXContinueOnXoff :1;
1133 unsigned fOutX :1;
1134 unsigned fInX :1;
1135 unsigned fErrorChar :1;
1136 unsigned fNull :1;
1137 unsigned fRtsControl :2;
1138 unsigned fAbortOnError :1;
1139 unsigned fDummy2 :17;
1140 WORD wReserved;
1141 WORD XonLim;
1142 WORD XoffLim;
1143 BYTE ByteSize;
1144 BYTE Parity;
1145 BYTE StopBits;
1146 char XonChar;
1147 char XoffChar;
1148 char ErrorChar;
1149 char EofChar;
1150 char EvtChar;
1151 } DCB, *LPDCB;
1155 typedef struct tagCOMMTIMEOUTS {
1156 DWORD ReadIntervalTimeout;
1157 DWORD ReadTotalTimeoutMultiplier;
1158 DWORD ReadTotalTimeoutConstant;
1159 DWORD WriteTotalTimeoutMultiplier;
1160 DWORD WriteTotalTimeoutConstant;
1161 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1163 #include "poppack.h"
1165 typedef VOID (CALLBACK *PAPCFUNC)(ULONG_PTR);
1167 BOOL WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT);
1168 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1169 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1170 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1171 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1172 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1173 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1174 BOOL WINAPI GetCommTimeouts(INT,LPCOMMTIMEOUTS);
1175 BOOL WINAPI SetCommTimeouts(INT,LPCOMMTIMEOUTS);
1176 BOOL WINAPI GetCommState(INT,LPDCB);
1177 BOOL WINAPI SetCommState(INT,LPDCB);
1178 BOOL WINAPI TransmitCommChar(INT,CHAR);
1181 /*DWORD WINAPI GetVersion( void );*/
1182 BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*);
1183 BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1184 BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1185 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1187 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1189 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1190 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1191 BOOL WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit);
1192 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1193 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1194 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1195 HANDLE WINAPI OpenProcess(DWORD access, BOOL inherit, DWORD id);
1196 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1197 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1198 void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1199 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1200 BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1201 BOOL WINAPI TerminateThread(HANDLE,DWORD);
1202 BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1204 /* GetBinaryType return values.
1207 #define SCS_32BIT_BINARY 0
1208 #define SCS_DOS_BINARY 1
1209 #define SCS_WOW_BINARY 2
1210 #define SCS_PIF_BINARY 3
1211 #define SCS_POSIX_BINARY 4
1212 #define SCS_OS216_BINARY 5
1214 BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1215 BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1216 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1218 BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1219 BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1220 /* Declarations for functions that exist only in Win32 */
1222 BOOL WINAPI AllocConsole(void);
1223 BOOL WINAPI AreFileApisANSI(void);
1224 BOOL WINAPI Beep(DWORD,DWORD);
1225 BOOL WINAPI CloseHandle(HANDLE);
1226 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1227 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1228 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1229 #define CopyFile WINELIB_NAME_AW(CopyFile)
1230 BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1231 BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1232 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1233 INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1234 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1235 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1236 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1237 HFILE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1238 DWORD,DWORD,HANDLE);
1239 HFILE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1240 DWORD,DWORD,HANDLE);
1241 #define CreateFile WINELIB_NAME_AW(CreateFile)
1242 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1243 DWORD,DWORD,LPCSTR);
1244 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1245 DWORD,DWORD,LPCWSTR);
1246 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1247 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1248 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1249 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1250 BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1251 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1252 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1253 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1254 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1255 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1256 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1257 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1258 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1259 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1260 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1261 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1262 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1263 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1264 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1265 BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1266 BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1267 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1268 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1269 ENUMRESLANGPROCA,LONG);
1270 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1271 ENUMRESLANGPROCW,LONG);
1272 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1273 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1274 LONG);
1275 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1276 LONG);
1277 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1278 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1279 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1280 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1281 BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
1282 BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
1283 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1284 BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
1285 BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
1286 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1287 BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1288 BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1289 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1290 VOID WINAPI ExitProcess(DWORD);
1291 VOID WINAPI ExitThread(DWORD);
1292 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1293 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1294 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1295 BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1296 BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1297 BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1298 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1299 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1300 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1301 BOOL WINAPI FindNextChangeNotification(HANDLE);
1302 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1303 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1304 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1305 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1306 BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1307 BOOL WINAPI FlushFileBuffers(HFILE);
1308 BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1309 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1310 DWORD,LPDWORD);
1311 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1312 DWORD,LPDWORD);
1313 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1314 BOOL WINAPI FreeConsole(void);
1315 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1316 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1317 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1318 UINT WINAPI GetACP(void);
1319 LPCSTR WINAPI GetCommandLineA(void);
1320 LPCWSTR WINAPI GetCommandLineW(void);
1321 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1322 BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1323 BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1324 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1325 UINT WINAPI GetConsoleCP(void);
1326 BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1327 UINT WINAPI GetConsoleOutputCP(void);
1328 DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1329 DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1330 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1331 BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
1332 BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1333 BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1334 HANDLE WINAPI GetCurrentProcess(void);
1335 DWORD WINAPI GetCurrentProcessId(void);
1336 HANDLE WINAPI GetCurrentThread(void);
1337 DWORD WINAPI GetCurrentThreadId(void);
1338 INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1339 INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1340 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1341 LPSTR WINAPI GetEnvironmentStringsA(void);
1342 LPWSTR WINAPI GetEnvironmentStringsW(void);
1343 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1344 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1345 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1346 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1347 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1348 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1349 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1350 DWORD WINAPI GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
1351 DWORD WINAPI GetFileSize(HFILE,LPDWORD);
1352 BOOL WINAPI GetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
1353 DWORD WINAPI GetFileType(HFILE);
1354 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1355 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1356 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1357 BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1358 DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
1359 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1360 DWORD WINAPI GetLogicalDrives(void);
1361 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1362 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1363 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1364 BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1365 BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1366 UINT WINAPI GetOEMCP(void);
1367 DWORD WINAPI GetPriorityClass(HANDLE);
1368 HANDLE WINAPI GetProcessHeap(void);
1369 DWORD WINAPI GetProcessVersion(DWORD);
1370 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1371 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1372 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1373 HFILE WINAPI GetStdHandle(DWORD);
1374 BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1375 BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1376 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1377 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1378 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1379 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1380 INT WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1381 INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1382 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1383 LCID WINAPI GetThreadLocale(void);
1384 INT WINAPI GetThreadPriority(HANDLE);
1385 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1386 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1387 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1388 DWORD WINAPI HeapCompact(HANDLE,DWORD);
1389 HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1390 BOOL WINAPI HeapDestroy(HANDLE);
1391 BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1392 BOOL WINAPI HeapLock(HANDLE);
1393 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1394 DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1395 BOOL WINAPI HeapUnlock(HANDLE);
1396 BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1397 LONG WINAPI InterlockedDecrement(LPLONG);
1398 LONG WINAPI InterlockedExchange(LPLONG,LONG);
1399 LONG WINAPI InterlockedIncrement(LPLONG);
1400 BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1401 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1402 BOOL WINAPI IsValidLocale(DWORD,DWORD);
1403 BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1404 BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1405 HMODULE WINAPI MapHModuleSL(HMODULE16);
1406 HMODULE16 WINAPI MapHModuleLS(HMODULE);
1407 SEGPTR WINAPI MapLS(LPVOID);
1408 LPVOID WINAPI MapSL(SEGPTR);
1409 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1410 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1411 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1412 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1413 #define MoveFile WINELIB_NAME_AW(MoveFile)
1414 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1415 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1416 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1417 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1418 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1419 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1420 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1421 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1422 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1423 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1424 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1425 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1426 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1427 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1428 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1429 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1430 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1431 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1432 BOOL WINAPI PulseEvent(HANDLE);
1433 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1434 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1435 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1436 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1437 BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1438 BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1439 BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1440 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
1441 BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1442 COORD,LPDWORD);
1443 #define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1444 BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1445 BOOL WINAPI ReleaseMutex(HANDLE);
1446 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1447 BOOL WINAPI ResetEvent(HANDLE);
1448 DWORD WINAPI ResumeThread(HANDLE);
1449 VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1450 #define FillMemory RtlFillMemory
1451 VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1452 #define MoveMemory RtlMoveMemory
1453 VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1454 #define ZeroMemory RtlZeroMemory
1455 VOID WINAPI RtlCopyMemory(LPVOID,const VOID*, DWORD);
1456 #define CopyMemory RtlCopyMemory
1457 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1458 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1459 #define SearchPath WINELIB_NAME_AW(SearchPath)
1460 BOOL WINAPI SetCommMask(INT,DWORD);
1461 BOOL WINAPI SetComputerNameA(LPCSTR);
1462 BOOL WINAPI SetComputerNameW(LPCWSTR);
1463 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1464 BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1465 BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1466 BOOL WINAPI SetConsoleTitleA(LPCSTR);
1467 BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1468 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1469 BOOL WINAPI SetEndOfFile(HFILE);
1470 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1471 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1472 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1473 BOOL WINAPI SetEvent(HANDLE);
1474 VOID WINAPI SetFileApisToANSI(void);
1475 VOID WINAPI SetFileApisToOEM(void);
1476 DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1477 BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,
1478 const FILETIME*);
1479 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1480 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1481 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1482 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1483 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1484 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1485 BOOL WINAPI SetThreadLocale(LCID);
1486 BOOL WINAPI SetThreadPriority(HANDLE,INT);
1487 BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1488 VOID WINAPI Sleep(DWORD);
1489 DWORD WINAPI SleepEx(DWORD,BOOL);
1490 DWORD WINAPI SuspendThread(HANDLE);
1491 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1492 DWORD WINAPI TlsAlloc(void);
1493 BOOL WINAPI TlsFree(DWORD);
1494 LPVOID WINAPI TlsGetValue(DWORD);
1495 BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1496 VOID WINAPI UnMapLS(SEGPTR);
1497 BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1498 BOOL WINAPI UnmapViewOfFile(LPVOID);
1499 LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1500 BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1501 BOOL WINAPI VirtualLock(LPVOID,DWORD);
1502 BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1503 BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1504 DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1505 DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1506 BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1507 BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1508 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1509 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1510 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1511 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1512 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1513 SEGPTR WINAPI WOWGlobalAllocLock16(DWORD,DWORD,HGLOBAL16*);
1514 DWORD WINAPI WOWCallback16(FARPROC16,DWORD);
1515 BOOL WINAPI WOWCallback16Ex(FARPROC16,DWORD,DWORD,LPVOID,LPDWORD);
1516 HANDLE WINAPI WOWHandle32(WORD,WOW_HANDLE_TYPE);
1517 BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1518 BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1519 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
1520 BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1521 DWORD WINAPI GetLastError(void);
1522 LANGID WINAPI GetSystemDefaultLangID(void);
1523 LCID WINAPI GetSystemDefaultLCID(void);
1524 LANGID WINAPI GetUserDefaultLangID(void);
1525 LCID WINAPI GetUserDefaultLCID(void);
1526 VOID WINAPI SetLastError(DWORD);
1527 ATOM WINAPI AddAtomA(LPCSTR);
1528 ATOM WINAPI AddAtomW(LPCWSTR);
1529 #define AddAtom WINELIB_NAME_AW(AddAtom)
1530 UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
1531 UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
1532 #define CompareString WINELIB_NAME_AW(CompareString)
1533 BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1534 BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1535 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1536 BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1537 BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1538 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1539 #define DefineHandleTable(w) ((w),TRUE)
1540 ATOM WINAPI DeleteAtom(ATOM);
1541 BOOL WINAPI DeleteFileA(LPCSTR);
1542 BOOL WINAPI DeleteFileW(LPCWSTR);
1543 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1544 void WINAPI FatalAppExitA(UINT,LPCSTR);
1545 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1546 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1547 ATOM WINAPI FindAtomA(LPCSTR);
1548 ATOM WINAPI FindAtomW(LPCWSTR);
1549 #define FindAtom WINELIB_NAME_AW(FindAtom)
1550 BOOL WINAPI FindClose(HANDLE);
1551 HANDLE16 WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA);
1552 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1553 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1554 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1555 BOOL16 WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA);
1556 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1557 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1558 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1559 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1560 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1561 #define FindResource WINELIB_NAME_AW(FindResource)
1562 VOID WINAPI FreeLibrary16(HINSTANCE16);
1563 BOOL WINAPI FreeLibrary(HMODULE);
1564 #define FreeModule(handle) FreeLibrary(handle)
1565 #define FreeProcInstance(proc) /*nothing*/
1566 BOOL WINAPI FreeResource(HGLOBAL);
1567 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1568 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1569 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1570 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1571 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1572 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1573 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1574 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1575 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1576 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1577 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1578 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1579 UINT WINAPI GetDriveTypeA(LPCSTR);
1580 UINT WINAPI GetDriveTypeW(LPCWSTR);
1581 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1582 DWORD WINAPI GetFileAttributesA(LPCSTR);
1583 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1584 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1585 #define GetFreeSpace(w) (0x100000L)
1586 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1587 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1588 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1589 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1590 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1591 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1592 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1593 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1594 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1595 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1596 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1597 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1598 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1599 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1600 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1601 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1602 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1603 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1604 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1605 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1606 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1607 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1608 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1609 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1610 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1611 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1612 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1613 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1614 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1615 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1616 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1617 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1618 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1619 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1620 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1621 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1622 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1623 BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1624 BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
1625 #define GetStringType WINELIB_NAME_AW(GetStringType)
1626 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1627 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1628 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1629 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1630 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1631 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1632 UINT WINAPI GetTempPathA(UINT,LPSTR);
1633 UINT WINAPI GetTempPathW(UINT,LPWSTR);
1634 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1635 LONG WINAPI GetVersion(void);
1636 BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1637 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1638 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1639 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1640 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1641 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1642 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1643 HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
1644 HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1645 DWORD WINAPI GlobalCompact(DWORD);
1646 UINT WINAPI GlobalFlags(HGLOBAL);
1647 HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
1648 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1649 HGLOBAL WINAPI GlobalHandle(LPCVOID);
1650 WORD WINAPI GlobalFix16(HGLOBAL16);
1651 VOID WINAPI GlobalFix(HGLOBAL);
1652 LPVOID WINAPI GlobalLock16(HGLOBAL16);
1653 LPVOID WINAPI GlobalLock(HGLOBAL);
1654 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1655 DWORD WINAPI GlobalSize16(HGLOBAL16);
1656 DWORD WINAPI GlobalSize(HGLOBAL);
1657 VOID WINAPI GlobalUnfix16(HGLOBAL16);
1658 VOID WINAPI GlobalUnfix(HGLOBAL);
1659 BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
1660 BOOL WINAPI GlobalUnlock(HGLOBAL);
1661 BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
1662 BOOL WINAPI GlobalUnWire(HGLOBAL);
1663 SEGPTR WINAPI GlobalWire16(HGLOBAL16);
1664 LPVOID WINAPI GlobalWire(HGLOBAL);
1665 BOOL WINAPI InitAtomTable(DWORD);
1666 BOOL WINAPI IsBadCodePtr(FARPROC);
1667 BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1668 BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1669 BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1670 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1671 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1672 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1673 BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1674 BOOL WINAPI IsDBCSLeadByte(BYTE);
1675 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
1676 HMODULE WINAPI LoadLibraryA(LPCSTR);
1677 HMODULE WINAPI LoadLibraryW(LPCWSTR);
1678 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1679 HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
1680 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
1681 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1682 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
1683 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1684 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1685 HLOCAL WINAPI LocalAlloc(UINT,DWORD);
1686 UINT WINAPI LocalCompact(UINT);
1687 UINT WINAPI LocalFlags(HLOCAL);
1688 HLOCAL WINAPI LocalFree(HLOCAL);
1689 HLOCAL WINAPI LocalHandle(LPCVOID);
1690 LPVOID WINAPI LocalLock(HLOCAL);
1691 HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
1692 UINT WINAPI LocalShrink(HGLOBAL,UINT);
1693 UINT WINAPI LocalSize(HLOCAL);
1694 BOOL WINAPI LocalUnlock(HLOCAL);
1695 LPVOID WINAPI LockResource(HGLOBAL);
1696 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1697 #define MakeProcInstance(proc,inst) (proc)
1698 HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
1699 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1700 VOID WINAPI OutputDebugStringA(LPCSTR);
1701 VOID WINAPI OutputDebugStringW(LPCWSTR);
1702 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1703 BOOL WINAPI RemoveDirectoryA(LPCSTR);
1704 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1705 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1706 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1707 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1708 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1709 UINT WINAPI SetErrorMode(UINT);
1710 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1711 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1712 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1713 UINT WINAPI SetHandleCount(UINT);
1714 #define SetSwapAreaSize(w) (w)
1715 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1716 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1717 DWORD WINAPI VerLanguageNameA(UINT,LPSTR,UINT);
1718 DWORD WINAPI VerLanguageNameW(UINT,LPWSTR,UINT);
1719 #define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
1720 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1721 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1722 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1723 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
1724 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
1725 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1726 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
1727 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
1728 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1729 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1730 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1731 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1732 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
1733 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
1734 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1735 #define Yield32()
1736 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
1737 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
1738 #define lstrcat WINELIB_NAME_AW(lstrcat)
1739 LPSTR WINAPI lstrcatnA(LPSTR,LPCSTR,INT);
1740 LPWSTR WINAPI lstrcatnW(LPWSTR,LPCWSTR,INT);
1741 #define lstrcatn WINELIB_NAME_AW(lstrcatn)
1742 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
1743 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
1744 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1745 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
1746 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
1747 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1748 INT WINAPI lstrlenA(LPCSTR);
1749 INT WINAPI lstrlenW(LPCWSTR);
1750 #define lstrlen WINELIB_NAME_AW(lstrlen)
1751 HINSTANCE WINAPI WinExec(LPCSTR,UINT);
1752 LONG WINAPI _hread(HFILE,LPVOID,LONG);
1753 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
1754 HFILE WINAPI _lcreat(LPCSTR,INT);
1755 HFILE WINAPI _lclose(HFILE);
1756 LONG WINAPI _llseek(HFILE,LONG,INT);
1757 HFILE WINAPI _lopen(LPCSTR,INT);
1758 UINT WINAPI _lread(HFILE,LPVOID,UINT);
1759 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
1760 SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
1761 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
1762 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
1763 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1764 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
1765 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
1766 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1769 #ifdef __cplusplus
1771 #endif
1773 #endif /* __WINE_WINBASE_H */