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

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

header updates

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