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

Last change on this file since 8426 was 8426, checked in by sandervl, 23 years ago

header updates

File size: 107.2 KB
Line 
1#ifndef __WINE_WINBASE_H
2#define __WINE_WINBASE_H
3
4#include "winnt.h"
5
6#include "pshpack1.h"
7
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct tagCOORD {
14 INT16 x;
15 INT16 y;
16} COORD, *LPCOORD;
17
18
19 /* Windows Exit Procedure flag values */
20#define WEP_FREE_DLL 0
21#define WEP_SYSTEM_EXIT 1
22
23typedef DWORD (* CALLBACK LPTHREAD_START_ROUTINE)(LPVOID);
24
25/* This is also defined in winnt.h */
26/* typedef struct _EXCEPTION_RECORD {
27 DWORD ExceptionCode;
28 DWORD ExceptionFlags;
29 struct _EXCEPTION_RECORD *ExceptionRecord;
30 LPVOID ExceptionAddress;
31 DWORD NumberParameters;
32 DWORD ExceptionInformation[15];
33} EXCEPTION_RECORD; */
34
35typedef struct _EXCEPTION_DEBUG_INFO {
36/* EXCEPTION_RECORD ExceptionRecord; */
37 DWORD dwFirstChange;
38} EXCEPTION_DEBUG_INFO;
39
40typedef struct _CREATE_THREAD_DEBUG_INFO {
41 HANDLE hThread;
42 LPVOID lpThreadLocalBase;
43 LPTHREAD_START_ROUTINE lpStartAddress;
44} CREATE_THREAD_DEBUG_INFO;
45
46typedef struct _CREATE_PROCESS_DEBUG_INFO {
47 HANDLE hFile;
48 HANDLE hProcess;
49 HANDLE hThread;
50 LPVOID lpBaseOfImage;
51 DWORD dwDebugInfoFileOffset;
52 DWORD nDebugInfoSize;
53 LPVOID lpThreadLocalBase;
54 LPTHREAD_START_ROUTINE lpStartAddress;
55 LPVOID lpImageName;
56 WORD fUnicode;
57} CREATE_PROCESS_DEBUG_INFO;
58
59typedef struct _EXIT_THREAD_DEBUG_INFO {
60 DWORD dwExitCode;
61} EXIT_THREAD_DEBUG_INFO;
62
63typedef struct _EXIT_PROCESS_DEBUG_INFO {
64 DWORD dwExitCode;
65} EXIT_PROCESS_DEBUG_INFO;
66
67typedef struct _LOAD_DLL_DEBUG_INFO {
68 HANDLE hFile;
69 LPVOID lpBaseOfDll;
70 DWORD dwDebugInfoFileOffset;
71 DWORD nDebugInfoSize;
72 LPVOID lpImageName;
73 WORD fUnicode;
74} LOAD_DLL_DEBUG_INFO;
75
76typedef struct _UNLOAD_DLL_DEBUG_INFO {
77 LPVOID lpBaseOfDll;
78} UNLOAD_DLL_DEBUG_INFO;
79
80typedef struct _OUTPUT_DEBUG_STRING_INFO {
81 LPSTR lpDebugStringData;
82 WORD fUnicode;
83 WORD nDebugStringLength;
84} OUTPUT_DEBUG_STRING_INFO;
85
86typedef struct _RIP_INFO {
87 DWORD dwError;
88 DWORD dwType;
89} RIP_INFO;
90
91typedef struct _DEBUG_EVENT {
92 DWORD dwDebugEventCode;
93 DWORD dwProcessId;
94 DWORD dwThreadId;
95 union {
96 EXCEPTION_DEBUG_INFO Exception;
97 CREATE_THREAD_DEBUG_INFO CreateThread;
98 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo;
99 EXIT_THREAD_DEBUG_INFO ExitThread;
100 EXIT_PROCESS_DEBUG_INFO ExitProcess;
101 LOAD_DLL_DEBUG_INFO LoadDll;
102 UNLOAD_DLL_DEBUG_INFO UnloadDll;
103 OUTPUT_DEBUG_STRING_INFO DebugString;
104 RIP_INFO RipInfo;
105 } u;
106} DEBUG_EVENT, *LPDEBUG_EVENT;
107
108#define EXCEPTION_DEBUG_EVENT 1
109#define CREATE_THREAD_DEBUG_EVENT 2
110#define CREATE_PROCESS_DEBUG_EVENT 3
111#define EXIT_THREAD_DEBUG_EVENT 4
112#define EXIT_PROCESS_DEBUG_EVENT 5
113#define LOAD_DLL_DEBUG_EVENT 6
114#define UNLOAD_DLL_DEBUG_EVENT 7
115#define OUTPUT_DEBUG_STRING_EVENT 8
116#define RIP_EVENT 9
117
118#define OFS_MAXPATHNAME 128
119typedef struct
120{
121 BYTE cBytes;
122 BYTE fFixedDisk;
123 WORD nErrCode;
124 BYTE reserved[4];
125 BYTE szPathName[OFS_MAXPATHNAME];
126} OFSTRUCT, *LPOFSTRUCT;
127
128#define OF_READ 0x0000
129#define OF_WRITE 0x0001
130#define OF_READWRITE 0x0002
131#define OF_SHARE_COMPAT 0x0000
132#define OF_SHARE_EXCLUSIVE 0x0010
133#define OF_SHARE_DENY_WRITE 0x0020
134#define OF_SHARE_DENY_READ 0x0030
135#define OF_SHARE_DENY_NONE 0x0040
136#define OF_PARSE 0x0100
137#define OF_DELETE 0x0200
138#define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
139#define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
140#define OF_CANCEL 0x0800
141#define OF_CREATE 0x1000
142#define OF_PROMPT 0x2000
143#define OF_EXIST 0x4000
144#define OF_REOPEN 0x8000
145
146/* SetErrorMode values */
147#define SEM_FAILCRITICALERRORS 0x0001
148#define SEM_NOGPFAULTERRORBOX 0x0002
149#define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
150#define SEM_NOOPENFILEERRORBOX 0x8000
151
152/* CopyFileEx flags */
153#define COPY_FILE_FAIL_IF_EXISTS 0x00000001
154#define COPY_FILE_RESTARTABLE 0x00000002
155#define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
156
157/* GetTempFileName() Flags */
158#define TF_FORCEDRIVE 0x80
159
160
161#define DRIVE_UNKNOWN 0
162#define DRIVE_NO_ROOT_DIR 1
163#define DRIVE_CANNOTDETERMINE 0
164#define DRIVE_DOESNOTEXIST 1
165#define DRIVE_REMOVABLE 2
166#define DRIVE_FIXED 3
167#define DRIVE_REMOTE 4
168/* Win32 additions */
169#define DRIVE_CDROM 5
170#define DRIVE_RAMDISK 6
171
172/* The security attributes structure */
173typedef struct
174{
175 DWORD nLength;
176 LPVOID lpSecurityDescriptor;
177 BOOL bInheritHandle;
178} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
179
180#ifndef _FILETIME_
181#define _FILETIME_
182/* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
183typedef struct
184{
185 DWORD dwLowDateTime;
186 DWORD dwHighDateTime;
187} FILETIME, *LPFILETIME;
188#endif /* _FILETIME_ */
189
190/* Find* structures */
191typedef struct
192{
193 DWORD dwFileAttributes;
194 FILETIME ftCreationTime;
195 FILETIME ftLastAccessTime;
196 FILETIME ftLastWriteTime;
197 DWORD nFileSizeHigh;
198 DWORD nFileSizeLow;
199 DWORD dwReserved0;
200 DWORD dwReserved1;
201 CHAR cFileName[260];
202 CHAR cAlternateFileName[14];
203} WIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
204
205typedef struct
206{
207 DWORD dwFileAttributes;
208 FILETIME ftCreationTime;
209 FILETIME ftLastAccessTime;
210 FILETIME ftLastWriteTime;
211 DWORD nFileSizeHigh;
212 DWORD nFileSizeLow;
213 DWORD dwReserved0;
214 DWORD dwReserved1;
215 WCHAR cFileName[260];
216 WCHAR cAlternateFileName[14];
217} WIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
218
219DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
220DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
221
222typedef enum _FINDEX_INFO_LEVELS
223{
224 FindExInfoStandard,
225 FindExInfoMaxInfoLevel
226} FINDEX_INFO_LEVELS;
227
228typedef enum _FINDEX_SEARCH_OPS
229{
230 FindExSearchNameMatch,
231 FindExSearchLimitToDirectories,
232 FindExSearchLimitToDevices,
233 FindExSearchMaxSearchOp
234} FINDEX_SEARCH_OPS;
235
236typedef struct
237{
238 LPVOID lpData;
239 DWORD cbData;
240 BYTE cbOverhead;
241 BYTE iRegionIndex;
242 WORD wFlags;
243 union {
244 struct {
245 HANDLE hMem;
246 DWORD dwReserved[3];
247 } Block;
248 struct {
249 DWORD dwCommittedSize;
250 DWORD dwUnCommittedSize;
251 LPVOID lpFirstBlock;
252 LPVOID lpLastBlock;
253 } Region;
254 } DUMMYUNIONNAME;
255} PROCESS_HEAP_ENTRY, *PPROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY;
256
257#define PROCESS_HEAP_REGION 0x0001
258#define PROCESS_HEAP_UNCOMMITTED_RANGE 0x0002
259#define PROCESS_HEAP_ENTRY_BUSY 0x0004
260#define PROCESS_HEAP_ENTRY_MOVEABLE 0x0010
261#define PROCESS_HEAP_ENTRY_DDESHARE 0x0020
262
263#define INVALID_HANDLE_VALUE16 ((HANDLE16) -1)
264#define INVALID_HANDLE_VALUE ((HANDLE) -1)
265
266/* comm */
267
268/*
269 Serial provider type
270 */
271#define SP_SERIALCOMM ((DWORD)0x00000001)
272/*
273 Provider SubTypes
274 */
275#define PST_UNSPECIFIED ((DWORD)0x00000000)
276#define PST_RS232 ((DWORD)0x00000001)
277#define PST_PARALLELPORT ((DWORD)0x00000002)
278#define PST_RS422 ((DWORD)0x00000003)
279#define PST_RS423 ((DWORD)0x00000004)
280#define PST_RS449 ((DWORD)0x00000005)
281#define PST_MODEM ((DWORD)0x00000006)
282#define PST_FAX ((DWORD)0x00000021)
283#define PST_SCANNER ((DWORD)0x00000022)
284#define PST_NETWORK_BRIDGE ((DWORD)0x00000100)
285#define PST_LAT ((DWORD)0x00000101)
286#define PST_TCPIP_TELNET ((DWORD)0x00000102)
287#define PST_X25 ((DWORD)0x00000103)
288/*
289 Provider Caps
290 */
291#define PCF_DTRDSR ((DWORD)0x00000001)
292#define PCF_RTSCTS ((DWORD)0x00000002)
293#define PCF_RLSD ((DWORD)0x00000004)
294#define PCF_PARITY_CHECK ((DWORD)0x00000008)
295#define PCF_XONXOFF ((DWORD)0x00000010)
296#define PCF_SETXCHAR ((DWORD)0x00000020)
297#define PCF_TOTALTIMEOUTS ((DWORD)0x00000040)
298#define PCF_INITTIMEOUTS ((DWORD)0x00000080)
299#define PCF_SPECIALCHARS ((DWORD)0x00000100)
300#define PCF_16BITMODE ((DWORD)0x00000200)
301
302/*
303 Provider setable parameters
304 */
305#define SP_PARITY ((DWORD)0x00000001)
306#define SP_BAUD ((DWORD)0x00000002)
307#define SP_DATABITS ((DWORD)0x00000004)
308#define SP_STOPBIT ((DWORD)0x00000008)
309#define SP_HANDSHAKEING ((DWORD)0x00000010)
310#define SP_PARITY_CHECK ((DWORD)0x00000020)
311#define SP_RLSD ((DWORD)0x00000040)
312/*
313 Settable baudrates in the provider
314*/
315#define BAUD_075 ((DWORD)0x00000001)
316#define BAUD_110 ((DWORD)0x00000002)
317#define BAUD_134_5 ((DWORD)0x00000004)
318#define BAUD_150 ((DWORD)0x00000008)
319#define BAUD_300 ((DWORD)0x00000010)
320#define BAUD_600 ((DWORD)0x00000020)
321#define BAUD_1200 ((DWORD)0x00000040)
322#define BAUD_1800 ((DWORD)0x00000080)
323#define BAUD_2400 ((DWORD)0x00000100)
324#define BAUD_4800 ((DWORD)0x00000200)
325#define BAUD_7200 ((DWORD)0x00000400)
326#define BAUD_9600 ((DWORD)0x00000800)
327#define BAUD_14400 ((DWORD)0x00001000)
328#define BAUD_19200 ((DWORD)0x00002000)
329#define BAUD_38400 ((DWORD)0x00004000)
330#define BAUD_56K ((DWORD)0x00008000)
331#define BAUD_128K ((DWORD)0x00010000)
332#define BAUD_115200 ((DWORD)0x00020000)
333#define BAUD_57600 ((DWORD)0x00040000)
334#define BAUD_USER ((DWORD)0x10000000)
335
336/*
337 Setable Databits
338 */
339#define DATABITS_5 ((DWORD)0x00000001)
340#define DATABITS_6 ((DWORD)0x00000002)
341#define DATABITS_7 ((DWORD)0x00000004)
342#define DATABITS_8 ((DWORD)0x00000008)
343#define DATABITS_16 ((DWORD)0x00000010)
344#define DATABITS_16X ((DWORD)0x00000020)
345
346/*
347 Setable Stop and Parity Bits
348 */
349
350#define STOPBITS_10 ((DWORD)0x00000001)
351#define STOPBITS_15 ((DWORD)0x00000002)
352#define STOPBITS_20 ((DWORD)0x00000004)
353#define PARITY_NONE ((DWORD)0x00000100)
354#define PARITY_ODD ((DWORD)0x00000200)
355#define PARITY_EVEN ((DWORD)0x00000400)
356#define PARITY_MARK ((DWORD)0x00000800)
357#define PARITY_SPACE ((DWORD)0x00001000)
358
359#define CBR_110 110
360#define CBR_300 300
361#define CBR_600 600
362#define CBR_1200 1200
363#define CBR_2400 2400
364#define CBR_4800 4800
365#define CBR_9600 9600
366#define CBR_14400 14400
367#define CBR_19200 19200
368#define CBR_38400 38400
369#define CBR_56000 56000
370#define CBR_57600 57600
371#define CBR_115200 115200
372#define CBR_128000 128000
373#define CBR_256000 256000
374
375#define NOPARITY 0
376#define ODDPARITY 1
377#define EVENPARITY 2
378#define MARKPARITY 3
379#define SPACEPARITY 4
380#define ONESTOPBIT 0
381#define ONE5STOPBITS 1
382#define TWOSTOPBITS 2
383
384#define IGNORE 0
385#define INFINITE16 0xFFFF
386#define INFINITE 0xFFFFFFFF
387
388#define CE_RXOVER 0x0001
389#define CE_OVERRUN 0x0002
390#define CE_RXPARITY 0x0004
391#define CE_FRAME 0x0008
392#define CE_BREAK 0x0010
393#define CE_CTSTO 0x0020
394#define CE_DSRTO 0x0040
395#define CE_RLSDTO 0x0080
396#define CE_TXFULL 0x0100
397#define CE_PTO 0x0200
398#define CE_IOE 0x0400
399#define CE_DNS 0x0800
400#define CE_OOP 0x1000
401#define CE_MODE 0x8000
402
403#define IE_BADID -1
404#define IE_OPEN -2
405#define IE_NOPEN -3
406#define IE_MEMORY -4
407#define IE_DEFAULT -5
408#define IE_HARDWARE -10
409#define IE_BYTESIZE -11
410#define IE_BAUDRATE -12
411
412#define EV_RXCHAR 0x0001
413#define EV_RXFLAG 0x0002
414#define EV_TXEMPTY 0x0004
415#define EV_CTS 0x0008
416#define EV_DSR 0x0010
417#define EV_RLSD 0x0020
418#define EV_BREAK 0x0040
419#define EV_ERR 0x0080
420#define EV_RING 0x0100
421#define EV_PERR 0x0200
422#define EV_CTSS 0x0400
423#define EV_DSRS 0x0800
424#define EV_RLSDS 0x1000
425#define EV_RINGTE 0x2000
426#define EV_RingTe EV_RINGTE
427
428#define SETXOFF 1
429#define SETXON 2
430#define SETRTS 3
431#define CLRRTS 4
432#define SETDTR 5
433#define CLRDTR 6
434#define RESETDEV 7
435#define SETBREAK 8
436#define CLRBREAK 9
437
438#define GETBASEIRQ 10
439
440/* Purge functions for Comm Port */
441#define PURGE_TXABORT 0x0001 /* Kill the pending/current writes to the
442 comm port */
443#define PURGE_RXABORT 0x0002 /*Kill the pending/current reads to
444 the comm port */
445#define PURGE_TXCLEAR 0x0004 /* Kill the transmit queue if there*/
446#define PURGE_RXCLEAR 0x0008 /* Kill the typeahead buffer if there*/
447
448
449/* Modem Status Flags */
450#define MS_CTS_ON ((DWORD)0x0010)
451#define MS_DSR_ON ((DWORD)0x0020)
452#define MS_RING_ON ((DWORD)0x0040)
453#define MS_RLSD_ON ((DWORD)0x0080)
454
455#define RTS_CONTROL_DISABLE 0
456#define RTS_CONTROL_ENABLE 1
457#define RTS_CONTROL_HANDSHAKE 2
458#define RTS_CONTROL_TOGGLE 3
459
460#define DTR_CONTROL_DISABLE 0
461#define DTR_CONTROL_ENABLE 1
462#define DTR_CONTROL_HANDSHAKE 2
463
464#define CSTF_CTSHOLD 0x01
465#define CSTF_DSRHOLD 0x02
466#define CSTF_RLSDHOLD 0x04
467#define CSTF_XOFFHOLD 0x08
468#define CSTF_XOFFSENT 0x10
469#define CSTF_EOF 0x20
470#define CSTF_TXIM 0x40
471
472#define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
473#define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
474#define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
475
476/* Predefined resource types */
477#define RT_CURSORA MAKEINTRESOURCEA(1)
478#define RT_CURSORW MAKEINTRESOURCEW(1)
479#define RT_CURSOR WINELIB_NAME_AW(RT_CURSOR)
480#define RT_BITMAPA MAKEINTRESOURCEA(2)
481#define RT_BITMAPW MAKEINTRESOURCEW(2)
482#define RT_BITMAP WINELIB_NAME_AW(RT_BITMAP)
483#define RT_ICONA MAKEINTRESOURCEA(3)
484#define RT_ICONW MAKEINTRESOURCEW(3)
485#define RT_ICON WINELIB_NAME_AW(RT_ICON)
486#define RT_MENUA MAKEINTRESOURCEA(4)
487#define RT_MENUW MAKEINTRESOURCEW(4)
488#define RT_MENU WINELIB_NAME_AW(RT_MENU)
489#define RT_DIALOGA MAKEINTRESOURCEA(5)
490#define RT_DIALOGW MAKEINTRESOURCEW(5)
491#define RT_DIALOG WINELIB_NAME_AW(RT_DIALOG)
492#define RT_STRINGA MAKEINTRESOURCEA(6)
493#define RT_STRINGW MAKEINTRESOURCEW(6)
494#define RT_STRING WINELIB_NAME_AW(RT_STRING)
495#define RT_FONTDIRA MAKEINTRESOURCEA(7)
496#define RT_FONTDIRW MAKEINTRESOURCEW(7)
497#define RT_FONTDIR WINELIB_NAME_AW(RT_FONTDIR)
498#define RT_FONTA MAKEINTRESOURCEA(8)
499#define RT_FONTW MAKEINTRESOURCEW(8)
500#define RT_FONT WINELIB_NAME_AW(RT_FONT)
501#define RT_ACCELERATORA MAKEINTRESOURCEA(9)
502#define RT_ACCELERATORW MAKEINTRESOURCEW(9)
503#define RT_ACCELERATOR WINELIB_NAME_AW(RT_ACCELERATOR)
504#define RT_RCDATAA MAKEINTRESOURCEA(10)
505#define RT_RCDATAW MAKEINTRESOURCEW(10)
506#define RT_RCDATA WINELIB_NAME_AW(RT_RCDATA)
507#define RT_MESSAGELISTA MAKEINTRESOURCEA(11)
508#define RT_MESSAGELISTW MAKEINTRESOURCEW(11)
509#define RT_MESSAGELIST WINELIB_NAME_AW(RT_MESSAGELIST)
510#define RT_GROUP_CURSORA MAKEINTRESOURCEA(12)
511#define RT_GROUP_CURSORW MAKEINTRESOURCEW(12)
512#define RT_GROUP_CURSOR WINELIB_NAME_AW(RT_GROUP_CURSOR)
513#define RT_GROUP_ICONA MAKEINTRESOURCEA(14)
514#define RT_GROUP_ICONW MAKEINTRESOURCEW(14)
515#define RT_GROUP_ICON WINELIB_NAME_AW(RT_GROUP_ICON)
516
517
518#define LMEM_FIXED 0
519#define LMEM_MOVEABLE 0x0002
520#define LMEM_NOCOMPACT 0x0010
521#define LMEM_NODISCARD 0x0020
522#define LMEM_ZEROINIT 0x0040
523#define LMEM_MODIFY 0x0080
524#define LMEM_DISCARDABLE 0x0F00
525#define LMEM_DISCARDED 0x4000
526#define LMEM_LOCKCOUNT 0x00FF
527#define LMEM_INVALID_HANDLE 0x8000
528
529#define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT)
530#define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
531
532#define NONZEROLHND (LMEM_MOVEABLE)
533#define NONZEROLPTR (LMEM_FIXED)
534
535#define GMEM_FIXED 0x0000
536#define GMEM_MOVEABLE 0x0002
537#define GMEM_NOCOMPACT 0x0010
538#define GMEM_NODISCARD 0x0020
539#define GMEM_ZEROINIT 0x0040
540#define GMEM_MODIFY 0x0080
541#define GMEM_DISCARDABLE 0x0100
542#define GMEM_NOT_BANKED 0x1000
543#define GMEM_SHARE 0x2000
544#define GMEM_DDESHARE 0x2000
545#define GMEM_NOTIFY 0x4000
546#define GMEM_LOWER GMEM_NOT_BANKED
547#define GMEM_DISCARDED 0x4000
548#define GMEM_LOCKCOUNT 0x00ff
549#define GMEM_INVALID_HANDLE 0x8000
550
551#define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
552#define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
553
554
555typedef struct tagMEMORYSTATUS
556{
557 DWORD dwLength;
558 DWORD dwMemoryLoad;
559 DWORD dwTotalPhys;
560 DWORD dwAvailPhys;
561 DWORD dwTotalPageFile;
562 DWORD dwAvailPageFile;
563 DWORD dwTotalVirtual;
564 DWORD dwAvailVirtual;
565} MEMORYSTATUS, *LPMEMORYSTATUS;
566
567
568//
569// Define the NamedPipe definitions
570//
571
572
573//
574// Define the dwOpenMode values for CreateNamedPipe
575//
576
577#define PIPE_ACCESS_INBOUND 0x00000001
578#define PIPE_ACCESS_OUTBOUND 0x00000002
579#define PIPE_ACCESS_DUPLEX 0x00000003
580
581//
582// Define the Named Pipe End flags for GetNamedPipeInfo
583//
584
585#define PIPE_CLIENT_END 0x00000000
586#define PIPE_SERVER_END 0x00000001
587
588//
589// Define the dwPipeMode values for CreateNamedPipe
590//
591
592#define PIPE_WAIT 0x00000000
593#define PIPE_NOWAIT 0x00000001
594#define PIPE_READMODE_BYTE 0x00000000
595#define PIPE_READMODE_MESSAGE 0x00000002
596#define PIPE_TYPE_BYTE 0x00000000
597#define PIPE_TYPE_MESSAGE 0x00000004
598
599//
600// Define the well known values for CreateNamedPipe nMaxInstances
601//
602
603#define PIPE_UNLIMITED_INSTANCES 255
604
605#define NMPWAIT_WAIT_FOREVER 0xffffffff
606#define NMPWAIT_NOWAIT 0x00000001
607#define NMPWAIT_USE_DEFAULT_WAIT 0x00000000
608
609#ifndef NOLOGERROR
610
611/* LogParamError and LogError values */
612
613/* Error modifier bits */
614#define ERR_WARNING 0x8000
615#define ERR_PARAM 0x4000
616
617#define ERR_SIZE_MASK 0x3000
618#define ERR_BYTE 0x1000
619#define ERR_WORD 0x2000
620#define ERR_DWORD 0x3000
621
622/* LogParamError() values */
623
624/* Generic parameter values */
625#define ERR_BAD_VALUE 0x6001
626#define ERR_BAD_FLAGS 0x6002
627#define ERR_BAD_INDEX 0x6003
628#define ERR_BAD_DVALUE 0x7004
629#define ERR_BAD_DFLAGS 0x7005
630#define ERR_BAD_DINDEX 0x7006
631#define ERR_BAD_PTR 0x7007
632#define ERR_BAD_FUNC_PTR 0x7008
633#define ERR_BAD_SELECTOR 0x6009
634#define ERR_BAD_STRING_PTR 0x700a
635#define ERR_BAD_HANDLE 0x600b
636
637/* KERNEL parameter errors */
638#define ERR_BAD_HINSTANCE 0x6020
639#define ERR_BAD_HMODULE 0x6021
640#define ERR_BAD_GLOBAL_HANDLE 0x6022
641#define ERR_BAD_LOCAL_HANDLE 0x6023
642#define ERR_BAD_ATOM 0x6024
643#define ERR_BAD_HFILE 0x6025
644
645/* USER parameter errors */
646#define ERR_BAD_HWND 0x6040
647#define ERR_BAD_HMENU 0x6041
648#define ERR_BAD_HCURSOR 0x6042
649#define ERR_BAD_HICON 0x6043
650#define ERR_BAD_HDWP 0x6044
651#define ERR_BAD_CID 0x6045
652#define ERR_BAD_HDRVR 0x6046
653
654/* GDI parameter errors */
655#define ERR_BAD_COORDS 0x7060
656#define ERR_BAD_GDI_OBJECT 0x6061
657#define ERR_BAD_HDC 0x6062
658#define ERR_BAD_HPEN 0x6063
659#define ERR_BAD_HFONT 0x6064
660#define ERR_BAD_HBRUSH 0x6065
661#define ERR_BAD_HBITMAP 0x6066
662#define ERR_BAD_HRGN 0x6067
663#define ERR_BAD_HPALETTE 0x6068
664#define ERR_BAD_HMETAFILE 0x6069
665
666
667/* LogError() values */
668
669/* KERNEL errors */
670#define ERR_GALLOC 0x0001
671#define ERR_GREALLOC 0x0002
672#define ERR_GLOCK 0x0003
673#define ERR_LALLOC 0x0004
674#define ERR_LREALLOC 0x0005
675#define ERR_LLOCK 0x0006
676#define ERR_ALLOCRES 0x0007
677#define ERR_LOCKRES 0x0008
678#define ERR_LOADMODULE 0x0009
679
680/* USER errors */
681#define ERR_CREATEDLG 0x0040
682#define ERR_CREATEDLG2 0x0041
683#define ERR_REGISTERCLASS 0x0042
684#define ERR_DCBUSY 0x0043
685#define ERR_CREATEWND 0x0044
686#define ERR_STRUCEXTRA 0x0045
687#define ERR_LOADSTR 0x0046
688#define ERR_LOADMENU 0x0047
689#define ERR_NESTEDBEGINPAINT 0x0048
690#define ERR_BADINDEX 0x0049
691#define ERR_CREATEMENU 0x004a
692
693/* GDI errors */
694#define ERR_CREATEDC 0x0080
695#define ERR_CREATEMETA 0x0081
696#define ERR_DELOBJSELECTED 0x0082
697#define ERR_SELBITMAP 0x0083
698
699
700
701/* Debugging support (DEBUG SYSTEM ONLY) */
702typedef struct
703{
704 UINT16 flags;
705 DWORD dwOptions WINE_PACKED;
706 DWORD dwFilter WINE_PACKED;
707 CHAR achAllocModule[8] WINE_PACKED;
708 DWORD dwAllocBreak WINE_PACKED;
709 DWORD dwAllocCount WINE_PACKED;
710} WINDEBUGINFO, *LPWINDEBUGINFO;
711
712/* WINDEBUGINFO flags values */
713#define WDI_OPTIONS 0x0001
714#define WDI_FILTER 0x0002
715#define WDI_ALLOCBREAK 0x0004
716
717/* dwOptions values */
718#define DBO_CHECKHEAP 0x0001
719#define DBO_BUFFERFILL 0x0004
720#define DBO_DISABLEGPTRAPPING 0x0010
721#define DBO_CHECKFREE 0x0020
722
723#define DBO_SILENT 0x8000
724
725#define DBO_TRACEBREAK 0x2000
726#define DBO_WARNINGBREAK 0x1000
727#define DBO_NOERRORBREAK 0x0800
728#define DBO_NOFATALBREAK 0x0400
729#define DBO_INT3BREAK 0x0100
730
731/* DebugOutput flags values */
732#define DBF_TRACE 0x0000
733#define DBF_WARNING 0x4000
734#define DBF_ERROR 0x8000
735#define DBF_FATAL 0xc000
736
737/* dwFilter values */
738#define DBF_KERNEL 0x1000
739#define DBF_KRN_MEMMAN 0x0001
740#define DBF_KRN_LOADMODULE 0x0002
741#define DBF_KRN_SEGMENTLOAD 0x0004
742#define DBF_USER 0x0800
743#define DBF_GDI 0x0400
744#define DBF_MMSYSTEM 0x0040
745#define DBF_PENWIN 0x0020
746#define DBF_APPLICATION 0x0008
747#define DBF_DRIVER 0x0010
748
749#endif /* NOLOGERROR */
750
751typedef struct {
752 WORD wYear;
753 WORD wMonth;
754 WORD wDayOfWeek;
755 WORD wDay;
756 WORD wHour;
757 WORD wMinute;
758 WORD wSecond;
759 WORD wMilliseconds;
760} SYSTEMTIME, *LPSYSTEMTIME;
761
762
763/* The 'overlapped' data structure used by async I/O functions.
764 */
765typedef struct {
766 DWORD Internal;
767 DWORD InternalHigh;
768 DWORD Offset;
769 DWORD OffsetHigh;
770 HANDLE hEvent;
771} OVERLAPPED, *LPOVERLAPPED;
772
773typedef VOID (* WINAPI LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD dwErrorCode,
774 DWORD dwNumberOfBytesTransfered,
775 LPOVERLAPPED lpOverlapped);
776
777// LockFileEx flags
778
779#define LOCKFILE_FAIL_IMMEDIATELY 0x00000001
780#define LOCKFILE_EXCLUSIVE_LOCK 0x00000002
781
782
783/* Process startup information.
784 */
785
786/* STARTUPINFO.dwFlags */
787#define STARTF_USESHOWWINDOW 0x00000001
788#define STARTF_USESIZE 0x00000002
789#define STARTF_USEPOSITION 0x00000004
790#define STARTF_USECOUNTCHARS 0x00000008
791#define STARTF_USEFILLATTRIBUTE 0x00000010
792#define STARTF_RUNFULLSCREEN 0x00000020
793#define STARTF_FORCEONFEEDBACK 0x00000040
794#define STARTF_FORCEOFFFEEDBACK 0x00000080
795#define STARTF_USESTDHANDLES 0x00000100
796#define STARTF_USEHOTKEY 0x00000200
797
798typedef struct {
799 DWORD cb; /* 00: size of struct */
800 LPSTR lpReserved; /* 04: */
801 LPSTR lpDesktop; /* 08: */
802 LPSTR lpTitle; /* 0c: */
803 DWORD dwX; /* 10: */
804 DWORD dwY; /* 14: */
805 DWORD dwXSize; /* 18: */
806 DWORD dwYSize; /* 1c: */
807 DWORD dwXCountChars; /* 20: */
808 DWORD dwYCountChars; /* 24: */
809 DWORD dwFillAttribute; /* 28: */
810 DWORD dwFlags; /* 2c: */
811 WORD wShowWindow; /* 30: */
812 WORD cbReserved2; /* 32: */
813 BYTE *lpReserved2; /* 34: */
814 HANDLE hStdInput; /* 38: */
815 HANDLE hStdOutput; /* 3c: */
816 HANDLE hStdError; /* 40: */
817} STARTUPINFOA, *LPSTARTUPINFOA;
818
819typedef struct {
820 DWORD cb;
821 LPWSTR lpReserved;
822 LPWSTR lpDesktop;
823 LPWSTR lpTitle;
824 DWORD dwX;
825 DWORD dwY;
826 DWORD dwXSize;
827 DWORD dwYSize;
828 DWORD dwXCountChars;
829 DWORD dwYCountChars;
830 DWORD dwFillAttribute;
831 DWORD dwFlags;
832 WORD wShowWindow;
833 WORD cbReserved2;
834 BYTE *lpReserved2;
835 HANDLE hStdInput;
836 HANDLE hStdOutput;
837 HANDLE hStdError;
838} STARTUPINFOW, *LPSTARTUPINFOW;
839
840DECL_WINELIB_TYPE_AW(STARTUPINFO)
841DECL_WINELIB_TYPE_AW(LPSTARTUPINFO)
842
843typedef struct {
844 HANDLE hProcess;
845 HANDLE hThread;
846 DWORD dwProcessId;
847 DWORD dwThreadId;
848} PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
849
850typedef struct {
851 LONG Bias;
852 WCHAR StandardName[32];
853 SYSTEMTIME StandardDate;
854 LONG StandardBias;
855 WCHAR DaylightName[32];
856 SYSTEMTIME DaylightDate;
857 LONG DaylightBias;
858} TIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
859
860#define TIME_ZONE_ID_UNKNOWN 0
861#define TIME_ZONE_ID_STANDARD 1
862#define TIME_ZONE_ID_DAYLIGHT 2
863
864/* CreateProcess: dwCreationFlag values
865 */
866#define DEBUG_PROCESS 0x00000001
867#define DEBUG_ONLY_THIS_PROCESS 0x00000002
868#define CREATE_SUSPENDED 0x00000004
869#define DETACHED_PROCESS 0x00000008
870#define CREATE_NEW_CONSOLE 0x00000010
871#define NORMAL_PRIORITY_CLASS 0x00000020
872#define IDLE_PRIORITY_CLASS 0x00000040
873#define HIGH_PRIORITY_CLASS 0x00000080
874#define REALTIME_PRIORITY_CLASS 0x00000100
875#define CREATE_NEW_PROCESS_GROUP 0x00000200
876#define CREATE_UNICODE_ENVIRONMENT 0x00000400
877#define CREATE_SEPARATE_WOW_VDM 0x00000800
878#define CREATE_SHARED_WOW_VDM 0x00001000
879#define CREATE_DEFAULT_ERROR_MODE 0x04000000
880#define CREATE_NO_WINDOW 0x08000000
881#define PROFILE_USER 0x10000000
882#define PROFILE_KERNEL 0x20000000
883#define PROFILE_SERVER 0x40000000
884
885
886/* File object type definitions
887 */
888#define FILE_TYPE_UNKNOWN 0
889#define FILE_TYPE_DISK 1
890#define FILE_TYPE_CHAR 2
891#define FILE_TYPE_PIPE 3
892#define FILE_TYPE_REMOTE 32768
893
894/* File creation flags
895 */
896#define FILE_FLAG_WRITE_THROUGH 0x80000000UL
897#define FILE_FLAG_OVERLAPPED 0x40000000L
898#define FILE_FLAG_NO_BUFFERING 0x20000000L
899#define FILE_FLAG_RANDOM_ACCESS 0x10000000L
900#define FILE_FLAG_SEQUENTIAL_SCAN 0x08000000L
901#define FILE_FLAG_DELETE_ON_CLOSE 0x04000000L
902#define FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
903#define FILE_FLAG_POSIX_SEMANTICS 0x01000000L
904#define CREATE_NEW 1
905#define CREATE_ALWAYS 2
906#define OPEN_EXISTING 3
907#define OPEN_ALWAYS 4
908#define TRUNCATE_EXISTING 5
909
910/* Standard handle identifiers
911 */
912#define STD_INPUT_HANDLE ((DWORD) -10)
913#define STD_OUTPUT_HANDLE ((DWORD) -11)
914#define STD_ERROR_HANDLE ((DWORD) -12)
915
916typedef struct
917{
918 int dwFileAttributes;
919 FILETIME ftCreationTime;
920 FILETIME ftLastAccessTime;
921 FILETIME ftLastWriteTime;
922 int dwVolumeSerialNumber;
923 int nFileSizeHigh;
924 int nFileSizeLow;
925 int nNumberOfLinks;
926 int nFileIndexHigh;
927 int nFileIndexLow;
928} BY_HANDLE_FILE_INFORMATION ;
929
930
931/* Power Management functions */
932
933#define AC_LINE_OFFLINE 0x00
934#define AC_LINE_ONLINE 0x01
935#define AC_LINE_BACKUP_POWER 0x02
936#define AC_LINE_UNKNOWN 0xFF
937
938#define BATTERY_FLAG_HIGH 0x01
939#define BATTERY_FLAG_LOW 0x02
940#define BATTERY_FLAG_CRITICAL 0x04
941#define BATTERY_FLAG_CHARGING 0x08
942#define BATTERY_FLAG_NO_BATTERY 0x80
943#define BATTERY_FLAG_UNKNOWN 0xFF
944
945#define BATTERY_PERCENTAGE_UNKNOWN 0xFF
946
947#define BATTERY_LIFE_UNKNOWN 0xFFFFFFFF
948
949typedef struct _SYSTEM_POWER_STATUS {
950 BYTE ACLineStatus;
951 BYTE BatteryFlag;
952 BYTE BatteryLifePercent;
953 BYTE Reserved1;
954 DWORD BatteryLifeTime;
955 DWORD BatteryFullLifeTime;
956} SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
957
958
959typedef struct _MEMORY_BASIC_INFORMATION
960{
961 LPVOID BaseAddress;
962 LPVOID AllocationBase;
963 DWORD AllocationProtect;
964 DWORD RegionSize;
965 DWORD State;
966 DWORD Protect;
967 DWORD Type;
968} MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION;
969
970typedef struct tagSYSTEM_INFO
971{
972 union {
973 DWORD dwOemId;
974 struct {
975 WORD wProcessorArchitecture;
976 WORD wReserved;
977 } x;
978 } u;
979 DWORD dwPageSize;
980 LPVOID lpMinimumApplicationAddress;
981 LPVOID lpMaximumApplicationAddress;
982 DWORD dwActiveProcessorMask;
983 DWORD dwNumberOfProcessors;
984 DWORD dwProcessorType;
985 DWORD dwAllocationGranularity;
986 WORD wProcessorLevel;
987 WORD wProcessorRevision;
988} SYSTEM_INFO, *LPSYSTEM_INFO;
989
990/* {G,S}etPriorityClass */
991#define NORMAL_PRIORITY_CLASS 0x00000020
992#define IDLE_PRIORITY_CLASS 0x00000040
993#define HIGH_PRIORITY_CLASS 0x00000080
994#define REALTIME_PRIORITY_CLASS 0x00000100
995
996typedef BOOL (* CALLBACK ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG);
997typedef BOOL (* CALLBACK ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG);
998typedef BOOL (* CALLBACK ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG);
999typedef BOOL (* CALLBACK ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG);
1000typedef BOOL (* CALLBACK ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG);
1001typedef BOOL (* CALLBACK ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG);
1002
1003DECL_WINELIB_TYPE_AW(ENUMRESTYPEPROC)
1004DECL_WINELIB_TYPE_AW(ENUMRESNAMEPROC)
1005DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
1006
1007/* flags that can be passed to LoadLibraryEx */
1008#define DONT_RESOLVE_DLL_REFERENCES 0x00000001
1009#define LOAD_LIBRARY_AS_DATAFILE 0x00000002
1010#define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
1011
1012/* ifdef _x86_ ... */
1013typedef struct _LDT_ENTRY {
1014 WORD LimitLow;
1015 WORD BaseLow;
1016 union {
1017 struct {
1018 BYTE BaseMid;
1019 BYTE Flags1;/*Declare as bytes to avoid alignment problems */
1020 BYTE Flags2;
1021 BYTE BaseHi;
1022 } Bytes;
1023 struct {
1024 unsigned BaseMid : 8;
1025 unsigned Type : 5;
1026 unsigned Dpl : 2;
1027 unsigned Pres : 1;
1028 unsigned LimitHi : 4;
1029 unsigned Sys : 1;
1030 unsigned Reserved_0 : 1;
1031 unsigned Default_Big : 1;
1032 unsigned Granularity : 1;
1033 unsigned BaseHi : 8;
1034 } Bits;
1035 } HighWord;
1036} LDT_ENTRY, *LPLDT_ENTRY;
1037
1038
1039typedef enum _GET_FILEEX_INFO_LEVELS {
1040 GetFileExInfoStandard
1041} GET_FILEEX_INFO_LEVELS;
1042
1043typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
1044 DWORD dwFileAttributes;
1045 FILETIME ftCreationTime;
1046 FILETIME ftLastAccessTime;
1047 FILETIME ftLastWriteTime;
1048 DWORD nFileSizeHigh;
1049 DWORD nFileSizeLow;
1050} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
1051
1052typedef struct _DllVersionInfo {
1053 DWORD cbSize;
1054 DWORD dwMajorVersion;
1055 DWORD dwMinorVersion;
1056 DWORD dwBuildNumber;
1057 DWORD dwPlatformID;
1058} DLLVERSIONINFO;
1059
1060/*
1061 * This one seems to be a Win32 only definition. It also is defined with
1062 * WINAPI instead of CALLBACK in the windows headers.
1063 */
1064typedef DWORD (* WINAPI LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
1065 LARGE_INTEGER, DWORD, DWORD, HANDLE,
1066 HANDLE, LPVOID);
1067
1068
1069#define WAIT_FAILED 0xffffffff
1070#define WAIT_OBJECT_0 0
1071#define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
1072#define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
1073#define WAIT_IO_COMPLETION STATUS_USER_APC
1074#define WAIT_TIMEOUT STATUS_TIMEOUT
1075
1076#define PAGE_NOACCESS 0x01
1077#define PAGE_READONLY 0x02
1078#define PAGE_READWRITE 0x04
1079#define PAGE_WRITECOPY 0x08
1080#define PAGE_EXECUTE 0x10
1081#define PAGE_EXECUTE_READ 0x20
1082#define PAGE_EXECUTE_READWRITE 0x40
1083#define PAGE_EXECUTE_WRITECOPY 0x80
1084#define PAGE_GUARD 0x100
1085#define PAGE_NOCACHE 0x200
1086
1087#define MEM_COMMIT 0x00001000
1088#define MEM_RESERVE 0x00002000
1089#define MEM_DECOMMIT 0x00004000
1090#define MEM_RELEASE 0x00008000
1091#define MEM_FREE 0x00010000
1092#define MEM_PRIVATE 0x00020000
1093#define MEM_MAPPED 0x00040000
1094#define MEM_TOP_DOWN 0x00100000
1095
1096#define SEC_FILE 0x00800000
1097#define SEC_IMAGE 0x01000000
1098#define SEC_RESERVE 0x04000000
1099#define SEC_COMMIT 0x08000000
1100#define SEC_NOCACHE 0x10000000
1101
1102#define FILE_BEGIN 0
1103#define FILE_CURRENT 1
1104#define FILE_END 2
1105
1106#define FILE_CASE_SENSITIVE_SEARCH 0x00000001
1107#define FILE_CASE_PRESERVED_NAMES 0x00000002
1108#define FILE_UNICODE_ON_DISK 0x00000004
1109#define FILE_PERSISTENT_ACLS 0x00000008
1110
1111#define FILE_MAP_COPY 0x00000001
1112#define FILE_MAP_WRITE 0x00000002
1113#define FILE_MAP_READ 0x00000004
1114#define FILE_MAP_ALL_ACCESS 0x000f001f
1115
1116#define MOVEFILE_REPLACE_EXISTING 0x00000001
1117#define MOVEFILE_COPY_ALLOWED 0x00000002
1118#define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
1119
1120#define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
1121#define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
1122#define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
1123
1124
1125#define STATUS_SUCCESS 0x00000000
1126#define STATUS_WAIT_0 0x00000000
1127#define STATUS_ABANDONED_WAIT_0 0x00000080
1128#define STATUS_USER_APC 0x000000C0
1129#define STATUS_TIMEOUT 0x00000102
1130#define STATUS_PENDING 0x00000103
1131#define STATUS_GUARD_PAGE_VIOLATION 0x80000001
1132#define STATUS_DATATYPE_MISALIGNMENT 0x80000002
1133#define STATUS_BREAKPOINT 0x80000003
1134#define STATUS_SINGLE_STEP 0x80000004
1135#define STATUS_BUFFER_OVERFLOW 0x80000005
1136#define STATUS_ACCESS_VIOLATION 0xC0000005
1137#define STATUS_IN_PAGE_ERROR 0xC0000006
1138#define STATUS_INVALID_PARAMETER 0xC000000D
1139#define STATUS_NO_MEMORY 0xC0000017
1140#define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
1141#define STATUS_BUFFER_TOO_SMALL 0xC0000023
1142#define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
1143#define STATUS_INVALID_DISPOSITION 0xC0000026
1144#define STATUS_UNKNOWN_REVISION 0xC0000058
1145#define STATUS_INVALID_SECURITY_DESCR 0xC0000079
1146#define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
1147#define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
1148#define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
1149#define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
1150#define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
1151#define STATUS_FLOAT_OVERFLOW 0xC0000091
1152#define STATUS_FLOAT_STACK_CHECK 0xC0000092
1153#define STATUS_FLOAT_UNDERFLOW 0xC0000093
1154#define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
1155#define STATUS_INTEGER_OVERFLOW 0xC0000095
1156#define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
1157#define STATUS_INVALID_PARAMETER_2 0xC00000F0
1158#define STATUS_STACK_OVERFLOW 0xC00000FD
1159#define STATUS_CONTROL_C_EXIT 0xC000013A
1160
1161#define DUPLICATE_CLOSE_SOURCE 0x00000001
1162#define DUPLICATE_SAME_ACCESS 0x00000002
1163
1164#define HANDLE_FLAG_INHERIT 0x00000001
1165#define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
1166
1167#define HINSTANCE_ERROR 32
1168
1169#define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
1170#define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
1171#define THREAD_PRIORITY_NORMAL 0
1172#define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
1173#define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
1174#define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
1175#define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
1176#define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
1177
1178typedef struct
1179{
1180 int type;
1181} wine_exception;
1182
1183typedef struct
1184{
1185 int pad[39];
1186 int edi;
1187 int esi;
1188 int ebx;
1189 int edx;
1190 int ecx;
1191 int eax;
1192
1193 int ebp;
1194 int eip;
1195 int cs;
1196 int eflags;
1197 int esp;
1198 int ss;
1199} exception_info;
1200
1201/* Could this type be considered opaque? */
1202typedef struct {
1203 LPVOID DebugInfo;
1204 LONG LockCount;
1205 LONG RecursionCount;
1206 HANDLE OwningThread;
1207 HANDLE LockSemaphore;
1208 DWORD Reserved;
1209}CRITICAL_SECTION;
1210
1211#ifdef __WINE__
1212#define CRITICAL_SECTION_INIT { 0, -1, 0, 0, 0, 0 }
1213#endif
1214
1215typedef struct {
1216 DWORD dwOSVersionInfoSize;
1217 DWORD dwMajorVersion;
1218 DWORD dwMinorVersion;
1219 DWORD dwBuildNumber;
1220 DWORD dwPlatformId;
1221 CHAR szCSDVersion[128];
1222} OSVERSIONINFOA;
1223
1224typedef struct {
1225 DWORD dwOSVersionInfoSize;
1226 DWORD dwMajorVersion;
1227 DWORD dwMinorVersion;
1228 DWORD dwBuildNumber;
1229 DWORD dwPlatformId;
1230 WCHAR szCSDVersion[128];
1231} OSVERSIONINFOW;
1232
1233DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
1234
1235typedef struct _OSVERSIONINFOEXA {
1236 DWORD dwOSVersionInfoSize;
1237 DWORD dwMajorVersion;
1238 DWORD dwMinorVersion;
1239 DWORD dwBuildNumber;
1240 DWORD dwPlatformId;
1241 CHAR szCSDVersion[128];
1242 WORD wServicePackMajor;
1243 WORD wServicePackMinor;
1244 WORD wReserved[2];
1245} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
1246typedef struct _OSVERSIONINFOEXW {
1247 DWORD dwOSVersionInfoSize;
1248 DWORD dwMajorVersion;
1249 DWORD dwMinorVersion;
1250 DWORD dwBuildNumber;
1251 DWORD dwPlatformId;
1252 WCHAR szCSDVersion[128];
1253 WORD wServicePackMajor;
1254 WORD wServicePackMinor;
1255 WORD wReserved[2];
1256} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW;
1257
1258DECL_WINELIB_TYPE_AW(OSVERSIONINFOEX)
1259DECL_WINELIB_TYPE_AW(POSVERSIONINFOEX)
1260DECL_WINELIB_TYPE_AW(LPOSVERSIONINFOEX)
1261
1262#define VER_PLATFORM_WIN32s 0
1263#define VER_PLATFORM_WIN32_WINDOWS 1
1264#define VER_PLATFORM_WIN32_NT 2
1265
1266typedef struct _COMMPROP {
1267 WORD wPacketLength;
1268 WORD wPacketVersion;
1269 DWORD dwServiceMask;
1270 DWORD dwReserved1;
1271 DWORD dwMaxTxQueue;
1272 DWORD dwMaxRxQueue;
1273 DWORD dwMaxBaud;
1274 DWORD dwProvSubType;
1275 DWORD dwProvCapabilities;
1276 DWORD dwSettableParams;
1277 DWORD dwSettableBaud;
1278 WORD wSettableData;
1279 WORD wSettableStopParity;
1280 DWORD dwCurrentTxQueue;
1281 DWORD dwCurrentRxQueue;
1282 DWORD dwProvSpec1;
1283 DWORD dwProvSpec2;
1284 WCHAR wcProvChar[1];
1285} COMMPROP,*LPCOMMPROP;
1286
1287typedef struct tagCOMSTAT
1288{
1289 // DWORD status; // maybe make this a union ??
1290 unsigned fCtsHold:1;
1291 unsigned fDsrHold:1;
1292 unsigned fRlsdHold:1;
1293 unsigned fXoffHold:1;
1294 unsigned fXoffSend:1;
1295 unsigned fEof:1;
1296 unsigned fTxim:1;
1297 unsigned fReserved:25;
1298 DWORD cbInQue;
1299 DWORD cbOutQue;
1300} COMSTAT,*LPCOMSTAT;
1301
1302typedef struct tagDCB
1303{
1304 DWORD DCBlength;
1305 DWORD BaudRate;
1306 unsigned fBinary :1;
1307 unsigned fParity :1;
1308 unsigned fOutxCtsFlow :1;
1309 unsigned fOutxDsrFlow :1;
1310 unsigned fDtrControl :2;
1311 unsigned fDsrSensitivity :1;
1312 unsigned fTXContinueOnXoff :1;
1313 unsigned fOutX :1;
1314 unsigned fInX :1;
1315 unsigned fErrorChar :1;
1316 unsigned fNull :1;
1317 unsigned fRtsControl :2;
1318 unsigned fAbortOnError :1;
1319 unsigned fDummy2 :17;
1320 WORD wReserved;
1321 WORD XonLim;
1322 WORD XoffLim;
1323 BYTE ByteSize;
1324 BYTE Parity;
1325 BYTE StopBits;
1326 char XonChar;
1327 char XoffChar;
1328 char ErrorChar;
1329 char EofChar;
1330 char EvtChar;
1331} DCB, *LPDCB;
1332
1333
1334
1335typedef struct tagCOMMTIMEOUTS {
1336 DWORD ReadIntervalTimeout;
1337 DWORD ReadTotalTimeoutMultiplier;
1338 DWORD ReadTotalTimeoutConstant;
1339 DWORD WriteTotalTimeoutMultiplier;
1340 DWORD WriteTotalTimeoutConstant;
1341} COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1342
1343typedef struct _COMMCONFIG {
1344 DWORD dwSize;
1345 WORD wVersion;
1346 WORD wReserved;
1347 DCB dcb;
1348 DWORD dwProviderSubType;
1349 DWORD dwProviderOffset;
1350 DWORD dwProviderSize;
1351 WCHAR wcProviderData[1];
1352} COMMCONFIG,*LPCOMMCONFIG;
1353
1354typedef void (* CALLBACK PAPCFUNC)(ULONG_PTR);
1355typedef void (* CALLBACK PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD);
1356
1357typedef enum _COMPUTER_NAME_FORMAT
1358{
1359 ComputerNameNetBIOS,
1360 ComputerNameDnsHostname,
1361 ComputerNameDnsDomain,
1362 ComputerNameDnsFullyQualified,
1363 ComputerNamePhysicalNetBIOS,
1364 ComputerNamePhysicalDnsHostname,
1365 ComputerNamePhysicalDnsDomain,
1366 ComputerNamePhysicalDnsFullyQualified,
1367 ComputerNameMax
1368} COMPUTER_NAME_FORMAT;
1369
1370#include "poppack.h"
1371
1372BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1373BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1374#define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1375BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1376BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1377#define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1378BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1379BOOL WINAPI SetCommState(HANDLE,LPDCB);
1380BOOL WINAPI TransmitCommChar(HANDLE,CHAR);
1381
1382BOOL WINAPI GetCommConfig(HANDLE,LPCOMMCONFIG,LPDWORD);
1383BOOL WINAPI GetCommMask(HANDLE,LPDWORD);
1384BOOL WINAPI GetCommModemStatus(HANDLE,LPDWORD);
1385BOOL WINAPI GetCommProperties(HANDLE,LPCOMMPROP);
1386BOOL WINAPI GetCommState(HANDLE,LPDCB);
1387BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1388
1389
1390/*DWORD WINAPI GetVersion( void );*/
1391BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1392BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1393#define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1394
1395/*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1396
1397void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1398void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1399void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1400void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1401void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1402HANDLE WINAPI OpenProcess(DWORD access, BOOL inherit, DWORD id);
1403BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1404BOOL WINAPI GetProcessShutdownParameters( LPDWORD lpdwLevel, LPDWORD lpdwFlags );
1405DWORD WINAPI GetProcessFlags( DWORD processid );
1406DWORD WINAPI GetProcessVersion(DWORD Processid);
1407DWORD WINAPI GetProcessHeaps(DWORD nrofheaps,HANDLE *heaps) ;
1408BOOL WINAPI GetProcessTimes(HANDLE hProcess,
1409 LPFILETIME lpCreationTime,
1410 LPFILETIME lpExitTime,
1411 LPFILETIME lpKernelTime,
1412 LPFILETIME lpUserTime);
1413DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1414void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1415BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1416BOOL WINAPI SetProcessPriorityBoost(HANDLE hprocess,BOOL disableboost);
1417BOOL WINAPI SetProcessWorkingSetSize(HANDLE hProcess,DWORD minset,
1418 DWORD maxset);
1419BOOL WINAPI SetProcessShutdownParameters(DWORD level,DWORD flags);
1420BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1421BOOL WINAPI TerminateThread(HANDLE,DWORD);
1422BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1423
1424/* GetBinaryType return values.
1425 */
1426
1427#define SCS_32BIT_BINARY 0
1428#define SCS_DOS_BINARY 1
1429#define SCS_WOW_BINARY 2
1430#define SCS_PIF_BINARY 3
1431#define SCS_POSIX_BINARY 4
1432#define SCS_OS216_BINARY 5
1433
1434BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1435BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1436#define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1437
1438BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1439BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1440/* Declarations for functions that exist only in Win32 */
1441
1442BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
1443//BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1444BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,LPVOID,DWORD,LPVOID,LPDWORD);
1445BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
1446BOOL WINAPI AllocateLocallyUniqueId(PLUID);
1447BOOL WINAPI AllocConsole(void);
1448BOOL WINAPI AreFileApisANSI(void);
1449BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
1450BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
1451#define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1452BOOL WINAPI BackupRead(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1453BOOL WINAPI BackupSeek(HANDLE,DWORD,DWORD,LPDWORD,LPDWORD,LPVOID*);
1454BOOL WINAPI BackupWrite(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1455BOOL WINAPI Beep(DWORD,DWORD);
1456BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1457BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1458#define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1459BOOL WINAPI CloseEventLog(HANDLE);
1460BOOL WINAPI CloseHandle(HANDLE);
1461BOOL WINAPI CommConfigDialogA(LPCSTR,HANDLE,LPCOMMCONFIG);
1462BOOL WINAPI CommConfigDialogW(LPCWSTR,HANDLE,LPCOMMCONFIG);
1463#define CommConfigDialog WINELIB_NAME_AW(CommConfigDialog)
1464BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1465HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1466BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1467BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1468#define CopyFile WINELIB_NAME_AW(CopyFile)
1469BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1470BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1471#define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1472BOOL WINAPI CopySid(DWORD,PSID,PSID);
1473INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1474HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1475HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1476#define CreateEvent WINELIB_NAME_AW(CreateEvent)
1477HFILE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1478 DWORD,DWORD,HANDLE);
1479HFILE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1480 DWORD,DWORD,HANDLE);
1481#define CreateFile WINELIB_NAME_AW(CreateFile)
1482HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1483 DWORD,DWORD,LPCSTR);
1484HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1485 DWORD,DWORD,LPCWSTR);
1486#define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1487HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1488HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1489#define CreateMutex WINELIB_NAME_AW(CreateMutex)
1490BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1491BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1492 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1493 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1494BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1495 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1496 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1497#define CreateProcess WINELIB_NAME_AW(CreateProcess)
1498HANDLE WINAPI CreateRemoteThread(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1499HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1500HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1501#define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1502DWORD WINAPI CreateTapePartition(HANDLE,DWORD,DWORD,DWORD);
1503HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1504HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1505HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1506#define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
1507BOOL WINAPI DebugActiveProcess(DWORD);
1508void WINAPI DebugBreak(void);
1509BOOL WINAPI DeregisterEventSource(HANDLE);
1510BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1511BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1512BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1513BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1514 ENUMRESLANGPROCA,LONG);
1515BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1516 ENUMRESLANGPROCW,LONG);
1517#define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1518BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1519 LONG);
1520BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1521 LONG);
1522#define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1523BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1524BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1525#define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1526BOOL WINAPI EqualSid(PSID, PSID);
1527BOOL WINAPI EqualPrefixSid(PSID,PSID);
1528DWORD WINAPI EraseTape(HANDLE,DWORD,BOOL);
1529VOID WINAPI ExitProcess(DWORD);
1530VOID WINAPI ExitThread(DWORD);
1531DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1532DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1533#define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1534BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1535BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1536BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1537HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1538HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1539#define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1540BOOL WINAPI FindNextChangeNotification(HANDLE);
1541BOOL WINAPI FindCloseChangeNotification(HANDLE);
1542HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1543HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1544#define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1545BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1546BOOL WINAPI FlushFileBuffers(HFILE);
1547BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1548DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1549 DWORD,LPDWORD);
1550DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1551 DWORD,LPDWORD);
1552#define FormatMessage WINELIB_NAME_AW(FormatMessage)
1553BOOL WINAPI FreeConsole(void);
1554BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1555BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1556#define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1557PVOID WINAPI FreeSid(PSID);
1558VOID WINAPI FreeLibraryAndExitThread(HINSTANCE,DWORD);
1559UINT WINAPI GetACP(void);
1560LPCSTR WINAPI GetCommandLineA(void);
1561LPCWSTR WINAPI GetCommandLineW(void);
1562#define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1563DWORD WINAPI GetCompressedFileSizeA(LPCTSTR lpFileName, LPDWORD lpFileSizeHigh);
1564DWORD WINAPI GetCompressedFileSizeW(LPCWSTR lpFileName, LPDWORD lpFileSizeHigh);
1565#define GetCompressedFileSize WINELIB_NAME_AW(GetCompressedFileSize)
1566BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1567BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1568#define GetComputerName WINELIB_NAME_AW(GetComputerName)
1569UINT WINAPI GetConsoleCP(void);
1570BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1571UINT WINAPI GetConsoleOutputCP(void);
1572DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1573DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1574#define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1575BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1576BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1577HANDLE WINAPI GetCurrentProcess(void);
1578DWORD WINAPI GetCurrentProcessId(void);
1579HANDLE WINAPI GetCurrentThread(void);
1580DWORD WINAPI GetCurrentThreadId(void);
1581BOOL WINAPI GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,LPDWORD);
1582BOOL WINAPI GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,LPDWORD);
1583#define GetDefaultCommConfig WINELIB_NAME_AW(GetDefaultCommConfig)
1584LPSTR WINAPI GetEnvironmentStringsA(void);
1585LPWSTR WINAPI GetEnvironmentStringsW(void);
1586#define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1587DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1588DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1589#define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1590BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1591BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1592#define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1593DWORD WINAPI GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
1594BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1595BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1596#define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1597DWORD WINAPI GetFileSize(HFILE,LPDWORD);
1598BOOL WINAPI GetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
1599DWORD WINAPI GetFileType(HFILE);
1600DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1601DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1602#define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1603BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1604DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
1605DWORD WINAPI GetLengthSid(PSID);
1606VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1607DWORD WINAPI GetLogicalDrives(void);
1608DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1609DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1610#define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1611BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1612BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1613BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
1614UINT WINAPI GetOEMCP(void);
1615BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
1616DWORD WINAPI GetPriorityClass(HANDLE);
1617BOOL WINAPI GetProcessAffinityMask(HANDLE hProcess,
1618 LPDWORD lpProcessAffinityMask,
1619 LPDWORD lpSystemAffinityMask);
1620HANDLE WINAPI GetProcessHeap(void);
1621DWORD WINAPI GetProcessVersion(DWORD);
1622//BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
1623BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1624BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1625DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
1626BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1627BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1628PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
1629DWORD WINAPI GetSidLengthRequired(BYTE);
1630PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
1631PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
1632DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1633DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1634#define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1635HFILE WINAPI GetStdHandle(DWORD);
1636BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1637BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1638#define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1639VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1640BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1641VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1642VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME);
1643DWORD WINAPI GetTapeParameters(HANDLE,DWORD,LPDWORD,LPVOID);
1644DWORD WINAPI GetTapePosition(HANDLE,DWORD,LPDWORD,LPDWORD,LPDWORD);
1645DWORD WINAPI GetTapeStatus(HANDLE);
1646DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION);
1647BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
1648INT WINAPI GetThreadPriority(HANDLE);
1649BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1650BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1651BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
1652BOOL WINAPI GetUserNameA(LPSTR,LPDWORD);
1653BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD);
1654#define GetUserName WINELIB_NAME_AW(GetUserName)
1655VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1656LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1657DWORD WINAPI HeapCompact(HANDLE,DWORD);
1658HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1659BOOL WINAPI HeapDestroy(HANDLE);
1660BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1661BOOL WINAPI HeapLock(HANDLE);
1662LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1663DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1664BOOL WINAPI HeapUnlock(HANDLE);
1665BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1666BOOL WINAPI HeapWalk (HANDLE, LPVOID);
1667BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1668BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1669BOOL WINAPI IsValidSid(PSID);
1670BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1671LONG WINAPI InterlockedCompareExchange( PLONG dest, LONG xchg, LONG compare );
1672LONG WINAPI InterlockedDecrement(LPLONG);
1673LONG WINAPI InterlockedExchange(LPLONG,LONG);
1674LONG WINAPI InterlockedExchangeAdd( PLONG dest, LONG incr );
1675LONG WINAPI InterlockedIncrement(LPLONG);
1676
1677/* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */
1678#define InterlockedCompareExchangePointer(dest, xchg, compare) \
1679 (PVOID)InterlockedCompareExchange( (PLONG)dest, (LONG)xchg, (LONG)compare )
1680
1681#define InterlockedExchangePointer(dest, val) \
1682 (PVOID)InterlockedExchange( (PLONG)dest, (LONG)val )
1683
1684BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1685BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1686BOOL WINAPI IsValidLocale(DWORD,DWORD);
1687BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1688BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1689BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1690BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID);
1691BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID);
1692#define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1693BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
1694HMODULE WINAPI MapHModuleSL(HMODULE16);
1695HMODULE16 WINAPI MapHModuleLS(HMODULE);
1696LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1697LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1698BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1699BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1700#define MoveFile WINELIB_NAME_AW(MoveFile)
1701BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1702BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1703#define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1704INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1705BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1706INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1707HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1708HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1709#define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1710HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1711HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1712#define OpenEvent WINELIB_NAME_AW(OpenEvent)
1713HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
1714HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1715#define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1716HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1717HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1718#define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1719HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1720HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1721#define OpenMutex WINELIB_NAME_AW(OpenMutex)
1722HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1723BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1724HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1725HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1726#define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1727BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1728
1729BOOL WIN32API PostQueuedCompletionStatus(HANDLE CompletionPort,
1730 DWORD dwNumberOfBytesTransferred,
1731 DWORD dwCompletionKey,
1732 LPOVERLAPPED lpOverlapped);
1733
1734DWORD WINAPI PrepareTape(HANDLE,DWORD,BOOL);
1735BOOL WINAPI PulseEvent(HANDLE);
1736BOOL WINAPI PurgeComm(HANDLE,DWORD);
1737DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1738DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1739#define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1740BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1741BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency);
1742
1743BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1744BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1745#define ReadConsole WINELIB_NAME_AW(ReadConsole)
1746BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1747 COORD,LPDWORD);
1748#define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1749BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1750BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1751#define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1752BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1753BOOL WINAPI ReadFileEx(HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
1754 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1755
1756HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
1757HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1758#define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1759DWORD WINAPI RegisterServiceProcess(DWORD dwProcessId, DWORD dwType);
1760BOOL WINAPI ReleaseMutex(HANDLE);
1761BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1762BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
1763BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
1764#define ReportEvent WINELIB_NAME_AW(ReportEvent)
1765BOOL WINAPI ResetEvent(HANDLE);
1766DWORD WINAPI ResumeThread(HANDLE);
1767VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1768#define FillMemory RtlFillMemory
1769VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1770#define MoveMemory RtlMoveMemory
1771VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1772#define ZeroMemory RtlZeroMemory
1773VOID WINAPI RtlCopyMemory(LPVOID,const VOID*, UINT);
1774#define CopyMemory RtlCopyMemory
1775BOOL WINAPI RevertToSelf(void);
1776DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1777DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1778#define SearchPath WINELIB_NAME_AW(SearchPath)
1779BOOL WINAPI SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD);
1780BOOL WINAPI SetCommBreak(HANDLE);
1781BOOL WINAPI SetCommMask(HANDLE,DWORD);
1782BOOL WINAPI SetCommState(HANDLE,LPDCB);
1783BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1784BOOL WINAPI SetComputerNameA(LPCSTR);
1785BOOL WINAPI SetComputerNameW(LPCWSTR);
1786#define SetComputerName WINELIB_NAME_AW(SetComputerName)
1787BOOL WINAPI SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD);
1788BOOL WINAPI SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD);
1789#define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1790BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1791BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1792BOOL WINAPI SetConsoleTitleA(LPCSTR);
1793BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1794#define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1795BOOL WINAPI SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD);
1796BOOL WINAPI SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD);
1797#define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1798BOOL WINAPI SetEndOfFile(HFILE);
1799BOOL WINAPI DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode,
1800 LPVOID lpInBuffer, DWORD nInBufferSize,
1801 LPVOID lpOutBuffer, DWORD nOutBufferSize,
1802 LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped);
1803
1804BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1805BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1806#define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1807BOOL WINAPI SetEvent(HANDLE);
1808VOID WINAPI SetFileApisToANSI(void);
1809VOID WINAPI SetFileApisToOEM(void);
1810DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1811BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1812BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1813#define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1814BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,const FILETIME*);
1815BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1816BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
1817BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1818BOOL WINAPI SetProcessAffinityMask( HANDLE hProcess, DWORD affmask );
1819BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1820BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
1821BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
1822BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1823BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1824BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1825BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1826DWORD WINAPI SetTapeParameters(HANDLE,DWORD,LPVOID);
1827DWORD WINAPI SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL);
1828DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1829BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
1830DWORD WINAPI SetThreadExecutionState(EXECUTION_STATE);
1831BOOL WINAPI SetThreadPriority(HANDLE,INT);
1832BOOL WINAPI SetThreadPriorityBoost(HANDLE,BOOL);
1833BOOL WINAPI SetThreadToken(PHANDLE,HANDLE);
1834BOOL WINAPI SetThreadLocale(LCID);
1835BOOL WINAPI SetThreadPriority(HANDLE,INT);
1836BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1837BOOL WINAPI SetupComm(HANDLE,DWORD,DWORD);
1838VOID WINAPI Sleep(DWORD);
1839DWORD WINAPI SleepEx(DWORD,BOOL);
1840DWORD WINAPI SuspendThread(HANDLE);
1841BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1842DWORD WINAPI TlsAlloc(void);
1843BOOL WINAPI TlsFree(DWORD);
1844LPVOID WINAPI TlsGetValue(DWORD);
1845BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1846BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1847BOOL WINAPI UnmapViewOfFile(LPVOID);
1848BOOL WINAPI FlushInstructionCache(HANDLE,LPCVOID,DWORD);
1849LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1850BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1851BOOL WINAPI VirtualLock(LPVOID,DWORD);
1852BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1853BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1854DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1855DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1856BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1857BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1858BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1859DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1860DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1861DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1862DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1863BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1864BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1865#define WriteConsole WINELIB_NAME_AW(WriteConsole)
1866BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1867BOOL WINAPI WriteFileEx(HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite,
1868 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1869DWORD WINAPI WriteTapemark(HANDLE,DWORD,DWORD,BOOL);
1870DWORD WINAPI GetLastError(void);
1871LANGID WINAPI GetSystemDefaultLangID(void);
1872LCID WINAPI GetSystemDefaultLCID(void);
1873LANGID WINAPI GetUserDefaultLangID(void);
1874LCID WINAPI GetUserDefaultLCID(void);
1875ATOM WINAPI AddAtomA(LPCSTR);
1876ATOM WINAPI AddAtomW(LPCWSTR);
1877#define AddAtom WINELIB_NAME_AW(AddAtom)
1878BOOL WINAPI CancelIo(HANDLE hFile);
1879BOOL WINAPI CancelWaitableTimer(HANDLE);
1880BOOL WINAPI CheckTokenMembership(HANDLE,PSID,PBOOL);
1881BOOL WINAPI ClearCommBreak(HANDLE);
1882BOOL WINAPI ClearCommError(HANDLE,LPDWORD,LPCOMSTAT);
1883BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1884BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1885#define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1886BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1887BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1888#define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1889BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1890BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1891#define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1892HANDLE WINAPI CreateIoCompletionPort( HANDLE FileHandle,
1893 HANDLE ExistingCompletionPort,
1894 DWORD CompletionKey,
1895 DWORD NumberOfConcurrentThreads);
1896BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1897BOOL WINAPI DefineDosDeviceW(DWORD,LPCWSTR,LPCWSTR);
1898#define DefineDosDevice WINELIB_NAME_AW(DefineDosDevice)
1899
1900ATOM WINAPI DeleteAtom(ATOM);
1901BOOL WINAPI DeleteFileA(LPCSTR);
1902BOOL WINAPI DeleteFileW(LPCWSTR);
1903#define DeleteFile WINELIB_NAME_AW(DeleteFile)
1904void WINAPI FatalAppExitA(UINT,LPCSTR);
1905void WINAPI FatalAppExitW(UINT,LPCWSTR);
1906#define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1907VOID WIN32API FatalExit( UINT exitCode);
1908ATOM WINAPI FindAtomA(LPCSTR);
1909ATOM WINAPI FindAtomW(LPCWSTR);
1910#define FindAtom WINELIB_NAME_AW(FindAtom)
1911BOOL WINAPI FindClose(HANDLE);
1912HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1913HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1914#define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1915HANDLE WINAPI FindFirstFileExA(LPCSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1916HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1917#define FindFirstFileEx WINELIB_NAME_AW(FindFirstFileEx)
1918HANDLE WINAPI FindFirstFileMultiA(LPCSTR,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1919BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1920BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1921#define FindNextFile WINELIB_NAME_AW(FindNextFile)
1922BOOL WINAPI FindNextFileMultiA(HANDLE,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1923HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1924HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1925#define FindResource WINELIB_NAME_AW(FindResource)
1926
1927VOID WINAPI FreeLibrary16(HINSTANCE16);
1928BOOL WINAPI FreeLibrary(HMODULE);
1929#define FreeModule(handle) FreeLibrary(handle)
1930#define FreeProcInstance(proc) /*nothing*/
1931BOOL WINAPI FreeResource(HGLOBAL);
1932UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1933UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1934#define GetAtomName WINELIB_NAME_AW(GetAtomName)
1935UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1936UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1937#define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1938BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1939BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1940#define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1941BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1942BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1943#define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1944UINT WINAPI GetDriveTypeA(LPCSTR);
1945UINT WINAPI GetDriveTypeW(LPCWSTR);
1946#define GetDriveType WINELIB_NAME_AW(GetDriveType)
1947DWORD WINAPI GetFileAttributesA(LPCSTR);
1948DWORD WINAPI GetFileAttributesW(LPCWSTR);
1949#define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1950#define GetFreeSpace(w) (0x100000L)
1951UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1952UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1953#define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1954INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1955INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1956#define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1957DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1958DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1959#define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1960HMODULE WINAPI GetModuleHandleA(LPCSTR);
1961HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1962#define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1963BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL);
1964UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1965UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1966#define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1967INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1968INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1969#define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1970DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1971DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1972#define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1973INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1974INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1975#define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1976BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1977BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1978#define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1979FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1980UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1981UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1982#define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1983INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1984INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1985#define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1986INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1987INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1988#define GetProfileString WINELIB_NAME_AW(GetProfileString)
1989
1990BOOL WINAPI GetQueuedCompletionStatus(HANDLE CompletionPort,
1991 LPDWORD lpNumberOfBytesTransferred,
1992 LPDWORD lpCompletionKey,
1993 LPOVERLAPPED *lpOverlapped,
1994 DWORD dwMilliseconds);
1995VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1996VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1997#define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1998BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1999BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
2000#define GetStringType WINELIB_NAME_AW(GetStringType)
2001UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
2002UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
2003#define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
2004UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
2005UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
2006#define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
2007UINT WINAPI GetTempPathA(UINT,LPSTR);
2008UINT WINAPI GetTempPathW(UINT,LPWSTR);
2009#define GetTempPath WINELIB_NAME_AW(GetTempPath)
2010LONG WINAPI GetVersion(void);
2011BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
2012BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
2013BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
2014#define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
2015UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
2016UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
2017#define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
2018HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
2019HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
2020DWORD WINAPI GlobalCompact(DWORD);
2021UINT WINAPI GlobalFlags(HGLOBAL);
2022HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
2023HGLOBAL WINAPI GlobalFree(HGLOBAL);
2024HGLOBAL WINAPI GlobalHandle(LPCVOID);
2025WORD WINAPI GlobalFix16(HGLOBAL16);
2026VOID WINAPI GlobalFix(HGLOBAL);
2027LPVOID WINAPI GlobalLock16(HGLOBAL16);
2028LPVOID WINAPI GlobalLock(HGLOBAL);
2029HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
2030DWORD WINAPI GlobalSize16(HGLOBAL16);
2031DWORD WINAPI GlobalSize(HGLOBAL);
2032VOID WINAPI GlobalUnfix16(HGLOBAL16);
2033VOID WINAPI GlobalUnfix(HGLOBAL);
2034BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
2035BOOL WINAPI GlobalUnlock(HGLOBAL);
2036BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
2037BOOL WINAPI GlobalUnWire(HGLOBAL);
2038SEGPTR WINAPI GlobalWire16(HGLOBAL16);
2039LPVOID WINAPI GlobalWire(HGLOBAL);
2040BOOL WINAPI InitAtomTable(DWORD);
2041BOOL WINAPI IsBadCodePtr(FARPROC);
2042BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
2043BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
2044BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
2045BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
2046BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
2047#define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
2048BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
2049BOOL WINAPI IsDBCSLeadByte(BYTE);
2050BOOL WINAPI IsDebuggerPresent(void);
2051HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
2052HMODULE WINAPI LoadLibraryA(LPCSTR);
2053HMODULE WINAPI LoadLibraryW(LPCWSTR);
2054#define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
2055HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
2056HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
2057#define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
2058HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
2059HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
2060HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
2061HLOCAL WINAPI LocalAlloc(UINT,DWORD);
2062UINT WINAPI LocalCompact(UINT);
2063UINT WINAPI LocalFlags(HLOCAL);
2064HLOCAL WINAPI LocalFree(HLOCAL);
2065HLOCAL WINAPI LocalHandle(LPCVOID);
2066LPVOID WINAPI LocalLock(HLOCAL);
2067HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
2068UINT WINAPI LocalShrink(HGLOBAL,UINT);
2069UINT WINAPI LocalSize(HLOCAL);
2070BOOL WINAPI LocalUnlock(HLOCAL);
2071LPVOID WINAPI LockResource(HGLOBAL);
2072#define UnlockResource(hResData) ((hResData), 0)
2073
2074#define LockSegment(handle) GlobalFix((HANDLE)(handle))
2075#define MakeProcInstance(proc,inst) (proc)
2076HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
2077HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
2078VOID WINAPI OutputDebugStringA(LPCSTR);
2079VOID WINAPI OutputDebugStringW(LPCWSTR);
2080#define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
2081BOOL WINAPI ReadProcessMemory(HANDLE, LPCVOID, LPVOID, DWORD, LPDWORD);
2082BOOL WINAPI RemoveDirectoryA(LPCSTR);
2083BOOL WINAPI RemoveDirectoryW(LPCWSTR);
2084#define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
2085BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
2086BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
2087#define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
2088UINT WINAPI SetErrorMode(UINT);
2089BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
2090BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
2091#define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
2092UINT WINAPI SetHandleCount(UINT);
2093#define SetSwapAreaSize(w) (w)
2094BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
2095BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
2096#define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
2097DWORD WINAPI SizeofResource(HMODULE,HRSRC);
2098BOOL WINAPI UnlockFileEx(HFILE,DWORD,DWORD,DWORD,LPOVERLAPPED);
2099#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
2100DWORD WINAPI VerLanguageNameA( UINT wLang, LPSTR szLang, UINT nSize );
2101DWORD WINAPI VerLanguageNameW( UINT wLang, LPWSTR szLang, UINT nSize );
2102#define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
2103BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
2104BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
2105#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2106BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
2107BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
2108BOOL WINAPI WriteProcessMemory(HANDLE,LPCVOID,LPVOID,DWORD,LPDWORD);
2109#define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
2110BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
2111BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
2112#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2113BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
2114BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
2115#define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
2116BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
2117BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
2118#define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
2119#define Yield32()
2120LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
2121LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
2122#define lstrcat WINELIB_NAME_AW(lstrcat)
2123LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
2124LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
2125#define lstrcpy WINELIB_NAME_AW(lstrcpy)
2126LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
2127LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
2128#define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
2129INT WINAPI lstrlenA(LPCSTR);
2130INT WINAPI lstrlenW(LPCWSTR);
2131#define lstrlen WINELIB_NAME_AW(lstrlen)
2132HINSTANCE WINAPI WinExec(LPCSTR,UINT);
2133LONG WINAPI _hread(HFILE,LPVOID,LONG);
2134LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
2135HFILE WINAPI _lcreat(LPCSTR,INT);
2136HFILE WINAPI _lclose(HFILE);
2137LONG WINAPI _llseek(HFILE,LONG,INT);
2138HFILE WINAPI _lopen(LPCSTR,INT);
2139UINT WINAPI _lread(HFILE,LPVOID,UINT);
2140UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
2141SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
2142INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
2143INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
2144#define lstrcmp WINELIB_NAME_AW(lstrcmp)
2145INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
2146INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
2147#define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
2148int WINAPI lstrncmpiA(LPCSTR, LPCSTR, int);
2149int WINAPI lstrncmpiW(LPCWSTR, LPCWSTR, int);
2150#define lstrncmpi WINELIB_NAME_AW(lstrncmpi)
2151
2152VOID WINAPI SetLastError(DWORD);
2153
2154
2155BOOL WINAPI SetTokenInformation(HANDLE hToken,
2156 TOKEN_INFORMATION_CLASS tic,
2157 LPVOID lpvInformation,
2158 DWORD cbInformation);
2159BOOL WINAPI GetUserNameA( /*PLF Wed 98-02-11 13:33:39*/
2160 LPTSTR lpBuffer, /* address of name buffer */
2161 LPDWORD lpcchBuffer); /* address of size of name buffer */
2162
2163BOOL WINAPI GetUserNameW( /*KSO Thu 21.05.1998 */
2164 LPWSTR lpBuffer,
2165 LPDWORD lpccBuffer
2166 );
2167
2168BOOL WINAPI AbortSystemShutdownA(LPTSTR lpMachineName);
2169BOOL WINAPI AbortSystemShutdownW(LPWSTR lpMachineName);
2170BOOL WINAPI AccessCheckAndAuditAlarmA(LPCSTR SubsystemName,
2171 LPVOID HandleId,
2172 LPTSTR ObjectTypeName,
2173 LPTSTR ObjectName,
2174 PSECURITY_DESCRIPTOR SecurityDescriptor,
2175 DWORD DesiredAccess,
2176 PGENERIC_MAPPING GenericMapping,
2177 BOOL ObjectCreation,
2178 LPDWORD GrantedAccess,
2179 LPBOOL AccessStatus,
2180 LPBOOL pfGenerateOnClose);
2181BOOL WINAPI AccessCheckAndAuditAlarmW(LPCWSTR SubsystemName,
2182 LPVOID HandleId,
2183 LPWSTR ObjectTypeName,
2184 LPWSTR ObjectName,
2185 PSECURITY_DESCRIPTOR SecurityDescriptor,
2186 DWORD DesiredAccess,
2187 PGENERIC_MAPPING GenericMapping,
2188 BOOL ObjectCreation,
2189 LPDWORD GrantedAccess,
2190 LPBOOL AccessStatus,
2191 LPBOOL pfGenerateOnClose);
2192BOOL WINAPI AddAccessAllowedAce(PACL pAcl,
2193 DWORD dwAceRevision,
2194 DWORD AccessMask,
2195 PSID pSid);
2196BOOL WINAPI AddAccessDeniedAce(PACL pAcl,
2197 DWORD dwAceRevision,
2198 DWORD AccessMask,
2199 PSID pSid);
2200BOOL WINAPI AddAce(PACL pAcl,
2201 DWORD dwAceRevision,
2202 DWORD dwStartingAceIndex,
2203 LPVOID pAceList,
2204 DWORD nAceListLength);
2205BOOL WINAPI AddAuditAccessAce(PACL pAcl,
2206 DWORD dwAceRevision,
2207 DWORD dwAccessMask,
2208 PSID pSid,
2209 BOOL bAuditSuccess,
2210 BOOL bAuditFailure);
2211BOOL WINAPI AdjustTokenGroups(HANDLE TokenHandle,
2212 BOOL ResetToDefault,
2213 PTOKEN_GROUPS NewState,
2214 DWORD BufferLength,
2215 PTOKEN_GROUPS PreviousState,
2216 LPDWORD ReturnLength);
2217BOOL WINAPI AllocateLocallyUniqueId(PLUID Luid);
2218BOOL WINAPI AreAllAccessesGranted(DWORD GrantedAccess,
2219 DWORD DesiredAccess);
2220BOOL WINAPI AreAnyAccessesGranted(DWORD GrantedAccess,
2221 DWORD DesiredAccess);
2222BOOL WINAPI CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR ParentDescriptor,
2223 PSECURITY_DESCRIPTOR CreatorDescriptor,
2224 PSECURITY_DESCRIPTOR *NewDescriptor,
2225 BOOL IsDirectoryObject,
2226 HANDLE Token,
2227 PGENERIC_MAPPING GenericMapping);
2228BOOL WINAPI CreateProcessAsUserA(HANDLE hToken,
2229 LPCSTR lpApplicationName,
2230 LPTSTR lpCommandLine,
2231 LPSECURITY_ATTRIBUTES lpProcessAttributes,
2232 LPSECURITY_ATTRIBUTES lpThreadAttributes,
2233 BOOL bInheritHandles,
2234 DWORD dwCreationFlags,
2235 LPVOID lpEnvironment,
2236 LPCSTR lpCurrentDirectory,
2237 LPSTARTUPINFOA lpStartupInfo,
2238 LPPROCESS_INFORMATION lpProcessInformation);
2239BOOL WINAPI CreateProcessAsUserW(HANDLE hToken,
2240 LPCWSTR lpApplicationName,
2241 LPWSTR lpCommandLine,
2242 LPSECURITY_ATTRIBUTES lpProcessAttributes,
2243 LPSECURITY_ATTRIBUTES lpThreadAttributes,
2244 BOOL bInheritHandles,
2245 DWORD dwCreationFlags,
2246 LPVOID lpEnvironment,
2247 LPCWSTR lpCurrentDirectory,
2248 LPSTARTUPINFOA lpStartupInfo,
2249 LPPROCESS_INFORMATION lpProcessInformation);
2250BOOL WINAPI DeleteAce(PACL pAcl,
2251 DWORD dwAceIndex);
2252BOOL WINAPI DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR *ObjectDescriptor);
2253BOOL WINAPI DuplicateToken(HANDLE ExistingTokenHandle,
2254 SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
2255 PHANDLE DuplicateTokenHandle);
2256BOOL WINAPI FindFirstFreeAce(PACL pAcl,
2257 LPVOID *pAce);
2258BOOL WINAPI GetAce(PACL pAcl,
2259 DWORD dwAceIndex,
2260 LPVOID *pAce);
2261BOOL WINAPI GetAclInformation(PACL pAcl,
2262 LPVOID pAclInformation,
2263 DWORD nAclInformationLength,
2264 ACL_INFORMATION_CLASS dwAclInformationClass);
2265BOOL WINAPI GetKernelObjectSecurity(HANDLE Handle,
2266 SECURITY_INFORMATION RequestedInformation,
2267 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2268 DWORD nLength,
2269 LPDWORD lpnLengthNeeded);
2270BOOL WINAPI GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR ObjectDescriptor,
2271 SECURITY_INFORMATION SecurityInformation,
2272 PSECURITY_DESCRIPTOR ResultantDescriptor,
2273 DWORD DescriptorLength,
2274 LPDWORD ReturnLength);
2275BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken);
2276BOOL WINAPI ImpersonateNamedPipeClient(HANDLE hNamedPipe);
2277BOOL WINAPI InitiateSystemShutdownA(LPTSTR lpMachineName,
2278 LPTSTR lpMessage,
2279 DWORD dwTimeout,
2280 BOOL bForceAppsClosed,
2281 BOOL bRebootAfterShutdown);
2282BOOL WINAPI InitiateSystemShutdownW(LPWSTR lpMachineName,
2283 LPWSTR lpMessage,
2284 DWORD dwTimeout,
2285 BOOL bForceAppsClosed,
2286 BOOL bRebootAfterShutdown);
2287DWORD WINAPI IsTextUnicode(CONST LPVOID lpBuffer,
2288 int cb,
2289 LPINT lpi);
2290BOOL WINAPI IsValidAcl(PACL pAcl);
2291BOOL WINAPI LogonUserA(LPTSTR lpszUsername,
2292 LPTSTR lpszDomain,
2293 LPTSTR lpszPassword,
2294 DWORD dwLogonType,
2295 DWORD dwLogonProvider,
2296 PHANDLE phToken);
2297BOOL WINAPI LogonUserW(LPWSTR lpszUsername,
2298 LPWSTR lpszDomain,
2299 LPWSTR lpszPassword,
2300 DWORD dwLogonType,
2301 DWORD dwLogonProvider,
2302 PHANDLE phToken);
2303BOOL WINAPI LookupAccountNameA(LPCSTR lpSystemName,
2304 LPCSTR lpAccountName,
2305 PSID Sid,
2306 LPDWORD cbSid,
2307 LPTSTR ReferencedDomainName,
2308 LPDWORD cbReferencedDomainName,
2309 PSID_NAME_USE peUse);
2310BOOL WINAPI LookupAccountNameW(LPCWSTR lpSystemName,
2311 LPCWSTR lpAccountName,
2312 PSID Sid,
2313 LPDWORD cbSid,
2314 LPWSTR ReferencedDomainName,
2315 LPDWORD cbReferencedDomainName,
2316 PSID_NAME_USE peUse);
2317BOOL WINAPI LookupPrivilegeDisplayNameA(LPCSTR lpSystemName,
2318 LPCSTR lpName,
2319 LPTSTR lpDisplayName,
2320 LPDWORD cbDisplayName,
2321 LPDWORD lpLanguageId);
2322BOOL WINAPI LookupPrivilegeDisplayNameW(LPCWSTR lpSystemName,
2323 LPCWSTR lpName,
2324 LPWSTR lpDisplayName,
2325 LPDWORD cbDisplayName,
2326 LPDWORD lpLanguageId);
2327BOOL WINAPI LookupPrivilegeNameA(LPCSTR lpSystemName,
2328 PLUID lpLuid,
2329 LPTSTR lpName,
2330 LPDWORD cbName);
2331BOOL WINAPI LookupPrivilegeNameW(LPCWSTR lpSystemName,
2332 PLUID lpLuid,
2333 LPWSTR lpName,
2334 LPDWORD cbName);
2335BOOL WINAPI MakeAbsoluteSD(PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
2336 PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
2337 LPDWORD lpdwAbsoluteSecurityDescriptorSize,
2338 PACL pDacl,
2339 LPDWORD lpdwDaclSize,
2340 PACL pSacl,
2341 LPDWORD lpdwSaclSize,
2342 PSID pOwner,
2343 LPDWORD lpdwOwnerSize,
2344 PSID pPrimaryGroup,
2345 LPDWORD lpdwPrimaryGroupSize);
2346VOID WINAPI MapGenericMask(LPDWORD AccessMask,
2347 PGENERIC_MAPPING GenericMapping);
2348BOOL WINAPI ObjectCloseAuditAlarmA(LPCSTR SubsystemName,
2349 LPVOID HandleId,
2350 BOOL GenerateOnClose);
2351BOOL WINAPI ObjectCloseAuditAlarmW(LPCWSTR SubsystemName,
2352 LPVOID HandleId,
2353 BOOL GenerateOnClose);
2354BOOL WINAPI ObjectOpenAuditAlarmA(LPCSTR SubsystemName,
2355 LPVOID HandleId,
2356 LPTSTR ObjectTypeName,
2357 LPTSTR ObjectName,
2358 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2359 HANDLE ClientToken,
2360 DWORD DesiredAccess,
2361 DWORD GrantedAccess,
2362 PPRIVILEGE_SET Privileges,
2363 BOOL ObjectCreation,
2364 BOOL AccessGranted,
2365 LPBOOL GenerateOnClose);
2366BOOL WINAPI ObjectOpenAuditAlarmW(LPCWSTR SubsystemName,
2367 LPVOID HandleId,
2368 LPWSTR ObjectTypeName,
2369 LPWSTR ObjectName,
2370 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2371 HANDLE ClientToken,
2372 DWORD DesiredAccess,
2373 DWORD GrantedAccess,
2374 PPRIVILEGE_SET Privileges,
2375 BOOL ObjectCreation,
2376 BOOL AccessGranted,
2377 LPBOOL GenerateOnClose);
2378BOOL WINAPI ObjectPrivilegeAuditAlarmA(LPCSTR lpszSubsystem,
2379 LPVOID lpvHandleId,
2380 HANDLE hClientToken,
2381 DWORD dwDesiredAccess,
2382 PPRIVILEGE_SET pps,
2383 BOOL fAccessGranted);
2384BOOL WINAPI ObjectPrivilegeAuditAlarmW(LPCWSTR lpszSubsystem,
2385 LPVOID lpvHandleId,
2386 HANDLE hClientToken,
2387 DWORD dwDesiredAccess,
2388 PPRIVILEGE_SET pps,
2389 BOOL fAccessGranted);
2390BOOL WINAPI PrivilegeCheck(HANDLE hClientToken,
2391 PPRIVILEGE_SET pps,
2392 LPBOOL lpfResult);
2393BOOL WINAPI PrivilegedServiceAuditAlarmA(LPCSTR lpszSubsystem,
2394 LPCSTR lpszService,
2395 HANDLE hClientToken,
2396 PPRIVILEGE_SET pps,
2397 BOOL fAccessGranted);
2398BOOL WINAPI PrivilegedServiceAuditAlarmW(LPCWSTR lpszSubsystem,
2399 LPCWSTR lpszService,
2400 HANDLE hClientToken,
2401 PPRIVILEGE_SET pps,
2402 BOOL fAccessGranted);
2403BOOL WINAPI SetAclInformation(PACL pAcl,
2404 LPVOID lpvAclInfo,
2405 DWORD cbAclInfo,
2406 ACL_INFORMATION_CLASS aclic);
2407BOOL WINAPI SetKernelObjectSecurity(HANDLE hObject,
2408 SECURITY_INFORMATION si,
2409 PSECURITY_DESCRIPTOR psd);
2410BOOL WINAPI SetPrivateObjectSecurity(SECURITY_INFORMATION si,
2411 PSECURITY_DESCRIPTOR psdSource,
2412 PSECURITY_DESCRIPTOR *lppsdTarget,
2413 PGENERIC_MAPPING pgm,
2414 HANDLE hClientToken);
2415
2416
2417HANDLE WINAPI CreateNamedPipeA(LPCSTR lpName, DWORD dwOpenMode, DWORD dwPipeMode,
2418 DWORD nMaxInstances, DWORD nOutBufferSize,
2419 DWORD nInBufferSize, DWORD nDefaultTimeOut,
2420 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2421HANDLE WINAPI CreateNamedPipeW(LPCWSTR lpName, DWORD dwOpenMode, DWORD dwPipeMode,
2422 DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize,
2423 DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2424#define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
2425
2426BOOL WINAPI GetNamedPipeHandleStateA(HANDLE hNamedPipe, LPDWORD lpState,
2427 LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount,
2428 LPDWORD lpCollectDataTimeout, LPSTR lpUserName,
2429 DWORD nMaxUserNameSize);
2430BOOL WINAPI GetNamedPipeHandleStateW(HANDLE hNamedPipe,LPDWORD lpState, LPDWORD lpCurInstances,
2431 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout,
2432 LPWSTR lpUserName, DWORD nMaxUserNameSize);
2433#define GetNamedPipeHandleState WINELIB_NAME_AW(GetNamedPipeHandleState)
2434
2435BOOL WINAPI CallNamedPipeA(LPCSTR lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize,
2436 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2437 DWORD nTimeOut);
2438BOOL WINAPI CallNamedPipeW(LPCWSTR lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize,
2439 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2440 DWORD nTimeOut);
2441#define CallNamedPipe WINELIB_NAME_AW(CallNamedPipe)
2442
2443
2444BOOL WINAPI WaitNamedPipeA(LPCSTR lpNamedPipeName, DWORD nTimeOut);
2445BOOL WINAPI WaitNamedPipeW(LPCWSTR lpNamedPipeName, DWORD nTimeOut);
2446
2447#define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
2448
2449BOOL WINAPI CreatePipe(PHANDLE hReadPipe, PHANDLE hWritePipe, LPSECURITY_ATTRIBUTES lpPipeAttributes,
2450 DWORD nSize);
2451BOOL WINAPI ConnectNamedPipe(HANDLE hNamedPipe, LPOVERLAPPED lpOverlapped);
2452BOOL WINAPI DisconnectNamedPipe(HANDLE hNamedPipe);
2453BOOL WINAPI SetNamedPipeHandleState(HANDLE hNamedPipe, LPDWORD lpMode,
2454 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout);
2455BOOL WINAPI GetNamedPipeInfo(HANDLE hNamedPipe, LPDWORD lpFlags, LPDWORD lpOutBufferSize,
2456 LPDWORD lpInBufferSize, LPDWORD lpMaxInstances);
2457BOOL WINAPI PeekNamedPipe(HANDLE hNamedPipe, LPVOID lpBuffer, DWORD nBufferSize,
2458 LPDWORD lpBytesRead, LPDWORD lpTotalBytesAvail,
2459 LPDWORD lpBytesLeftThisMessage);
2460BOOL WINAPI TransactNamedPipe(HANDLE hNamedPipe, LPVOID lpInBuffer, DWORD nInBufferSize,
2461 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2462 LPOVERLAPPED lpOverlapped);
2463
2464HANDLE WINAPI CreateMailslotA(LPCSTR lpName, DWORD nMaxMessageSize, DWORD lReadTimeout,
2465 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2466HANDLE WINAPI CreateMailslotW(LPCWSTR lpName, DWORD nMaxMessageSize, DWORD lReadTimeout,
2467 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2468#define CreateMailslot WINELIB_NAME_AW(WaitNamedPipe)
2469
2470BOOL WINAPI GetMailslotInfo(HANDLE hMailslot, LPDWORD lpMaxMessageSize,
2471 LPDWORD lpNextSize, LPDWORD lpMessageCount,
2472 LPDWORD lpReadTimeout);
2473
2474BOOL WINAPI SetMailslotInfo(HANDLE hMailslot, DWORD lReadTimeout);
2475
2476/* undocumented functions */
2477
2478typedef struct tagSYSLEVEL
2479{
2480 CRITICAL_SECTION crst;
2481 INT level;
2482} SYSLEVEL;
2483
2484/* [GS]etProcessDword offsets */
2485#define GPD_APP_COMPAT_FLAGS (-56)
2486#define GPD_LOAD_DONE_EVENT (-52)
2487#define GPD_HINSTANCE16 (-48)
2488#define GPD_WINDOWS_VERSION (-44)
2489#define GPD_THDB (-40)
2490#define GPD_PDB (-36)
2491#define GPD_STARTF_SHELLDATA (-32)
2492#define GPD_STARTF_HOTKEY (-28)
2493#define GPD_STARTF_SHOWWINDOW (-24)
2494#define GPD_STARTF_SIZE (-20)
2495#define GPD_STARTF_POSITION (-16)
2496#define GPD_STARTF_FLAGS (-12)
2497#define GPD_PARENT (- 8)
2498#define GPD_FLAGS (- 4)
2499#define GPD_USERDATA ( 0)
2500
2501void WINAPI DisposeLZ32Handle(HANDLE);
2502HANDLE WINAPI DosFileHandleToWin32Handle(HFILE);
2503DWORD WINAPI GetProcessDword(DWORD,INT);
2504VOID WINAPI GetpWin16Lock(SYSLEVEL**);
2505DWORD WINAPI MapLS(LPCVOID);
2506DWORD WINAPI MapProcessHandle(HANDLE);
2507LPVOID WINAPI MapSL(DWORD);
2508VOID WINAPI ReleaseThunkLock(DWORD*);
2509VOID WINAPI RestoreThunkLock(DWORD);
2510void WINAPI SetProcessDword(DWORD,INT,DWORD);
2511VOID WINAPI UnMapLS(DWORD);
2512HFILE WINAPI Win32HandleToDosFileHandle(HANDLE);
2513VOID WINAPI _CheckNotSysLevel(SYSLEVEL *lock);
2514DWORD WINAPI _ConfirmWin16Lock(void);
2515DWORD WINAPI _ConfirmSysLevel(SYSLEVEL*);
2516VOID WINAPI _EnterSysLevel(SYSLEVEL*);
2517VOID WINAPI _LeaveSysLevel(SYSLEVEL*);
2518
2519#ifdef __WIN32OS2__
2520HANDLE WINAPI FindFirstVolumeA(LPTSTR lpszVolumeName, DWORD cchBufferLength);
2521HANDLE WINAPI FindFirstVolumeW(LPWSTR lpszVolumeName, DWORD cchBufferLength);
2522#define FindFirstVolume WINELIB_NAME_AW(FindFirstVolume)
2523
2524BOOL WINAPI FindNextVolumeA(HANDLE hFindVolume, LPTSTR lpszVolumeName,
2525 DWORD cchBufferLength);
2526BOOL WINAPI FindNextVolumeW(HANDLE hFindVolume, LPWSTR lpszVolumeName,
2527 DWORD cchBufferLength);
2528#define FindNextVolume WINELIB_NAME_AW(FindNextVolume)
2529
2530BOOL WINAPI FindVolumeClose(HANDLE hFindVolume);
2531
2532HANDLE WINAPI FindFirstVolumeMountPointA(LPTSTR lpszRootPathName,
2533 LPTSTR lpszVolumeMountPoint,
2534 DWORD cchBufferLength);
2535HANDLE WINAPI FindFirstVolumeMountPointW(LPWSTR lpszRootPathName,
2536 LPWSTR lpszVolumeMountPoint,
2537 DWORD cchBufferLength);
2538#define FindFirstVolumeMountPoint WINELIB_NAME_AW(FindFirstVolumeMountPoint)
2539
2540BOOL WINAPI FindNextVolumeMountPointA(HANDLE hFindVolumeMountPoint,
2541 LPTSTR lpszVolumeMountPoint,
2542 DWORD cchBufferLength);
2543BOOL WINAPI FindNextVolumeMountPointW(HANDLE hFindVolumeMountPoint,
2544 LPWSTR lpszVolumeMountPoint,
2545 DWORD cchBufferLength);
2546#define FindNextVolumeMountPoint WINELIB_NAME_AW(FindNextVolumeMountPoint)
2547
2548BOOL WINAPI FindVolumeMountPointClose(HANDLE hFindVolumeMountPoint);
2549BOOL WINAPI GetVolumeNameForVolumeMountPointA(LPCSTR lpszVolumeMountPoint,
2550 LPSTR lpszVolumeName,
2551 DWORD cchBufferLength);
2552BOOL WINAPI GetVolumeNameForVolumeMountPointW(LPCWSTR lpszVolumeMountPoint,
2553 LPWSTR lpszVolumeName,
2554 DWORD cchBufferLength);
2555#define GetVolumeNameForVolumeMountPoint WINELIB_NAME_AW(GetVolumeNameForVolumeMountPoint)
2556
2557#endif
2558
2559#ifdef __cplusplus
2560}
2561#endif
2562
2563#endif /* __WINE_WINBASE_H */
Note: See TracBrowser for help on using the repository browser.