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

Last change on this file since 4059 was 4059, checked in by phaller, 25 years ago

Fix of broken build due to WINE sync

File size: 72.7 KB
Line 
1/* $Id: winbase.h,v 1.16 2000-08-20 15:16:21 phaller 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
638typedef VOID (* WINAPI LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD dwErrorCode,
639 DWORD dwNumberOfBytesTransfered,
640 LPOVERLAPPED lpOverlapped);
641
642// LockFileEx flags
643
644#define LOCKFILE_FAIL_IMMEDIATELY 0x00000001
645#define LOCKFILE_EXCLUSIVE_LOCK 0x00000002
646
647
648/* Process startup information.
649 */
650
651/* STARTUPINFO.dwFlags */
652#define STARTF_USESHOWWINDOW 0x00000001
653#define STARTF_USESIZE 0x00000002
654#define STARTF_USEPOSITION 0x00000004
655#define STARTF_USECOUNTCHARS 0x00000008
656#define STARTF_USEFILLATTRIBUTE 0x00000010
657#define STARTF_RUNFULLSCREEN 0x00000020
658#define STARTF_FORCEONFEEDBACK 0x00000040
659#define STARTF_FORCEOFFFEEDBACK 0x00000080
660#define STARTF_USESTDHANDLES 0x00000100
661#define STARTF_USEHOTKEY 0x00000200
662
663typedef struct {
664 DWORD cb; /* 00: size of struct */
665 LPSTR lpReserved; /* 04: */
666 LPSTR lpDesktop; /* 08: */
667 LPSTR lpTitle; /* 0c: */
668 DWORD dwX; /* 10: */
669 DWORD dwY; /* 14: */
670 DWORD dwXSize; /* 18: */
671 DWORD dwYSize; /* 1c: */
672 DWORD dwXCountChars; /* 20: */
673 DWORD dwYCountChars; /* 24: */
674 DWORD dwFillAttribute; /* 28: */
675 DWORD dwFlags; /* 2c: */
676 WORD wShowWindow; /* 30: */
677 WORD cbReserved2; /* 32: */
678 BYTE *lpReserved2; /* 34: */
679 HANDLE hStdInput; /* 38: */
680 HANDLE hStdOutput; /* 3c: */
681 HANDLE hStdError; /* 40: */
682} STARTUPINFOA, *LPSTARTUPINFOA;
683
684typedef struct {
685 DWORD cb;
686 LPWSTR lpReserved;
687 LPWSTR lpDesktop;
688 LPWSTR lpTitle;
689 DWORD dwX;
690 DWORD dwY;
691 DWORD dwXSize;
692 DWORD dwYSize;
693 DWORD dwXCountChars;
694 DWORD dwYCountChars;
695 DWORD dwFillAttribute;
696 DWORD dwFlags;
697 WORD wShowWindow;
698 WORD cbReserved2;
699 BYTE *lpReserved2;
700 HANDLE hStdInput;
701 HANDLE hStdOutput;
702 HANDLE hStdError;
703} STARTUPINFOW, *LPSTARTUPINFOW;
704
705DECL_WINELIB_TYPE_AW(STARTUPINFO)
706DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
707
708typedef struct {
709 HANDLE hProcess;
710 HANDLE hThread;
711 DWORD dwProcessId;
712 DWORD dwThreadId;
713} PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
714
715typedef struct {
716 LONG Bias;
717 WCHAR StandardName[32];
718 SYSTEMTIME StandardDate;
719 LONG StandardBias;
720 WCHAR DaylightName[32];
721 SYSTEMTIME DaylightDate;
722 LONG DaylightBias;
723} TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
724
725#define TIME_ZONE_ID_UNKNOWN 0
726#define TIME_ZONE_ID_STANDARD 1
727#define TIME_ZONE_ID_DAYLIGHT 2
728
729/* CreateProcess: dwCreationFlag values
730 */
731#define DEBUG_PROCESS 0x00000001
732#define DEBUG_ONLY_THIS_PROCESS 0x00000002
733#define CREATE_SUSPENDED 0x00000004
734#define DETACHED_PROCESS 0x00000008
735#define CREATE_NEW_CONSOLE 0x00000010
736#define NORMAL_PRIORITY_CLASS 0x00000020
737#define IDLE_PRIORITY_CLASS 0x00000040
738#define HIGH_PRIORITY_CLASS 0x00000080
739#define REALTIME_PRIORITY_CLASS 0x00000100
740#define CREATE_NEW_PROCESS_GROUP 0x00000200
741#define CREATE_UNICODE_ENVIRONMENT 0x00000400
742#define CREATE_SEPARATE_WOW_VDM 0x00000800
743#define CREATE_SHARED_WOW_VDM 0x00001000
744#define CREATE_DEFAULT_ERROR_MODE 0x04000000
745#define CREATE_NO_WINDOW 0x08000000
746#define PROFILE_USER 0x10000000
747#define PROFILE_KERNEL 0x20000000
748#define PROFILE_SERVER 0x40000000
749
750
751/* File object type definitions
752 */
753#define FILE_TYPE_UNKNOWN 0
754#define FILE_TYPE_DISK 1
755#define FILE_TYPE_CHAR 2
756#define FILE_TYPE_PIPE 3
757#define FILE_TYPE_REMOTE 32768
758
759/* File creation flags
760 */
761#define FILE_FLAG_WRITE_THROUGH 0x80000000UL
762#define FILE_FLAG_OVERLAPPED 0x40000000L
763#define FILE_FLAG_NO_BUFFERING 0x20000000L
764#define FILE_FLAG_RANDOM_ACCESS 0x10000000L
765#define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
766#define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
767#define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
768#define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
769#define CREATE_NEW 1
770#define CREATE_ALWAYS 2
771#define OPEN_EXISTING 3
772#define OPEN_ALWAYS 4
773#define TRUNCATE_EXISTING 5
774
775/* Standard handle identifiers
776 */
777#define STD_INPUT_HANDLE ((DWORD) -10)
778#define STD_OUTPUT_HANDLE ((DWORD) -11)
779#define STD_ERROR_HANDLE ((DWORD) -12)
780
781typedef struct
782{
783 int dwFileAttributes;
784 FILETIME ftCreationTime;
785 FILETIME ftLastAccessTime;
786 FILETIME ftLastWriteTime;
787 int dwVolumeSerialNumber;
788 int nFileSizeHigh;
789 int nFileSizeLow;
790 int nNumberOfLinks;
791 int nFileIndexHigh;
792 int nFileIndexLow;
793} BY_HANDLE_FILE_INFORMATION ;
794
795
796typedef struct _SYSTEM_POWER_STATUS
797{
798 BOOL16 ACLineStatus;
799 BYTE BatteryFlag;
800 BYTE BatteryLifePercent;
801 BYTE reserved;
802 DWORD BatteryLifeTime;
803 DWORD BatteryFullLifeTime;
804} SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
805
806typedef struct _MEMORY_BASIC_INFORMATION
807{
808 LPVOID BaseAddress;
809 LPVOID AllocationBase;
810 DWORD AllocationProtect;
811 DWORD RegionSize;
812 DWORD State;
813 DWORD Protect;
814 DWORD Type;
815} MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
816
817
818typedef BOOL (* CALLBACK CODEPAGE_ENUMPROCA)(LPSTR);
819typedef BOOL (* CALLBACK CODEPAGE_ENUMPROCW)(LPWSTR);
820DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
821typedef BOOL (* CALLBACK LOCALE_ENUMPROCA)(LPSTR);
822typedef BOOL (* CALLBACK LOCALE_ENUMPROCW)(LPWSTR);
823DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
824
825typedef struct tagSYSTEM_INFO
826{
827 union {
828 DWORD dwOemId;
829 struct {
830 WORD wProcessorArchitecture;
831 WORD wReserved;
832 } x;
833 } u;
834 DWORD dwPageSize;
835 LPVOID lpMinimumApplicationAddress;
836 LPVOID lpMaximumApplicationAddress;
837 DWORD dwActiveProcessorMask;
838 DWORD dwNumberOfProcessors;
839 DWORD dwProcessorType;
840 DWORD dwAllocationGranularity;
841 WORD wProcessorLevel;
842 WORD wProcessorRevision;
843} SYSTEM_INFO, *LPSYSTEM_INFO;
844
845/* {G,S}etPriorityClass */
846#define NORMAL_PRIORITY_CLASS 0x00000020
847#define IDLE_PRIORITY_CLASS 0x00000040
848#define HIGH_PRIORITY_CLASS 0x00000080
849#define REALTIME_PRIORITY_CLASS 0x00000100
850
851typedef BOOL (* CALLBACK ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
852typedef BOOL (* CALLBACK ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG);
853typedef BOOL (* CALLBACK ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG);
854typedef BOOL (* CALLBACK ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG);
855typedef BOOL (* CALLBACK ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG);
856typedef BOOL (* CALLBACK ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG);
857
858DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
859DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
860DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
861
862/* flags that can be passed to LoadLibraryEx */
863#define DONT_RESOLVE_DLL_REFERENCES 0x00000001
864#define LOAD_LIBRARY_AS_DATAFILE 0x00000002
865#define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
866
867/* ifdef _x86_ ... */
868typedef struct _LDT_ENTRY {
869 WORD LimitLow;
870 WORD BaseLow;
871 union {
872 struct {
873 BYTE BaseMid;
874 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
875 BYTE Flags2;
876 BYTE BaseHi;
877 } Bytes;
878 struct {
879 unsigned BaseMid : 8;
880 unsigned Type : 5;
881 unsigned Dpl : 2;
882 unsigned Pres : 1;
883 unsigned LimitHi : 4;
884 unsigned Sys : 1;
885 unsigned Reserved_0 : 1;
886 unsigned Default_Big : 1;
887 unsigned Granularity : 1;
888 unsigned BaseHi : 8;
889 } Bits;
890 } HighWord;
891} LDT_ENTRY, *LPLDT_ENTRY;
892
893/* for WOWHandle{16,32} */
894typedef enum _WOW_HANDLE_TYPE { /* WOW */
895 WOW_TYPE_HWND,
896 WOW_TYPE_HMENU,
897 WOW_TYPE_HDWP,
898 WOW_TYPE_HDROP,
899 WOW_TYPE_HDC,
900 WOW_TYPE_HFONT,
901 WOW_TYPE_HMETAFILE,
902 WOW_TYPE_HRGN,
903 WOW_TYPE_HBITMAP,
904 WOW_TYPE_HBRUSH,
905 WOW_TYPE_HPALETTE,
906 WOW_TYPE_HPEN,
907 WOW_TYPE_HACCEL,
908 WOW_TYPE_HTASK,
909 WOW_TYPE_FULLHWND
910} WOW_HANDLE_TYPE;
911
912/* WOWCallback16Ex defines */
913#define WCB16_MAX_CBARGS 16
914/* ... dwFlags */
915#define WCB16_PASCAL 0x0
916#define WCB16_CDECL 0x1
917
918typedef enum _GET_FILEEX_INFO_LEVELS {
919 GetFileExInfoStandard
920} GET_FILEEX_INFO_LEVELS;
921
922typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
923 DWORD dwFileAttributes;
924 FILETIME ftCreationTime;
925 FILETIME ftLastAccessTime;
926 FILETIME ftLastWriteTime;
927 DWORD nFileSizeHigh;
928 DWORD nFileSizeLow;
929} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
930
931typedef struct _DllVersionInfo {
932 DWORD cbSize;
933 DWORD dwMajorVersion;
934 DWORD dwMinorVersion;
935 DWORD dwBuildNumber;
936 DWORD dwPlatformID;
937} DLLVERSIONINFO;
938
939/*
940 * This one seems to be a Win32 only definition. It also is defined with
941 * WINAPI instead of CALLBACK in the windows headers.
942 */
943typedef DWORD (* WINAPI LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
944 LARGE_INTEGER, DWORD, DWORD, HANDLE,
945 HANDLE, LPVOID);
946
947
948#define WAIT_FAILED 0xffffffff
949#define WAIT_OBJECT_0 0
950#define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
951#define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
952#define WAIT_IO_COMPLETION STATUS_USER_APC
953#define WAIT_TIMEOUT STATUS_TIMEOUT
954
955#define PAGE_NOACCESS 0x01
956#define PAGE_READONLY 0x02
957#define PAGE_READWRITE 0x04
958#define PAGE_WRITECOPY 0x08
959#define PAGE_EXECUTE 0x10
960#define PAGE_EXECUTE_READ 0x20
961#define PAGE_EXECUTE_READWRITE 0x40
962#define PAGE_EXECUTE_WRITECOPY 0x80
963#define PAGE_GUARD 0x100
964#define PAGE_NOCACHE 0x200
965
966#define MEM_COMMIT 0x00001000
967#define MEM_RESERVE 0x00002000
968#define MEM_DECOMMIT 0x00004000
969#define MEM_RELEASE 0x00008000
970#define MEM_FREE 0x00010000
971#define MEM_PRIVATE 0x00020000
972#define MEM_MAPPED 0x00040000
973#define MEM_TOP_DOWN 0x00100000
974
975#define SEC_FILE 0x00800000
976#define SEC_IMAGE 0x01000000
977#define SEC_RESERVE 0x04000000
978#define SEC_COMMIT 0x08000000
979#define SEC_NOCACHE 0x10000000
980
981#define FILE_BEGIN 0
982#define FILE_CURRENT 1
983#define FILE_END 2
984
985#define FILE_CASE_SENSITIVE_SEARCH 0x00000001
986#define FILE_CASE_PRESERVED_NAMES 0x00000002
987#define FILE_UNICODE_ON_DISK 0x00000004
988#define FILE_PERSISTENT_ACLS 0x00000008
989
990#define FILE_MAP_COPY 0x00000001
991#define FILE_MAP_WRITE 0x00000002
992#define FILE_MAP_READ 0x00000004
993#define FILE_MAP_ALL_ACCESS 0x000f001f
994
995#define MOVEFILE_REPLACE_EXISTING 0x00000001
996#define MOVEFILE_COPY_ALLOWED 0x00000002
997#define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
998
999#define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
1000#define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
1001#define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
1002
1003
1004#define STATUS_SUCCESS 0x00000000
1005#define STATUS_WAIT_0 0x00000000
1006#define STATUS_ABANDONED_WAIT_0 0x00000080
1007#define STATUS_USER_APC 0x000000C0
1008#define STATUS_TIMEOUT 0x00000102
1009#define STATUS_PENDING 0x00000103
1010#define STATUS_GUARD_PAGE_VIOLATION 0x80000001
1011#define STATUS_DATATYPE_MISALIGNMENT 0x80000002
1012#define STATUS_BREAKPOINT 0x80000003
1013#define STATUS_SINGLE_STEP 0x80000004
1014#define STATUS_BUFFER_OVERFLOW 0x80000005
1015#define STATUS_ACCESS_VIOLATION 0xC0000005
1016#define STATUS_IN_PAGE_ERROR 0xC0000006
1017#define STATUS_INVALID_PARAMETER 0xC000000D
1018#define STATUS_NO_MEMORY 0xC0000017
1019#define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
1020#define STATUS_BUFFER_TOO_SMALL 0xC0000023
1021#define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
1022#define STATUS_INVALID_DISPOSITION 0xC0000026
1023#define STATUS_UNKNOWN_REVISION 0xC0000058
1024#define STATUS_INVALID_SECURITY_DESCR 0xC0000079
1025#define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
1026#define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
1027#define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
1028#define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
1029#define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
1030#define STATUS_FLOAT_OVERFLOW 0xC0000091
1031#define STATUS_FLOAT_STACK_CHECK 0xC0000092
1032#define STATUS_FLOAT_UNDERFLOW 0xC0000093
1033#define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
1034#define STATUS_INTEGER_OVERFLOW 0xC0000095
1035#define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
1036#define STATUS_INVALID_PARAMETER_2 0xC00000F0
1037#define STATUS_STACK_OVERFLOW 0xC00000FD
1038#define STATUS_CONTROL_C_EXIT 0xC000013A
1039
1040#define DUPLICATE_CLOSE_SOURCE 0x00000001
1041#define DUPLICATE_SAME_ACCESS 0x00000002
1042
1043#define HANDLE_FLAG_INHERIT 0x00000001
1044#define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
1045
1046#define HINSTANCE_ERROR 32
1047
1048#define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
1049#define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
1050#define THREAD_PRIORITY_NORMAL 0
1051#define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
1052#define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
1053#define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
1054#define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
1055#define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
1056
1057typedef struct
1058{
1059 int type;
1060} wine_exception;
1061
1062typedef struct
1063{
1064 int pad[39];
1065 int edi;
1066 int esi;
1067 int ebx;
1068 int edx;
1069 int ecx;
1070 int eax;
1071
1072 int ebp;
1073 int eip;
1074 int cs;
1075 int eflags;
1076 int esp;
1077 int ss;
1078} exception_info;
1079
1080/* Could this type be considered opaque? */
1081typedef struct {
1082 LPVOID DebugInfo;
1083 LONG LockCount;
1084 LONG RecursionCount;
1085 HANDLE OwningThread;
1086 HANDLE LockSemaphore;
1087 DWORD Reserved;
1088}CRITICAL_SECTION;
1089
1090#ifdef __WINE__
1091#define CRITICAL_SECTION_INIT { 0, -1, 0, 0, 0, 0 }
1092#endif
1093
1094typedef struct {
1095 DWORD dwOSVersionInfoSize;
1096 DWORD dwMajorVersion;
1097 DWORD dwMinorVersion;
1098 DWORD dwBuildNumber;
1099 DWORD dwPlatformId;
1100 CHAR szCSDVersion[128];
1101} OSVERSIONINFOA;
1102
1103typedef struct {
1104 DWORD dwOSVersionInfoSize;
1105 DWORD dwMajorVersion;
1106 DWORD dwMinorVersion;
1107 DWORD dwBuildNumber;
1108 DWORD dwPlatformId;
1109 WCHAR szCSDVersion[128];
1110} OSVERSIONINFOW;
1111
1112DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
1113
1114#define VER_PLATFORM_WIN32s 0
1115#define VER_PLATFORM_WIN32_WINDOWS 1
1116#define VER_PLATFORM_WIN32_NT 2
1117
1118typedef struct _COMMPROP {
1119 WORD wPacketLength;
1120 WORD wPacketVersion;
1121 DWORD dwServiceMask;
1122 DWORD dwReserved1;
1123 DWORD dwMaxTxQueue;
1124 DWORD dwMaxRxQueue;
1125 DWORD dwMaxBaud;
1126 DWORD dwProvSubType;
1127 DWORD dwProvCapabilities;
1128 DWORD dwSettableParams;
1129 DWORD dwSettableBaud;
1130 WORD wSettableData;
1131 WORD wSettableStopParity;
1132 DWORD dwCurrentTxQueue;
1133 DWORD dwCurrentRxQueue;
1134 DWORD dwProvSpec1;
1135 DWORD dwProvSpec2;
1136 WCHAR wcProvChar[1];
1137} COMMPROP,*LPCOMMPROP;
1138
1139typedef struct tagCOMSTAT
1140{
1141 DWORD status;
1142 DWORD cbInQue;
1143 DWORD cbOutQue;
1144} COMSTAT,*LPCOMSTAT;
1145
1146typedef struct tagDCB
1147{
1148 DWORD DCBlength;
1149 DWORD BaudRate;
1150 unsigned fBinary :1;
1151 unsigned fParity :1;
1152 unsigned fOutxCtsFlow :1;
1153 unsigned fOutxDsrFlow :1;
1154 unsigned fDtrControl :2;
1155 unsigned fDsrSensitivity :1;
1156 unsigned fTXContinueOnXoff :1;
1157 unsigned fOutX :1;
1158 unsigned fInX :1;
1159 unsigned fErrorChar :1;
1160 unsigned fNull :1;
1161 unsigned fRtsControl :2;
1162 unsigned fAbortOnError :1;
1163 unsigned fDummy2 :17;
1164 WORD wReserved;
1165 WORD XonLim;
1166 WORD XoffLim;
1167 BYTE ByteSize;
1168 BYTE Parity;
1169 BYTE StopBits;
1170 char XonChar;
1171 char XoffChar;
1172 char ErrorChar;
1173 char EofChar;
1174 char EvtChar;
1175} DCB, *LPDCB;
1176
1177
1178
1179typedef struct tagCOMMTIMEOUTS {
1180 DWORD ReadIntervalTimeout;
1181 DWORD ReadTotalTimeoutMultiplier;
1182 DWORD ReadTotalTimeoutConstant;
1183 DWORD WriteTotalTimeoutMultiplier;
1184 DWORD WriteTotalTimeoutConstant;
1185} COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1186
1187typedef struct _COMMCONFIG {
1188 DWORD dwSize;
1189 WORD wVersion;
1190 WORD wReserved;
1191 DCB dcb;
1192 DWORD dwProviderSubType;
1193 DWORD dwProviderOffset;
1194 DWORD dwProviderSize;
1195 WCHAR wcProviderData[1];
1196} COMMCONFIG,*LPCOMMCONFIG;
1197
1198#include "poppack.h"
1199
1200typedef VOID (* CALLBACK PAPCFUNC)(ULONG_PTR);
1201
1202BOOL WINAPI ClearCommError(INT,LPDWORD,LPCOMSTAT);
1203BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1204BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1205#define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1206BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1207BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1208#define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1209BOOL WINAPI GetCommTimeouts(INT,LPCOMMTIMEOUTS);
1210BOOL WINAPI SetCommTimeouts(INT,LPCOMMTIMEOUTS);
1211BOOL WINAPI GetCommState(INT,LPDCB);
1212BOOL WINAPI SetCommState(INT,LPDCB);
1213BOOL WINAPI TransmitCommChar(INT,CHAR);
1214
1215
1216/*DWORD WINAPI GetVersion( void );*/
1217BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1218BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1219#define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1220
1221/*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1222
1223void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1224void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1225void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1226void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1227void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1228HANDLE WINAPI OpenProcess(DWORD access, BOOL inherit, DWORD id);
1229BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1230DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1231void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1232BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1233BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1234BOOL WINAPI TerminateThread(HANDLE,DWORD);
1235BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1236
1237/* GetBinaryType return values.
1238 */
1239
1240#define SCS_32BIT_BINARY 0
1241#define SCS_DOS_BINARY 1
1242#define SCS_WOW_BINARY 2
1243#define SCS_PIF_BINARY 3
1244#define SCS_POSIX_BINARY 4
1245#define SCS_OS216_BINARY 5
1246
1247BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1248BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1249#define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1250
1251BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1252BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1253/* Declarations for functions that exist only in Win32 */
1254
1255BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
1256//BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1257BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,LPDWORD);
1258BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
1259BOOL WINAPI AllocateLocallyUniqueId(PLUID);
1260BOOL WINAPI AllocConsole(void);
1261BOOL WINAPI AreFileApisANSI(void);
1262BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
1263BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
1264#define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1265BOOL WINAPI Beep(DWORD,DWORD);
1266BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1267BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1268#define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1269BOOL WINAPI CloseEventLog(HANDLE);
1270BOOL WINAPI CloseHandle(HANDLE);
1271BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1272HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1273BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1274BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1275#define CopyFile WINELIB_NAME_AW(CopyFile)
1276BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1277BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1278#define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1279BOOL WINAPI CopySid(DWORD,PSID,PSID);
1280INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1281HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1282HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1283#define CreateEvent WINELIB_NAME_AW(CreateEvent)
1284HFILE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1285 DWORD,DWORD,HANDLE);
1286HFILE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1287 DWORD,DWORD,HANDLE);
1288#define CreateFile WINELIB_NAME_AW(CreateFile)
1289HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1290 DWORD,DWORD,LPCSTR);
1291HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1292 DWORD,DWORD,LPCWSTR);
1293#define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1294HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1295HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1296#define CreateMutex WINELIB_NAME_AW(CreateMutex)
1297BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1298BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1299 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1300 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1301BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1302 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1303 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1304#define CreateProcess WINELIB_NAME_AW(CreateProcess)
1305HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1306HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1307#define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1308HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1309BOOL WINAPI DebugActiveProcess(DWORD);
1310void WINAPI DebugBreak(void);
1311BOOL WINAPI DeregisterEventSource(HANDLE);
1312BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1313BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1314BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1315BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1316BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1317#define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1318BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1319 ENUMRESLANGPROCA,LONG);
1320BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1321 ENUMRESLANGPROCW,LONG);
1322#define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1323BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1324 LONG);
1325BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1326 LONG);
1327#define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1328BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1329BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1330#define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1331BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
1332BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
1333#define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1334BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
1335BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
1336#define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1337BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1338BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1339#define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1340BOOL WINAPI EqualSid(PSID, PSID);
1341BOOL WINAPI EqualPrefixSid(PSID,PSID);
1342VOID WINAPI ExitProcess(DWORD);
1343VOID WINAPI ExitThread(DWORD);
1344DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1345DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1346#define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1347BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1348BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1349BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1350HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1351HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1352#define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1353BOOL WINAPI FindNextChangeNotification(HANDLE);
1354BOOL WINAPI FindCloseChangeNotification(HANDLE);
1355HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1356HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1357#define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1358BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1359BOOL WINAPI FlushFileBuffers(HFILE);
1360BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1361DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1362 DWORD,LPDWORD);
1363DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1364 DWORD,LPDWORD);
1365#define FormatMessage WINELIB_NAME_AW(FormatMessage)
1366BOOL WINAPI FreeConsole(void);
1367BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1368BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1369#define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1370PVOID WINAPI FreeSid(PSID);
1371UINT WINAPI GetACP(void);
1372LPCSTR WINAPI GetCommandLineA(void);
1373LPCWSTR WINAPI GetCommandLineW(void);
1374#define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1375BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1376BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1377#define GetComputerName WINELIB_NAME_AW(GetComputerName)
1378UINT WINAPI GetConsoleCP(void);
1379BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1380UINT WINAPI GetConsoleOutputCP(void);
1381DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1382DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1383#define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1384BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
1385BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1386BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1387HANDLE WINAPI GetCurrentProcess(void);
1388DWORD WINAPI GetCurrentProcessId(void);
1389HANDLE WINAPI GetCurrentThread(void);
1390DWORD WINAPI GetCurrentThreadId(void);
1391INT WINAPI GetDateFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1392INT WINAPI GetDateFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1393#define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1394LPSTR WINAPI GetEnvironmentStringsA(void);
1395LPWSTR WINAPI GetEnvironmentStringsW(void);
1396#define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1397DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1398DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1399#define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1400BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1401BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1402#define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1403DWORD WINAPI GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
1404BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1405BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1406#define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1407DWORD WINAPI GetFileSize(HFILE,LPDWORD);
1408BOOL WINAPI GetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
1409DWORD WINAPI GetFileType(HFILE);
1410DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1411DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1412#define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1413BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1414DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
1415DWORD WINAPI GetLengthSid(PSID);
1416VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1417DWORD WINAPI GetLogicalDrives(void);
1418DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1419DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1420#define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1421BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1422BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1423BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
1424UINT WINAPI GetOEMCP(void);
1425BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
1426DWORD WINAPI GetPriorityClass(HANDLE);
1427HANDLE WINAPI GetProcessHeap(void);
1428DWORD WINAPI GetProcessVersion(DWORD);
1429//BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
1430BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1431BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1432DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
1433BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1434BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1435PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
1436DWORD WINAPI GetSidLengthRequired(BYTE);
1437PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
1438PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
1439DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1440DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1441#define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1442HFILE WINAPI GetStdHandle(DWORD);
1443BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1444BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1445#define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1446VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1447BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1448VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1449INT WINAPI GetTimeFormatA(LCID,DWORD,LPSYSTEMTIME,LPCSTR,LPSTR,INT);
1450INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
1451#define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1452BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
1453LCID WINAPI GetThreadLocale(void);
1454INT WINAPI GetThreadPriority(HANDLE);
1455BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1456BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1457BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
1458BOOL WINAPI GetUserNameA(LPSTR,LPDWORD);
1459BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD);
1460#define GetUserName WINELIB_NAME_AW(GetUserName)
1461VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1462LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1463DWORD WINAPI HeapCompact(HANDLE,DWORD);
1464HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1465BOOL WINAPI HeapDestroy(HANDLE);
1466BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1467BOOL WINAPI HeapLock(HANDLE);
1468LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1469DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1470BOOL WINAPI HeapUnlock(HANDLE);
1471BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1472BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1473BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1474BOOL WINAPI IsValidSid(PSID);
1475BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1476LONG WINAPI InterlockedDecrement(LPLONG);
1477LONG WINAPI InterlockedExchange(LPLONG,LONG);
1478LONG WINAPI InterlockedIncrement(LPLONG);
1479BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1480BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1481BOOL WINAPI IsValidLocale(DWORD,DWORD);
1482BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1483BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1484BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1485BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID);
1486BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID);
1487#define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1488BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
1489HMODULE WINAPI MapHModuleSL(HMODULE16);
1490HMODULE16 WINAPI MapHModuleLS(HMODULE);
1491SEGPTR WINAPI MapLS(LPVOID);
1492LPVOID WINAPI MapSL(SEGPTR);
1493LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1494LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1495BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1496BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1497#define MoveFile WINELIB_NAME_AW(MoveFile)
1498BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1499BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1500#define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1501INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1502BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1503INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1504HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1505HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1506#define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1507HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1508HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1509#define OpenEvent WINELIB_NAME_AW(OpenEvent)
1510HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
1511HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1512#define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1513HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1514HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1515#define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1516HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1517HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1518#define OpenMutex WINELIB_NAME_AW(OpenMutex)
1519HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1520BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1521HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1522HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1523#define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1524BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1525BOOL WINAPI PulseEvent(HANDLE);
1526BOOL WINAPI PurgeComm(HANDLE,DWORD);
1527DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1528DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1529#define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1530BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1531BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1532BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1533#define ReadConsole WINELIB_NAME_AW(ReadConsole)
1534BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1535 COORD,LPDWORD);
1536#define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1537BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1538BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1539#define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1540BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1541BOOL WINAPI ReadFileEx(HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
1542 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1543
1544HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
1545HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1546#define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1547BOOL WINAPI ReleaseMutex(HANDLE);
1548BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1549BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
1550BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
1551#define ReportEvent WINELIB_NAME_AW(ReportEvent)
1552BOOL WINAPI ResetEvent(HANDLE);
1553DWORD WINAPI ResumeThread(HANDLE);
1554VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1555#define FillMemory RtlFillMemory
1556VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1557#define MoveMemory RtlMoveMemory
1558VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1559#define ZeroMemory RtlZeroMemory
1560VOID WINAPI RtlCopyMemory(LPVOID,const VOID*, UINT);
1561#define CopyMemory RtlCopyMemory
1562BOOL WINAPI RevertToSelf(void);
1563DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1564DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1565#define SearchPath WINELIB_NAME_AW(SearchPath)
1566BOOL WINAPI SetCommMask(INT,DWORD);
1567BOOL WINAPI SetComputerNameA(LPCSTR);
1568BOOL WINAPI SetComputerNameW(LPCWSTR);
1569#define SetComputerName WINELIB_NAME_AW(SetComputerName)
1570BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1571BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1572BOOL WINAPI SetConsoleTitleA(LPCSTR);
1573BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1574#define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1575BOOL WINAPI SetEndOfFile(HFILE);
1576BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1577BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1578#define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1579BOOL WINAPI SetEvent(HANDLE);
1580VOID WINAPI SetFileApisToANSI(void);
1581VOID WINAPI SetFileApisToOEM(void);
1582DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1583BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1584BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1585#define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1586BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,const FILETIME*);
1587BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1588BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
1589BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1590BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1591BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
1592BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
1593BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1594BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1595BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1596BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1597DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1598BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
1599BOOL WINAPI SetThreadLocale(LCID);
1600BOOL WINAPI SetThreadPriority(HANDLE,INT);
1601BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1602VOID WINAPI Sleep(DWORD);
1603DWORD WINAPI SleepEx(DWORD,BOOL);
1604DWORD WINAPI SuspendThread(HANDLE);
1605BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1606DWORD WINAPI TlsAlloc(void);
1607BOOL WINAPI TlsFree(DWORD);
1608LPVOID WINAPI TlsGetValue(DWORD);
1609BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1610VOID WINAPI UnMapLS(SEGPTR);
1611BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1612BOOL WINAPI UnmapViewOfFile(LPVOID);
1613BOOL WINAPI FlushInstructionCache(HANDLE,LPCVOID,DWORD);
1614LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1615BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1616BOOL WINAPI VirtualLock(LPVOID,DWORD);
1617BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1618BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1619DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1620DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1621BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1622BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1623BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1624DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1625DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1626DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1627DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1628SEGPTR WINAPI WOWGlobalAllocLock16(DWORD,DWORD,HGLOBAL16*);
1629DWORD WINAPI WOWCallback16(FARPROC16,DWORD);
1630BOOL WINAPI WOWCallback16Ex(FARPROC16,DWORD,DWORD,LPVOID,LPDWORD);
1631HANDLE WINAPI WOWHandle32(WORD,WOW_HANDLE_TYPE);
1632BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1633BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1634#define WriteConsole WINELIB_NAME_AW(WriteConsole)
1635BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1636BOOL WINAPI WriteeFileEx(HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite,
1637 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1638DWORD WINAPI GetLastError(void);
1639LANGID WINAPI GetSystemDefaultLangID(void);
1640LCID WINAPI GetSystemDefaultLCID(void);
1641LANGID WINAPI GetUserDefaultLangID(void);
1642LCID WINAPI GetUserDefaultLCID(void);
1643ATOM WINAPI AddAtomA(LPCSTR);
1644ATOM WINAPI AddAtomW(LPCWSTR);
1645#define AddAtom WINELIB_NAME_AW(AddAtom)
1646UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
1647UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
1648#define CompareString WINELIB_NAME_AW(CompareString)
1649BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1650BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1651#define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1652BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1653BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1654#define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1655BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1656#define DefineHandleTable(w) ((w),TRUE)
1657ATOM WINAPI DeleteAtom(ATOM);
1658BOOL WINAPI DeleteFileA(LPCSTR);
1659BOOL WINAPI DeleteFileW(LPCWSTR);
1660#define DeleteFile WINELIB_NAME_AW(DeleteFile)
1661void WINAPI FatalAppExitA(UINT,LPCSTR);
1662void WINAPI FatalAppExitW(UINT,LPCWSTR);
1663#define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1664ATOM WINAPI FindAtomA(LPCSTR);
1665ATOM WINAPI FindAtomW(LPCWSTR);
1666#define FindAtom WINELIB_NAME_AW(FindAtom)
1667BOOL WINAPI FindClose(HANDLE);
1668HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1669HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1670#define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1671HANDLE WINAPI FindFirstFileMultiA(LPCSTR,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1672BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1673BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1674#define FindNextFile WINELIB_NAME_AW(FindNextFile)
1675BOOL WINAPI FindNextFileMultiA(HANDLE,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1676HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1677HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1678#define FindResource WINELIB_NAME_AW(FindResource)
1679VOID WINAPI FreeLibrary16(HINSTANCE16);
1680BOOL WINAPI FreeLibrary(HMODULE);
1681#define FreeModule(handle) FreeLibrary(handle)
1682#define FreeProcInstance(proc) /*nothing*/
1683BOOL WINAPI FreeResource(HGLOBAL);
1684UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1685UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1686#define GetAtomName WINELIB_NAME_AW(GetAtomName)
1687UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1688UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1689#define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1690BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1691BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1692#define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1693BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1694BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1695#define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1696UINT WINAPI GetDriveTypeA(LPCSTR);
1697UINT WINAPI GetDriveTypeW(LPCWSTR);
1698#define GetDriveType WINELIB_NAME_AW(GetDriveType)
1699DWORD WINAPI GetFileAttributesA(LPCSTR);
1700DWORD WINAPI GetFileAttributesW(LPCWSTR);
1701#define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1702#define GetFreeSpace(w) (0x100000L)
1703UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1704UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1705#define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1706INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1707INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1708#define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1709DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1710DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1711#define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1712HMODULE WINAPI GetModuleHandleA(LPCSTR);
1713HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1714#define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1715UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1716UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1717#define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1718INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1719INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1720#define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1721DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1722DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1723#define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1724INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1725INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1726#define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1727BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1728BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1729#define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1730FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1731UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1732UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1733#define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1734INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1735INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1736#define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1737INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1738INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1739#define GetProfileString WINELIB_NAME_AW(GetProfileString)
1740VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1741VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1742#define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1743BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1744BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
1745#define GetStringType WINELIB_NAME_AW(GetStringType)
1746UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1747UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1748#define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1749UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1750UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1751#define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1752UINT WINAPI GetTempPathA(UINT,LPSTR);
1753UINT WINAPI GetTempPathW(UINT,LPWSTR);
1754#define GetTempPath WINELIB_NAME_AW(GetTempPath)
1755LONG WINAPI GetVersion(void);
1756BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1757BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1758BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1759#define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1760UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1761UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1762#define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1763HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
1764HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1765DWORD WINAPI GlobalCompact(DWORD);
1766UINT WINAPI GlobalFlags(HGLOBAL);
1767HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
1768HGLOBAL WINAPI GlobalFree(HGLOBAL);
1769HGLOBAL WINAPI GlobalHandle(LPCVOID);
1770WORD WINAPI GlobalFix16(HGLOBAL16);
1771VOID WINAPI GlobalFix(HGLOBAL);
1772LPVOID WINAPI GlobalLock16(HGLOBAL16);
1773LPVOID WINAPI GlobalLock(HGLOBAL);
1774HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1775DWORD WINAPI GlobalSize16(HGLOBAL16);
1776DWORD WINAPI GlobalSize(HGLOBAL);
1777VOID WINAPI GlobalUnfix16(HGLOBAL16);
1778VOID WINAPI GlobalUnfix(HGLOBAL);
1779BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
1780BOOL WINAPI GlobalUnlock(HGLOBAL);
1781BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
1782BOOL WINAPI GlobalUnWire(HGLOBAL);
1783SEGPTR WINAPI GlobalWire16(HGLOBAL16);
1784LPVOID WINAPI GlobalWire(HGLOBAL);
1785BOOL WINAPI InitAtomTable(DWORD);
1786BOOL WINAPI IsBadCodePtr(FARPROC);
1787BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1788BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1789BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1790BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1791BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1792#define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1793BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1794BOOL WINAPI IsDBCSLeadByte(BYTE);
1795HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
1796HMODULE WINAPI LoadLibraryA(LPCSTR);
1797HMODULE WINAPI LoadLibraryW(LPCWSTR);
1798#define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1799HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
1800HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
1801#define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1802HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
1803HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1804HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1805HLOCAL WINAPI LocalAlloc(UINT,DWORD);
1806UINT WINAPI LocalCompact(UINT);
1807UINT WINAPI LocalFlags(HLOCAL);
1808HLOCAL WINAPI LocalFree(HLOCAL);
1809HLOCAL WINAPI LocalHandle(LPCVOID);
1810LPVOID WINAPI LocalLock(HLOCAL);
1811HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
1812UINT WINAPI LocalShrink(HGLOBAL,UINT);
1813UINT WINAPI LocalSize(HLOCAL);
1814BOOL WINAPI LocalUnlock(HLOCAL);
1815LPVOID WINAPI LockResource(HGLOBAL);
1816#define UnlockResource(hResData) ((hResData), 0)
1817
1818#define LockSegment(handle) GlobalFix((HANDLE)(handle))
1819#define MakeProcInstance(proc,inst) (proc)
1820HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
1821HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1822VOID WINAPI OutputDebugStringA(LPCSTR);
1823VOID WINAPI OutputDebugStringW(LPCWSTR);
1824#define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1825BOOL WINAPI RemoveDirectoryA(LPCSTR);
1826BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1827#define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1828BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1829BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1830#define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1831UINT WINAPI SetErrorMode(UINT);
1832BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1833BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1834#define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1835UINT WINAPI SetHandleCount(UINT);
1836#define SetSwapAreaSize(w) (w)
1837BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
1838BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
1839#define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1840DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1841#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1842DWORD WINAPI VerLanguageNameA(DWORD,LPSTR,DWORD);
1843DWORD WINAPI VerLanguageNameW(DWORD,LPWSTR,DWORD);
1844#define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
1845BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1846BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1847#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1848BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
1849BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
1850#define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
1851BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
1852BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
1853#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
1854BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1855BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1856#define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
1857BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
1858BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
1859#define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
1860#define Yield32()
1861LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
1862LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
1863#define lstrcat WINELIB_NAME_AW(lstrcat)
1864LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
1865LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
1866#define lstrcpy WINELIB_NAME_AW(lstrcpy)
1867LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
1868LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
1869#define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
1870INT WINAPI lstrlenA(LPCSTR);
1871INT WINAPI lstrlenW(LPCWSTR);
1872#define lstrlen WINELIB_NAME_AW(lstrlen)
1873HINSTANCE WINAPI WinExec(LPCSTR,UINT);
1874LONG WINAPI _hread(HFILE,LPVOID,LONG);
1875LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
1876HFILE WINAPI _lcreat(LPCSTR,INT);
1877HFILE WINAPI _lclose(HFILE);
1878LONG WINAPI _llseek(HFILE,LONG,INT);
1879HFILE WINAPI _lopen(LPCSTR,INT);
1880UINT WINAPI _lread(HFILE,LPVOID,UINT);
1881UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
1882SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
1883INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
1884INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
1885#define lstrcmp WINELIB_NAME_AW(lstrcmp)
1886INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
1887INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
1888#define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
1889
1890VOID WINAPI SetLastError(DWORD);
1891
1892
1893#ifdef __cplusplus
1894}
1895#endif
1896
1897#endif /* __WINE_WINBASE_H */
Note: See TracBrowser for help on using the repository browser.