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

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

header update

File size: 98.5 KB
Line 
1#ifndef __WINE_WINBASE_H
2#define __WINE_WINBASE_H
3
4#include "winnt.h"
5
6#include "pshpack1.h"
7
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct tagCOORD {
14 INT16 x;
15 INT16 y;
16} COORD, *LPCOORD;
17
18
19 /* Windows Exit Procedure flag values */
20#define WEP_FREE_DLL 0
21#define WEP_SYSTEM_EXIT 1
22
23typedef DWORD (* CALLBACK LPTHREAD_START_ROUTINE)(LPVOID);
24
25/* This is also defined in winnt.h */
26/* typedef struct _EXCEPTION_RECORD {
27 DWORD ExceptionCode;
28 DWORD ExceptionFlags;
29 struct _EXCEPTION_RECORD *ExceptionRecord;
30 LPVOID ExceptionAddress;
31 DWORD NumberParameters;
32 DWORD ExceptionInformation[15];
33} EXCEPTION_RECORD; */
34
35typedef struct _EXCEPTION_DEBUG_INFO {
36/* EXCEPTION_RECORD ExceptionRecord; */
37 DWORD dwFirstChange;
38} EXCEPTION_DEBUG_INFO;
39
40typedef struct _CREATE_THREAD_DEBUG_INFO {
41 HANDLE hThread;
42 LPVOID lpThreadLocalBase;
43 LPTHREAD_START_ROUTINE lpStartAddress;
44} CREATE_THREAD_DEBUG_INFO;
45
46typedef struct _CREATE_PROCESS_DEBUG_INFO {
47 HANDLE hFile;
48 HANDLE hProcess;
49 HANDLE hThread;
50 LPVOID lpBaseOfImage;
51 DWORD dwDebugInfoFileOffset;
52 DWORD nDebugInfoSize;
53 LPVOID lpThreadLocalBase;
54 LPTHREAD_START_ROUTINE lpStartAddress;
55 LPVOID lpImageName;
56 WORD fUnicode;
57} CREATE_PROCESS_DEBUG_INFO;
58
59typedef struct _EXIT_THREAD_DEBUG_INFO {
60 DWORD dwExitCode;
61} EXIT_THREAD_DEBUG_INFO;
62
63typedef struct _EXIT_PROCESS_DEBUG_INFO {
64 DWORD dwExitCode;
65} EXIT_PROCESS_DEBUG_INFO;
66
67typedef struct _LOAD_DLL_DEBUG_INFO {
68 HANDLE hFile;
69 LPVOID lpBaseOfDll;
70 DWORD dwDebugInfoFileOffset;
71 DWORD nDebugInfoSize;
72 LPVOID lpImageName;
73 WORD fUnicode;
74} LOAD_DLL_DEBUG_INFO;
75
76typedef struct _UNLOAD_DLL_DEBUG_INFO {
77 LPVOID lpBaseOfDll;
78} UNLOAD_DLL_DEBUG_INFO;
79
80typedef struct _OUTPUT_DEBUG_STRING_INFO {
81 LPSTR lpDebugStringData;
82 WORD fUnicode;
83 WORD nDebugStringLength;
84} OUTPUT_DEBUG_STRING_INFO;
85
86typedef struct _RIP_INFO {
87 DWORD dwError;
88 DWORD dwType;
89} RIP_INFO;
90
91typedef struct _DEBUG_EVENT {
92 DWORD dwDebugEventCode;
93 DWORD dwProcessId;
94 DWORD dwThreadId;
95 union {
96 EXCEPTION_DEBUG_INFO Exception;
97 CREATE_THREAD_DEBUG_INFO CreateThread;
98 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo;
99 EXIT_THREAD_DEBUG_INFO ExitThread;
100 EXIT_PROCESS_DEBUG_INFO ExitProcess;
101 LOAD_DLL_DEBUG_INFO LoadDll;
102 UNLOAD_DLL_DEBUG_INFO UnloadDll;
103 OUTPUT_DEBUG_STRING_INFO DebugString;
104 RIP_INFO RipInfo;
105 } u;
106} DEBUG_EVENT, *LPDEBUG_EVENT;
107
108#define EXCEPTION_DEBUG_EVENT 1
109#define CREATE_THREAD_DEBUG_EVENT 2
110#define CREATE_PROCESS_DEBUG_EVENT 3
111#define EXIT_THREAD_DEBUG_EVENT 4
112#define EXIT_PROCESS_DEBUG_EVENT 5
113#define LOAD_DLL_DEBUG_EVENT 6
114#define UNLOAD_DLL_DEBUG_EVENT 7
115#define OUTPUT_DEBUG_STRING_EVENT 8
116#define RIP_EVENT 9
117
118#define OFS_MAXPATHNAME 128
119typedef struct
120{
121 BYTE cBytes;
122 BYTE fFixedDisk;
123 WORD nErrCode;
124 BYTE reserved[4];
125 BYTE szPathName[OFS_MAXPATHNAME];
126} OFSTRUCT, *LPOFSTRUCT;
127
128#define OF_READ 0x0000
129#define OF_WRITE 0x0001
130#define OF_READWRITE 0x0002
131#define OF_SHARE_COMPAT 0x0000
132#define OF_SHARE_EXCLUSIVE 0x0010
133#define OF_SHARE_DENY_WRITE 0x0020
134#define OF_SHARE_DENY_READ 0x0030
135#define OF_SHARE_DENY_NONE 0x0040
136#define OF_PARSE 0x0100
137#define OF_DELETE 0x0200
138#define OF_VERIFY 0x0400 /* Used with OF_REOPEN */
139#define OF_SEARCH 0x0400 /* Used without OF_REOPEN */
140#define OF_CANCEL 0x0800
141#define OF_CREATE 0x1000
142#define OF_PROMPT 0x2000
143#define OF_EXIST 0x4000
144#define OF_REOPEN 0x8000
145
146/* SetErrorMode values */
147#define SEM_FAILCRITICALERRORS 0x0001
148#define SEM_NOGPFAULTERRORBOX 0x0002
149#define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
150#define SEM_NOOPENFILEERRORBOX 0x8000
151
152/* CopyFileEx flags */
153#define COPY_FILE_FAIL_IF_EXISTS 0x00000001
154#define COPY_FILE_RESTARTABLE 0x00000002
155#define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
156
157/* GetTempFileName() Flags */
158#define TF_FORCEDRIVE 0x80
159
160
161#define DRIVE_UNKNOWN 0
162#define DRIVE_NO_ROOT_DIR 1
163#define DRIVE_CANNOTDETERMINE 0
164#define DRIVE_DOESNOTEXIST 1
165#define DRIVE_REMOVABLE 2
166#define DRIVE_FIXED 3
167#define DRIVE_REMOTE 4
168/* Win32 additions */
169#define DRIVE_CDROM 5
170#define DRIVE_RAMDISK 6
171
172/* The security attributes structure */
173typedef struct
174{
175 DWORD nLength;
176 LPVOID lpSecurityDescriptor;
177 BOOL bInheritHandle;
178} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
179
180#ifndef _FILETIME_
181#define _FILETIME_
182/* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
183typedef struct
184{
185 DWORD dwLowDateTime;
186 DWORD dwHighDateTime;
187} FILETIME, *LPFILETIME;
188#endif /* _FILETIME_ */
189
190/* Find* structures */
191typedef struct
192{
193 DWORD dwFileAttributes;
194 FILETIME ftCreationTime;
195 FILETIME ftLastAccessTime;
196 FILETIME ftLastWriteTime;
197 DWORD nFileSizeHigh;
198 DWORD nFileSizeLow;
199 DWORD dwReserved0;
200 DWORD dwReserved1;
201 CHAR cFileName[260];
202 CHAR cAlternateFileName[14];
203} WIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;
204
205typedef struct
206{
207 DWORD dwFileAttributes;
208 FILETIME ftCreationTime;
209 FILETIME ftLastAccessTime;
210 FILETIME ftLastWriteTime;
211 DWORD nFileSizeHigh;
212 DWORD nFileSizeLow;
213 DWORD dwReserved0;
214 DWORD dwReserved1;
215 WCHAR cFileName[260];
216 WCHAR cAlternateFileName[14];
217} WIN32_FIND_DATAW, *LPWIN32_FIND_DATAW;
218
219DECL_WINELIB_TYPE_AW(WIN32_FIND_DATA)
220DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
221
222typedef 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/* for WOWHandle{16,32} */
1038typedef enum _WOW_HANDLE_TYPE { /* WOW */
1039 WOW_TYPE_HWND,
1040 WOW_TYPE_HMENU,
1041 WOW_TYPE_HDWP,
1042 WOW_TYPE_HDROP,
1043 WOW_TYPE_HDC,
1044 WOW_TYPE_HFONT,
1045 WOW_TYPE_HMETAFILE,
1046 WOW_TYPE_HRGN,
1047 WOW_TYPE_HBITMAP,
1048 WOW_TYPE_HBRUSH,
1049 WOW_TYPE_HPALETTE,
1050 WOW_TYPE_HPEN,
1051 WOW_TYPE_HACCEL,
1052 WOW_TYPE_HTASK,
1053 WOW_TYPE_FULLHWND
1054} WOW_HANDLE_TYPE;
1055
1056/* WOWCallback16Ex defines */
1057#define WCB16_MAX_CBARGS 16
1058/* ... dwFlags */
1059#define WCB16_PASCAL 0x0
1060#define WCB16_CDECL 0x1
1061
1062typedef enum _GET_FILEEX_INFO_LEVELS {
1063 GetFileExInfoStandard
1064} GET_FILEEX_INFO_LEVELS;
1065
1066typedef struct _WIN32_FILE_ATTRIBUTES_DATA {
1067 DWORD dwFileAttributes;
1068 FILETIME ftCreationTime;
1069 FILETIME ftLastAccessTime;
1070 FILETIME ftLastWriteTime;
1071 DWORD nFileSizeHigh;
1072 DWORD nFileSizeLow;
1073} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
1074
1075typedef struct _DllVersionInfo {
1076 DWORD cbSize;
1077 DWORD dwMajorVersion;
1078 DWORD dwMinorVersion;
1079 DWORD dwBuildNumber;
1080 DWORD dwPlatformID;
1081} DLLVERSIONINFO;
1082
1083/*
1084 * This one seems to be a Win32 only definition. It also is defined with
1085 * WINAPI instead of CALLBACK in the windows headers.
1086 */
1087typedef DWORD (* WINAPI LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER,
1088 LARGE_INTEGER, DWORD, DWORD, HANDLE,
1089 HANDLE, LPVOID);
1090
1091
1092#define WAIT_FAILED 0xffffffff
1093#define WAIT_OBJECT_0 0
1094#define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
1095#define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
1096#define WAIT_IO_COMPLETION STATUS_USER_APC
1097#define WAIT_TIMEOUT STATUS_TIMEOUT
1098
1099#define PAGE_NOACCESS 0x01
1100#define PAGE_READONLY 0x02
1101#define PAGE_READWRITE 0x04
1102#define PAGE_WRITECOPY 0x08
1103#define PAGE_EXECUTE 0x10
1104#define PAGE_EXECUTE_READ 0x20
1105#define PAGE_EXECUTE_READWRITE 0x40
1106#define PAGE_EXECUTE_WRITECOPY 0x80
1107#define PAGE_GUARD 0x100
1108#define PAGE_NOCACHE 0x200
1109
1110#define MEM_COMMIT 0x00001000
1111#define MEM_RESERVE 0x00002000
1112#define MEM_DECOMMIT 0x00004000
1113#define MEM_RELEASE 0x00008000
1114#define MEM_FREE 0x00010000
1115#define MEM_PRIVATE 0x00020000
1116#define MEM_MAPPED 0x00040000
1117#define MEM_TOP_DOWN 0x00100000
1118
1119#define SEC_FILE 0x00800000
1120#define SEC_IMAGE 0x01000000
1121#define SEC_RESERVE 0x04000000
1122#define SEC_COMMIT 0x08000000
1123#define SEC_NOCACHE 0x10000000
1124
1125#define FILE_BEGIN 0
1126#define FILE_CURRENT 1
1127#define FILE_END 2
1128
1129#define FILE_CASE_SENSITIVE_SEARCH 0x00000001
1130#define FILE_CASE_PRESERVED_NAMES 0x00000002
1131#define FILE_UNICODE_ON_DISK 0x00000004
1132#define FILE_PERSISTENT_ACLS 0x00000008
1133
1134#define FILE_MAP_COPY 0x00000001
1135#define FILE_MAP_WRITE 0x00000002
1136#define FILE_MAP_READ 0x00000004
1137#define FILE_MAP_ALL_ACCESS 0x000f001f
1138
1139#define MOVEFILE_REPLACE_EXISTING 0x00000001
1140#define MOVEFILE_COPY_ALLOWED 0x00000002
1141#define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
1142
1143#define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
1144#define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
1145#define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
1146
1147
1148#define STATUS_SUCCESS 0x00000000
1149#define STATUS_WAIT_0 0x00000000
1150#define STATUS_ABANDONED_WAIT_0 0x00000080
1151#define STATUS_USER_APC 0x000000C0
1152#define STATUS_TIMEOUT 0x00000102
1153#define STATUS_PENDING 0x00000103
1154#define STATUS_GUARD_PAGE_VIOLATION 0x80000001
1155#define STATUS_DATATYPE_MISALIGNMENT 0x80000002
1156#define STATUS_BREAKPOINT 0x80000003
1157#define STATUS_SINGLE_STEP 0x80000004
1158#define STATUS_BUFFER_OVERFLOW 0x80000005
1159#define STATUS_ACCESS_VIOLATION 0xC0000005
1160#define STATUS_IN_PAGE_ERROR 0xC0000006
1161#define STATUS_INVALID_PARAMETER 0xC000000D
1162#define STATUS_NO_MEMORY 0xC0000017
1163#define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
1164#define STATUS_BUFFER_TOO_SMALL 0xC0000023
1165#define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
1166#define STATUS_INVALID_DISPOSITION 0xC0000026
1167#define STATUS_UNKNOWN_REVISION 0xC0000058
1168#define STATUS_INVALID_SECURITY_DESCR 0xC0000079
1169#define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
1170#define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
1171#define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
1172#define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
1173#define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
1174#define STATUS_FLOAT_OVERFLOW 0xC0000091
1175#define STATUS_FLOAT_STACK_CHECK 0xC0000092
1176#define STATUS_FLOAT_UNDERFLOW 0xC0000093
1177#define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
1178#define STATUS_INTEGER_OVERFLOW 0xC0000095
1179#define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
1180#define STATUS_INVALID_PARAMETER_2 0xC00000F0
1181#define STATUS_STACK_OVERFLOW 0xC00000FD
1182#define STATUS_CONTROL_C_EXIT 0xC000013A
1183
1184#define DUPLICATE_CLOSE_SOURCE 0x00000001
1185#define DUPLICATE_SAME_ACCESS 0x00000002
1186
1187#define HANDLE_FLAG_INHERIT 0x00000001
1188#define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
1189
1190#define HINSTANCE_ERROR 32
1191
1192#define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN
1193#define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)
1194#define THREAD_PRIORITY_NORMAL 0
1195#define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX
1196#define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)
1197#define THREAD_PRIORITY_ERROR_RETURN (0x7fffffff)
1198#define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT
1199#define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE
1200
1201typedef struct
1202{
1203 int type;
1204} wine_exception;
1205
1206typedef struct
1207{
1208 int pad[39];
1209 int edi;
1210 int esi;
1211 int ebx;
1212 int edx;
1213 int ecx;
1214 int eax;
1215
1216 int ebp;
1217 int eip;
1218 int cs;
1219 int eflags;
1220 int esp;
1221 int ss;
1222} exception_info;
1223
1224/* Could this type be considered opaque? */
1225typedef struct {
1226 LPVOID DebugInfo;
1227 LONG LockCount;
1228 LONG RecursionCount;
1229 HANDLE OwningThread;
1230 HANDLE LockSemaphore;
1231 DWORD Reserved;
1232}CRITICAL_SECTION;
1233
1234#ifdef __WINE__
1235#define CRITICAL_SECTION_INIT { 0, -1, 0, 0, 0, 0 }
1236#endif
1237
1238typedef struct {
1239 DWORD dwOSVersionInfoSize;
1240 DWORD dwMajorVersion;
1241 DWORD dwMinorVersion;
1242 DWORD dwBuildNumber;
1243 DWORD dwPlatformId;
1244 CHAR szCSDVersion[128];
1245} OSVERSIONINFOA;
1246
1247typedef struct {
1248 DWORD dwOSVersionInfoSize;
1249 DWORD dwMajorVersion;
1250 DWORD dwMinorVersion;
1251 DWORD dwBuildNumber;
1252 DWORD dwPlatformId;
1253 WCHAR szCSDVersion[128];
1254} OSVERSIONINFOW;
1255
1256DECL_WINELIB_TYPE_AW(OSVERSIONINFO)
1257
1258#define VER_PLATFORM_WIN32s 0
1259#define VER_PLATFORM_WIN32_WINDOWS 1
1260#define VER_PLATFORM_WIN32_NT 2
1261
1262typedef struct _COMMPROP {
1263 WORD wPacketLength;
1264 WORD wPacketVersion;
1265 DWORD dwServiceMask;
1266 DWORD dwReserved1;
1267 DWORD dwMaxTxQueue;
1268 DWORD dwMaxRxQueue;
1269 DWORD dwMaxBaud;
1270 DWORD dwProvSubType;
1271 DWORD dwProvCapabilities;
1272 DWORD dwSettableParams;
1273 DWORD dwSettableBaud;
1274 WORD wSettableData;
1275 WORD wSettableStopParity;
1276 DWORD dwCurrentTxQueue;
1277 DWORD dwCurrentRxQueue;
1278 DWORD dwProvSpec1;
1279 DWORD dwProvSpec2;
1280 WCHAR wcProvChar[1];
1281} COMMPROP,*LPCOMMPROP;
1282
1283typedef struct tagCOMSTAT
1284{
1285 // DWORD status; // maybe make this a union ??
1286 unsigned fCtsHold:1;
1287 unsigned fDsrHold:1;
1288 unsigned fRlsdHold:1;
1289 unsigned fXoffHold:1;
1290 unsigned fXoffSend:1;
1291 unsigned fEof:1;
1292 unsigned fTxim:1;
1293 unsigned fReserved:25;
1294 DWORD cbInQue;
1295 DWORD cbOutQue;
1296} COMSTAT,*LPCOMSTAT;
1297
1298typedef struct tagDCB
1299{
1300 DWORD DCBlength;
1301 DWORD BaudRate;
1302 unsigned fBinary :1;
1303 unsigned fParity :1;
1304 unsigned fOutxCtsFlow :1;
1305 unsigned fOutxDsrFlow :1;
1306 unsigned fDtrControl :2;
1307 unsigned fDsrSensitivity :1;
1308 unsigned fTXContinueOnXoff :1;
1309 unsigned fOutX :1;
1310 unsigned fInX :1;
1311 unsigned fErrorChar :1;
1312 unsigned fNull :1;
1313 unsigned fRtsControl :2;
1314 unsigned fAbortOnError :1;
1315 unsigned fDummy2 :17;
1316 WORD wReserved;
1317 WORD XonLim;
1318 WORD XoffLim;
1319 BYTE ByteSize;
1320 BYTE Parity;
1321 BYTE StopBits;
1322 char XonChar;
1323 char XoffChar;
1324 char ErrorChar;
1325 char EofChar;
1326 char EvtChar;
1327} DCB, *LPDCB;
1328
1329
1330
1331typedef struct tagCOMMTIMEOUTS {
1332 DWORD ReadIntervalTimeout;
1333 DWORD ReadTotalTimeoutMultiplier;
1334 DWORD ReadTotalTimeoutConstant;
1335 DWORD WriteTotalTimeoutMultiplier;
1336 DWORD WriteTotalTimeoutConstant;
1337} COMMTIMEOUTS,*LPCOMMTIMEOUTS;
1338
1339typedef struct _COMMCONFIG {
1340 DWORD dwSize;
1341 WORD wVersion;
1342 WORD wReserved;
1343 DCB dcb;
1344 DWORD dwProviderSubType;
1345 DWORD dwProviderOffset;
1346 DWORD dwProviderSize;
1347 WCHAR wcProviderData[1];
1348} COMMCONFIG,*LPCOMMCONFIG;
1349
1350#include "poppack.h"
1351
1352typedef VOID (* CALLBACK PAPCFUNC)(ULONG_PTR);
1353
1354BOOL WINAPI ClearCommError(HANDLE,LPDWORD,LPCOMSTAT);
1355BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1356BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1357#define BuildCommDCB WINELIB_NAME_AW(BuildCommDCB)
1358BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1359BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1360#define BuildCommDCBAndTimeouts WINELIB_NAME_AW(BuildCommDCBAndTimeouts)
1361BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1362BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1363BOOL WINAPI GetCommState(HANDLE,LPDCB);
1364BOOL WINAPI SetCommState(HANDLE,LPDCB);
1365BOOL WINAPI TransmitCommChar(HANDLE,CHAR);
1366
1367
1368/*DWORD WINAPI GetVersion( void );*/
1369BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
1370BOOL WINAPI GetVersionExW(OSVERSIONINFOW*);
1371#define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
1372
1373/*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
1374
1375void WINAPI DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
1376void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
1377void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
1378void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
1379void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
1380HANDLE WINAPI OpenProcess(DWORD access, BOOL inherit, DWORD id);
1381BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
1382DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1383void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
1384BOOL WINAPI SetProcessWorkingSetSize(HANDLE,DWORD,DWORD);
1385BOOL WINAPI TerminateProcess(HANDLE,DWORD);
1386BOOL WINAPI TerminateThread(HANDLE,DWORD);
1387BOOL WINAPI GetExitCodeThread(HANDLE,LPDWORD);
1388
1389/* GetBinaryType return values.
1390 */
1391
1392#define SCS_32BIT_BINARY 0
1393#define SCS_DOS_BINARY 1
1394#define SCS_WOW_BINARY 2
1395#define SCS_PIF_BINARY 3
1396#define SCS_POSIX_BINARY 4
1397#define SCS_OS216_BINARY 5
1398
1399BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType );
1400BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType );
1401#define GetBinaryType WINELIB_NAME_AW(GetBinaryType)
1402
1403BOOL16 WINAPI GetWinDebugInfo16(LPWINDEBUGINFO,UINT16);
1404BOOL16 WINAPI SetWinDebugInfo16(LPWINDEBUGINFO);
1405/* Declarations for functions that exist only in Win32 */
1406
1407BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL);
1408//BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1409BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,LPDWORD);
1410BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
1411BOOL WINAPI AllocateLocallyUniqueId(PLUID);
1412BOOL WINAPI AllocConsole(void);
1413BOOL WINAPI AreFileApisANSI(void);
1414BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
1415BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
1416#define BackupEventLog WINELIB_NAME_AW(BackupEventLog)
1417BOOL WINAPI Beep(DWORD,DWORD);
1418BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1419BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1420#define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
1421BOOL WINAPI CloseEventLog(HANDLE);
1422BOOL WINAPI CloseHandle(HANDLE);
1423BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1424HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc);
1425BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1426BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1427#define CopyFile WINELIB_NAME_AW(CopyFile)
1428BOOL WINAPI CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1429BOOL WINAPI CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD);
1430#define CopyFileEx WINELIB_NAME_AW(CopyFileEx)
1431BOOL WINAPI CopySid(DWORD,PSID,PSID);
1432INT WINAPI CompareFileTime(LPFILETIME,LPFILETIME);
1433HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1434HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1435#define CreateEvent WINELIB_NAME_AW(CreateEvent)
1436HFILE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1437 DWORD,DWORD,HANDLE);
1438HFILE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,
1439 DWORD,DWORD,HANDLE);
1440#define CreateFile WINELIB_NAME_AW(CreateFile)
1441HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1442 DWORD,DWORD,LPCSTR);
1443HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,
1444 DWORD,DWORD,LPCWSTR);
1445#define CreateFileMapping WINELIB_NAME_AW(CreateFileMapping)
1446HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1447HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1448#define CreateMutex WINELIB_NAME_AW(CreateMutex)
1449BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1450BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,
1451 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,
1452 LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1453BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,
1454 LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,
1455 LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1456#define CreateProcess WINELIB_NAME_AW(CreateProcess)
1457HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1458HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1459#define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore)
1460HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1461BOOL WINAPI DebugActiveProcess(DWORD);
1462void WINAPI DebugBreak(void);
1463BOOL WINAPI DeregisterEventSource(HANDLE);
1464BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1465BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1466BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD);
1467BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1468BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW lpDateFmtEnumProc, LCID Locale, DWORD dwFlags);
1469#define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
1470BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,
1471 ENUMRESLANGPROCA,LONG);
1472BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,
1473 ENUMRESLANGPROCW,LONG);
1474#define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
1475BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,
1476 LONG);
1477BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,
1478 LONG);
1479#define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
1480BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
1481BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
1482#define EnumResourceTypes WINELIB_NAME_AW(EnumResourceTypes)
1483BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
1484BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
1485#define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
1486BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
1487BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
1488#define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
1489BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1490BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);
1491#define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
1492BOOL WINAPI EqualSid(PSID, PSID);
1493BOOL WINAPI EqualPrefixSid(PSID,PSID);
1494VOID WINAPI ExitProcess(DWORD);
1495VOID WINAPI ExitThread(DWORD);
1496DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1497DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1498#define ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
1499BOOL WINAPI FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD);
1500BOOL WINAPI FileTimeToLocalFileTime(const FILETIME*,LPFILETIME);
1501BOOL WINAPI FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME);
1502HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1503HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1504#define FindFirstChangeNotification WINELIB_NAME_AW(FindFirstChangeNotification)
1505BOOL WINAPI FindNextChangeNotification(HANDLE);
1506BOOL WINAPI FindCloseChangeNotification(HANDLE);
1507HRSRC WINAPI FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD);
1508HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
1509#define FindResourceEx WINELIB_NAME_AW(FindResourceEx)
1510BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
1511BOOL WINAPI FlushFileBuffers(HFILE);
1512BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
1513DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
1514 DWORD,LPDWORD);
1515DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
1516 DWORD,LPDWORD);
1517#define FormatMessage WINELIB_NAME_AW(FormatMessage)
1518BOOL WINAPI FreeConsole(void);
1519BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1520BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1521#define FreeEnvironmentStrings WINELIB_NAME_AW(FreeEnvironmentStrings)
1522PVOID WINAPI FreeSid(PSID);
1523UINT WINAPI GetACP(void);
1524LPCSTR WINAPI GetCommandLineA(void);
1525LPCWSTR WINAPI GetCommandLineW(void);
1526#define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
1527BOOL WINAPI GetComputerNameA(LPSTR,LPDWORD);
1528BOOL WINAPI GetComputerNameW(LPWSTR,LPDWORD);
1529#define GetComputerName WINELIB_NAME_AW(GetComputerName)
1530UINT WINAPI GetConsoleCP(void);
1531BOOL WINAPI GetConsoleMode(HANDLE,LPDWORD);
1532UINT WINAPI GetConsoleOutputCP(void);
1533DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
1534DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
1535#define GetConsoleTitle WINELIB_NAME_AW(GetConsoleTitle)
1536BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
1537BOOL WINAPI GetCommMask(HANDLE, LPDWORD);
1538BOOL WINAPI GetCommModemStatus(HANDLE, LPDWORD);
1539HANDLE WINAPI GetCurrentProcess(void);
1540DWORD WINAPI GetCurrentProcessId(void);
1541HANDLE WINAPI GetCurrentThread(void);
1542DWORD WINAPI GetCurrentThreadId(void);
1543INT WINAPI GetDateFormatA(LCID,DWORD,CONST SYSTEMTIME *,LPCSTR,LPSTR,INT);
1544INT WINAPI GetDateFormatW(LCID,DWORD,CONST SYSTEMTIME *,LPCWSTR,LPWSTR,INT);
1545#define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
1546LPSTR WINAPI GetEnvironmentStringsA(void);
1547LPWSTR WINAPI GetEnvironmentStringsW(void);
1548#define GetEnvironmentStrings WINELIB_NAME_AW(GetEnvironmentStrings)
1549DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1550DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1551#define GetEnvironmentVariable WINELIB_NAME_AW(GetEnvironmentVariable)
1552BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1553BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID);
1554#define GetFileattributesEx WINELIB_NAME_AW(GetFileAttributesEx)
1555DWORD WINAPI GetFileInformationByHandle(HFILE,BY_HANDLE_FILE_INFORMATION*);
1556BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1557BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD);
1558#define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
1559DWORD WINAPI GetFileSize(HFILE,LPDWORD);
1560BOOL WINAPI GetFileTime(HFILE,LPFILETIME,LPFILETIME,LPFILETIME);
1561DWORD WINAPI GetFileType(HFILE);
1562DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1563DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1564#define GetFullPathName WINELIB_NAME_AW(GetFullPathName)
1565BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD);
1566DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
1567DWORD WINAPI GetLengthSid(PSID);
1568VOID WINAPI GetLocalTime(LPSYSTEMTIME);
1569DWORD WINAPI GetLogicalDrives(void);
1570DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1571DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1572#define GetLongPathName WINELIB_NAME_AW(GetLongPathName)
1573BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE,LPDWORD);
1574BOOL WINAPI GetNumberOfConsoleMouseButtons(LPDWORD);
1575BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
1576UINT WINAPI GetOEMCP(void);
1577BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
1578DWORD WINAPI GetPriorityClass(HANDLE);
1579HANDLE WINAPI GetProcessHeap(void);
1580DWORD WINAPI GetProcessVersion(DWORD);
1581//BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
1582BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1583BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1584DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
1585BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL);
1586BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL);
1587PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
1588DWORD WINAPI GetSidLengthRequired(BYTE);
1589PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
1590PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
1591DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1592DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1593#define GetShortPathName WINELIB_NAME_AW(GetShortPathName)
1594HFILE WINAPI GetStdHandle(DWORD);
1595BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
1596BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
1597#define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
1598VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1599BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1600VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1601INT WINAPI GetTimeFormatA(LCID,DWORD,CONST SYSTEMTIME *,LPCSTR,LPSTR,INT);
1602INT WINAPI GetTimeFormatW(LCID,DWORD,CONST SYSTEMTIME *,LPCWSTR,LPWSTR,INT);
1603#define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
1604BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *);
1605LCID WINAPI GetThreadLocale(void);
1606INT WINAPI GetThreadPriority(HANDLE);
1607BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1608BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1609BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD);
1610BOOL WINAPI GetUserNameA(LPSTR,LPDWORD);
1611BOOL WINAPI GetUserNameW(LPWSTR,LPDWORD);
1612#define GetUserName WINELIB_NAME_AW(GetUserName)
1613VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1614LPVOID WINAPI HeapAlloc(HANDLE,DWORD,DWORD);
1615DWORD WINAPI HeapCompact(HANDLE,DWORD);
1616HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1617BOOL WINAPI HeapDestroy(HANDLE);
1618BOOL WINAPI HeapFree(HANDLE,DWORD,LPVOID);
1619BOOL WINAPI HeapLock(HANDLE);
1620LPVOID WINAPI HeapReAlloc(HANDLE,DWORD,LPVOID,DWORD);
1621DWORD WINAPI HeapSize(HANDLE,DWORD,LPVOID);
1622BOOL WINAPI HeapUnlock(HANDLE);
1623BOOL WINAPI HeapValidate(HANDLE,DWORD,LPCVOID);
1624BOOL WINAPI HeapWalk (HANDLE, LPVOID);
1625BOOL WINAPI InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1626BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1627BOOL WINAPI IsValidSid(PSID);
1628BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1629LONG WINAPI InterlockedDecrement(LPLONG);
1630LONG WINAPI InterlockedExchange(LPLONG,LONG);
1631LONG WINAPI InterlockedIncrement(LPLONG);
1632BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
1633BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1634BOOL WINAPI IsValidLocale(DWORD,DWORD);
1635BOOL WINAPI LocalFileTimeToFileTime(const FILETIME*,LPFILETIME);
1636BOOL WINAPI LockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1637BOOL WINAPI LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED);
1638BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID);
1639BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,LPVOID);
1640#define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
1641BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
1642HMODULE WINAPI MapHModuleSL(HMODULE16);
1643HMODULE16 WINAPI MapHModuleLS(HMODULE);
1644LPVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1645LPVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPVOID);
1646BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1647BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1648#define MoveFile WINELIB_NAME_AW(MoveFile)
1649BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1650BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1651#define MoveFileEx WINELIB_NAME_AW(MoveFileEx)
1652INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
1653BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1654INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,BOOL*);
1655HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1656HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1657#define OpenBackupEventLog WINELIB_NAME_AW(OpenBackupEventLog)
1658HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1659HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1660#define OpenEvent WINELIB_NAME_AW(OpenEvent)
1661HANDLE WINAPI OpenEventLogA(LPCSTR,LPCSTR);
1662HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1663#define OpenEventLog WINELIB_NAME_AW(OpenEventLog)
1664HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1665HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1666#define OpenFileMapping WINELIB_NAME_AW(OpenFileMapping)
1667HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1668HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1669#define OpenMutex WINELIB_NAME_AW(OpenMutex)
1670HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1671BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1672HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1673HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1674#define OpenSemaphore WINELIB_NAME_AW(OpenSemaphore)
1675BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1676BOOL WINAPI PulseEvent(HANDLE);
1677BOOL WINAPI PurgeComm(HANDLE,DWORD);
1678DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1679DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1680#define QueryDosDevice WINELIB_NAME_AW(QueryDosDevice)
1681BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1682BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency);
1683
1684BOOL WINAPI ReadConsoleA(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1685BOOL WINAPI ReadConsoleW(HANDLE,LPVOID,DWORD,LPDWORD,LPVOID);
1686#define ReadConsole WINELIB_NAME_AW(ReadConsole)
1687BOOL WINAPI ReadConsoleOutputCharacterA(HANDLE,LPSTR,DWORD,
1688 COORD,LPDWORD);
1689#define ReadConsoleOutputCharacter WINELIB_NAME_AW(ReadConsoleOutputCharacter)
1690BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1691BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *);
1692#define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
1693BOOL WINAPI ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED);
1694BOOL WINAPI ReadFileEx(HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
1695 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1696
1697HANDLE WINAPI RegisterEventSourceA(LPCSTR,LPCSTR);
1698HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1699#define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
1700BOOL WINAPI ReleaseMutex(HANDLE);
1701BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
1702BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID);
1703BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID);
1704#define ReportEvent WINELIB_NAME_AW(ReportEvent)
1705BOOL WINAPI ResetEvent(HANDLE);
1706DWORD WINAPI ResumeThread(HANDLE);
1707VOID WINAPI RtlFillMemory(LPVOID,UINT,UINT);
1708#define FillMemory RtlFillMemory
1709VOID WINAPI RtlMoveMemory(LPVOID,LPCVOID,UINT);
1710#define MoveMemory RtlMoveMemory
1711VOID WINAPI RtlZeroMemory(LPVOID,UINT);
1712#define ZeroMemory RtlZeroMemory
1713VOID WINAPI RtlCopyMemory(LPVOID,const VOID*, UINT);
1714#define CopyMemory RtlCopyMemory
1715BOOL WINAPI RevertToSelf(void);
1716DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
1717DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1718#define SearchPath WINELIB_NAME_AW(SearchPath)
1719BOOL WINAPI SetCommMask(HANDLE,DWORD);
1720BOOL WINAPI SetComputerNameA(LPCSTR);
1721BOOL WINAPI SetComputerNameW(LPCWSTR);
1722#define SetComputerName WINELIB_NAME_AW(SetComputerName)
1723BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
1724BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
1725BOOL WINAPI SetConsoleTitleA(LPCSTR);
1726BOOL WINAPI SetConsoleTitleW(LPCWSTR);
1727#define SetConsoleTitle WINELIB_NAME_AW(SetConsoleTitle)
1728BOOL WINAPI SetEndOfFile(HFILE);
1729BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
1730BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
1731#define SetEnvironmentVariable WINELIB_NAME_AW(SetEnvironmentVariable)
1732BOOL WINAPI SetEvent(HANDLE);
1733VOID WINAPI SetFileApisToANSI(void);
1734VOID WINAPI SetFileApisToOEM(void);
1735DWORD WINAPI SetFilePointer(HFILE,LONG,LPLONG,DWORD);
1736BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1737BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
1738#define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
1739BOOL WINAPI SetFileTime(HFILE,const FILETIME*,const FILETIME*,const FILETIME*);
1740BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
1741BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
1742BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
1743BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1744BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
1745BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
1746BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
1747BOOL WINAPI SetStdHandle(DWORD,HANDLE);
1748BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
1749BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
1750DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
1751BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *);
1752BOOL WINAPI SetThreadLocale(LCID);
1753BOOL WINAPI SetThreadPriority(HANDLE,INT);
1754BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION);
1755VOID WINAPI Sleep(DWORD);
1756DWORD WINAPI SleepEx(DWORD,BOOL);
1757DWORD WINAPI SuspendThread(HANDLE);
1758BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
1759DWORD WINAPI TlsAlloc(void);
1760BOOL WINAPI TlsFree(DWORD);
1761LPVOID WINAPI TlsGetValue(DWORD);
1762BOOL WINAPI TlsSetValue(DWORD,LPVOID);
1763BOOL WINAPI UnlockFile(HFILE,DWORD,DWORD,DWORD,DWORD);
1764BOOL WINAPI UnmapViewOfFile(LPVOID);
1765BOOL WINAPI FlushInstructionCache(HANDLE,LPCVOID,DWORD);
1766LPVOID WINAPI VirtualAlloc(LPVOID,DWORD,DWORD,DWORD);
1767BOOL WINAPI VirtualFree(LPVOID,DWORD,DWORD);
1768BOOL WINAPI VirtualLock(LPVOID,DWORD);
1769BOOL WINAPI VirtualProtect(LPVOID,DWORD,DWORD,LPDWORD);
1770BOOL WINAPI VirtualProtectEx(HANDLE,LPVOID,DWORD,DWORD,LPDWORD);
1771DWORD WINAPI VirtualQuery(LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1772DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,LPMEMORY_BASIC_INFORMATION,DWORD);
1773BOOL WINAPI VirtualUnlock(LPVOID,DWORD);
1774BOOL WINAPI WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED);
1775BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
1776DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
1777DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
1778DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
1779DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
1780SEGPTR WINAPI WOWGlobalAllocLock16(DWORD,DWORD,HGLOBAL16*);
1781DWORD WINAPI WOWCallback16(FARPROC16,DWORD);
1782BOOL WINAPI WOWCallback16Ex(FARPROC16,DWORD,DWORD,LPVOID,LPDWORD);
1783HANDLE WINAPI WOWHandle32(WORD,WOW_HANDLE_TYPE);
1784BOOL WINAPI WriteConsoleA(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1785BOOL WINAPI WriteConsoleW(HANDLE,LPCVOID,DWORD,LPDWORD,LPVOID);
1786#define WriteConsole WINELIB_NAME_AW(WriteConsole)
1787BOOL WINAPI WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED);
1788BOOL WINAPI WriteFileEx(HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite,
1789 LPOVERLAPPED lpOverlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
1790DWORD WINAPI GetLastError(void);
1791LANGID WINAPI GetSystemDefaultLangID(void);
1792LCID WINAPI GetSystemDefaultLCID(void);
1793LANGID WINAPI GetUserDefaultLangID(void);
1794LCID WINAPI GetUserDefaultLCID(void);
1795ATOM WINAPI AddAtomA(LPCSTR);
1796ATOM WINAPI AddAtomW(LPCWSTR);
1797#define AddAtom WINELIB_NAME_AW(AddAtom)
1798UINT WINAPI CompareStringA(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
1799UINT WINAPI CompareStringW(DWORD,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD);
1800#define CompareString WINELIB_NAME_AW(CompareString)
1801BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1802BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1803#define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
1804BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1805BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1806#define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
1807BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1808#define DefineHandleTable(w) ((w),TRUE)
1809ATOM WINAPI DeleteAtom(ATOM);
1810BOOL WINAPI DeleteFileA(LPCSTR);
1811BOOL WINAPI DeleteFileW(LPCWSTR);
1812#define DeleteFile WINELIB_NAME_AW(DeleteFile)
1813void WINAPI FatalAppExitA(UINT,LPCSTR);
1814void WINAPI FatalAppExitW(UINT,LPCWSTR);
1815#define FatalAppExit WINELIB_NAME_AW(FatalAppExit)
1816ATOM WINAPI FindAtomA(LPCSTR);
1817ATOM WINAPI FindAtomW(LPCWSTR);
1818#define FindAtom WINELIB_NAME_AW(FindAtom)
1819BOOL WINAPI FindClose(HANDLE);
1820HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1821HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1822#define FindFirstFile WINELIB_NAME_AW(FindFirstFile)
1823HANDLE WINAPI FindFirstFileMultiA(LPCSTR,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1824BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1825BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1826#define FindNextFile WINELIB_NAME_AW(FindNextFile)
1827BOOL WINAPI FindNextFileMultiA(HANDLE,LPWIN32_FIND_DATAA,DWORD*); //Odin only
1828HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1829HRSRC WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
1830#define FindResource WINELIB_NAME_AW(FindResource)
1831VOID WINAPI FreeLibrary16(HINSTANCE16);
1832BOOL WINAPI FreeLibrary(HMODULE);
1833#define FreeModule(handle) FreeLibrary(handle)
1834#define FreeProcInstance(proc) /*nothing*/
1835BOOL WINAPI FreeResource(HGLOBAL);
1836UINT WINAPI GetAtomNameA(ATOM,LPSTR,INT);
1837UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
1838#define GetAtomName WINELIB_NAME_AW(GetAtomName)
1839UINT WINAPI GetCurrentDirectoryA(UINT,LPSTR);
1840UINT WINAPI GetCurrentDirectoryW(UINT,LPWSTR);
1841#define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
1842BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1843BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
1844#define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
1845BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1846BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1847#define GetDiskFreeSpaceEx WINELIB_NAME_AW(GetDiskFreeSpaceEx)
1848UINT WINAPI GetDriveTypeA(LPCSTR);
1849UINT WINAPI GetDriveTypeW(LPCWSTR);
1850#define GetDriveType WINELIB_NAME_AW(GetDriveType)
1851DWORD WINAPI GetFileAttributesA(LPCSTR);
1852DWORD WINAPI GetFileAttributesW(LPCWSTR);
1853#define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
1854#define GetFreeSpace(w) (0x100000L)
1855UINT WINAPI GetLogicalDriveStringsA(UINT,LPSTR);
1856UINT WINAPI GetLogicalDriveStringsW(UINT,LPWSTR);
1857#define GetLogicalDriveStrings WINELIB_NAME_AW(GetLogicalDriveStrings)
1858INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
1859INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
1860#define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
1861DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD);
1862DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD);
1863#define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
1864HMODULE WINAPI GetModuleHandleA(LPCSTR);
1865HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1866#define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle)
1867UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1868UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1869#define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt)
1870INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1871INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1872#define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection)
1873DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1874DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1875#define GetPrivateProfileSectionNames WINELIB_NAME_AW(GetPrivateProfileSectionNames)
1876INT WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR);
1877INT WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR);
1878#define GetPrivateProfileString WINELIB_NAME_AW(GetPrivateProfileString)
1879BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1880BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1881#define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
1882FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
1883UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1884UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1885#define GetProfileInt WINELIB_NAME_AW(GetProfileInt)
1886INT WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1887INT WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1888#define GetProfileSection WINELIB_NAME_AW(GetProfileSection)
1889INT WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT);
1890INT WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT);
1891#define GetProfileString WINELIB_NAME_AW(GetProfileString)
1892VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1893VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1894#define GetStartupInfo WINELIB_NAME_AW(GetStartupInfo)
1895BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
1896BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
1897#define GetStringType WINELIB_NAME_AW(GetStringType)
1898UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1899UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1900#define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
1901UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1902UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1903#define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
1904UINT WINAPI GetTempPathA(UINT,LPSTR);
1905UINT WINAPI GetTempPathW(UINT,LPWSTR);
1906#define GetTempPath WINELIB_NAME_AW(GetTempPath)
1907LONG WINAPI GetVersion(void);
1908BOOL WINAPI GetExitCodeProcess(HANDLE,LPDWORD);
1909BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD);
1910BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD);
1911#define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
1912UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1913UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1914#define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
1915HGLOBAL16 WINAPI GlobalAlloc16(UINT16,DWORD);
1916HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1917DWORD WINAPI GlobalCompact(DWORD);
1918UINT WINAPI GlobalFlags(HGLOBAL);
1919HGLOBAL16 WINAPI GlobalFree16(HGLOBAL16);
1920HGLOBAL WINAPI GlobalFree(HGLOBAL);
1921HGLOBAL WINAPI GlobalHandle(LPCVOID);
1922WORD WINAPI GlobalFix16(HGLOBAL16);
1923VOID WINAPI GlobalFix(HGLOBAL);
1924LPVOID WINAPI GlobalLock16(HGLOBAL16);
1925LPVOID WINAPI GlobalLock(HGLOBAL);
1926HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1927DWORD WINAPI GlobalSize16(HGLOBAL16);
1928DWORD WINAPI GlobalSize(HGLOBAL);
1929VOID WINAPI GlobalUnfix16(HGLOBAL16);
1930VOID WINAPI GlobalUnfix(HGLOBAL);
1931BOOL16 WINAPI GlobalUnlock16(HGLOBAL16);
1932BOOL WINAPI GlobalUnlock(HGLOBAL);
1933BOOL16 WINAPI GlobalUnWire16(HGLOBAL16);
1934BOOL WINAPI GlobalUnWire(HGLOBAL);
1935SEGPTR WINAPI GlobalWire16(HGLOBAL16);
1936LPVOID WINAPI GlobalWire(HGLOBAL);
1937BOOL WINAPI InitAtomTable(DWORD);
1938BOOL WINAPI IsBadCodePtr(FARPROC);
1939BOOL WINAPI IsBadHugeReadPtr(LPCVOID,UINT);
1940BOOL WINAPI IsBadHugeWritePtr(LPVOID,UINT);
1941BOOL WINAPI IsBadReadPtr(LPCVOID,UINT);
1942BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT);
1943BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT);
1944#define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
1945BOOL WINAPI IsBadWritePtr(LPVOID,UINT);
1946BOOL WINAPI IsDBCSLeadByte(BYTE);
1947HINSTANCE16 WINAPI LoadLibrary16(LPCSTR);
1948HMODULE WINAPI LoadLibraryA(LPCSTR);
1949HMODULE WINAPI LoadLibraryW(LPCWSTR);
1950#define LoadLibrary WINELIB_NAME_AW(LoadLibrary)
1951HMODULE WINAPI LoadLibraryExA(LPCSTR,HFILE,DWORD);
1952HMODULE WINAPI LoadLibraryExW(LPCWSTR,HFILE,DWORD);
1953#define LoadLibraryEx WINELIB_NAME_AW(LoadLibraryEx)
1954HINSTANCE16 WINAPI LoadModule16(LPCSTR,LPVOID);
1955HINSTANCE WINAPI LoadModule(LPCSTR,LPVOID);
1956HGLOBAL WINAPI LoadResource(HMODULE,HRSRC);
1957HLOCAL WINAPI LocalAlloc(UINT,DWORD);
1958UINT WINAPI LocalCompact(UINT);
1959UINT WINAPI LocalFlags(HLOCAL);
1960HLOCAL WINAPI LocalFree(HLOCAL);
1961HLOCAL WINAPI LocalHandle(LPCVOID);
1962LPVOID WINAPI LocalLock(HLOCAL);
1963HLOCAL WINAPI LocalReAlloc(HLOCAL,DWORD,UINT);
1964UINT WINAPI LocalShrink(HGLOBAL,UINT);
1965UINT WINAPI LocalSize(HLOCAL);
1966BOOL WINAPI LocalUnlock(HLOCAL);
1967LPVOID WINAPI LockResource(HGLOBAL);
1968#define UnlockResource(hResData) ((hResData), 0)
1969
1970#define LockSegment(handle) GlobalFix((HANDLE)(handle))
1971#define MakeProcInstance(proc,inst) (proc)
1972HFILE16 WINAPI OpenFile16(LPCSTR,OFSTRUCT*,UINT16);
1973HFILE WINAPI OpenFile(LPCSTR,OFSTRUCT*,UINT);
1974VOID WINAPI OutputDebugStringA(LPCSTR);
1975VOID WINAPI OutputDebugStringW(LPCWSTR);
1976#define OutputDebugString WINELIB_NAME_AW(OutputDebugString)
1977BOOL WINAPI RemoveDirectoryA(LPCSTR);
1978BOOL WINAPI RemoveDirectoryW(LPCWSTR);
1979#define RemoveDirectory WINELIB_NAME_AW(RemoveDirectory)
1980BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
1981BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
1982#define SetCurrentDirectory WINELIB_NAME_AW(SetCurrentDirectory)
1983UINT WINAPI SetErrorMode(UINT);
1984BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
1985BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
1986#define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
1987UINT WINAPI SetHandleCount(UINT);
1988#define SetSwapAreaSize(w) (w)
1989BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
1990BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
1991#define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
1992DWORD WINAPI SizeofResource(HMODULE,HRSRC);
1993#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
1994DWORD WINAPI VerLanguageNameA(DWORD,LPSTR,DWORD);
1995DWORD WINAPI VerLanguageNameW(DWORD,LPWSTR,DWORD);
1996#define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
1997BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
1998BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
1999#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2000BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
2001BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
2002#define WritePrivateProfileString WINELIB_NAME_AW(WritePrivateProfileString)
2003BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
2004BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
2005#define WritePrivateProfileSection WINELIB_NAME_AW(WritePrivateProfileSection)
2006BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
2007BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
2008#define WritePrivateProfileStruct WINELIB_NAME_AW(WritePrivateProfileStruct)
2009BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
2010BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
2011#define WriteProfileString WINELIB_NAME_AW(WriteProfileString)
2012#define Yield32()
2013LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
2014LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
2015#define lstrcat WINELIB_NAME_AW(lstrcat)
2016LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
2017LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
2018#define lstrcpy WINELIB_NAME_AW(lstrcpy)
2019LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,INT);
2020LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,INT);
2021#define lstrcpyn WINELIB_NAME_AW(lstrcpyn)
2022INT WINAPI lstrlenA(LPCSTR);
2023INT WINAPI lstrlenW(LPCWSTR);
2024#define lstrlen WINELIB_NAME_AW(lstrlen)
2025HINSTANCE WINAPI WinExec(LPCSTR,UINT);
2026LONG WINAPI _hread(HFILE,LPVOID,LONG);
2027LONG WINAPI _hwrite(HFILE,LPCSTR,LONG);
2028HFILE WINAPI _lcreat(LPCSTR,INT);
2029HFILE WINAPI _lclose(HFILE);
2030LONG WINAPI _llseek(HFILE,LONG,INT);
2031HFILE WINAPI _lopen(LPCSTR,INT);
2032UINT WINAPI _lread(HFILE,LPVOID,UINT);
2033UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
2034SEGPTR WINAPI WIN16_GlobalLock16(HGLOBAL16);
2035INT WINAPI lstrcmpA(LPCSTR,LPCSTR);
2036INT WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
2037#define lstrcmp WINELIB_NAME_AW(lstrcmp)
2038INT WINAPI lstrcmpiA(LPCSTR,LPCSTR);
2039INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
2040#define lstrcmpi WINELIB_NAME_AW(lstrcmpi)
2041int WINAPI lstrncmpiA(LPCSTR, LPCSTR, int);
2042int WINAPI lstrncmpiW(LPCWSTR, LPCWSTR, int);
2043#define lstrncmpi WINELIB_NAME_AW(lstrncmpi)
2044
2045VOID WINAPI SetLastError(DWORD);
2046
2047
2048BOOL WINAPI SetTokenInformation(HANDLE hToken,
2049 TOKEN_INFORMATION_CLASS tic,
2050 LPVOID lpvInformation,
2051 DWORD cbInformation);
2052BOOL WINAPI GetUserNameA( /*PLF Wed 98-02-11 13:33:39*/
2053 LPTSTR lpBuffer, /* address of name buffer */
2054 LPDWORD lpcchBuffer); /* address of size of name buffer */
2055
2056BOOL WINAPI GetUserNameW( /*KSO Thu 21.05.1998 */
2057 LPWSTR lpBuffer,
2058 LPDWORD lpccBuffer
2059 );
2060
2061BOOL WINAPI AbortSystemShutdownA(LPTSTR lpMachineName);
2062BOOL WINAPI AbortSystemShutdownW(LPWSTR lpMachineName);
2063BOOL WINAPI AccessCheckAndAuditAlarmA(LPCSTR SubsystemName,
2064 LPVOID HandleId,
2065 LPTSTR ObjectTypeName,
2066 LPTSTR ObjectName,
2067 PSECURITY_DESCRIPTOR SecurityDescriptor,
2068 DWORD DesiredAccess,
2069 PGENERIC_MAPPING GenericMapping,
2070 BOOL ObjectCreation,
2071 LPDWORD GrantedAccess,
2072 LPBOOL AccessStatus,
2073 LPBOOL pfGenerateOnClose);
2074BOOL WINAPI AccessCheckAndAuditAlarmW(LPCWSTR SubsystemName,
2075 LPVOID HandleId,
2076 LPWSTR ObjectTypeName,
2077 LPWSTR ObjectName,
2078 PSECURITY_DESCRIPTOR SecurityDescriptor,
2079 DWORD DesiredAccess,
2080 PGENERIC_MAPPING GenericMapping,
2081 BOOL ObjectCreation,
2082 LPDWORD GrantedAccess,
2083 LPBOOL AccessStatus,
2084 LPBOOL pfGenerateOnClose);
2085BOOL WINAPI AddAccessAllowedAce(PACL pAcl,
2086 DWORD dwAceRevision,
2087 DWORD AccessMask,
2088 PSID pSid);
2089BOOL WINAPI AddAccessDeniedAce(PACL pAcl,
2090 DWORD dwAceRevision,
2091 DWORD AccessMask,
2092 PSID pSid);
2093BOOL WINAPI AddAce(PACL pAcl,
2094 DWORD dwAceRevision,
2095 DWORD dwStartingAceIndex,
2096 LPVOID pAceList,
2097 DWORD nAceListLength);
2098BOOL WINAPI AddAuditAccessAce(PACL pAcl,
2099 DWORD dwAceRevision,
2100 DWORD dwAccessMask,
2101 PSID pSid,
2102 BOOL bAuditSuccess,
2103 BOOL bAuditFailure);
2104BOOL WINAPI AdjustTokenGroups(HANDLE TokenHandle,
2105 BOOL ResetToDefault,
2106 PTOKEN_GROUPS NewState,
2107 DWORD BufferLength,
2108 PTOKEN_GROUPS PreviousState,
2109 LPDWORD ReturnLength);
2110BOOL WINAPI AllocateLocallyUniqueId(PLUID Luid);
2111BOOL WINAPI AreAllAccessesGranted(DWORD GrantedAccess,
2112 DWORD DesiredAccess);
2113BOOL WINAPI AreAnyAccessesGranted(DWORD GrantedAccess,
2114 DWORD DesiredAccess);
2115BOOL WINAPI CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR ParentDescriptor,
2116 PSECURITY_DESCRIPTOR CreatorDescriptor,
2117 PSECURITY_DESCRIPTOR *NewDescriptor,
2118 BOOL IsDirectoryObject,
2119 HANDLE Token,
2120 PGENERIC_MAPPING GenericMapping);
2121BOOL WINAPI CreateProcessAsUserA(HANDLE hToken,
2122 LPCSTR lpApplicationName,
2123 LPTSTR lpCommandLine,
2124 LPSECURITY_ATTRIBUTES lpProcessAttributes,
2125 LPSECURITY_ATTRIBUTES lpThreadAttributes,
2126 BOOL bInheritHandles,
2127 DWORD dwCreationFlags,
2128 LPVOID lpEnvironment,
2129 LPCSTR lpCurrentDirectory,
2130 LPSTARTUPINFOA lpStartupInfo,
2131 LPPROCESS_INFORMATION lpProcessInformation);
2132BOOL WINAPI CreateProcessAsUserW(HANDLE hToken,
2133 LPCWSTR lpApplicationName,
2134 LPWSTR lpCommandLine,
2135 LPSECURITY_ATTRIBUTES lpProcessAttributes,
2136 LPSECURITY_ATTRIBUTES lpThreadAttributes,
2137 BOOL bInheritHandles,
2138 DWORD dwCreationFlags,
2139 LPVOID lpEnvironment,
2140 LPCWSTR lpCurrentDirectory,
2141 LPSTARTUPINFOA lpStartupInfo,
2142 LPPROCESS_INFORMATION lpProcessInformation);
2143BOOL WINAPI DeleteAce(PACL pAcl,
2144 DWORD dwAceIndex);
2145BOOL WINAPI DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR *ObjectDescriptor);
2146BOOL WINAPI DuplicateToken(HANDLE ExistingTokenHandle,
2147 SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
2148 PHANDLE DuplicateTokenHandle);
2149BOOL WINAPI FindFirstFreeAce(PACL pAcl,
2150 LPVOID *pAce);
2151BOOL WINAPI GetAce(PACL pAcl,
2152 DWORD dwAceIndex,
2153 LPVOID *pAce);
2154BOOL WINAPI GetAclInformation(PACL pAcl,
2155 LPVOID pAclInformation,
2156 DWORD nAclInformationLength,
2157 ACL_INFORMATION_CLASS dwAclInformationClass);
2158BOOL WINAPI GetKernelObjectSecurity(HANDLE Handle,
2159 SECURITY_INFORMATION RequestedInformation,
2160 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2161 DWORD nLength,
2162 LPDWORD lpnLengthNeeded);
2163BOOL WINAPI GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR ObjectDescriptor,
2164 SECURITY_INFORMATION SecurityInformation,
2165 PSECURITY_DESCRIPTOR ResultantDescriptor,
2166 DWORD DescriptorLength,
2167 LPDWORD ReturnLength);
2168BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken);
2169BOOL WINAPI ImpersonateNamedPipeClient(HANDLE hNamedPipe);
2170BOOL WINAPI InitiateSystemShutdownA(LPTSTR lpMachineName,
2171 LPTSTR lpMessage,
2172 DWORD dwTimeout,
2173 BOOL bForceAppsClosed,
2174 BOOL bRebootAfterShutdown);
2175BOOL WINAPI InitiateSystemShutdownW(LPWSTR lpMachineName,
2176 LPWSTR lpMessage,
2177 DWORD dwTimeout,
2178 BOOL bForceAppsClosed,
2179 BOOL bRebootAfterShutdown);
2180DWORD WINAPI IsTextUnicode(CONST LPVOID lpBuffer,
2181 int cb,
2182 LPINT lpi);
2183BOOL WINAPI IsValidAcl(PACL pAcl);
2184BOOL WINAPI LogonUserA(LPTSTR lpszUsername,
2185 LPTSTR lpszDomain,
2186 LPTSTR lpszPassword,
2187 DWORD dwLogonType,
2188 DWORD dwLogonProvider,
2189 PHANDLE phToken);
2190BOOL WINAPI LogonUserW(LPWSTR lpszUsername,
2191 LPWSTR lpszDomain,
2192 LPWSTR lpszPassword,
2193 DWORD dwLogonType,
2194 DWORD dwLogonProvider,
2195 PHANDLE phToken);
2196BOOL WINAPI LookupAccountNameA(LPCSTR lpSystemName,
2197 LPCSTR lpAccountName,
2198 PSID Sid,
2199 LPDWORD cbSid,
2200 LPTSTR ReferencedDomainName,
2201 LPDWORD cbReferencedDomainName,
2202 PSID_NAME_USE peUse);
2203BOOL WINAPI LookupAccountNameW(LPCWSTR lpSystemName,
2204 LPCWSTR lpAccountName,
2205 PSID Sid,
2206 LPDWORD cbSid,
2207 LPWSTR ReferencedDomainName,
2208 LPDWORD cbReferencedDomainName,
2209 PSID_NAME_USE peUse);
2210BOOL WINAPI LookupPrivilegeDisplayNameA(LPCSTR lpSystemName,
2211 LPCSTR lpName,
2212 LPTSTR lpDisplayName,
2213 LPDWORD cbDisplayName,
2214 LPDWORD lpLanguageId);
2215BOOL WINAPI LookupPrivilegeDisplayNameW(LPCWSTR lpSystemName,
2216 LPCWSTR lpName,
2217 LPWSTR lpDisplayName,
2218 LPDWORD cbDisplayName,
2219 LPDWORD lpLanguageId);
2220BOOL WINAPI LookupPrivilegeNameA(LPCSTR lpSystemName,
2221 PLUID lpLuid,
2222 LPTSTR lpName,
2223 LPDWORD cbName);
2224BOOL WINAPI LookupPrivilegeNameW(LPCWSTR lpSystemName,
2225 PLUID lpLuid,
2226 LPWSTR lpName,
2227 LPDWORD cbName);
2228BOOL WINAPI MakeAbsoluteSD(PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
2229 PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
2230 LPDWORD lpdwAbsoluteSecurityDescriptorSize,
2231 PACL pDacl,
2232 LPDWORD lpdwDaclSize,
2233 PACL pSacl,
2234 LPDWORD lpdwSaclSize,
2235 PSID pOwner,
2236 LPDWORD lpdwOwnerSize,
2237 PSID pPrimaryGroup,
2238 LPDWORD lpdwPrimaryGroupSize);
2239VOID WINAPI MapGenericMask(LPDWORD AccessMask,
2240 PGENERIC_MAPPING GenericMapping);
2241BOOL WINAPI ObjectCloseAuditAlarmA(LPCSTR SubsystemName,
2242 LPVOID HandleId,
2243 BOOL GenerateOnClose);
2244BOOL WINAPI ObjectCloseAuditAlarmW(LPCWSTR SubsystemName,
2245 LPVOID HandleId,
2246 BOOL GenerateOnClose);
2247BOOL WINAPI ObjectOpenAuditAlarmA(LPCSTR SubsystemName,
2248 LPVOID HandleId,
2249 LPTSTR ObjectTypeName,
2250 LPTSTR ObjectName,
2251 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2252 HANDLE ClientToken,
2253 DWORD DesiredAccess,
2254 DWORD GrantedAccess,
2255 PPRIVILEGE_SET Privileges,
2256 BOOL ObjectCreation,
2257 BOOL AccessGranted,
2258 LPBOOL GenerateOnClose);
2259BOOL WINAPI ObjectOpenAuditAlarmW(LPCWSTR SubsystemName,
2260 LPVOID HandleId,
2261 LPWSTR ObjectTypeName,
2262 LPWSTR ObjectName,
2263 PSECURITY_DESCRIPTOR pSecurityDescriptor,
2264 HANDLE ClientToken,
2265 DWORD DesiredAccess,
2266 DWORD GrantedAccess,
2267 PPRIVILEGE_SET Privileges,
2268 BOOL ObjectCreation,
2269 BOOL AccessGranted,
2270 LPBOOL GenerateOnClose);
2271BOOL WINAPI ObjectPrivilegeAuditAlarmA(LPCSTR lpszSubsystem,
2272 LPVOID lpvHandleId,
2273 HANDLE hClientToken,
2274 DWORD dwDesiredAccess,
2275 PPRIVILEGE_SET pps,
2276 BOOL fAccessGranted);
2277BOOL WINAPI ObjectPrivilegeAuditAlarmW(LPCWSTR lpszSubsystem,
2278 LPVOID lpvHandleId,
2279 HANDLE hClientToken,
2280 DWORD dwDesiredAccess,
2281 PPRIVILEGE_SET pps,
2282 BOOL fAccessGranted);
2283BOOL WINAPI PrivilegeCheck(HANDLE hClientToken,
2284 PPRIVILEGE_SET pps,
2285 LPBOOL lpfResult);
2286BOOL WINAPI PrivilegedServiceAuditAlarmA(LPCSTR lpszSubsystem,
2287 LPCSTR lpszService,
2288 HANDLE hClientToken,
2289 PPRIVILEGE_SET pps,
2290 BOOL fAccessGranted);
2291BOOL WINAPI PrivilegedServiceAuditAlarmW(LPCWSTR lpszSubsystem,
2292 LPCWSTR lpszService,
2293 HANDLE hClientToken,
2294 PPRIVILEGE_SET pps,
2295 BOOL fAccessGranted);
2296BOOL WINAPI SetAclInformation(PACL pAcl,
2297 LPVOID lpvAclInfo,
2298 DWORD cbAclInfo,
2299 ACL_INFORMATION_CLASS aclic);
2300BOOL WINAPI SetKernelObjectSecurity(HANDLE hObject,
2301 SECURITY_INFORMATION si,
2302 PSECURITY_DESCRIPTOR psd);
2303BOOL WINAPI SetPrivateObjectSecurity(SECURITY_INFORMATION si,
2304 PSECURITY_DESCRIPTOR psdSource,
2305 PSECURITY_DESCRIPTOR *lppsdTarget,
2306 PGENERIC_MAPPING pgm,
2307 HANDLE hClientToken);
2308
2309
2310HANDLE WINAPI CreateNamedPipeA(LPCSTR lpName, DWORD dwOpenMode, DWORD dwPipeMode,
2311 DWORD nMaxInstances, DWORD nOutBufferSize,
2312 DWORD nInBufferSize, DWORD nDefaultTimeOut,
2313 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2314HANDLE WINAPI CreateNamedPipeW(LPCWSTR lpName, DWORD dwOpenMode, DWORD dwPipeMode,
2315 DWORD nMaxInstances, DWORD nOutBufferSize, DWORD nInBufferSize,
2316 DWORD nDefaultTimeOut, LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2317#define CreateNamedPipe WINELIB_NAME_AW(CreateNamedPipe)
2318
2319BOOL WINAPI GetNamedPipeHandleStateA(HANDLE hNamedPipe, LPDWORD lpState,
2320 LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount,
2321 LPDWORD lpCollectDataTimeout, LPSTR lpUserName,
2322 DWORD nMaxUserNameSize);
2323BOOL WINAPI GetNamedPipeHandleStateW(HANDLE hNamedPipe,LPDWORD lpState, LPDWORD lpCurInstances,
2324 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout,
2325 LPWSTR lpUserName, DWORD nMaxUserNameSize);
2326#define GetNamedPipeHandleState WINELIB_NAME_AW(GetNamedPipeHandleState)
2327
2328BOOL WINAPI CallNamedPipeA(LPCSTR lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize,
2329 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2330 DWORD nTimeOut);
2331BOOL WINAPI CallNamedPipeW(LPCWSTR lpNamedPipeName, LPVOID lpInBuffer, DWORD nInBufferSize,
2332 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2333 DWORD nTimeOut);
2334#define CallNamedPipe WINELIB_NAME_AW(CallNamedPipe)
2335
2336
2337BOOL WINAPI WaitNamedPipeA(LPCSTR lpNamedPipeName, DWORD nTimeOut);
2338BOOL WINAPI WaitNamedPipeW(LPCWSTR lpNamedPipeName, DWORD nTimeOut);
2339
2340#define WaitNamedPipe WINELIB_NAME_AW(WaitNamedPipe)
2341
2342BOOL WINAPI CreatePipe(PHANDLE hReadPipe, PHANDLE hWritePipe, LPSECURITY_ATTRIBUTES lpPipeAttributes,
2343 DWORD nSize);
2344BOOL WINAPI ConnectNamedPipe(HANDLE hNamedPipe, LPOVERLAPPED lpOverlapped);
2345BOOL WINAPI DisconnectNamedPipe(HANDLE hNamedPipe);
2346BOOL WINAPI SetNamedPipeHandleState(HANDLE hNamedPipe, LPDWORD lpMode,
2347 LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout);
2348BOOL WINAPI GetNamedPipeInfo(HANDLE hNamedPipe, LPDWORD lpFlags, LPDWORD lpOutBufferSize,
2349 LPDWORD lpInBufferSize, LPDWORD lpMaxInstances);
2350BOOL WINAPI PeekNamedPipe(HANDLE hNamedPipe, LPVOID lpBuffer, DWORD nBufferSize,
2351 LPDWORD lpBytesRead, LPDWORD lpTotalBytesAvail,
2352 LPDWORD lpBytesLeftThisMessage);
2353BOOL WINAPI TransactNamedPipe(HANDLE hNamedPipe, LPVOID lpInBuffer, DWORD nInBufferSize,
2354 LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesRead,
2355 LPOVERLAPPED lpOverlapped);
2356
2357HANDLE WINAPI CreateMailslotA(LPCSTR lpName, DWORD nMaxMessageSize, DWORD lReadTimeout,
2358 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2359HANDLE WINAPI CreateMailslotW(LPCWSTR lpName, DWORD nMaxMessageSize, DWORD lReadTimeout,
2360 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
2361#define CreateMailslot WINELIB_NAME_AW(WaitNamedPipe)
2362
2363BOOL WINAPI GetMailslotInfo(HANDLE hMailslot, LPDWORD lpMaxMessageSize,
2364 LPDWORD lpNextSize, LPDWORD lpMessageCount,
2365 LPDWORD lpReadTimeout);
2366
2367BOOL WINAPI SetMailslotInfo(HANDLE hMailslot, DWORD lReadTimeout);
2368
2369/* undocumented functions */
2370
2371typedef struct tagSYSLEVEL
2372{
2373 CRITICAL_SECTION crst;
2374 INT level;
2375} SYSLEVEL;
2376
2377VOID WINAPI GetpWin16Lock(SYSLEVEL**);
2378DWORD WINAPI MapLS(LPVOID);
2379LPVOID WINAPI MapSL(DWORD);
2380VOID WINAPI ReleaseThunkLock(DWORD*);
2381VOID WINAPI RestoreThunkLock(DWORD);
2382VOID WINAPI UnMapLS(DWORD);
2383DWORD WINAPI _ConfirmWin16Lock(void);
2384DWORD WINAPI _ConfirmSysLevel(SYSLEVEL*);
2385VOID WINAPI _EnterSysLevel(SYSLEVEL*);
2386VOID WINAPI _LeaveSysLevel(SYSLEVEL*);
2387
2388#ifdef __cplusplus
2389}
2390#endif
2391
2392#endif /* __WINE_WINBASE_H */
Note: See TracBrowser for help on using the repository browser.