Release 990226.
[wine/gsoc-2012-control.git] / include / winbase.h
blob91f987e0cdd5aca7b167095b1661ef51c812e670
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_LEGAL 5
947 #define DMPAPER_EXECUTIVE 7
948 #define DMPAPER_A3 8
949 #define DMPAPER_A4 9
950 #define DMPAPER_A5 11
951 #define DMPAPER_ENV_10 20
952 #define DMPAPER_ENV_DL 27
953 #define DMPAPER_ENV_C5 28
954 #define DMPAPER_ENV_B5 34
955 #define DMPAPER_ENV_MONARCH 37
957 #define DMBIN_UPPER 1
958 #define DMBIN_LOWER 2
959 #define DMBIN_MIDDLE 3
960 #define DMBIN_MANUAL 4
961 #define DMBIN_ENVELOPE 5
962 #define DMBIN_ENVMANUAL 6
963 #define DMBIN_AUTO 7
964 #define DMBIN_LARGECAPACITY 11
966 #define DMCOLOR_MONOCHROME 1
967 #define DMCOLOR_COLOR 2
969 #define DMTT_BITMAP 1
970 #define DMTT_DOWNLOAD 2
971 #define DMTT_SUBDEV 3
973 #define WAIT_FAILED 0xffffffff
974 #define WAIT_OBJECT_0 0
975 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
976 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
977 #define WAIT_IO_COMPLETION STATUS_USER_APC
978 #define WAIT_TIMEOUT STATUS_TIMEOUT
980 #define PAGE_NOACCESS 0x01
981 #define PAGE_READONLY 0x02
982 #define PAGE_READWRITE 0x04
983 #define PAGE_WRITECOPY 0x08
984 #define PAGE_EXECUTE 0x10
985 #define PAGE_EXECUTE_READ 0x20
986 #define PAGE_EXECUTE_READWRITE 0x40
987 #define PAGE_EXECUTE_WRITECOPY 0x80
988 #define PAGE_GUARD 0x100
989 #define PAGE_NOCACHE 0x200
991 #define MEM_COMMIT 0x00001000
992 #define MEM_RESERVE 0x00002000
993 #define MEM_DECOMMIT 0x00004000
994 #define MEM_RELEASE 0x00008000
995 #define MEM_FREE 0x00010000
996 #define MEM_PRIVATE 0x00020000
997 #define MEM_MAPPED 0x00040000
998 #define MEM_TOP_DOWN 0x00100000
1000 #define SEC_FILE 0x00800000
1001 #define SEC_IMAGE 0x01000000
1002 #define SEC_RESERVE 0x04000000
1003 #define SEC_COMMIT 0x08000000
1004 #define SEC_NOCACHE 0x10000000
1006 #define FILE_BEGIN 0
1007 #define FILE_CURRENT 1
1008 #define FILE_END 2
1010 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001
1011 #define FILE_CASE_PRESERVED_NAMES 0x00000002
1012 #define FILE_UNICODE_ON_DISK 0x00000004
1013 #define FILE_PERSISTENT_ACLS 0x00000008
1015 #define FILE_MAP_COPY 0x00000001
1016 #define FILE_MAP_WRITE 0x00000002
1017 #define FILE_MAP_READ 0x00000004
1018 #define FILE_MAP_ALL_ACCESS 0x000f001f
1020 #define MOVEFILE_REPLACE_EXISTING 0x00000001
1021 #define MOVEFILE_COPY_ALLOWED 0x00000002
1022 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
1024 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
1025 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
1026 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
1029 #define STATUS_SUCCESS 0x00000000
1030 #define STATUS_WAIT_0 0x00000000
1031 #define STATUS_ABANDONED_WAIT_0 0x00000080
1032 #define STATUS_USER_APC 0x000000C0
1033 #define STATUS_TIMEOUT 0x00000102
1034 #define STATUS_PENDING 0x00000103
1035 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001
1036 #define STATUS_DATATYPE_MISALIGNMENT 0x80000002
1037 #define STATUS_BREAKPOINT 0x80000003
1038 #define STATUS_SINGLE_STEP 0x80000004
1039 #define STATUS_BUFFER_OVERFLOW 0x80000005
1040 #define STATUS_ACCESS_VIOLATION 0xC0000005
1041 #define STATUS_IN_PAGE_ERROR 0xC0000006
1042 #define STATUS_INVALID_PARAMETER 0xC000000D
1043 #define STATUS_NO_MEMORY 0xC0000017
1044 #define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
1045 #define STATUS_BUFFER_TOO_SMALL 0xC0000023
1046 #define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
1047 #define STATUS_INVALID_DISPOSITION 0xC0000026
1048 #define STATUS_UNKNOWN_REVISION 0xC0000058
1049 #define STATUS_INVALID_SECURITY_DESCR 0xC0000079
1050 #define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
1051 #define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
1052 #define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
1053 #define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
1054 #define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
1055 #define STATUS_FLOAT_OVERFLOW 0xC0000091
1056 #define STATUS_FLOAT_STACK_CHECK 0xC0000092
1057 #define STATUS_FLOAT_UNDERFLOW 0xC0000093
1058 #define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
1059 #define STATUS_INTEGER_OVERFLOW 0xC0000095
1060 #define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
1061 #define STATUS_INVALID_PARAMETER_2 0xC00000F0
1062 #define STATUS_STACK_OVERFLOW 0xC00000FD
1063 #define STATUS_CONTROL_C_EXIT 0xC000013A
1065 #define DUPLICATE_CLOSE_SOURCE 0x00000001
1066 #define DUPLICATE_SAME_ACCESS 0x00000002
1068 #define HANDLE_FLAG_INHERIT 0x00000001
1069 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
1071 #define HINSTANCE_ERROR 32
1073 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
1074 #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
1075 #define THREAD_PRIORITY_NORMAL 0
1076 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
1077 #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
1078 #define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
1079 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
1080 #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
1082 typedef struct
1084 int type;
1085 } wine_exception;
1087 typedef struct
1089 int pad[39];
1090 int edi;
1091 int esi;
1092 int ebx;
1093 int edx;
1094 int ecx;
1095 int eax;
1097 int ebp;
1098 int eip;
1099 int cs;
1100 int eflags;
1101 int esp;
1102 int ss;
1103 } exception_info;
1105 /* Could this type be considered opaque? */
1106 typedef struct {
1107 LPVOID DebugInfo;
1108 LONG LockCount;
1109 LONG RecursionCount;
1110 HANDLE OwningThread;
1111 HANDLE LockSemaphore;
1112 DWORD Reserved;
1113 }CRITICAL_SECTION;
1115 typedef struct {
1116 DWORD dwOSVersionInfoSize;
1117 DWORD dwMajorVersion;
1118 DWORD dwMinorVersion;
1119 DWORD dwBuildNumber;
1120 DWORD dwPlatformId;
1121 CHAR szCSDVersion[128];
1122 } OSVERSIONINFO16;
1124 typedef struct {
1125 DWORD dwOSVersionInfoSize;
1126 DWORD dwMajorVersion;
1127 DWORD dwMinorVersion;
1128 DWORD dwBuildNumber;
1129 DWORD dwPlatformId;
1130 CHAR szCSDVersion[128];
1131 } OSVERSIONINFOA;
1133 typedef struct {
1134 DWORD dwOSVersionInfoSize;
1135 DWORD dwMajorVersion;
1136 DWORD dwMinorVersion;
1137 DWORD dwBuildNumber;
1138 DWORD dwPlatformId;
1139 WCHAR szCSDVersion[128];
1140 } OSVERSIONINFOW;
1142 DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
1144 #define VER_PLATFORM_WIN32s 0
1145 #define VER_PLATFORM_WIN32_WINDOWS 1
1146 #define VER_PLATFORM_WIN32_NT 2
1148 typedef struct tagCOMSTAT
1150 BYTE status;
1151 UINT16 cbInQue WINE_PACKED;
1152 UINT16 cbOutQue WINE_PACKED;
1153 } COMSTAT,*LPCOMSTAT;
1155 typedef struct tagDCB16
1157 BYTE Id;
1158 UINT16 BaudRate WINE_PACKED;
1159 BYTE ByteSize;
1160 BYTE Parity;
1161 BYTE StopBits;
1162 UINT16 RlsTimeout;
1163 UINT16 CtsTimeout;
1164 UINT16 DsrTimeout;
1166 UINT16 fBinary :1;
1167 UINT16 fRtsDisable :1;
1168 UINT16 fParity :1;
1169 UINT16 fOutxCtsFlow :1;
1170 UINT16 fOutxDsrFlow :1;
1171 UINT16 fDummy :2;
1172 UINT16 fDtrDisable :1;
1174 UINT16 fOutX :1;
1175 UINT16 fInX :1;
1176 UINT16 fPeChar :1;
1177 UINT16 fNull :1;
1178 UINT16 fChEvt :1;
1179 UINT16 fDtrflow :1;
1180 UINT16 fRtsflow :1;
1181 UINT16 fDummy2 :1;
1183 CHAR XonChar;
1184 CHAR XoffChar;
1185 UINT16 XonLim;
1186 UINT16 XoffLim;
1187 CHAR PeChar;
1188 CHAR EofChar;
1189 CHAR EvtChar;
1190 UINT16 TxDelay WINE_PACKED;
1191 } DCB16, *LPDCB16;
1193 typedef struct tagDCB
1195 DWORD DCBlength;
1196 DWORD BaudRate;
1197 DWORD fBinary :1;
1198 DWORD fParity :1;
1199 DWORD fOutxCtsFlow :1;
1200 DWORD fOutxDsrFlow :1;
1201 DWORD fDtrControl :2;
1202 DWORD fDsrSensitivity :1;
1203 DWORD fTXContinueOnXoff :1;
1204 DWORD fOutX :1;
1205 DWORD fInX :1;
1206 DWORD fErrorChar :1;
1207 DWORD fNull :1;
1208 DWORD fRtsControl :2;
1209 DWORD fAbortOnError :1;
1210 DWORD fDummy2 :17;
1211 WORD wReserved;
1212 WORD XonLim;
1213 WORD XoffLim;
1214 BYTE ByteSize;
1215 BYTE Parity;
1216 BYTE StopBits;
1217 char XonChar;
1218 char XoffChar;
1219 char ErrorChar;
1220 char EofChar;
1221 char EvtChar;
1222 } DCB, *LPDCB;
1226 typedef struct tagCOMMTIMEOUTS {
1227 DWORD ReadIntervalTimeout;
1228 DWORD ReadTotalTimeoutMultiplier;
1229 DWORD ReadTotalTimeoutConstant;
1230 DWORD WriteTotalTimeoutMultiplier;
1231 DWORD WriteTotalTimeoutConstant;
1232 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1234 #pragma pack(4)
1236 typedef VOID (CALLBACK *PAPCFUNC)(ULONG_PTR);
1238 BOOL WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT);
1239 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1240 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1241 #define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1242 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1243 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1244 #define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1245 BOOL WINAPI GetCommTimeouts(INT,LPCOMMTIMEOUTS);
1246 BOOL WINAPI SetCommTimeouts(INT,LPCOMMTIMEOUTS);
1247 BOOL WINAPI GetCommState(INT,LPDCB);
1248 BOOL WINAPI SetCommState(INT,LPDCB);
1249 BOOL WINAPI TransmitCommChar(INT,CHAR);
1252 /*DWORD WINAPI GetVersion( void );*/
1253 BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*);
1254 BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1255 BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1256 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1258 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1260 void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1261 void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1262 void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1263 void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1264 void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1265 HANDLE WINAPI OpenProcess(DWORD access, BOOL inherit, DWORD id);
1266 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1267 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1268 void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1269 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1270 BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1271 BOOL WINAPI TerminateThread(HANDLE,DWORD);
1274 /* GetBinaryType return values.
1277 #define SCS_32BIT_BINARY 0
1278 #define SCS_DOS_BINARY 1
1279 #define SCS_WOW_BINARY 2
1280 #define SCS_PIF_BINARY 3
1281 #define SCS_POSIX_BINARY 4
1282 #define SCS_OS216_BINARY 5
1284 BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1285 BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1286 #define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1288 BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1289 BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1290 /* Declarations for functions that exist only in Win32 */
1292 BOOL WINAPI AllocConsole(void);
1293 BOOL WINAPI AreFileApisANSI(void);
1294 BOOL WINAPI Beep(DWORD,DWORD);
1295 BOOL WINAPI CloseHandle(HANDLE);
1296 HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1297 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1298 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1299 #define CopyFile WINELIB_NAME_AW(CopyFile)
1300 BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1301 BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1302 #define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1303 INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1304 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1305 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1306 #define CreateEvent WINELIB_NAME_AW(CreateEvent)
1307 HFILE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1308 DWORD,DWORD,HANDLE);
1309 HFILE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1310 DWORD,DWORD,HANDLE);
1311 #define CreateFile WINELIB_NAME_AW(CreateFile)
1312 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1313 DWORD,DWORD,LPCSTR);
1314 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1315 DWORD,DWORD,LPCWSTR);
1316 #define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1317 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1318 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1319 #define CreateMutex WINELIB_NAME_AW(CreateMutex)
1320 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1321 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1322 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1323 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1324 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1325 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1326 #define CreateProcess WINELIB_NAME_AW(CreateProcess)
1327 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1328 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1329 #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1330 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1331 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1332 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1333 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1334 BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1335 BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1336 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1337 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1338 ENUMRESLANGPROCA,LONG);
1339 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1340 ENUMRESLANGPROCW,LONG);
1341 #define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1342 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1343 LONG);
1344 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1345 LONG);
1346 #define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1347 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1348 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1349 #define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1350 BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
1351 BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
1352 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1353 BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
1354 BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
1355 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1356 BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1357 BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1358 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1359 VOID WINAPI ExitProcess(DWORD);
1360 VOID WINAPI ExitThread(DWORD);
1361 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1362 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1363 #define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1364 BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1365 BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1366 BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1367 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1368 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1369 #define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1370 BOOL WINAPI FindNextChangeNotification(HANDLE);
1371 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1372 HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1373 HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1374 #define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1375 BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1376 BOOL WINAPI FlushFileBuffers(HFILE);
1377 BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1378 DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1379 DWORD,LPDWORD);
1380 DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1381 DWORD,LPDWORD);
1382 #define FormatMessage WINELIB_NAME_AW(FormatMessage)
1383 BOOL WINAPI FreeConsole(void);
1384 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1385 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1386 #define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1387 UINT WINAPI GetACP(void);
1388 LPCSTR WINAPI GetCommandLineA(void);
1389 LPCWSTR WINAPI GetCommandLineW(void);
1390 #define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1391 BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1392 BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1393 #define GetComputerName WINELIB_NAME_AW(GetComputerName)
1394 UINT WINAPI GetConsoleCP(void);
1395 BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1396 UINT WINAPI GetConsoleOutputCP(void);
1397 DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1398 DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1399 #define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1400 BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
1401 BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1402 BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1403 HANDLE WINAPI GetCurrentProcess(void);
1404 DWORD WINAPI GetCurrentProcessId(void);
1405 HANDLE WINAPI GetCurrentThread(void);
1406 DWORD WINAPI GetCurrentThreadId(void);
1407 INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1408 INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1409 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1410 LPSTR WINAPI GetEnvironmentStringsA(void);
1411 LPWSTR WINAPI GetEnvironmentStringsW(void);
1412 #define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1413 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1414 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1415 #define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1416 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1417 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1418 #define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1419 DWORD WINAPI GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
1420 DWORD WINAPI GetFileSize(HFILE,LPDWORD);
1421 BOOL WINAPI GetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
1422 DWORD WINAPI GetFileType(HFILE);
1423 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1424 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1425 #define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1426 BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1427 DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
1428 VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1429 DWORD WINAPI GetLogicalDrives(void);
1430 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1431 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1432 #define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1433 BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1434 BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1435 UINT WINAPI GetOEMCP(void);
1436 DWORD WINAPI GetPriorityClass(HANDLE);
1437 HANDLE WINAPI GetProcessHeap(void);
1438 DWORD WINAPI GetProcessVersion(DWORD);
1439 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1440 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1441 #define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1442 HFILE WINAPI GetStdHandle(DWORD);
1443 BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1444 BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1445 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1446 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1447 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1448 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1449 INT WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1450 INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1451 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1452 LCID WINAPI GetThreadLocale(void);
1453 INT WINAPI GetThreadPriority(HANDLE);
1454 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1455 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1456 LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1457 DWORD WINAPI HeapCompact(HANDLE,DWORD);
1458 HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1459 BOOL WINAPI HeapDestroy(HANDLE);
1460 BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1461 BOOL WINAPI HeapLock(HANDLE);
1462 LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1463 DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1464 BOOL WINAPI HeapUnlock(HANDLE);
1465 BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1466 LONG WINAPI InterlockedDecrement(LPLONG);
1467 LONG WINAPI InterlockedExchange(LPLONG,LONG);
1468 LONG WINAPI InterlockedIncrement(LPLONG);
1469 BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1470 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1471 BOOL WINAPI IsValidLocale(DWORD,DWORD);
1472 BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1473 BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1474 HMODULE WINAPI MapHModuleSL(HMODULE16);
1475 HMODULE16 WINAPI MapHModuleLS(HMODULE);
1476 SEGPTR WINAPI MapLS(LPVOID);
1477 LPVOID WINAPI MapSL(SEGPTR);
1478 LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1479 LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1480 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1481 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1482 #define MoveFile WINELIB_NAME_AW(MoveFile)
1483 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1484 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1485 #define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1486 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1487 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1488 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1489 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1490 #define OpenEvent WINELIB_NAME_AW(OpenEvent)
1491 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1492 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1493 #define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1494 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1495 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1496 #define OpenMutex WINELIB_NAME_AW(OpenMutex)
1497 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1498 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1499 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1500 #define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1501 BOOL WINAPI PulseEvent(HANDLE);
1502 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1503 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1504 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1505 #define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1506 BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1507 BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1508 BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1509 #define ReadConsole WINELIB_NAME_AW(ReadConsole)
1510 BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1511 COORD,LPDWORD);
1512 #define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1513 BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1514 BOOL WINAPI ReleaseMutex(HANDLE);
1515 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1516 BOOL WINAPI ResetEvent(HANDLE);
1517 DWORD WINAPI ResumeThread(HANDLE);
1518 VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1519 VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1520 VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1521 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1522 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1523 BOOL WINAPI SetCommMask(INT,DWORD);
1524 BOOL WINAPI SetComputerNameA(LPCSTR);
1525 BOOL WINAPI SetComputerNameW(LPCWSTR);
1526 #define SetComputerName WINELIB_NAME_AW(SetComputerName)
1527 BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1528 BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1529 BOOL WINAPI SetConsoleTitleA(LPCSTR);
1530 BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1531 #define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1532 BOOL WINAPI SetEndOfFile(HFILE);
1533 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1534 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1535 #define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1536 BOOL WINAPI SetEvent(HANDLE);
1537 VOID WINAPI SetFileApisToANSI(void);
1538 VOID WINAPI SetFileApisToOEM(void);
1539 DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1540 BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,
1541 const FILETIME*);
1542 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1543 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1544 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1545 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1546 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1547 DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1548 BOOL WINAPI SetThreadLocale(LCID);
1549 BOOL WINAPI SetThreadPriority(HANDLE,INT);
1550 BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1551 VOID WINAPI Sleep(DWORD);
1552 DWORD WINAPI SleepEx(DWORD,BOOL);
1553 DWORD WINAPI SuspendThread(HANDLE);
1554 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1555 DWORD WINAPI TlsAlloc(void);
1556 BOOL WINAPI TlsFree(DWORD);
1557 LPVOID WINAPI TlsGetValue(DWORD);
1558 BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1559 VOID WINAPI UnMapLS(SEGPTR);
1560 BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1561 BOOL WINAPI UnmapViewOfFile(LPVOID);
1562 LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1563 BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1564 BOOL WINAPI VirtualLock(LPVOID,DWORD);
1565 BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1566 BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1567 DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1568 DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1569 BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1570 BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1571 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1572 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1573 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1574 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1575 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1576 SEGPTR WINAPI WOWGlobalAllocLock16(DWORD,DWORD,HGLOBAL16*);
1577 DWORD WINAPI WOWCallback16(FARPROC16,DWORD);
1578 BOOL WINAPI WOWCallback16Ex(FARPROC16,DWORD,DWORD,LPVOID,LPDWORD);
1579 HANDLE WINAPI WOWHandle32(WORD,WOW_HANDLE_TYPE);
1580 BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1581 BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1582 #define WriteConsole WINELIB_NAME_AW(WriteConsole)
1583 BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1584 VOID WINAPI ZeroMemory(LPVOID,UINT);
1585 #define ZeroMemory RtlZeroMemory
1586 DWORD WINAPI GetLastError(void);
1587 LANGID WINAPI GetSystemDefaultLangID(void);
1588 LCID WINAPI GetSystemDefaultLCID(void);
1589 LANGID WINAPI GetUserDefaultLangID(void);
1590 LCID WINAPI GetUserDefaultLCID(void);
1591 VOID WINAPI SetLastError(DWORD);
1592 ATOM WINAPI AddAtomA(LPCSTR);
1593 ATOM WINAPI AddAtomW(LPCWSTR);
1594 #define AddAtom WINELIB_NAME_AW(AddAtom)
1595 UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
1596 UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
1597 #define CompareString WINELIB_NAME_AW(CompareString)
1598 BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1599 BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1600 #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1601 BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1602 BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1603 #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1604 #define DefineHandleTable(w) ((w),TRUE)
1605 ATOM WINAPI DeleteAtom(ATOM);
1606 BOOL WINAPI DeleteFileA(LPCSTR);
1607 BOOL WINAPI DeleteFileW(LPCWSTR);
1608 #define DeleteFile WINELIB_NAME_AW(DeleteFile)
1609 void WINAPI FatalAppExitA(UINT,LPCSTR);
1610 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1611 #define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1612 ATOM WINAPI FindAtomA(LPCSTR);
1613 ATOM WINAPI FindAtomW(LPCWSTR);
1614 #define FindAtom WINELIB_NAME_AW(FindAtom)
1615 BOOL WINAPI FindClose(HANDLE);
1616 HANDLE16 WINAPI FindFirstFile16(LPCSTR,LPWIN32_FIND_DATAA);
1617 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1618 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1619 #define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1620 BOOL16 WINAPI FindNextFile16(HANDLE16,LPWIN32_FIND_DATAA);
1621 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1622 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1623 #define FindNextFile WINELIB_NAME_AW(FindNextFile)
1624 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1625 HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1626 #define FindResource WINELIB_NAME_AW(FindResource)
1627 VOID WINAPI FreeLibrary16(HINSTANCE16);
1628 BOOL WINAPI FreeLibrary(HMODULE);
1629 #define FreeModule(handle) FreeLibrary(handle)
1630 #define FreeProcInstance(proc) /*nothing*/
1631 BOOL WINAPI FreeResource(HGLOBAL);
1632 UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1633 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1634 #define GetAtomName WINELIB_NAME_AW(GetAtomName)
1635 UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1636 UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1637 #define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1638 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1639 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1640 #define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1641 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1642 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1643 #define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1644 UINT WINAPI GetDriveTypeA(LPCSTR);
1645 UINT WINAPI GetDriveTypeW(LPCWSTR);
1646 #define GetDriveType WINELIB_NAME_AW(GetDriveType)
1647 DWORD WINAPI GetFileAttributesA(LPCSTR);
1648 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1649 #define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1650 #define GetFreeSpace(w) (0x100000L)
1651 UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1652 UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1653 #define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1654 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1655 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1656 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1657 DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1658 DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1659 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1660 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1661 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1662 #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1663 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1664 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1665 #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1666 INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1667 INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1668 #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1669 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1670 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1671 #define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1672 INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1673 INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1674 #define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1675 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1676 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1677 #define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1678 FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1679 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1680 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1681 #define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1682 INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1683 INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1684 #define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1685 INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1686 INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1687 #define GetProfileString WINELIB_NAME_AW(GetProfileString)
1688 BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1689 BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
1690 #define GetStringType WINELIB_NAME_AW(GetStringType)
1691 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1692 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1693 #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1694 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1695 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1696 #define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1697 UINT WINAPI GetTempPathA(UINT,LPSTR);
1698 UINT WINAPI GetTempPathW(UINT,LPWSTR);
1699 #define GetTempPath WINELIB_NAME_AW(GetTempPath)
1700 LONG WINAPI GetVersion(void);
1701 BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1702 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1703 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1704 #define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1705 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1706 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1707 #define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1708 HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
1709 HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1710 DWORD WINAPI GlobalCompact(DWORD);
1711 UINT WINAPI GlobalFlags(HGLOBAL);
1712 HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
1713 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1714 HGLOBAL WINAPI GlobalHandle(LPCVOID);
1715 WORD WINAPI GlobalFix16(HGLOBAL16);
1716 VOID WINAPI GlobalFix(HGLOBAL);
1717 LPVOID WINAPI GlobalLock16(HGLOBAL16);
1718 LPVOID WINAPI GlobalLock(HGLOBAL);
1719 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1720 DWORD WINAPI GlobalSize16(HGLOBAL16);
1721 DWORD WINAPI GlobalSize(HGLOBAL);
1722 VOID WINAPI GlobalUnfix16(HGLOBAL16);
1723 VOID WINAPI GlobalUnfix(HGLOBAL);
1724 BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
1725 BOOL WINAPI GlobalUnlock(HGLOBAL);
1726 BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
1727 BOOL WINAPI GlobalUnWire(HGLOBAL);
1728 SEGPTR WINAPI GlobalWire16(HGLOBAL16);
1729 LPVOID WINAPI GlobalWire(HGLOBAL);
1730 BOOL WINAPI InitAtomTable(DWORD);
1731 BOOL WINAPI IsBadCodePtr(FARPROC);
1732 BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1733 BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1734 BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1735 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1736 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1737 #define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1738 BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1739 BOOL WINAPI IsDBCSLeadByte(BYTE);
1740 HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
1741 HMODULE WINAPI LoadLibraryA(LPCSTR);
1742 HMODULE WINAPI LoadLibraryW(LPCWSTR);
1743 #define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1744 HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
1745 HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
1746 #define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1747 HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
1748 HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1749 HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1750 HLOCAL WINAPI LocalAlloc(UINT,DWORD);
1751 UINT WINAPI LocalCompact(UINT);
1752 UINT WINAPI LocalFlags(HLOCAL);
1753 HLOCAL WINAPI LocalFree(HLOCAL);
1754 HLOCAL WINAPI LocalHandle(LPCVOID);
1755 LPVOID WINAPI LocalLock(HLOCAL);
1756 HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
1757 UINT WINAPI LocalShrink(HGLOBAL,UINT);
1758 UINT WINAPI LocalSize(HLOCAL);
1759 BOOL WINAPI LocalUnlock(HLOCAL);
1760 LPVOID WINAPI LockResource(HGLOBAL);
1761 #define LockSegment(handle) GlobalFix((HANDLE)(handle))
1762 #define MakeProcInstance(proc,inst) (proc)
1763 HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
1764 HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1765 VOID WINAPI OutputDebugStringA(LPCSTR);
1766 VOID WINAPI OutputDebugStringW(LPCWSTR);
1767 #define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1768 BOOL WINAPI RemoveDirectoryA(LPCSTR);
1769 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1770 #define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1771 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1772 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1773 #define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1774 UINT WINAPI SetErrorMode(UINT);
1775 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1776 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1777 #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1778 UINT WINAPI SetHandleCount(UINT);
1779 #define SetSwapAreaSize(w) (w)
1780 DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1781 #define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1782 DWORD WINAPI VerLanguageNameA(UINT,LPSTR,UINT);
1783 DWORD WINAPI VerLanguageNameW(UINT,LPWSTR,UINT);
1784 #define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
1785 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1786 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1787 #define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1788 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
1789 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
1790 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
1791 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
1792 #define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1793 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1794 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1795 #define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1796 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
1797 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
1798 #define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1799 #define Yield32()
1800 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
1801 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
1802 #define lstrcat WINELIB_NAME_AW(lstrcat)
1803 LPSTR WINAPI lstrcatnA(LPSTR,LPCSTR,INT);
1804 LPWSTR WINAPI lstrcatnW(LPWSTR,LPCWSTR,INT);
1805 #define lstrcatn WINELIB_NAME_AW(lstrcatn)
1806 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
1807 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
1808 #define lstrcpy WINELIB_NAME_AW(lstrcpy)
1809 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
1810 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
1811 #define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1812 INT WINAPI lstrlenA(LPCSTR);
1813 INT WINAPI lstrlenW(LPCWSTR);
1814 #define lstrlen WINELIB_NAME_AW(lstrlen)
1815 HINSTANCE WINAPI WinExec(LPCSTR,UINT);
1816 LONG WINAPI _hread(HFILE,LPVOID,LONG);
1817 LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
1818 HFILE WINAPI _lcreat(LPCSTR,INT);
1819 HFILE WINAPI _lclose(HFILE);
1820 LONG WINAPI _llseek(HFILE,LONG,INT);
1821 HFILE WINAPI _lopen(LPCSTR,INT);
1822 UINT WINAPI _lread(HFILE,LPVOID,UINT);
1823 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
1824 SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
1825 INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
1826 INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
1827 #define lstrcmp WINELIB_NAME_AW(lstrcmp)
1828 INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
1829 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
1830 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1833 #ifdef __cplusplus
1835 #endif
1837 #endif /* __WINE_WINBASE_H */