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

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

Support for Windows 2000 GetVersionEx extension (OSVERSIONINFOEX structure) added

File size: 100.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 } 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
1251typedef struct _OSVERSIONINFOEXA {
1252 DWORD dwOSVersionInfoSize;
1253 DWORD dwMajorVersion;
1254 DWORD dwMinorVersion;
1255 DWORD dwBuildNumber;
1256 DWORD dwPlatformId;
1257 CHAR szCSDVersion[128];
1258 WORD wServicePackMajor;
1259 WORD wServicePackMinor;
1260 WORD wReserved[2];
1261} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
1262typedef struct _OSVERSIONINFOEXW {
1263 DWORD dwOSVersionInfoSize;
1264 DWORD dwMajorVersion;
1265 DWORD dwMinorVersion;
1266 DWORD dwBuildNumber;
1267 DWORD dwPlatformId;
1268 WCHAR szCSDVersion[128];
1269 WORD wServicePackMajor;
1270 WORD wServicePackMinor;
1271 WORD wReserved[2];
1272} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW;
1273
1274DECL_WINELIB_TYPE_AW(OSVERSIONINFOEX)
1275DECL_WINELIB_TYPE_AW(POSVERSIONINFOEX)
1276DECL_WINELIB_TYPE_AW(LPOSVERSIONINFOEX)
1277
1278#define VER_PLATFORM_WIN32s 0
1279#define VER_PLATFORM_WIN32_WINDOWS 1
1280#define VER_PLATFORM_WIN32_NT 2
1281
1282typedef struct _COMMPROP {
1283 WORD wPacketLength;
1284 WORD wPacketVersion;
1285 DWORD dwServiceMask;
1286 DWORD dwReserved1;
1287 DWORD dwMaxTxQueue;
1288 DWORD dwMaxRxQueue;
1289 DWORD dwMaxBaud;
1290 DWORD dwProvSubType;
1291 DWORD dwProvCapabilities;
1292 DWORD dwSettableParams;
1293 DWORD dwSettableBaud;
1294 WORD wSettableData;
1295 WORD wSettableStopParity;
1296 DWORD dwCurrentTxQueue;
1297 DWORD dwCurrentRxQueue;
1298 DWORD dwProvSpec1;
1299 DWORD dwProvSpec2;
1300 WCHAR wcProvChar[1];
1301} COMMPROP,*LPCOMMPROP;
1302
1303typedef struct tagCOMSTAT
1304{
1305 // DWORD status; // maybe make this a union ??
1306 unsigned fCtsHold:1;
1307 unsigned fDsrHold:1;
1308 unsigned fRlsdHold:1;
1309 unsigned fXoffHold:1;
1310 unsigned fXoffSend:1;
1311 unsigned fEof:1;
1312 unsigned fTxim:1;
1313 unsigned fReserved:25;
1314 DWORD cbInQue;
1315 DWORD cbOutQue;
1316} COMSTAT,*LPCOMSTAT;
1317
1318typedef struct tagDCB
1319{
1320 DWORD DCBlength;
1321 DWORD BaudRate;
1322 unsigned fBinary :1;
1323 unsigned fParity :1;
1324 unsigned fOutxCtsFlow :1;
1325 unsigned fOutxDsrFlow :1;
1326 unsigned fDtrControl :2;
1327 unsigned fDsrSensitivity :1;
1328 unsigned fTXContinueOnXoff :1;
1329 unsigned fOutX :1;
1330 unsigned fInX :1;
1331 unsigned fErrorChar :1;
1332 unsigned fNull :1;
1333 unsigned fRtsControl :2;
1334 unsigned fAbortOnError :1;
1335 unsigned fDummy2 :17;
1336 WORD wReserved;
1337 WORD XonLim;
1338 WORD XoffLim;
1339 BYTE ByteSize;
1340 BYTE Parity;
1341 BYTE StopBits;
1342 char XonChar;
1343 char XoffChar;
1344 char ErrorChar;
1345 char EofChar;
1346 char EvtChar;
1347} DCB, *LPDCB;
1348
1349
1350
1351typedef struct tagCOMMTIMEOUTS {
1352 DWORD ReadIntervalTimeout;
1353 DWORD ReadTotalTimeoutMultiplier;
1354 DWORD ReadTotalTimeoutConstant;
1355 DWORD WriteTotalTimeoutMultiplier;
1356 DWORD WriteTotalTimeoutConstant;
1357} COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1358
1359typedef struct _COMMCONFIG {
1360 DWORD dwSize;
1361 WORD wVersion;
1362 WORD wReserved;
1363 DCB dcb;
1364 DWORD dwProviderSubType;
1365 DWORD dwProviderOffset;
1366 DWORD dwProviderSize;
1367 WCHAR wcProviderData[1];
1368} COMMCONFIG,*LPCOMMCONFIG;
1369
1370#include "poppack.h"
1371
1372typedef VOID (* CALLBACK PAPCFUNC)(ULONG_PTR);
1373
1374BOOL WINAPI ClearCommError(HANDLE,LPDWORD,LPCOMSTAT);
1375BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1376BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1377#define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1378BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1379BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1380#define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1381BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1382BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1383BOOL WINAPI GetCommProperties(HANDLE,LPCOMMPROP);
1384BOOL WINAPI GetCommState(HANDLE,LPDCB);
1385BOOL WINAPI SetCommState(HANDLE,LPDCB);
1386BOOL WINAPI TransmitCommChar(HANDLE,CHAR);
1387
1388
1389/*DWORD WINAPI GetVersion( void );*/
1390BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1391BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1392#define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1393
1394/*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1395
1396void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1397void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1398void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1399void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1400void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1401HANDLE WINAPI OpenProcess(DWORD access, BOOL inherit, DWORD id);
1402BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1403DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1404void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1405BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1406BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1407BOOL WINAPI TerminateThread(HANDLE,DWORD);
1408BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1409
1410/* GetBinaryType return values.
1411 */
1412
1413#define SCS_32BIT_BINARY 0
1414#define SCS_DOS_BINARY 1
1415#define SCS_WOW_BINARY 2
1416#define SCS_PIF_BINARY 3
1417#define SCS_POSIX_BINARY 4
1418#define SCS_OS216_BINARY 5
1419
1420BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1421BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1422#define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1423
1424BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1425BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1426/* Declarations for functions that exist only in Win32 */
1427
1428BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
1429//BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1430BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,LPDWORD);
1431BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
1432BOOL WINAPI AllocateLocallyUniqueId(PLUID);
1433BOOL WINAPI AllocConsole(void);
1434BOOL WINAPI AreFileApisANSI(void);
1435BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
1436BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
1437#define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1438BOOL WINAPI Beep(DWORD,DWORD);
1439BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1440BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1441#define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1442BOOL WINAPI CloseEventLog(HANDLE);
1443BOOL WINAPI CloseHandle(HANDLE);
1444BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1445HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1446BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1447BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1448#define CopyFile WINELIB_NAME_AW(CopyFile)
1449BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1450BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1451#define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1452BOOL WINAPI CopySid(DWORD,PSID,PSID);
1453INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1454HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1455HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1456#define CreateEvent WINELIB_NAME_AW(CreateEvent)
1457HFILE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1458 DWORD,DWORD,HANDLE);
1459HFILE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1460 DWORD,DWORD,HANDLE);
1461#define CreateFile WINELIB_NAME_AW(CreateFile)
1462HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1463 DWORD,DWORD,LPCSTR);
1464HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1465 DWORD,DWORD,LPCWSTR);
1466#define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1467HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1468HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1469#define CreateMutex WINELIB_NAME_AW(CreateMutex)
1470BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1471BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1472 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1473 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1474BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1475 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1476 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1477#define CreateProcess WINELIB_NAME_AW(CreateProcess)
1478HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1479HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1480#define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1481HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1482BOOL WINAPI DebugActiveProcess(DWORD);
1483void WINAPI DebugBreak(void);
1484BOOL WINAPI DeregisterEventSource(HANDLE);
1485BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1486BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1487BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1488BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1489BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1490#define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1491BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1492 ENUMRESLANGPROCA,LONG);
1493BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1494 ENUMRESLANGPROCW,LONG);
1495#define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1496BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1497 LONG);
1498BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1499 LONG);
1500#define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1501BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1502BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1503#define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1504BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
1505BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
1506#define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1507BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
1508BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
1509#define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1510BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1511BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1512#define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1513BOOL WINAPI EqualSid(PSID, PSID);
1514BOOL WINAPI EqualPrefixSid(PSID,PSID);
1515VOID WINAPI ExitProcess(DWORD);
1516VOID WINAPI ExitThread(DWORD);
1517DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1518DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1519#define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1520BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1521BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1522BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1523HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1524HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1525#define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1526BOOL WINAPI FindNextChangeNotification(HANDLE);
1527BOOL WINAPI FindCloseChangeNotification(HANDLE);
1528HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1529HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1530#define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1531BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1532BOOL WINAPI FlushFileBuffers(HFILE);
1533BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1534DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1535 DWORD,LPDWORD);
1536DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1537 DWORD,LPDWORD);
1538#define FormatMessage WINELIB_NAME_AW(FormatMessage)
1539BOOL WINAPI FreeConsole(void);
1540BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1541BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1542#define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1543PVOID WINAPI FreeSid(PSID);
1544UINT WINAPI GetACP(void);
1545LPCSTR WINAPI GetCommandLineA(void);
1546LPCWSTR WINAPI GetCommandLineW(void);
1547#define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1548BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1549BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1550#define GetComputerName WINELIB_NAME_AW(GetComputerName)
1551UINT WINAPI GetConsoleCP(void);
1552BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1553UINT WINAPI GetConsoleOutputCP(void);
1554DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1555DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1556#define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1557BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
1558BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1559BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1560HANDLE WINAPI GetCurrentProcess(void);
1561DWORD WINAPI GetCurrentProcessId(void);
1562HANDLE WINAPI GetCurrentThread(void);
1563DWORD WINAPI GetCurrentThreadId(void);
1564INT WINAPI GetDateFormatA(LCID locale,DWORD flags, LPSYSTEMTIME xtime,
1565 LPCSTR format, LPSTR date,INT datelen);
1566INT WINAPI GetDateFormatW(LCID locale,DWORD flags, LPSYSTEMTIME xtime,
1567 LPCWSTR format,LPWSTR date, INT datelen);
1568#define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1569LPSTR WINAPI GetEnvironmentStringsA(void);
1570LPWSTR WINAPI GetEnvironmentStringsW(void);
1571#define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1572DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1573DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1574#define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1575BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1576BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1577#define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1578DWORD WINAPI GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
1579BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1580BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1581#define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1582DWORD WINAPI GetFileSize(HFILE,LPDWORD);
1583BOOL WINAPI GetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
1584DWORD WINAPI GetFileType(HFILE);
1585DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1586DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1587#define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1588BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1589DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
1590DWORD WINAPI GetLengthSid(PSID);
1591VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1592DWORD WINAPI GetLogicalDrives(void);
1593DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1594DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1595#define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1596BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1597BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1598BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
1599UINT WINAPI GetOEMCP(void);
1600BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
1601DWORD WINAPI GetPriorityClass(HANDLE);
1602BOOL WINAPI GetProcessAffinityMask(HANDLE hProcess,
1603 LPDWORD lpProcessAffinityMask,
1604 LPDWORD lpSystemAffinityMask);
1605HANDLE WINAPI GetProcessHeap(void);
1606DWORD WINAPI GetProcessVersion(DWORD);
1607//BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
1608BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1609BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1610DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
1611BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1612BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1613PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
1614DWORD WINAPI GetSidLengthRequired(BYTE);
1615PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
1616PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
1617DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1618DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1619#define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1620HFILE WINAPI GetStdHandle(DWORD);
1621BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1622BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1623#define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1624VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1625BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1626VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1627VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME);
1628DWORD WINAPI GetTapeParameters(HANDLE,DWORD,LPDWORD,LPVOID);
1629DWORD WINAPI GetTapePosition(HANDLE,DWORD,LPDWORD,LPDWORD,LPDWORD);
1630DWORD WINAPI GetTapeStatus(HANDLE);
1631INT WINAPI GetTimeFormatA(LCID locale, DWORD flags, LPSYSTEMTIME xtime,
1632 LPCSTR format, LPSTR timestr, INT timelen);
1633INT WINAPI GetTimeFormatW(LCID locale, DWORD flags, LPSYSTEMTIME xtime,
1634 LPCWSTR format, LPWSTR timestr, INT timelen);
1635#define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1636BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
1637LCID WINAPI GetThreadLocale(void);
1638INT WINAPI GetThreadPriority(HANDLE);
1639BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1640BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1641BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
1642BOOL WINAPI GetUserNameA(LPSTR,LPDWORD);
1643BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD);
1644#define GetUserName WINELIB_NAME_AW(GetUserName)
1645VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1646LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1647DWORD WINAPI HeapCompact(HANDLE,DWORD);
1648HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1649BOOL WINAPI HeapDestroy(HANDLE);
1650BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1651BOOL WINAPI HeapLock(HANDLE);
1652LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1653DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1654BOOL WINAPI HeapUnlock(HANDLE);
1655BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1656BOOL WINAPI HeapWalk (HANDLE, LPVOID);
1657BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1658BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1659BOOL WINAPI IsValidSid(PSID);
1660BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1661LONG WINAPI InterlockedDecrement(LPLONG);
1662LONG WINAPI InterlockedExchange(LPLONG,LONG);
1663LONG WINAPI InterlockedExchangeAdd( PLONG dest, LONG incr );
1664LONG WINAPI InterlockedIncrement(LPLONG);
1665BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1666BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1667BOOL WINAPI IsValidLocale(DWORD,DWORD);
1668BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1669BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1670BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1671BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID);
1672BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID);
1673#define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1674BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
1675HMODULE WINAPI MapHModuleSL(HMODULE16);
1676HMODULE16 WINAPI MapHModuleLS(HMODULE);
1677LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1678LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1679BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1680BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1681#define MoveFile WINELIB_NAME_AW(MoveFile)
1682BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1683BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1684#define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1685INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1686BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1687INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1688HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1689HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1690#define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1691HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1692HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1693#define OpenEvent WINELIB_NAME_AW(OpenEvent)
1694HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
1695HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1696#define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1697HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1698HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1699#define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1700HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1701HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1702#define OpenMutex WINELIB_NAME_AW(OpenMutex)
1703HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1704BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1705HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1706HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1707#define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1708BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1709BOOL WINAPI PulseEvent(HANDLE);
1710BOOL WINAPI PurgeComm(HANDLE,DWORD);
1711DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1712DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1713#define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1714BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1715BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency);
1716
1717BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1718BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1719#define ReadConsole WINELIB_NAME_AW(ReadConsole)
1720BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1721 COORD,LPDWORD);
1722#define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1723BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1724BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1725#define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1726BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1727BOOL WINAPI ReadFileEx(HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
1728 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1729
1730HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
1731HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1732#define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1733BOOL WINAPI ReleaseMutex(HANDLE);
1734BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1735BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
1736BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
1737#define ReportEvent WINELIB_NAME_AW(ReportEvent)
1738BOOL WINAPI ResetEvent(HANDLE);
1739DWORD WINAPI ResumeThread(HANDLE);
1740VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1741#define FillMemory RtlFillMemory
1742VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1743#define MoveMemory RtlMoveMemory
1744VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1745#define ZeroMemory RtlZeroMemory
1746VOID WINAPI RtlCopyMemory(LPVOID,const VOID*, UINT);
1747#define CopyMemory RtlCopyMemory
1748BOOL WINAPI RevertToSelf(void);
1749DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1750DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1751#define SearchPath WINELIB_NAME_AW(SearchPath)
1752BOOL WINAPI SetCommMask(HANDLE,DWORD);
1753BOOL WINAPI SetComputerNameA(LPCSTR);
1754BOOL WINAPI SetComputerNameW(LPCWSTR);
1755#define SetComputerName WINELIB_NAME_AW(SetComputerName)
1756BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1757BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1758BOOL WINAPI SetConsoleTitleA(LPCSTR);
1759BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1760#define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1761BOOL WINAPI SetEndOfFile(HFILE);
1762BOOL WINAPI DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode,
1763 LPVOID lpInBuffer, DWORD nInBufferSize,
1764 LPVOID lpOutBuffer, DWORD nOutBufferSize,
1765 LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped);
1766
1767BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1768BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1769#define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1770BOOL WINAPI SetEvent(HANDLE);
1771VOID WINAPI SetFileApisToANSI(void);
1772VOID WINAPI SetFileApisToOEM(void);
1773DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1774BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1775BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1776#define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1777BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,const FILETIME*);
1778BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1779BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
1780BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1781BOOL WINAPI SetProcessAffinityMask( HANDLE hProcess, DWORD affmask );
1782BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1783BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
1784BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
1785BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1786BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1787BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1788BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1789DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1790BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
1791BOOL WINAPI SetThreadLocale(LCID);
1792BOOL WINAPI SetThreadPriority(HANDLE,INT);
1793BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1794VOID WINAPI Sleep(DWORD);
1795DWORD WINAPI SleepEx(DWORD,BOOL);
1796DWORD WINAPI SuspendThread(HANDLE);
1797BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1798DWORD WINAPI TlsAlloc(void);
1799BOOL WINAPI TlsFree(DWORD);
1800LPVOID WINAPI TlsGetValue(DWORD);
1801BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1802BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1803BOOL WINAPI UnmapViewOfFile(LPVOID);
1804BOOL WINAPI FlushInstructionCache(HANDLE,LPCVOID,DWORD);
1805LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1806BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1807BOOL WINAPI VirtualLock(LPVOID,DWORD);
1808BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1809BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1810DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1811DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1812BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1813BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1814BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1815DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1816DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1817DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1818DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1819BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1820BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1821#define WriteConsole WINELIB_NAME_AW(WriteConsole)
1822BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1823BOOL WINAPI WriteFileEx(HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite,
1824 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1825DWORD WINAPI GetLastError(void);
1826LANGID WINAPI GetSystemDefaultLangID(void);
1827LCID WINAPI GetSystemDefaultLCID(void);
1828LANGID WINAPI GetUserDefaultLangID(void);
1829LCID WINAPI GetUserDefaultLCID(void);
1830ATOM WINAPI AddAtomA(LPCSTR);
1831ATOM WINAPI AddAtomW(LPCWSTR);
1832#define AddAtom WINELIB_NAME_AW(AddAtom)
1833BOOL WINAPI CancelIo(HANDLE hFile);
1834UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
1835UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
1836#define CompareString WINELIB_NAME_AW(CompareString)
1837BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1838BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1839#define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1840BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1841BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1842#define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1843BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1844#define DefineHandleTable(w) ((w),TRUE)
1845ATOM WINAPI DeleteAtom(ATOM);
1846BOOL WINAPI DeleteFileA(LPCSTR);
1847BOOL WINAPI DeleteFileW(LPCWSTR);
1848#define DeleteFile WINELIB_NAME_AW(DeleteFile)
1849void WINAPI FatalAppExitA(UINT,LPCSTR);
1850void WINAPI FatalAppExitW(UINT,LPCWSTR);
1851#define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1852ATOM WINAPI FindAtomA(LPCSTR);
1853ATOM WINAPI FindAtomW(LPCWSTR);
1854#define FindAtom WINELIB_NAME_AW(FindAtom)
1855BOOL WINAPI FindClose(HANDLE);
1856HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1857HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1858#define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1859HANDLE WINAPI FindFirstFileExA(LPCSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1860HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD);
1861#define FindFirstFileEx WINELIB_NAME_AW(FindFirstFileEx)
1862HANDLE WINAPI FindFirstFileMultiA(LPCSTR,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1863BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1864BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1865#define FindNextFile WINELIB_NAME_AW(FindNextFile)
1866BOOL WINAPI FindNextFileMultiA(HANDLE,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1867HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1868HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1869#define FindResource WINELIB_NAME_AW(FindResource)
1870VOID WINAPI FreeLibrary16(HINSTANCE16);
1871BOOL WINAPI FreeLibrary(HMODULE);
1872#define FreeModule(handle) FreeLibrary(handle)
1873#define FreeProcInstance(proc) /*nothing*/
1874BOOL WINAPI FreeResource(HGLOBAL);
1875UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1876UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1877#define GetAtomName WINELIB_NAME_AW(GetAtomName)
1878UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1879UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1880#define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1881BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1882BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1883#define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1884BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1885BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1886#define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1887UINT WINAPI GetDriveTypeA(LPCSTR);
1888UINT WINAPI GetDriveTypeW(LPCWSTR);
1889#define GetDriveType WINELIB_NAME_AW(GetDriveType)
1890DWORD WINAPI GetFileAttributesA(LPCSTR);
1891DWORD WINAPI GetFileAttributesW(LPCWSTR);
1892#define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1893#define GetFreeSpace(w) (0x100000L)
1894UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1895UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1896#define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1897INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1898INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1899#define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1900DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1901DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1902#define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1903HMODULE WINAPI GetModuleHandleA(LPCSTR);
1904HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1905#define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1906BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL);
1907UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1908UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1909#define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1910INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1911INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1912#define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1913DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1914DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1915#define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1916INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1917INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1918#define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1919BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1920BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1921#define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1922FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1923UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1924UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1925#define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1926INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1927INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1928#define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1929INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1930INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1931#define GetProfileString WINELIB_NAME_AW(GetProfileString)
1932VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1933VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1934#define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1935BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1936BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
1937#define GetStringType WINELIB_NAME_AW(GetStringType)
1938UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1939UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1940#define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1941UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1942UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1943#define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1944UINT WINAPI GetTempPathA(UINT,LPSTR);
1945UINT WINAPI GetTempPathW(UINT,LPWSTR);
1946#define GetTempPath WINELIB_NAME_AW(GetTempPath)
1947LONG WINAPI GetVersion(void);
1948BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1949BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1950BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1951#define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1952UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1953UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1954#define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1955HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
1956HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1957DWORD WINAPI GlobalCompact(DWORD);
1958UINT WINAPI GlobalFlags(HGLOBAL);
1959HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
1960HGLOBAL WINAPI GlobalFree(HGLOBAL);
1961HGLOBAL WINAPI GlobalHandle(LPCVOID);
1962WORD WINAPI GlobalFix16(HGLOBAL16);
1963VOID WINAPI GlobalFix(HGLOBAL);
1964LPVOID WINAPI GlobalLock16(HGLOBAL16);
1965LPVOID WINAPI GlobalLock(HGLOBAL);
1966HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1967DWORD WINAPI GlobalSize16(HGLOBAL16);
1968DWORD WINAPI GlobalSize(HGLOBAL);
1969VOID WINAPI GlobalUnfix16(HGLOBAL16);
1970VOID WINAPI GlobalUnfix(HGLOBAL);
1971BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
1972BOOL WINAPI GlobalUnlock(HGLOBAL);
1973BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
1974BOOL WINAPI GlobalUnWire(HGLOBAL);
1975SEGPTR WINAPI GlobalWire16(HGLOBAL16);
1976LPVOID WINAPI GlobalWire(HGLOBAL);
1977BOOL WINAPI InitAtomTable(DWORD);
1978BOOL WINAPI IsBadCodePtr(FARPROC);
1979BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1980BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1981BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1982BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1983BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1984#define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1985BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1986BOOL WINAPI IsDBCSLeadByte(BYTE);
1987HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
1988HMODULE WINAPI LoadLibraryA(LPCSTR);
1989HMODULE WINAPI LoadLibraryW(LPCWSTR);
1990#define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1991HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
1992HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
1993#define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1994HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
1995HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1996HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1997HLOCAL WINAPI LocalAlloc(UINT,DWORD);
1998UINT WINAPI LocalCompact(UINT);
1999UINT WINAPI LocalFlags(HLOCAL);
2000HLOCAL WINAPI LocalFree(HLOCAL);
2001HLOCAL WINAPI LocalHandle(LPCVOID);
2002LPVOID WINAPI LocalLock(HLOCAL);
2003HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
2004UINT WINAPI LocalShrink(HGLOBAL,UINT);
2005UINT WINAPI LocalSize(HLOCAL);
2006BOOL WINAPI LocalUnlock(HLOCAL);
2007LPVOID WINAPI LockResource(HGLOBAL);
2008#define UnlockResource(hResData) ((hResData), 0)
2009
2010#define LockSegment(handle) GlobalFix((HANDLE)(handle))
2011#define MakeProcInstance(proc,inst) (proc)
2012HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
2013HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
2014VOID WINAPI OutputDebugStringA(LPCSTR);
2015VOID WINAPI OutputDebugStringW(LPCWSTR);
2016#define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
2017BOOL WINAPI RemoveDirectoryA(LPCSTR);
2018BOOL WINAPI RemoveDirectoryW(LPCWSTR);
2019#define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
2020BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
2021BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
2022#define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
2023UINT WINAPI SetErrorMode(UINT);
2024BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
2025BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
2026#define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
2027UINT WINAPI SetHandleCount(UINT);
2028#define SetSwapAreaSize(w) (w)
2029BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
2030BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
2031#define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
2032DWORD WINAPI SizeofResource(HMODULE,HRSRC);
2033#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
2034DWORD WINAPI VerLanguageNameA( UINT wLang, LPSTR szLang, UINT nSize );
2035DWORD WINAPI VerLanguageNameW( UINT wLang, LPWSTR szLang, UINT nSize );
2036#define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
2037BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
2038BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
2039#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2040BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
2041BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
2042#define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
2043BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
2044BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
2045#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2046BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
2047BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
2048#define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
2049BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
2050BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
2051#define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
2052#define Yield32()
2053LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
2054LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
2055#define lstrcat WINELIB_NAME_AW(lstrcat)
2056LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
2057LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
2058#define lstrcpy WINELIB_NAME_AW(lstrcpy)
2059LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
2060LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
2061#define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
2062INT WINAPI lstrlenA(LPCSTR);
2063INT WINAPI lstrlenW(LPCWSTR);
2064#define lstrlen WINELIB_NAME_AW(lstrlen)
2065HINSTANCE WINAPI WinExec(LPCSTR,UINT);
2066LONG WINAPI _hread(HFILE,LPVOID,LONG);
2067LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
2068HFILE WINAPI _lcreat(LPCSTR,INT);
2069HFILE WINAPI _lclose(HFILE);
2070LONG WINAPI _llseek(HFILE,LONG,INT);
2071HFILE WINAPI _lopen(LPCSTR,INT);
2072UINT WINAPI _lread(HFILE,LPVOID,UINT);
2073UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
2074SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
2075INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
2076INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
2077#define lstrcmp WINELIB_NAME_AW(lstrcmp)
2078INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
2079INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
2080#define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
2081int WINAPI lstrncmpiA(LPCSTR, LPCSTR, int);
2082int WINAPI lstrncmpiW(LPCWSTR, LPCWSTR, int);
2083#define lstrncmpi WINELIB_NAME_AW(lstrncmpi)
2084
2085VOID WINAPI SetLastError(DWORD);
2086
2087
2088BOOL WINAPI SetTokenInformation(HANDLE hToken,
2089 TOKEN_INFORMATION_CLASS tic,
2090 LPVOID lpvInformation,
2091 DWORD cbInformation);
2092BOOL WINAPI GetUserNameA( /*PLF Wed 98-02-11 13:33:39*/
2093 LPTSTR lpBuffer, /* address of name buffer */
2094 LPDWORD lpcchBuffer); /* address of size of name buffer */
2095
2096BOOL WINAPI GetUserNameW( /*KSO Thu 21.05.1998 */
2097 LPWSTR lpBuffer,
2098 LPDWORD lpccBuffer
2099 );
2100
2101BOOL WINAPI AbortSystemShutdownA(LPTSTR lpMachineName);
2102BOOL WINAPI AbortSystemShutdownW(LPWSTR lpMachineName);
2103BOOL WINAPI AccessCheckAndAuditAlarmA(LPCSTR SubsystemName,
2104 LPVOID HandleId,
2105 LPTSTR ObjectTypeName,
2106 LPTSTR ObjectName,
2107 PSECURITY_DESCRIPTOR SecurityDescriptor,
2108 DWORD DesiredAccess,
2109 PGENERIC_MAPPING GenericMapping,
2110 BOOL ObjectCreation,
2111 LPDWORD GrantedAccess,
2112 LPBOOL AccessStatus,
2113 LPBOOL pfGenerateOnClose);
2114BOOL WINAPI AccessCheckAndAuditAlarmW(LPCWSTR SubsystemName,
2115 LPVOID HandleId,
2116 LPWSTR ObjectTypeName,
2117 LPWSTR ObjectName,
2118 PSECURITY_DESCRIPTOR SecurityDescriptor,
2119 DWORD DesiredAccess,
2120 PGENERIC_MAPPING GenericMapping,
2121 BOOL ObjectCreation,
2122 LPDWORD GrantedAccess,
2123 LPBOOL AccessStatus,
2124 LPBOOL pfGenerateOnClose);
2125BOOL WINAPI AddAccessAllowedAce(PACL pAcl,
2126 DWORD dwAceRevision,
2127 DWORD AccessMask,
2128 PSID pSid);
2129BOOL WINAPI AddAccessDeniedAce(PACL pAcl,
2130 DWORD dwAceRevision,
2131 DWORD AccessMask,
2132 PSID pSid);
2133BOOL WINAPI AddAce(PACL pAcl,
2134 DWORD dwAceRevision,
2135 DWORD dwStartingAceIndex,
2136 LPVOID pAceList,
2137 DWORD nAceListLength);
2138BOOL WINAPI AddAuditAccessAce(PACL pAcl,
2139 DWORD dwAceRevision,
2140 DWORD dwAccessMask,
2141 PSID pSid,
2142 BOOL bAuditSuccess,
2143 BOOL bAuditFailure);
2144BOOL WINAPI AdjustTokenGroups(HANDLE TokenHandle,
2145 BOOL ResetToDefault,
2146 PTOKEN_GROUPS NewState,
2147 DWORD BufferLength,
2148 PTOKEN_GROUPS PreviousState,
2149 LPDWORD ReturnLength);
2150BOOL WINAPI AllocateLocallyUniqueId(PLUID Luid);
2151BOOL WINAPI AreAllAccessesGranted(DWORD GrantedAccess,
2152 DWORD DesiredAccess);
2153BOOL WINAPI AreAnyAccessesGranted(DWORD GrantedAccess,
2154 DWORD DesiredAccess);
2155BOOL WINAPI CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR ParentDescriptor,
2156 PSECURITY_DESCRIPTOR CreatorDescriptor,
2157 PSECURITY_DESCRIPTOR *NewDescriptor,
2158 BOOL IsDirectoryObject,
2159 HANDLE Token,
2160 PGENERIC_MAPPING GenericMapping);
2161BOOL WINAPI CreateProcessAsUserA(HANDLE hToken,
2162 LPCSTR lpApplicationName,
2163 LPTSTR lpCommandLine,
2164 LPSECURITY_ATTRIBUTES lpProcessAttributes,
2165 LPSECURITY_ATTRIBUTES lpThreadAttributes,
2166 BOOL bInheritHandles,
2167 DWORD dwCreationFlags,
2168 LPVOID lpEnvironment,
2169 LPCSTR lpCurrentDirectory,
2170 LPSTARTUPINFOA lpStartupInfo,
2171 LPPROCESS_INFORMATION lpProcessInformation);
2172BOOL WINAPI CreateProcessAsUserW(HANDLE hToken,
2173 LPCWSTR lpApplicationName,
2174 LPWSTR lpCommandLine,
2175 LPSECURITY_ATTRIBUTES lpProcessAttributes,
2176 LPSECURITY_ATTRIBUTES lpThreadAttributes,
2177 BOOL bInheritHandles,
2178 DWORD dwCreationFlags,
2179 LPVOID lpEnvironment,
2180 LPCWSTR lpCurrentDirectory,
2181 LPSTARTUPINFOA lpStartupInfo,
2182 LPPROCESS_INFORMATION lpProcessInformation);
2183BOOL WINAPI DeleteAce(PACL pAcl,
2184 DWORD dwAceIndex);
2185BOOL WINAPI DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR *ObjectDescriptor);
2186BOOL WINAPI DuplicateToken(HANDLE ExistingTokenHandle,
2187 SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
2188 PHANDLE DuplicateTokenHandle);
2189BOOL WINAPI FindFirstFreeAce(PACL pAcl,
2190 LPVOID *pAce);
2191BOOL WINAPI GetAce(PACL pAcl,
2192 DWORD dwAceIndex,
2193 LPVOID *pAce);
2194BOOL WINAPI GetAclInformation(PACL pAcl,
2195 LPVOID pAclInformation,
2196 DWORD nAclInformationLength,
2197 ACL_INFORMATION_CLASS dwAclInformationClass);
2198BOOL WINAPI GetKernelObjectSecurity(HANDLE Handle,
2199 SECURITY_INFORMATION RequestedInformation,
2200 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2201 DWORD nLength,
2202 LPDWORD lpnLengthNeeded);
2203BOOL WINAPI GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR ObjectDescriptor,
2204 SECURITY_INFORMATION SecurityInformation,
2205 PSECURITY_DESCRIPTOR ResultantDescriptor,
2206 DWORD DescriptorLength,
2207 LPDWORD ReturnLength);
2208BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken);
2209BOOL WINAPI ImpersonateNamedPipeClient(HANDLE hNamedPipe);
2210BOOL WINAPI InitiateSystemShutdownA(LPTSTR lpMachineName,
2211 LPTSTR lpMessage,
2212 DWORD dwTimeout,
2213 BOOL bForceAppsClosed,
2214 BOOL bRebootAfterShutdown);
2215BOOL WINAPI InitiateSystemShutdownW(LPWSTR lpMachineName,
2216 LPWSTR lpMessage,
2217 DWORD dwTimeout,
2218 BOOL bForceAppsClosed,
2219 BOOL bRebootAfterShutdown);
2220DWORD WINAPI IsTextUnicode(CONST LPVOID lpBuffer,
2221 int cb,
2222 LPINT lpi);
2223BOOL WINAPI IsValidAcl(PACL pAcl);
2224BOOL WINAPI LogonUserA(LPTSTR lpszUsername,
2225 LPTSTR lpszDomain,
2226 LPTSTR lpszPassword,
2227 DWORD dwLogonType,
2228 DWORD dwLogonProvider,
2229 PHANDLE phToken);
2230BOOL WINAPI LogonUserW(LPWSTR lpszUsername,
2231 LPWSTR lpszDomain,
2232 LPWSTR lpszPassword,
2233 DWORD dwLogonType,
2234 DWORD dwLogonProvider,
2235 PHANDLE phToken);
2236BOOL WINAPI LookupAccountNameA(LPCSTR lpSystemName,
2237 LPCSTR lpAccountName,
2238 PSID Sid,
2239 LPDWORD cbSid,
2240 LPTSTR ReferencedDomainName,
2241 LPDWORD cbReferencedDomainName,
2242 PSID_NAME_USE peUse);
2243BOOL WINAPI LookupAccountNameW(LPCWSTR lpSystemName,
2244 LPCWSTR lpAccountName,
2245 PSID Sid,
2246 LPDWORD cbSid,
2247 LPWSTR ReferencedDomainName,
2248 LPDWORD cbReferencedDomainName,
2249 PSID_NAME_USE peUse);
2250BOOL WINAPI LookupPrivilegeDisplayNameA(LPCSTR lpSystemName,
2251 LPCSTR lpName,
2252 LPTSTR lpDisplayName,
2253 LPDWORD cbDisplayName,
2254 LPDWORD lpLanguageId);
2255BOOL WINAPI LookupPrivilegeDisplayNameW(LPCWSTR lpSystemName,
2256 LPCWSTR lpName,
2257 LPWSTR lpDisplayName,
2258 LPDWORD cbDisplayName,
2259 LPDWORD lpLanguageId);
2260BOOL WINAPI LookupPrivilegeNameA(LPCSTR lpSystemName,
2261 PLUID lpLuid,
2262 LPTSTR lpName,
2263 LPDWORD cbName);
2264BOOL WINAPI LookupPrivilegeNameW(LPCWSTR lpSystemName,
2265 PLUID lpLuid,
2266 LPWSTR lpName,
2267 LPDWORD cbName);
2268BOOL WINAPI MakeAbsoluteSD(PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
2269 PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
2270 LPDWORD lpdwAbsoluteSecurityDescriptorSize,
2271 PACL pDacl,
2272 LPDWORD lpdwDaclSize,
2273 PACL pSacl,
2274 LPDWORD lpdwSaclSize,
2275 PSID pOwner,
2276 LPDWORD lpdwOwnerSize,
2277 PSID pPrimaryGroup,
2278 LPDWORD lpdwPrimaryGroupSize);
2279VOID WINAPI MapGenericMask(LPDWORD AccessMask,
2280 PGENERIC_MAPPING GenericMapping);
2281BOOL WINAPI ObjectCloseAuditAlarmA(LPCSTR SubsystemName,
2282 LPVOID HandleId,
2283 BOOL GenerateOnClose);
2284BOOL WINAPI ObjectCloseAuditAlarmW(LPCWSTR SubsystemName,
2285 LPVOID HandleId,
2286 BOOL GenerateOnClose);
2287BOOL WINAPI ObjectOpenAuditAlarmA(LPCSTR SubsystemName,
2288 LPVOID HandleId,
2289 LPTSTR ObjectTypeName,
2290 LPTSTR ObjectName,
2291 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2292 HANDLE ClientToken,
2293 DWORD DesiredAccess,
2294 DWORD GrantedAccess,
2295 PPRIVILEGE_SET Privileges,
2296 BOOL ObjectCreation,
2297 BOOL AccessGranted,
2298 LPBOOL GenerateOnClose);
2299BOOL WINAPI ObjectOpenAuditAlarmW(LPCWSTR SubsystemName,
2300 LPVOID HandleId,
2301 LPWSTR ObjectTypeName,
2302 LPWSTR ObjectName,
2303 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2304 HANDLE ClientToken,
2305 DWORD DesiredAccess,
2306 DWORD GrantedAccess,
2307 PPRIVILEGE_SET Privileges,
2308 BOOL ObjectCreation,
2309 BOOL AccessGranted,
2310 LPBOOL GenerateOnClose);
2311BOOL WINAPI ObjectPrivilegeAuditAlarmA(LPCSTR lpszSubsystem,
2312 LPVOID lpvHandleId,
2313 HANDLE hClientToken,
2314 DWORD dwDesiredAccess,
2315 PPRIVILEGE_SET pps,
2316 BOOL fAccessGranted);
2317BOOL WINAPI ObjectPrivilegeAuditAlarmW(LPCWSTR lpszSubsystem,
2318 LPVOID lpvHandleId,
2319 HANDLE hClientToken,
2320 DWORD dwDesiredAccess,
2321 PPRIVILEGE_SET pps,
2322 BOOL fAccessGranted);
2323BOOL WINAPI PrivilegeCheck(HANDLE hClientToken,
2324 PPRIVILEGE_SET pps,
2325 LPBOOL lpfResult);
2326BOOL WINAPI PrivilegedServiceAuditAlarmA(LPCSTR lpszSubsystem,
2327 LPCSTR lpszService,
2328 HANDLE hClientToken,
2329 PPRIVILEGE_SET pps,
2330 BOOL fAccessGranted);
2331BOOL WINAPI PrivilegedServiceAuditAlarmW(LPCWSTR lpszSubsystem,
2332 LPCWSTR lpszService,
2333 HANDLE hClientToken,
2334 PPRIVILEGE_SET pps,
2335 BOOL fAccessGranted);
2336BOOL WINAPI SetAclInformation(PACL pAcl,
2337 LPVOID lpvAclInfo,
2338 DWORD cbAclInfo,
2339 ACL_INFORMATION_CLASS aclic);
2340BOOL WINAPI SetKernelObjectSecurity(HANDLE hObject,
2341 SECURITY_INFORMATION si,
2342 PSECURITY_DESCRIPTOR psd);
2343BOOL WINAPI SetPrivateObjectSecurity(SECURITY_INFORMATION si,
2344 PSECURITY_DESCRIPTOR psdSource,
2345 PSECURITY_DESCRIPTOR *lppsdTarget,
2346 PGENERIC_MAPPING pgm,
2347 HANDLE hClientToken);
2348
2349
2350HANDLE WINAPI CreateNamedPipeA(LPCSTR lpName, DWORD dwOpenMode, DWORD dwPipeMode,
2351 DWORD nMaxInstances, DWORD nOutBufferSize,
2352 DWORD nInBufferSize, DWORD nDefaultTimeOut,
2353 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2354HANDLE WINAPI CreateNamedPipeW(LPCWSTR lpName, DWORD dwOpenMode, DWORD dwPipeMode,
2355 DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize,
2356 DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2357#define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
2358
2359BOOL WINAPI GetNamedPipeHandleStateA(HANDLE hNamedPipe, LPDWORD lpState,
2360 LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount,
2361 LPDWORD lpCollectDataTimeout, LPSTR lpUserName,
2362 DWORD nMaxUserNameSize);
2363BOOL WINAPI GetNamedPipeHandleStateW(HANDLE hNamedPipe,LPDWORD lpState, LPDWORD lpCurInstances,
2364 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout,
2365 LPWSTR lpUserName, DWORD nMaxUserNameSize);
2366#define GetNamedPipeHandleState WINELIB_NAME_AW(GetNamedPipeHandleState)
2367
2368BOOL WINAPI CallNamedPipeA(LPCSTR lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize,
2369 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2370 DWORD nTimeOut);
2371BOOL WINAPI CallNamedPipeW(LPCWSTR lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize,
2372 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2373 DWORD nTimeOut);
2374#define CallNamedPipe WINELIB_NAME_AW(CallNamedPipe)
2375
2376
2377BOOL WINAPI WaitNamedPipeA(LPCSTR lpNamedPipeName, DWORD nTimeOut);
2378BOOL WINAPI WaitNamedPipeW(LPCWSTR lpNamedPipeName, DWORD nTimeOut);
2379
2380#define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
2381
2382BOOL WINAPI CreatePipe(PHANDLE hReadPipe, PHANDLE hWritePipe, LPSECURITY_ATTRIBUTES lpPipeAttributes,
2383 DWORD nSize);
2384BOOL WINAPI ConnectNamedPipe(HANDLE hNamedPipe, LPOVERLAPPED lpOverlapped);
2385BOOL WINAPI DisconnectNamedPipe(HANDLE hNamedPipe);
2386BOOL WINAPI SetNamedPipeHandleState(HANDLE hNamedPipe, LPDWORD lpMode,
2387 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout);
2388BOOL WINAPI GetNamedPipeInfo(HANDLE hNamedPipe, LPDWORD lpFlags, LPDWORD lpOutBufferSize,
2389 LPDWORD lpInBufferSize, LPDWORD lpMaxInstances);
2390BOOL WINAPI PeekNamedPipe(HANDLE hNamedPipe, LPVOID lpBuffer, DWORD nBufferSize,
2391 LPDWORD lpBytesRead, LPDWORD lpTotalBytesAvail,
2392 LPDWORD lpBytesLeftThisMessage);
2393BOOL WINAPI TransactNamedPipe(HANDLE hNamedPipe, LPVOID lpInBuffer, DWORD nInBufferSize,
2394 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2395 LPOVERLAPPED lpOverlapped);
2396
2397HANDLE WINAPI CreateMailslotA(LPCSTR lpName, DWORD nMaxMessageSize, DWORD lReadTimeout,
2398 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2399HANDLE WINAPI CreateMailslotW(LPCWSTR lpName, DWORD nMaxMessageSize, DWORD lReadTimeout,
2400 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2401#define CreateMailslot WINELIB_NAME_AW(WaitNamedPipe)
2402
2403BOOL WINAPI GetMailslotInfo(HANDLE hMailslot, LPDWORD lpMaxMessageSize,
2404 LPDWORD lpNextSize, LPDWORD lpMessageCount,
2405 LPDWORD lpReadTimeout);
2406
2407BOOL WINAPI SetMailslotInfo(HANDLE hMailslot, DWORD lReadTimeout);
2408
2409/* undocumented functions */
2410
2411typedef struct tagSYSLEVEL
2412{
2413 CRITICAL_SECTION crst;
2414 INT level;
2415} SYSLEVEL;
2416
2417VOID WINAPI GetpWin16Lock(SYSLEVEL**);
2418DWORD WINAPI MapLS(LPVOID);
2419LPVOID WINAPI MapSL(DWORD);
2420VOID WINAPI ReleaseThunkLock(DWORD*);
2421VOID WINAPI RestoreThunkLock(DWORD);
2422VOID WINAPI UnMapLS(DWORD);
2423DWORD WINAPI _ConfirmWin16Lock(void);
2424DWORD WINAPI _ConfirmSysLevel(SYSLEVEL*);
2425VOID WINAPI _EnterSysLevel(SYSLEVEL*);
2426VOID WINAPI _LeaveSysLevel(SYSLEVEL*);
2427
2428#ifdef __cplusplus
2429}
2430#endif
2431
2432#endif /* __WINE_WINBASE_H */
Note: See TracBrowser for help on using the repository browser.