source: trunk/include/win/winbase.h@ 2170

Last change on this file since 2170 was 2170, checked in by sandervl, 26 years ago

updates for service apis

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