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

Last change on this file since 7557 was 7557, checked in by sandervl, 24 years ago

header updates

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