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

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

header update

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