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

Last change on this file since 3268 was 3268, checked in by cbratschi, 25 years ago

fileio

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