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

Last change on this file since 4657 was 4657, checked in by sandervl, 25 years ago

header updates for TEB changes

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