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

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

header updates

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