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

Last change on this file since 10483 was 10483, checked in by sandervl, 22 years ago

update

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