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

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

YD: header fix

File size: 107.4 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(name) { (void *)(__FILE__ ": " name), -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);
1667DWORD WINAPI InitializeAcl(PACL,DWORD,DWORD);
1668BOOL WINAPI InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD);
1669BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1670BOOL WINAPI IsTextUnicode(CONST LPVOID lpBuffer, int cb, LPINT lpi);
1671BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1672BOOL WINAPI IsValidSid(PSID);
1673BOOL WINAPI ImpersonateLoggedOnUser(HANDLE);
1674BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1675BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1676LONG WINAPI InterlockedCompareExchange( PLONG dest, LONG xchg, LONG compare );
1677LONG WINAPI InterlockedDecrement(LPLONG);
1678LONG WINAPI InterlockedExchange(LPLONG,LONG);
1679LONG WINAPI InterlockedExchangeAdd( PLONG dest, LONG incr );
1680LONG WINAPI InterlockedIncrement(LPLONG);
1681
1682/* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */
1683#define InterlockedCompareExchangePointer(dest, xchg, compare) \
1684 (PVOID)InterlockedCompareExchange( (PLONG)dest, (LONG)xchg, (LONG)compare )
1685
1686#define InterlockedExchangePointer(dest, val) \
1687 (PVOID)InterlockedExchange( (PLONG)dest, (LONG)val )
1688
1689BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1690BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1691BOOL WINAPI IsValidLocale(DWORD,DWORD);
1692BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1693BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1694BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1695BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID);
1696BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID);
1697#define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1698BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
1699HMODULE WINAPI MapHModuleSL(HMODULE16);
1700HMODULE16 WINAPI MapHModuleLS(HMODULE);
1701LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1702LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1703BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1704BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1705#define MoveFile WINELIB_NAME_AW(MoveFile)
1706BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1707BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1708#define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1709INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1710BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1711INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1712HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1713HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1714#define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1715HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1716HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1717#define OpenEvent WINELIB_NAME_AW(OpenEvent)
1718HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
1719HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1720#define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1721HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1722HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1723#define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1724HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1725HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1726#define OpenMutex WINELIB_NAME_AW(OpenMutex)
1727HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1728BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1729HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1730HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1731#define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1732BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1733
1734BOOL WIN32API PostQueuedCompletionStatus(HANDLE CompletionPort,
1735 DWORD dwNumberOfBytesTransferred,
1736 DWORD dwCompletionKey,
1737 LPOVERLAPPED lpOverlapped);
1738
1739DWORD WINAPI PrepareTape(HANDLE,DWORD,BOOL);
1740BOOL WINAPI PulseEvent(HANDLE);
1741BOOL WINAPI PurgeComm(HANDLE,DWORD);
1742DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1743DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1744#define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1745BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1746BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency);
1747
1748BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1749BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1750#define ReadConsole WINELIB_NAME_AW(ReadConsole)
1751BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1752 COORD,LPDWORD);
1753#define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1754BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1755BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1756#define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1757BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1758BOOL WINAPI ReadFileEx(HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
1759 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1760
1761HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
1762HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1763#define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1764DWORD WINAPI RegisterServiceProcess(DWORD dwProcessId, DWORD dwType);
1765BOOL WINAPI ReleaseMutex(HANDLE);
1766BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1767BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
1768BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
1769#define ReportEvent WINELIB_NAME_AW(ReportEvent)
1770BOOL WINAPI ResetEvent(HANDLE);
1771DWORD WINAPI ResumeThread(HANDLE);
1772VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1773#define FillMemory RtlFillMemory
1774VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1775#define MoveMemory RtlMoveMemory
1776VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1777#define ZeroMemory RtlZeroMemory
1778VOID WINAPI RtlCopyMemory(LPVOID,const VOID*, UINT);
1779#define CopyMemory RtlCopyMemory
1780BOOL WINAPI RevertToSelf(void);
1781DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1782DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1783#define SearchPath WINELIB_NAME_AW(SearchPath)
1784BOOL WINAPI SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD);
1785BOOL WINAPI SetCommBreak(HANDLE);
1786BOOL WINAPI SetCommMask(HANDLE,DWORD);
1787BOOL WINAPI SetCommState(HANDLE,LPDCB);
1788BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1789BOOL WINAPI SetComputerNameA(LPCSTR);
1790BOOL WINAPI SetComputerNameW(LPCWSTR);
1791#define SetComputerName WINELIB_NAME_AW(SetComputerName)
1792BOOL WINAPI SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD);
1793BOOL WINAPI SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD);
1794#define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1795BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1796BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1797BOOL WINAPI SetConsoleTitleA(LPCSTR);
1798BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1799#define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1800BOOL WINAPI SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD);
1801BOOL WINAPI SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD);
1802#define SetDefaultCommConfig WINELIB_NAME_AW(SetDefaultCommConfig)
1803BOOL WINAPI SetEndOfFile(HFILE);
1804BOOL WINAPI DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode,
1805 LPVOID lpInBuffer, DWORD nInBufferSize,
1806 LPVOID lpOutBuffer, DWORD nOutBufferSize,
1807 LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped);
1808
1809BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1810BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1811#define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1812BOOL WINAPI SetEvent(HANDLE);
1813VOID WINAPI SetFileApisToANSI(void);
1814VOID WINAPI SetFileApisToOEM(void);
1815DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1816BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1817BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1818#define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1819BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,const FILETIME*);
1820BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1821BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
1822BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1823BOOL WINAPI SetProcessAffinityMask( HANDLE hProcess, DWORD affmask );
1824BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1825BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
1826BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
1827BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1828BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1829BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1830BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1831DWORD WINAPI SetTapeParameters(HANDLE,DWORD,LPVOID);
1832DWORD WINAPI SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL);
1833DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1834BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
1835DWORD WINAPI SetThreadExecutionState(EXECUTION_STATE);
1836BOOL WINAPI SetThreadPriority(HANDLE,INT);
1837BOOL WINAPI SetThreadPriorityBoost(HANDLE,BOOL);
1838BOOL WINAPI SetThreadToken(PHANDLE,HANDLE);
1839BOOL WINAPI SetThreadLocale(LCID);
1840BOOL WINAPI SetThreadPriority(HANDLE,INT);
1841BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1842BOOL WINAPI SetupComm(HANDLE,DWORD,DWORD);
1843VOID WINAPI Sleep(DWORD);
1844DWORD WINAPI SleepEx(DWORD,BOOL);
1845DWORD WINAPI SuspendThread(HANDLE);
1846BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1847DWORD WINAPI TlsAlloc(void);
1848BOOL WINAPI TlsFree(DWORD);
1849LPVOID WINAPI TlsGetValue(DWORD);
1850BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1851BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1852BOOL WINAPI UnmapViewOfFile(LPVOID);
1853BOOL WINAPI FlushInstructionCache(HANDLE,LPCVOID,DWORD);
1854LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1855BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1856BOOL WINAPI VirtualLock(LPVOID,DWORD);
1857BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1858BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1859DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1860DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1861BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1862BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1863BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1864DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1865DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1866DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1867DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1868BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1869BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1870#define WriteConsole WINELIB_NAME_AW(WriteConsole)
1871BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1872BOOL WINAPI WriteFileEx(HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite,
1873 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1874DWORD WINAPI WriteTapemark(HANDLE,DWORD,DWORD,BOOL);
1875DWORD WINAPI GetLastError(void);
1876LANGID WINAPI GetSystemDefaultLangID(void);
1877LCID WINAPI GetSystemDefaultLCID(void);
1878LANGID WINAPI GetUserDefaultLangID(void);
1879LCID WINAPI GetUserDefaultLCID(void);
1880ATOM WINAPI AddAtomA(LPCSTR);
1881ATOM WINAPI AddAtomW(LPCWSTR);
1882#define AddAtom WINELIB_NAME_AW(AddAtom)
1883BOOL WINAPI CancelIo(HANDLE hFile);
1884BOOL WINAPI CancelWaitableTimer(HANDLE);
1885BOOL WINAPI CheckTokenMembership(HANDLE,PSID,PBOOL);
1886BOOL WINAPI ClearCommBreak(HANDLE);
1887BOOL WINAPI ClearCommError(HANDLE,LPDWORD,LPCOMSTAT);
1888BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1889BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1890#define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1891BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1892BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1893#define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1894BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1895BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1896#define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1897HANDLE WINAPI CreateIoCompletionPort( HANDLE FileHandle,
1898 HANDLE ExistingCompletionPort,
1899 DWORD CompletionKey,
1900 DWORD NumberOfConcurrentThreads);
1901BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1902BOOL WINAPI DefineDosDeviceW(DWORD,LPCWSTR,LPCWSTR);
1903#define DefineDosDevice WINELIB_NAME_AW(DefineDosDevice)
1904
1905ATOM WINAPI DeleteAtom(ATOM);
1906BOOL WINAPI DeleteFileA(LPCSTR);
1907BOOL WINAPI DeleteFileW(LPCWSTR);
1908#define DeleteFile WINELIB_NAME_AW(DeleteFile)
1909void WINAPI FatalAppExitA(UINT,LPCSTR);
1910void WINAPI FatalAppExitW(UINT,LPCWSTR);
1911#define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1912VOID WIN32API FatalExit( UINT exitCode);
1913ATOM WINAPI FindAtomA(LPCSTR);
1914ATOM WINAPI FindAtomW(LPCWSTR);
1915#define FindAtom WINELIB_NAME_AW(FindAtom)
1916BOOL WINAPI FindClose(HANDLE);
1917HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1918HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1919#define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1920HANDLE WINAPI FindFirstFileExA(LPCSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1921HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1922#define FindFirstFileEx WINELIB_NAME_AW(FindFirstFileEx)
1923HANDLE WINAPI FindFirstFileMultiA(LPCSTR,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1924BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1925BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1926#define FindNextFile WINELIB_NAME_AW(FindNextFile)
1927BOOL WINAPI FindNextFileMultiA(HANDLE,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1928HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1929HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1930#define FindResource WINELIB_NAME_AW(FindResource)
1931
1932VOID WINAPI FreeLibrary16(HINSTANCE16);
1933BOOL WINAPI FreeLibrary(HMODULE);
1934#define FreeModule(handle) FreeLibrary(handle)
1935#define FreeProcInstance(proc) /*nothing*/
1936BOOL WINAPI FreeResource(HGLOBAL);
1937UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1938UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1939#define GetAtomName WINELIB_NAME_AW(GetAtomName)
1940UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1941UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1942#define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1943BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1944BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1945#define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1946BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1947BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1948#define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1949UINT WINAPI GetDriveTypeA(LPCSTR);
1950UINT WINAPI GetDriveTypeW(LPCWSTR);
1951#define GetDriveType WINELIB_NAME_AW(GetDriveType)
1952DWORD WINAPI GetFileAttributesA(LPCSTR);
1953DWORD WINAPI GetFileAttributesW(LPCWSTR);
1954#define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1955#define GetFreeSpace(w) (0x100000L)
1956UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1957UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1958#define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1959INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1960INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1961#define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1962DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1963DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1964#define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1965HMODULE WINAPI GetModuleHandleA(LPCSTR);
1966HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1967#define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1968BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL);
1969UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1970UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1971#define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1972INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1973INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1974#define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1975DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1976DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1977#define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1978INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1979INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1980#define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1981BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1982BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1983#define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1984FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1985UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1986UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1987#define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1988INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1989INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1990#define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1991INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1992INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1993#define GetProfileString WINELIB_NAME_AW(GetProfileString)
1994
1995BOOL WINAPI GetQueuedCompletionStatus(HANDLE CompletionPort,
1996 LPDWORD lpNumberOfBytesTransferred,
1997 LPDWORD lpCompletionKey,
1998 LPOVERLAPPED *lpOverlapped,
1999 DWORD dwMilliseconds);
2000VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
2001VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
2002#define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
2003BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
2004BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
2005#define GetStringType WINELIB_NAME_AW(GetStringType)
2006UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
2007UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
2008#define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
2009UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
2010UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
2011#define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
2012UINT WINAPI GetTempPathA(UINT,LPSTR);
2013UINT WINAPI GetTempPathW(UINT,LPWSTR);
2014#define GetTempPath WINELIB_NAME_AW(GetTempPath)
2015LONG WINAPI GetVersion(void);
2016BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
2017BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
2018BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
2019#define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
2020UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
2021UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
2022#define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
2023HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
2024HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
2025DWORD WINAPI GlobalCompact(DWORD);
2026UINT WINAPI GlobalFlags(HGLOBAL);
2027HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
2028HGLOBAL WINAPI GlobalFree(HGLOBAL);
2029HGLOBAL WINAPI GlobalHandle(LPCVOID);
2030WORD WINAPI GlobalFix16(HGLOBAL16);
2031VOID WINAPI GlobalFix(HGLOBAL);
2032LPVOID WINAPI GlobalLock16(HGLOBAL16);
2033LPVOID WINAPI GlobalLock(HGLOBAL);
2034HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
2035DWORD WINAPI GlobalSize16(HGLOBAL16);
2036DWORD WINAPI GlobalSize(HGLOBAL);
2037VOID WINAPI GlobalUnfix16(HGLOBAL16);
2038VOID WINAPI GlobalUnfix(HGLOBAL);
2039BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
2040BOOL WINAPI GlobalUnlock(HGLOBAL);
2041BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
2042BOOL WINAPI GlobalUnWire(HGLOBAL);
2043SEGPTR WINAPI GlobalWire16(HGLOBAL16);
2044LPVOID WINAPI GlobalWire(HGLOBAL);
2045BOOL WINAPI InitAtomTable(DWORD);
2046BOOL WINAPI IsBadCodePtr(FARPROC);
2047BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
2048BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
2049BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
2050BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
2051BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
2052#define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
2053BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
2054BOOL WINAPI IsDBCSLeadByte(BYTE);
2055BOOL WINAPI IsDebuggerPresent(void);
2056HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
2057HMODULE WINAPI LoadLibraryA(LPCSTR);
2058HMODULE WINAPI LoadLibraryW(LPCWSTR);
2059#define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
2060HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
2061HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
2062#define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
2063HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
2064HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
2065HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
2066HLOCAL WINAPI LocalAlloc(UINT,DWORD);
2067UINT WINAPI LocalCompact(UINT);
2068UINT WINAPI LocalFlags(HLOCAL);
2069HLOCAL WINAPI LocalFree(HLOCAL);
2070HLOCAL WINAPI LocalHandle(LPCVOID);
2071LPVOID WINAPI LocalLock(HLOCAL);
2072HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
2073UINT WINAPI LocalShrink(HGLOBAL,UINT);
2074UINT WINAPI LocalSize(HLOCAL);
2075BOOL WINAPI LocalUnlock(HLOCAL);
2076LPVOID WINAPI LockResource(HGLOBAL);
2077#define UnlockResource(hResData) ((hResData), 0)
2078
2079#define LockSegment(handle) GlobalFix((HANDLE)(handle))
2080#define MakeProcInstance(proc,inst) (proc)
2081HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
2082HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
2083VOID WINAPI OutputDebugStringA(LPCSTR);
2084VOID WINAPI OutputDebugStringW(LPCWSTR);
2085#define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
2086BOOL WINAPI ReadProcessMemory(HANDLE, LPCVOID, LPVOID, DWORD, LPDWORD);
2087BOOL WINAPI RemoveDirectoryA(LPCSTR);
2088BOOL WINAPI RemoveDirectoryW(LPCWSTR);
2089#define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
2090BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
2091BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
2092#define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
2093UINT WINAPI SetErrorMode(UINT);
2094BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
2095BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
2096#define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
2097UINT WINAPI SetHandleCount(UINT);
2098#define SetSwapAreaSize(w) (w)
2099BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
2100BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
2101#define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
2102DWORD WINAPI SizeofResource(HMODULE,HRSRC);
2103BOOL WINAPI UnlockFileEx(HFILE,DWORD,DWORD,DWORD,LPOVERLAPPED);
2104#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
2105DWORD WINAPI VerLanguageNameA( UINT wLang, LPSTR szLang, UINT nSize );
2106DWORD WINAPI VerLanguageNameW( UINT wLang, LPWSTR szLang, UINT nSize );
2107#define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
2108BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
2109BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
2110#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2111BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
2112BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
2113BOOL WINAPI WriteProcessMemory(HANDLE,LPCVOID,LPVOID,DWORD,LPDWORD);
2114#define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
2115BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
2116BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
2117#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2118BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
2119BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
2120#define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
2121BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
2122BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
2123#define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
2124#define Yield32()
2125LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
2126LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
2127#define lstrcat WINELIB_NAME_AW(lstrcat)
2128LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
2129LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
2130#define lstrcpy WINELIB_NAME_AW(lstrcpy)
2131LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
2132LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
2133#define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
2134INT WINAPI lstrlenA(LPCSTR);
2135INT WINAPI lstrlenW(LPCWSTR);
2136#define lstrlen WINELIB_NAME_AW(lstrlen)
2137HINSTANCE WINAPI WinExec(LPCSTR,UINT);
2138LONG WINAPI _hread(HFILE,LPVOID,LONG);
2139LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
2140HFILE WINAPI _lcreat(LPCSTR,INT);
2141HFILE WINAPI _lclose(HFILE);
2142LONG WINAPI _llseek(HFILE,LONG,INT);
2143HFILE WINAPI _lopen(LPCSTR,INT);
2144UINT WINAPI _lread(HFILE,LPVOID,UINT);
2145UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
2146SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
2147INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
2148INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
2149#define lstrcmp WINELIB_NAME_AW(lstrcmp)
2150INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
2151INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
2152#define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
2153int WINAPI lstrncmpiA(LPCSTR, LPCSTR, int);
2154int WINAPI lstrncmpiW(LPCWSTR, LPCWSTR, int);
2155#define lstrncmpi WINELIB_NAME_AW(lstrncmpi)
2156
2157VOID WINAPI SetLastError(DWORD);
2158
2159
2160BOOL WINAPI SetTokenInformation(HANDLE hToken,
2161 TOKEN_INFORMATION_CLASS tic,
2162 LPVOID lpvInformation,
2163 DWORD cbInformation);
2164BOOL WINAPI GetUserNameA( /*PLF Wed 98-02-11 13:33:39*/
2165 LPTSTR lpBuffer, /* address of name buffer */
2166 LPDWORD lpcchBuffer); /* address of size of name buffer */
2167
2168BOOL WINAPI GetUserNameW( /*KSO Thu 21.05.1998 */
2169 LPWSTR lpBuffer,
2170 LPDWORD lpccBuffer
2171 );
2172
2173BOOL WINAPI AbortSystemShutdownA(LPTSTR lpMachineName);
2174BOOL WINAPI AbortSystemShutdownW(LPWSTR lpMachineName);
2175BOOL WINAPI AccessCheckAndAuditAlarmA(LPCSTR SubsystemName,
2176 LPVOID HandleId,
2177 LPTSTR ObjectTypeName,
2178 LPTSTR ObjectName,
2179 PSECURITY_DESCRIPTOR SecurityDescriptor,
2180 DWORD DesiredAccess,
2181 PGENERIC_MAPPING GenericMapping,
2182 BOOL ObjectCreation,
2183 LPDWORD GrantedAccess,
2184 LPBOOL AccessStatus,
2185 LPBOOL pfGenerateOnClose);
2186BOOL WINAPI AccessCheckAndAuditAlarmW(LPCWSTR SubsystemName,
2187 LPVOID HandleId,
2188 LPWSTR ObjectTypeName,
2189 LPWSTR ObjectName,
2190 PSECURITY_DESCRIPTOR SecurityDescriptor,
2191 DWORD DesiredAccess,
2192 PGENERIC_MAPPING GenericMapping,
2193 BOOL ObjectCreation,
2194 LPDWORD GrantedAccess,
2195 LPBOOL AccessStatus,
2196 LPBOOL pfGenerateOnClose);
2197BOOL WINAPI AddAccessAllowedAce(PACL pAcl,
2198 DWORD dwAceRevision,
2199 DWORD AccessMask,
2200 PSID pSid);
2201BOOL WINAPI AddAccessDeniedAce(PACL pAcl,
2202 DWORD dwAceRevision,
2203 DWORD AccessMask,
2204 PSID pSid);
2205BOOL WINAPI AddAce(PACL pAcl,
2206 DWORD dwAceRevision,
2207 DWORD dwStartingAceIndex,
2208 LPVOID pAceList,
2209 DWORD nAceListLength);
2210BOOL WINAPI AddAuditAccessAce(PACL pAcl,
2211 DWORD dwAceRevision,
2212 DWORD dwAccessMask,
2213 PSID pSid,
2214 BOOL bAuditSuccess,
2215 BOOL bAuditFailure);
2216BOOL WINAPI AdjustTokenGroups(HANDLE TokenHandle,
2217 BOOL ResetToDefault,
2218 PTOKEN_GROUPS NewState,
2219 DWORD BufferLength,
2220 PTOKEN_GROUPS PreviousState,
2221 LPDWORD ReturnLength);
2222BOOL WINAPI AllocateLocallyUniqueId(PLUID Luid);
2223BOOL WINAPI AreAllAccessesGranted(DWORD GrantedAccess,
2224 DWORD DesiredAccess);
2225BOOL WINAPI AreAnyAccessesGranted(DWORD GrantedAccess,
2226 DWORD DesiredAccess);
2227BOOL WINAPI CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR ParentDescriptor,
2228 PSECURITY_DESCRIPTOR CreatorDescriptor,
2229 PSECURITY_DESCRIPTOR *NewDescriptor,
2230 BOOL IsDirectoryObject,
2231 HANDLE Token,
2232 PGENERIC_MAPPING GenericMapping);
2233BOOL WINAPI CreateProcessAsUserA(HANDLE hToken,
2234 LPCSTR lpApplicationName,
2235 LPTSTR lpCommandLine,
2236 LPSECURITY_ATTRIBUTES lpProcessAttributes,
2237 LPSECURITY_ATTRIBUTES lpThreadAttributes,
2238 BOOL bInheritHandles,
2239 DWORD dwCreationFlags,
2240 LPVOID lpEnvironment,
2241 LPCSTR lpCurrentDirectory,
2242 LPSTARTUPINFOA lpStartupInfo,
2243 LPPROCESS_INFORMATION lpProcessInformation);
2244BOOL WINAPI CreateProcessAsUserW(HANDLE hToken,
2245 LPCWSTR lpApplicationName,
2246 LPWSTR lpCommandLine,
2247 LPSECURITY_ATTRIBUTES lpProcessAttributes,
2248 LPSECURITY_ATTRIBUTES lpThreadAttributes,
2249 BOOL bInheritHandles,
2250 DWORD dwCreationFlags,
2251 LPVOID lpEnvironment,
2252 LPCWSTR lpCurrentDirectory,
2253 LPSTARTUPINFOA lpStartupInfo,
2254 LPPROCESS_INFORMATION lpProcessInformation);
2255BOOL WINAPI DeleteAce(PACL pAcl,
2256 DWORD dwAceIndex);
2257BOOL WINAPI DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR *ObjectDescriptor);
2258BOOL WINAPI DuplicateToken(HANDLE ExistingTokenHandle,
2259 SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
2260 PHANDLE DuplicateTokenHandle);
2261BOOL WINAPI FindFirstFreeAce(PACL pAcl,
2262 LPVOID *pAce);
2263BOOL WINAPI GetAce(PACL pAcl,
2264 DWORD dwAceIndex,
2265 LPVOID *pAce);
2266BOOL WINAPI GetAclInformation(PACL pAcl,
2267 LPVOID pAclInformation,
2268 DWORD nAclInformationLength,
2269 ACL_INFORMATION_CLASS dwAclInformationClass);
2270BOOL WINAPI GetKernelObjectSecurity(HANDLE Handle,
2271 SECURITY_INFORMATION RequestedInformation,
2272 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2273 DWORD nLength,
2274 LPDWORD lpnLengthNeeded);
2275BOOL WINAPI GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR ObjectDescriptor,
2276 SECURITY_INFORMATION SecurityInformation,
2277 PSECURITY_DESCRIPTOR ResultantDescriptor,
2278 DWORD DescriptorLength,
2279 LPDWORD ReturnLength);
2280BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken);
2281BOOL WINAPI ImpersonateNamedPipeClient(HANDLE hNamedPipe);
2282BOOL WINAPI InitiateSystemShutdownA(LPTSTR lpMachineName,
2283 LPTSTR lpMessage,
2284 DWORD dwTimeout,
2285 BOOL bForceAppsClosed,
2286 BOOL bRebootAfterShutdown);
2287BOOL WINAPI InitiateSystemShutdownW(LPWSTR lpMachineName,
2288 LPWSTR lpMessage,
2289 DWORD dwTimeout,
2290 BOOL bForceAppsClosed,
2291 BOOL bRebootAfterShutdown);
2292BOOL WINAPI IsValidAcl(PACL pAcl);
2293BOOL WINAPI LogonUserA(LPTSTR lpszUsername,
2294 LPTSTR lpszDomain,
2295 LPTSTR lpszPassword,
2296 DWORD dwLogonType,
2297 DWORD dwLogonProvider,
2298 PHANDLE phToken);
2299BOOL WINAPI LogonUserW(LPWSTR lpszUsername,
2300 LPWSTR lpszDomain,
2301 LPWSTR lpszPassword,
2302 DWORD dwLogonType,
2303 DWORD dwLogonProvider,
2304 PHANDLE phToken);
2305BOOL WINAPI LookupAccountNameA(LPCSTR lpSystemName,
2306 LPCSTR lpAccountName,
2307 PSID Sid,
2308 LPDWORD cbSid,
2309 LPTSTR ReferencedDomainName,
2310 LPDWORD cbReferencedDomainName,
2311 PSID_NAME_USE peUse);
2312BOOL WINAPI LookupAccountNameW(LPCWSTR lpSystemName,
2313 LPCWSTR lpAccountName,
2314 PSID Sid,
2315 LPDWORD cbSid,
2316 LPWSTR ReferencedDomainName,
2317 LPDWORD cbReferencedDomainName,
2318 PSID_NAME_USE peUse);
2319BOOL WINAPI LookupPrivilegeDisplayNameA(LPCSTR lpSystemName,
2320 LPCSTR lpName,
2321 LPTSTR lpDisplayName,
2322 LPDWORD cbDisplayName,
2323 LPDWORD lpLanguageId);
2324BOOL WINAPI LookupPrivilegeDisplayNameW(LPCWSTR lpSystemName,
2325 LPCWSTR lpName,
2326 LPWSTR lpDisplayName,
2327 LPDWORD cbDisplayName,
2328 LPDWORD lpLanguageId);
2329BOOL WINAPI LookupPrivilegeNameA(LPCSTR lpSystemName,
2330 PLUID lpLuid,
2331 LPTSTR lpName,
2332 LPDWORD cbName);
2333BOOL WINAPI LookupPrivilegeNameW(LPCWSTR lpSystemName,
2334 PLUID lpLuid,
2335 LPWSTR lpName,
2336 LPDWORD cbName);
2337BOOL WINAPI MakeAbsoluteSD(PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
2338 PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
2339 LPDWORD lpdwAbsoluteSecurityDescriptorSize,
2340 PACL pDacl,
2341 LPDWORD lpdwDaclSize,
2342 PACL pSacl,
2343 LPDWORD lpdwSaclSize,
2344 PSID pOwner,
2345 LPDWORD lpdwOwnerSize,
2346 PSID pPrimaryGroup,
2347 LPDWORD lpdwPrimaryGroupSize);
2348VOID WINAPI MapGenericMask(LPDWORD AccessMask,
2349 PGENERIC_MAPPING GenericMapping);
2350BOOL WINAPI ObjectCloseAuditAlarmA(LPCSTR SubsystemName,
2351 LPVOID HandleId,
2352 BOOL GenerateOnClose);
2353BOOL WINAPI ObjectCloseAuditAlarmW(LPCWSTR SubsystemName,
2354 LPVOID HandleId,
2355 BOOL GenerateOnClose);
2356BOOL WINAPI ObjectOpenAuditAlarmA(LPCSTR SubsystemName,
2357 LPVOID HandleId,
2358 LPTSTR ObjectTypeName,
2359 LPTSTR ObjectName,
2360 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2361 HANDLE ClientToken,
2362 DWORD DesiredAccess,
2363 DWORD GrantedAccess,
2364 PPRIVILEGE_SET Privileges,
2365 BOOL ObjectCreation,
2366 BOOL AccessGranted,
2367 LPBOOL GenerateOnClose);
2368BOOL WINAPI ObjectOpenAuditAlarmW(LPCWSTR SubsystemName,
2369 LPVOID HandleId,
2370 LPWSTR ObjectTypeName,
2371 LPWSTR ObjectName,
2372 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2373 HANDLE ClientToken,
2374 DWORD DesiredAccess,
2375 DWORD GrantedAccess,
2376 PPRIVILEGE_SET Privileges,
2377 BOOL ObjectCreation,
2378 BOOL AccessGranted,
2379 LPBOOL GenerateOnClose);
2380BOOL WINAPI ObjectPrivilegeAuditAlarmA(LPCSTR lpszSubsystem,
2381 LPVOID lpvHandleId,
2382 HANDLE hClientToken,
2383 DWORD dwDesiredAccess,
2384 PPRIVILEGE_SET pps,
2385 BOOL fAccessGranted);
2386BOOL WINAPI ObjectPrivilegeAuditAlarmW(LPCWSTR lpszSubsystem,
2387 LPVOID lpvHandleId,
2388 HANDLE hClientToken,
2389 DWORD dwDesiredAccess,
2390 PPRIVILEGE_SET pps,
2391 BOOL fAccessGranted);
2392BOOL WINAPI PrivilegeCheck(HANDLE hClientToken,
2393 PPRIVILEGE_SET pps,
2394 LPBOOL lpfResult);
2395BOOL WINAPI PrivilegedServiceAuditAlarmA(LPCSTR lpszSubsystem,
2396 LPCSTR lpszService,
2397 HANDLE hClientToken,
2398 PPRIVILEGE_SET pps,
2399 BOOL fAccessGranted);
2400BOOL WINAPI PrivilegedServiceAuditAlarmW(LPCWSTR lpszSubsystem,
2401 LPCWSTR lpszService,
2402 HANDLE hClientToken,
2403 PPRIVILEGE_SET pps,
2404 BOOL fAccessGranted);
2405BOOL WINAPI SetAclInformation(PACL pAcl,
2406 LPVOID lpvAclInfo,
2407 DWORD cbAclInfo,
2408 ACL_INFORMATION_CLASS aclic);
2409BOOL WINAPI SetKernelObjectSecurity(HANDLE hObject,
2410 SECURITY_INFORMATION si,
2411 PSECURITY_DESCRIPTOR psd);
2412BOOL WINAPI SetPrivateObjectSecurity(SECURITY_INFORMATION si,
2413 PSECURITY_DESCRIPTOR psdSource,
2414 PSECURITY_DESCRIPTOR *lppsdTarget,
2415 PGENERIC_MAPPING pgm,
2416 HANDLE hClientToken);
2417
2418
2419HANDLE WINAPI CreateNamedPipeA(LPCSTR lpName, DWORD dwOpenMode, DWORD dwPipeMode,
2420 DWORD nMaxInstances, DWORD nOutBufferSize,
2421 DWORD nInBufferSize, DWORD nDefaultTimeOut,
2422 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2423HANDLE WINAPI CreateNamedPipeW(LPCWSTR lpName, DWORD dwOpenMode, DWORD dwPipeMode,
2424 DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize,
2425 DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2426#define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
2427
2428BOOL WINAPI GetNamedPipeHandleStateA(HANDLE hNamedPipe, LPDWORD lpState,
2429 LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount,
2430 LPDWORD lpCollectDataTimeout, LPSTR lpUserName,
2431 DWORD nMaxUserNameSize);
2432BOOL WINAPI GetNamedPipeHandleStateW(HANDLE hNamedPipe,LPDWORD lpState, LPDWORD lpCurInstances,
2433 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout,
2434 LPWSTR lpUserName, DWORD nMaxUserNameSize);
2435#define GetNamedPipeHandleState WINELIB_NAME_AW(GetNamedPipeHandleState)
2436
2437BOOL WINAPI CallNamedPipeA(LPCSTR lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize,
2438 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2439 DWORD nTimeOut);
2440BOOL WINAPI CallNamedPipeW(LPCWSTR lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize,
2441 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2442 DWORD nTimeOut);
2443#define CallNamedPipe WINELIB_NAME_AW(CallNamedPipe)
2444
2445
2446BOOL WINAPI WaitNamedPipeA(LPCSTR lpNamedPipeName, DWORD nTimeOut);
2447BOOL WINAPI WaitNamedPipeW(LPCWSTR lpNamedPipeName, DWORD nTimeOut);
2448
2449#define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
2450
2451BOOL WINAPI CreatePipe(PHANDLE hReadPipe, PHANDLE hWritePipe, LPSECURITY_ATTRIBUTES lpPipeAttributes,
2452 DWORD nSize);
2453BOOL WINAPI ConnectNamedPipe(HANDLE hNamedPipe, LPOVERLAPPED lpOverlapped);
2454BOOL WINAPI DisconnectNamedPipe(HANDLE hNamedPipe);
2455BOOL WINAPI SetNamedPipeHandleState(HANDLE hNamedPipe, LPDWORD lpMode,
2456 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout);
2457BOOL WINAPI GetNamedPipeInfo(HANDLE hNamedPipe, LPDWORD lpFlags, LPDWORD lpOutBufferSize,
2458 LPDWORD lpInBufferSize, LPDWORD lpMaxInstances);
2459BOOL WINAPI PeekNamedPipe(HANDLE hNamedPipe, LPVOID lpBuffer, DWORD nBufferSize,
2460 LPDWORD lpBytesRead, LPDWORD lpTotalBytesAvail,
2461 LPDWORD lpBytesLeftThisMessage);
2462BOOL WINAPI TransactNamedPipe(HANDLE hNamedPipe, LPVOID lpInBuffer, DWORD nInBufferSize,
2463 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2464 LPOVERLAPPED lpOverlapped);
2465
2466HANDLE WINAPI CreateMailslotA(LPCSTR lpName, DWORD nMaxMessageSize, DWORD lReadTimeout,
2467 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2468HANDLE WINAPI CreateMailslotW(LPCWSTR lpName, DWORD nMaxMessageSize, DWORD lReadTimeout,
2469 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2470#define CreateMailslot WINELIB_NAME_AW(WaitNamedPipe)
2471
2472BOOL WINAPI GetMailslotInfo(HANDLE hMailslot, LPDWORD lpMaxMessageSize,
2473 LPDWORD lpNextSize, LPDWORD lpMessageCount,
2474 LPDWORD lpReadTimeout);
2475
2476BOOL WINAPI SetMailslotInfo(HANDLE hMailslot, DWORD lReadTimeout);
2477
2478/* undocumented functions */
2479
2480typedef struct tagSYSLEVEL
2481{
2482 CRITICAL_SECTION crst;
2483 INT level;
2484} SYSLEVEL;
2485
2486/* [GS]etProcessDword offsets */
2487#define GPD_APP_COMPAT_FLAGS (-56)
2488#define GPD_LOAD_DONE_EVENT (-52)
2489#define GPD_HINSTANCE16 (-48)
2490#define GPD_WINDOWS_VERSION (-44)
2491#define GPD_THDB (-40)
2492#define GPD_PDB (-36)
2493#define GPD_STARTF_SHELLDATA (-32)
2494#define GPD_STARTF_HOTKEY (-28)
2495#define GPD_STARTF_SHOWWINDOW (-24)
2496#define GPD_STARTF_SIZE (-20)
2497#define GPD_STARTF_POSITION (-16)
2498#define GPD_STARTF_FLAGS (-12)
2499#define GPD_PARENT (- 8)
2500#define GPD_FLAGS (- 4)
2501#define GPD_USERDATA ( 0)
2502
2503void WINAPI DisposeLZ32Handle(HANDLE);
2504HANDLE WINAPI DosFileHandleToWin32Handle(HFILE);
2505DWORD WINAPI GetProcessDword(DWORD,INT);
2506VOID WINAPI GetpWin16Lock(SYSLEVEL**);
2507DWORD WINAPI MapLS(LPCVOID);
2508DWORD WINAPI MapProcessHandle(HANDLE);
2509LPVOID WINAPI MapSL(DWORD);
2510VOID WINAPI ReleaseThunkLock(DWORD*);
2511VOID WINAPI RestoreThunkLock(DWORD);
2512void WINAPI SetProcessDword(DWORD,INT,DWORD);
2513VOID WINAPI UnMapLS(DWORD);
2514HFILE WINAPI Win32HandleToDosFileHandle(HANDLE);
2515VOID WINAPI _CheckNotSysLevel(SYSLEVEL *lock);
2516DWORD WINAPI _ConfirmWin16Lock(void);
2517DWORD WINAPI _ConfirmSysLevel(SYSLEVEL*);
2518VOID WINAPI _EnterSysLevel(SYSLEVEL*);
2519VOID WINAPI _LeaveSysLevel(SYSLEVEL*);
2520
2521#ifdef __WIN32OS2__
2522HANDLE WINAPI FindFirstVolumeA(LPTSTR lpszVolumeName, DWORD cchBufferLength);
2523HANDLE WINAPI FindFirstVolumeW(LPWSTR lpszVolumeName, DWORD cchBufferLength);
2524#define FindFirstVolume WINELIB_NAME_AW(FindFirstVolume)
2525
2526BOOL WINAPI FindNextVolumeA(HANDLE hFindVolume, LPTSTR lpszVolumeName,
2527 DWORD cchBufferLength);
2528BOOL WINAPI FindNextVolumeW(HANDLE hFindVolume, LPWSTR lpszVolumeName,
2529 DWORD cchBufferLength);
2530#define FindNextVolume WINELIB_NAME_AW(FindNextVolume)
2531
2532BOOL WINAPI FindVolumeClose(HANDLE hFindVolume);
2533
2534HANDLE WINAPI FindFirstVolumeMountPointA(LPTSTR lpszRootPathName,
2535 LPTSTR lpszVolumeMountPoint,
2536 DWORD cchBufferLength);
2537HANDLE WINAPI FindFirstVolumeMountPointW(LPWSTR lpszRootPathName,
2538 LPWSTR lpszVolumeMountPoint,
2539 DWORD cchBufferLength);
2540#define FindFirstVolumeMountPoint WINELIB_NAME_AW(FindFirstVolumeMountPoint)
2541
2542BOOL WINAPI FindNextVolumeMountPointA(HANDLE hFindVolumeMountPoint,
2543 LPTSTR lpszVolumeMountPoint,
2544 DWORD cchBufferLength);
2545BOOL WINAPI FindNextVolumeMountPointW(HANDLE hFindVolumeMountPoint,
2546 LPWSTR lpszVolumeMountPoint,
2547 DWORD cchBufferLength);
2548#define FindNextVolumeMountPoint WINELIB_NAME_AW(FindNextVolumeMountPoint)
2549
2550BOOL WINAPI FindVolumeMountPointClose(HANDLE hFindVolumeMountPoint);
2551BOOL WINAPI GetVolumeNameForVolumeMountPointA(LPCSTR lpszVolumeMountPoint,
2552 LPSTR lpszVolumeName,
2553 DWORD cchBufferLength);
2554BOOL WINAPI GetVolumeNameForVolumeMountPointW(LPCWSTR lpszVolumeMountPoint,
2555 LPWSTR lpszVolumeName,
2556 DWORD cchBufferLength);
2557#define GetVolumeNameForVolumeMountPoint WINELIB_NAME_AW(GetVolumeNameForVolumeMountPoint)
2558
2559#endif
2560
2561#ifdef __cplusplus
2562}
2563#endif
2564
2565#endif /* __WINE_WINBASE_H */
Note: See TracBrowser for help on using the repository browser.