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

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

PF: header updates

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