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

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

* empty log message *

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