add missing definition for TzSpecificLocalTimeToSystemTime
[reactos.git] / reactos / include / psdk / winbase.h
1 #ifndef _WINBASE_
2 #define _WINBASE_
3
4 #if !defined(_KERNEL32_)
5 #define WINBASEAPI DECLSPEC_IMPORT
6 #else
7 #define WINBASEAPI
8 #endif
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 #define FILE_ENCRYPTABLE 0
15 #define FILE_IS_ENCRYPTED 1
16 #define FILE_SYSTEM_ATTR 2
17 #define FILE_ROOT_DIR 3
18 #define FILE_SYSTEM_DIR 4
19 #define FILE_UNKNOWN 5
20 #define FILE_SYSTEM_NOT_SUPPORT 6
21 #define FILE_USER_DISALLOWED 7
22 #define FILE_READ_ONLY 8
23 #define FILE_DIR_DISALOWED 9
24
25 #define COMMPROP_INITIALIZED 0xE73CF52E
26 #define SP_SERIALCOMM 1
27 #define PST_UNSPECIFIED 0
28 #define PST_RS232 1
29 #define PST_PARALLELPORT 2
30 #define PST_RS422 3
31 #define PST_RS423 4
32 #define PST_RS449 5
33 #define PST_MODEM 6
34 #define PST_FAX 0x21
35 #define PST_SCANNER 0x22
36 #define PST_NETWORK_BRIDGE 0x100
37 #define PST_LAT 0x101
38 #define PST_TCPIP_TELNET 0x102
39 #define PST_X25 0x103
40 #define BAUD_075 1
41 #define BAUD_110 2
42 #define BAUD_134_5 4
43 #define BAUD_150 8
44 #define BAUD_300 16
45 #define BAUD_600 32
46 #define BAUD_1200 64
47 #define BAUD_1800 128
48 #define BAUD_2400 256
49 #define BAUD_4800 512
50 #define BAUD_7200 1024
51 #define BAUD_9600 2048
52 #define BAUD_14400 4096
53 #define BAUD_19200 8192
54 #define BAUD_38400 16384
55 #define BAUD_56K 32768
56 #define BAUD_128K 65536
57 #define BAUD_115200 131072
58 #define BAUD_57600 262144
59 #define BAUD_USER 0x10000000
60 #define PCF_DTRDSR 1
61 #define PCF_RTSCTS 2
62 #define PCF_RLSD 4
63 #define PCF_PARITY_CHECK 8
64 #define PCF_XONXOFF 16
65 #define PCF_SETXCHAR 32
66 #define PCF_TOTALTIMEOUTS 64
67 #define PCF_INTTIMEOUTS 128
68 #define PCF_SPECIALCHARS 256
69 #define PCF_16BITMODE 512
70 #define SP_PARITY 1
71 #define SP_BAUD 2
72 #define SP_DATABITS 4
73 #define SP_STOPBITS 8
74 #define SP_HANDSHAKING 16
75 #define SP_PARITY_CHECK 32
76 #define SP_RLSD 64
77 #define DATABITS_5 1
78 #define DATABITS_6 2
79 #define DATABITS_7 4
80 #define DATABITS_8 8
81 #define DATABITS_16 16
82 #define DATABITS_16X 32
83 #define STOPBITS_10 1
84 #define STOPBITS_15 2
85 #define STOPBITS_20 4
86 #define PARITY_NONE 256
87 #define PARITY_ODD 512
88 #define PARITY_EVEN 1024
89 #define PARITY_MARK 2048
90 #define PARITY_SPACE 4096
91 #define EXCEPTION_DEBUG_EVENT 1
92 #define CREATE_THREAD_DEBUG_EVENT 2
93 #define CREATE_PROCESS_DEBUG_EVENT 3
94 #define EXIT_THREAD_DEBUG_EVENT 4
95 #define EXIT_PROCESS_DEBUG_EVENT 5
96 #define LOAD_DLL_DEBUG_EVENT 6
97 #define UNLOAD_DLL_DEBUG_EVENT 7
98 #define OUTPUT_DEBUG_STRING_EVENT 8
99 #define RIP_EVENT 9
100 #define HFILE_ERROR ((HFILE)-1)
101 #define FILE_BEGIN 0
102 #define FILE_CURRENT 1
103 #define FILE_END 2
104 #define INVALID_SET_FILE_POINTER ((DWORD)-1)
105 #define OF_READ 0
106 #define OF_READWRITE 2
107 #define OF_WRITE 1
108 #define OF_SHARE_COMPAT 0
109 #define OF_SHARE_DENY_NONE 64
110 #define OF_SHARE_DENY_READ 48
111 #define OF_SHARE_DENY_WRITE 32
112 #define OF_SHARE_EXCLUSIVE 16
113 #define OF_CANCEL 2048
114 #define OF_CREATE 4096
115 #define OF_DELETE 512
116 #define OF_EXIST 16384
117 #define OF_PARSE 256
118 #define OF_PROMPT 8192
119 #define OF_REOPEN 32768
120 #define OF_VERIFY 1024
121 #define NMPWAIT_NOWAIT 1
122 #define NMPWAIT_WAIT_FOREVER ((DWORD)-1)
123 #define NMPWAIT_USE_DEFAULT_WAIT 0
124 #define CE_BREAK 16
125 #define CE_DNS 2048
126 #define CE_FRAME 8
127 #define CE_IOE 1024
128 #define CE_MODE 32768
129 #define CE_OOP 4096
130 #define CE_OVERRUN 2
131 #define CE_PTO 512
132 #define CE_RXOVER 1
133 #define CE_RXPARITY 4
134 #define CE_TXFULL 256
135 #define PROGRESS_CONTINUE 0
136 #define PROGRESS_CANCEL 1
137 #define PROGRESS_STOP 2
138 #define PROGRESS_QUIET 3
139 #define CALLBACK_CHUNK_FINISHED 0
140 #define CALLBACK_STREAM_SWITCH 1
141 #define OFS_MAXPATHNAME 128
142 #define FILE_MAP_ALL_ACCESS 0xf001f
143 #define FILE_MAP_READ 4
144 #define FILE_MAP_WRITE 2
145 #define FILE_MAP_COPY 1
146 #define MUTEX_ALL_ACCESS 0x1f0001
147 #define MUTEX_MODIFY_STATE 1
148 #define SEMAPHORE_ALL_ACCESS 0x1f0003
149 #define SEMAPHORE_MODIFY_STATE 2
150 #define EVENT_ALL_ACCESS 0x1f0003
151 #define EVENT_MODIFY_STATE 2
152 #define PIPE_ACCESS_DUPLEX 3
153 #define PIPE_ACCESS_INBOUND 1
154 #define PIPE_ACCESS_OUTBOUND 2
155 #define PIPE_TYPE_BYTE 0
156 #define PIPE_TYPE_MESSAGE 4
157 #define PIPE_READMODE_BYTE 0
158 #define PIPE_READMODE_MESSAGE 2
159 #define PIPE_WAIT 0
160 #define PIPE_NOWAIT 1
161 #define PIPE_CLIENT_END 0
162 #define PIPE_SERVER_END 1
163 #define PIPE_UNLIMITED_INSTANCES 255
164 #define DEBUG_PROCESS 0x00000001
165 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
166 #define CREATE_SUSPENDED 0x00000004
167 #define DETACHED_PROCESS 0x00000008
168 #define CREATE_NEW_CONSOLE 0x00000010
169 #define NORMAL_PRIORITY_CLASS 0x00000020
170 #define IDLE_PRIORITY_CLASS 0x00000040
171 #define HIGH_PRIORITY_CLASS 0x00000080
172 #define REALTIME_PRIORITY_CLASS 0x00000100
173 #define CREATE_NEW_PROCESS_GROUP 0x00000200
174 #define CREATE_UNICODE_ENVIRONMENT 0x00000400
175 #define CREATE_SEPARATE_WOW_VDM 0x00000800
176 #define CREATE_SHARED_WOW_VDM 0x00001000
177 #define CREATE_FORCEDOS 0x00002000
178 #define BELOW_NORMAL_PRIORITY_CLASS 0x00004000
179 #define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
180 #define CREATE_BREAKAWAY_FROM_JOB 0x01000000
181 #define CREATE_PRESERVE_CODE_AUTHZ_LEVEL 0x02000000
182 #define CREATE_DEFAULT_ERROR_MODE 0x04000000
183 #define CREATE_NO_WINDOW 0x08000000
184 #define PROFILE_USER 0x10000000
185 #define PROFILE_KERNEL 0x20000000
186 #define PROFILE_SERVER 0x40000000
187 #define CONSOLE_TEXTMODE_BUFFER 1
188 #define CREATE_NEW 1
189 #define CREATE_ALWAYS 2
190 #define OPEN_EXISTING 3
191 #define OPEN_ALWAYS 4
192 #define TRUNCATE_EXISTING 5
193 #define COPY_FILE_ALLOW_DECRYPTED_DESTINATION 0x00000008
194 #define COPY_FILE_FAIL_IF_EXISTS 0x00000001
195 #define COPY_FILE_RESTARTABLE 0x00000002
196 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004
197 #define FILE_FLAG_WRITE_THROUGH 0x80000000
198 #define FILE_FLAG_OVERLAPPED 1073741824
199 #define FILE_FLAG_NO_BUFFERING 536870912
200 #define FILE_FLAG_RANDOM_ACCESS 268435456
201 #define FILE_FLAG_SEQUENTIAL_SCAN 134217728
202 #define FILE_FLAG_DELETE_ON_CLOSE 67108864
203 #define FILE_FLAG_BACKUP_SEMANTICS 33554432
204 #define FILE_FLAG_POSIX_SEMANTICS 16777216
205 #define FILE_FLAG_OPEN_REPARSE_POINT 2097152
206 #define FILE_FLAG_OPEN_NO_RECALL 1048576
207 #if (_WIN32_WINNT >= 0x0500)
208 #define FILE_FLAG_FIRST_PIPE_INSTANCE 524288
209 #endif
210 #define CLRDTR 6
211 #define CLRRTS 4
212 #define SETDTR 5
213 #define SETRTS 3
214 #define SETXOFF 1
215 #define SETXON 2
216 #define SETBREAK 8
217 #define CLRBREAK 9
218 #define STILL_ACTIVE 0x103
219 #define FIND_FIRST_EX_CASE_SENSITIVE 1
220 #define SCS_32BIT_BINARY 0
221 #define SCS_64BIT_BINARY 6
222 #define SCS_DOS_BINARY 1
223 #define SCS_OS216_BINARY 5
224 #define SCS_PIF_BINARY 3
225 #define SCS_POSIX_BINARY 4
226 #define SCS_WOW_BINARY 2
227 #define MAX_COMPUTERNAME_LENGTH 15
228 #define HW_PROFILE_GUIDLEN 39
229 #define MAX_PROFILE_LEN 80
230 #define DOCKINFO_UNDOCKED 1
231 #define DOCKINFO_DOCKED 2
232 #define DOCKINFO_USER_SUPPLIED 4
233 #define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED|DOCKINFO_UNDOCKED)
234 #define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED|DOCKINFO_DOCKED)
235 #define DRIVE_REMOVABLE 2
236 #define DRIVE_FIXED 3
237 #define DRIVE_REMOTE 4
238 #define DRIVE_CDROM 5
239 #define DRIVE_RAMDISK 6
240 #define DRIVE_UNKNOWN 0
241 #define DRIVE_NO_ROOT_DIR 1
242 #define FILE_TYPE_UNKNOWN 0
243 #define FILE_TYPE_DISK 1
244 #define FILE_TYPE_CHAR 2
245 #define FILE_TYPE_PIPE 3
246 #define FILE_TYPE_REMOTE 0x8000
247 /* also in ddk/ntapi.h */
248 #define HANDLE_FLAG_INHERIT 0x01
249 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x02
250 /* end ntapi.h */
251 #define STD_INPUT_HANDLE (DWORD)(0xfffffff6)
252 #define STD_OUTPUT_HANDLE (DWORD)(0xfffffff5)
253 #define STD_ERROR_HANDLE (DWORD)(0xfffffff4)
254 #define INVALID_HANDLE_VALUE (HANDLE)(-1)
255 #define GET_TAPE_MEDIA_INFORMATION 0
256 #define GET_TAPE_DRIVE_INFORMATION 1
257 #define SET_TAPE_MEDIA_INFORMATION 0
258 #define SET_TAPE_DRIVE_INFORMATION 1
259 #define THREAD_PRIORITY_ABOVE_NORMAL 1
260 #define THREAD_PRIORITY_BELOW_NORMAL (-1)
261 #define THREAD_PRIORITY_HIGHEST 2
262 #define THREAD_PRIORITY_IDLE (-15)
263 #define THREAD_PRIORITY_LOWEST (-2)
264 #define THREAD_PRIORITY_NORMAL 0
265 #define THREAD_PRIORITY_TIME_CRITICAL 15
266 #define THREAD_PRIORITY_ERROR_RETURN 2147483647
267 #define TIME_ZONE_ID_UNKNOWN 0
268 #define TIME_ZONE_ID_STANDARD 1
269 #define TIME_ZONE_ID_DAYLIGHT 2
270 #define TIME_ZONE_ID_INVALID 0xFFFFFFFF
271 #define FS_CASE_IS_PRESERVED 2
272 #define FS_CASE_SENSITIVE 1
273 #define FS_UNICODE_STORED_ON_DISK 4
274 #define FS_PERSISTENT_ACLS 8
275 #define FS_FILE_COMPRESSION 16
276 #define FS_VOL_IS_COMPRESSED 32768
277 #define GMEM_FIXED 0
278 #define GMEM_MOVEABLE 2
279 #define GMEM_MODIFY 128
280 #define GPTR 64
281 #define GHND 66
282 #define GMEM_DDESHARE 8192
283 #define GMEM_DISCARDABLE 256
284 #define GMEM_LOWER 4096
285 #define GMEM_NOCOMPACT 16
286 #define GMEM_NODISCARD 32
287 #define GMEM_NOT_BANKED 4096
288 #define GMEM_NOTIFY 16384
289 #define GMEM_SHARE 8192
290 #define GMEM_ZEROINIT 64
291 #define GMEM_DISCARDED 16384
292 #define GMEM_INVALID_HANDLE 32768
293 #define GMEM_LOCKCOUNT 255
294 #define GMEM_VALID_FLAGS 32626
295 #define EXCEPTION_ACCESS_VIOLATION ((DWORD)0xC0000005)
296 #define EXCEPTION_DATATYPE_MISALIGNMENT ((DWORD)0x80000002)
297 #define EXCEPTION_BREAKPOINT ((DWORD)0x80000003)
298 #define EXCEPTION_SINGLE_STEP ((DWORD)0x80000004)
299 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED ((DWORD)0xC000008C)
300 #define EXCEPTION_FLT_DENORMAL_OPERAND ((DWORD)0xC000008D)
301 #define EXCEPTION_FLT_DIVIDE_BY_ZERO ((DWORD)0xC000008E)
302 #define EXCEPTION_FLT_INEXACT_RESULT ((DWORD)0xC000008F)
303 #define EXCEPTION_FLT_INVALID_OPERATION ((DWORD)0xC0000090)
304 #define EXCEPTION_FLT_OVERFLOW ((DWORD)0xC0000091)
305 #define EXCEPTION_FLT_STACK_CHECK ((DWORD)0xC0000092)
306 #define EXCEPTION_FLT_UNDERFLOW ((DWORD)0xC0000093)
307 #define EXCEPTION_INT_DIVIDE_BY_ZERO ((DWORD)0xC0000094)
308 #define EXCEPTION_INT_OVERFLOW ((DWORD)0xC0000095)
309 #define EXCEPTION_PRIV_INSTRUCTION ((DWORD)0xC0000096)
310 #define EXCEPTION_IN_PAGE_ERROR ((DWORD)0xC0000006)
311 #define EXCEPTION_ILLEGAL_INSTRUCTION ((DWORD)0xC000001D)
312 #define EXCEPTION_NONCONTINUABLE_EXCEPTION ((DWORD)0xC0000025)
313 #define EXCEPTION_STACK_OVERFLOW ((DWORD)0xC00000FD)
314 #define EXCEPTION_INVALID_DISPOSITION ((DWORD)0xC0000026)
315 #define EXCEPTION_GUARD_PAGE ((DWORD)0x80000001)
316 #define EXCEPTION_INVALID_HANDLE ((DWORD)0xC0000008L)
317 #define CONTROL_C_EXIT ((DWORD)0xC000013A)
318 #define PROCESS_HEAP_REGION 1
319 #define PROCESS_HEAP_UNCOMMITTED_RANGE 2
320 #define PROCESS_HEAP_ENTRY_BUSY 4
321 #define PROCESS_HEAP_ENTRY_MOVEABLE 16
322 #define PROCESS_HEAP_ENTRY_DDESHARE 32
323 #define DONT_RESOLVE_DLL_REFERENCES 1
324 #define LOAD_LIBRARY_AS_DATAFILE 2
325 #define LOAD_WITH_ALTERED_SEARCH_PATH 8
326 #define LOAD_IGNORE_CODE_AUTHZ_LEVEL 16
327 #define LOAD_LIBRARY_AS_IMAGE_RESOURCE 32
328 #define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 64
329 #define LMEM_FIXED 0
330 #define LMEM_MOVEABLE 2
331 #define LMEM_NONZEROLHND 2
332 #define LMEM_NONZEROLPTR 0
333 #define LMEM_DISCARDABLE 3840
334 #define LMEM_NOCOMPACT 16
335 #define LMEM_NODISCARD 32
336 #define LMEM_ZEROINIT 64
337 #define LMEM_DISCARDED 16384
338 #define LMEM_MODIFY 128
339 #define LMEM_INVALID_HANDLE 32768
340 #define LMEM_LOCKCOUNT 255
341 #define LMEM_VALID_FLAGS 0x0F72
342 #define LPTR 64
343 #define LHND 66
344 #define NONZEROLHND 2
345 #define NONZEROLPTR 0
346 #define LOCKFILE_FAIL_IMMEDIATELY 1
347 #define LOCKFILE_EXCLUSIVE_LOCK 2
348 #define LOGON32_PROVIDER_DEFAULT 0
349 #define LOGON32_PROVIDER_WINNT35 1
350 #define LOGON32_PROVIDER_WINNT40 2
351 #define LOGON32_PROVIDER_WINNT50 3
352 #define LOGON32_LOGON_INTERACTIVE 2
353 #define LOGON32_LOGON_NETWORK 3
354 #define LOGON32_LOGON_BATCH 4
355 #define LOGON32_LOGON_SERVICE 5
356 #define LOGON32_LOGON_UNLOCK 7
357 #define LOGON32_LOGON_NETWORK_CLEARTEXT 8
358 #define LOGON32_LOGON_NEW_CREDENTIALS 9
359 #define MOVEFILE_REPLACE_EXISTING 1
360 #define MOVEFILE_COPY_ALLOWED 2
361 #define MOVEFILE_DELAY_UNTIL_REBOOT 4
362 #define MOVEFILE_WRITE_THROUGH 8
363 #define MAXIMUM_WAIT_OBJECTS 64
364 #define MAXIMUM_SUSPEND_COUNT 0x7F
365 #define WAIT_OBJECT_0 0
366 #define WAIT_ABANDONED_0 128
367 #ifndef WAIT_TIMEOUT /* also in winerror.h */
368 #define WAIT_TIMEOUT 258
369 #endif
370 #define WAIT_IO_COMPLETION 0xC0
371 #define WAIT_ABANDONED 128
372 #define WAIT_FAILED ((DWORD)0xFFFFFFFF)
373 #define PURGE_TXABORT 1
374 #define PURGE_RXABORT 2
375 #define PURGE_TXCLEAR 4
376 #define PURGE_RXCLEAR 8
377 #define EVENTLOG_SUCCESS 0
378 #define EVENTLOG_FORWARDS_READ 4
379 #define EVENTLOG_BACKWARDS_READ 8
380 #define EVENTLOG_SEEK_READ 2
381 #define EVENTLOG_SEQUENTIAL_READ 1
382 #define EVENTLOG_ERROR_TYPE 1
383 #define EVENTLOG_WARNING_TYPE 2
384 #define EVENTLOG_INFORMATION_TYPE 4
385 #define EVENTLOG_AUDIT_SUCCESS 8
386 #define EVENTLOG_AUDIT_FAILURE 16
387 #define FORMAT_MESSAGE_ALLOCATE_BUFFER 256
388 #define FORMAT_MESSAGE_IGNORE_INSERTS 512
389 #define FORMAT_MESSAGE_FROM_STRING 1024
390 #define FORMAT_MESSAGE_FROM_HMODULE 2048
391 #define FORMAT_MESSAGE_FROM_SYSTEM 4096
392 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 8192
393 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 255
394 #define EV_BREAK 64
395 #define EV_CTS 8
396 #define EV_DSR 16
397 #define EV_ERR 128
398 #define EV_EVENT1 2048
399 #define EV_EVENT2 4096
400 #define EV_PERR 512
401 #define EV_RING 256
402 #define EV_RLSD 32
403 #define EV_RX80FULL 1024
404 #define EV_RXCHAR 1
405 #define EV_RXFLAG 2
406 #define EV_TXEMPTY 4
407 /* also in ddk/ntapi.h */
408 #define SEM_FAILCRITICALERRORS 0x0001
409 #define SEM_NOGPFAULTERRORBOX 0x0002
410 #define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
411 #define SEM_NOOPENFILEERRORBOX 0x8000
412 /* end ntapi.h */
413 #define SLE_ERROR 1
414 #define SLE_MINORERROR 2
415 #define SLE_WARNING 3
416 #define SHUTDOWN_NORETRY 1
417 #define MAXINTATOM 0xC000
418 #define INVALID_ATOM ((ATOM)0)
419 #define IGNORE 0
420 #define INFINITE 0xFFFFFFFF
421 #define NOPARITY 0
422 #define ODDPARITY 1
423 #define EVENPARITY 2
424 #define MARKPARITY 3
425 #define SPACEPARITY 4
426 #define ONESTOPBIT 0
427 #define ONE5STOPBITS 1
428 #define TWOSTOPBITS 2
429 #define CBR_110 110
430 #define CBR_300 300
431 #define CBR_600 600
432 #define CBR_1200 1200
433 #define CBR_2400 2400
434 #define CBR_4800 4800
435 #define CBR_9600 9600
436 #define CBR_14400 14400
437 #define CBR_19200 19200
438 #define CBR_38400 38400
439 #define CBR_56000 56000
440 #define CBR_57600 57600
441 #define CBR_115200 115200
442 #define CBR_128000 128000
443 #define CBR_256000 256000
444 #define BACKUP_INVALID 0
445 #define BACKUP_DATA 1
446 #define BACKUP_EA_DATA 2
447 #define BACKUP_SECURITY_DATA 3
448 #define BACKUP_ALTERNATE_DATA 4
449 #define BACKUP_LINK 5
450 #define BACKUP_PROPERTY_DATA 6
451 #define BACKUP_OBJECT_ID 7
452 #define BACKUP_REPARSE_DATA 8
453 #define BACKUP_SPARSE_BLOCK 9
454 #define STREAM_NORMAL_ATTRIBUTE 0
455 #define STREAM_MODIFIED_WHEN_READ 1
456 #define STREAM_CONTAINS_SECURITY 2
457 #define STREAM_CONTAINS_PROPERTIES 4
458 #define STARTF_USESHOWWINDOW 1
459 #define STARTF_USESIZE 2
460 #define STARTF_USEPOSITION 4
461 #define STARTF_USECOUNTCHARS 8
462 #define STARTF_USEFILLATTRIBUTE 16
463 #define STARTF_RUNFULLSCREEN 32
464 #define STARTF_FORCEONFEEDBACK 64
465 #define STARTF_FORCEOFFFEEDBACK 128
466 #define STARTF_USESTDHANDLES 256
467 #define STARTF_USEHOTKEY 512
468 #define TC_NORMAL 0
469 #define TC_HARDERR 1
470 #define TC_GP_TRAP 2
471 #define TC_SIGNAL 3
472 #define AC_LINE_OFFLINE 0
473 #define AC_LINE_ONLINE 1
474 #define AC_LINE_BACKUP_POWER 2
475 #define AC_LINE_UNKNOWN 255
476 #define BATTERY_FLAG_HIGH 1
477 #define BATTERY_FLAG_LOW 2
478 #define BATTERY_FLAG_CRITICAL 4
479 #define BATTERY_FLAG_CHARGING 8
480 #define BATTERY_FLAG_NO_BATTERY 128
481 #define BATTERY_FLAG_UNKNOWN 255
482 #define BATTERY_PERCENTAGE_UNKNOWN 255
483 #define BATTERY_LIFE_UNKNOWN 0xFFFFFFFF
484 #define DDD_RAW_TARGET_PATH 1
485 #define DDD_REMOVE_DEFINITION 2
486 #define DDD_EXACT_MATCH_ON_REMOVE 4
487 #define DDD_NO_BROADCAST_SYSTEM 8
488 #define DDD_LUID_BROADCAST_DRIVE 16
489 #define HINSTANCE_ERROR 32
490 #define MS_CTS_ON 16
491 #define MS_DSR_ON 32
492 #define MS_RING_ON 64
493 #define MS_RLSD_ON 128
494 #define DTR_CONTROL_DISABLE 0
495 #define DTR_CONTROL_ENABLE 1
496 #define DTR_CONTROL_HANDSHAKE 2
497 #define RTS_CONTROL_DISABLE 0
498 #define RTS_CONTROL_ENABLE 1
499 #define RTS_CONTROL_HANDSHAKE 2
500 #define RTS_CONTROL_TOGGLE 3
501 #define SECURITY_ANONYMOUS (SecurityAnonymous<<16)
502 #define SECURITY_IDENTIFICATION (SecurityIdentification<<16)
503 #define SECURITY_IMPERSONATION (SecurityImpersonation<<16)
504 #define SECURITY_DELEGATION (SecurityDelegation<<16)
505 #define SECURITY_CONTEXT_TRACKING 0x40000
506 #define SECURITY_EFFECTIVE_ONLY 0x80000
507 #define SECURITY_SQOS_PRESENT 0x100000
508 #define SECURITY_VALID_SQOS_FLAGS 0x1F0000
509 #define INVALID_FILE_SIZE 0xFFFFFFFF
510 #define TLS_OUT_OF_INDEXES (DWORD)0xFFFFFFFF
511 #if (_WIN32_WINNT >= 0x0501)
512 #define ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID 0x00000001
513 #define ACTCTX_FLAG_LANGID_VALID 0x00000002
514 #define ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID 0x00000004
515 #define ACTCTX_FLAG_RESOURCE_NAME_VALID 0x00000008
516 #define ACTCTX_FLAG_SET_PROCESS_DEFAULT 0x00000010
517 #define ACTCTX_FLAG_APPLICATION_NAME_VALID 0x00000020
518 #define ACTCTX_FLAG_SOURCE_IS_ASSEMBLYREF 0x00000040
519 #define ACTCTX_FLAG_HMODULE_VALID 0x00000080
520 #define DEACTIVATE_ACTCTX_FLAG_FORCE_EARLY_DEACTIVATION 0x00000001
521 #define FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX 0x00000001
522 #define QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX 0x00000004
523 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE 0x00000008
524 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS 0x00000010
525 #if (_WIN32_WINNT >= 0x0600)
526 #define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1
527 #endif
528 #endif /* (_WIN32_WINNT >= 0x0501) */
529 #if (_WIN32_WINNT >= 0x0500)
530 #define REPLACEFILE_WRITE_THROUGH 0x00000001
531 #define REPLACEFILE_IGNORE_MERGE_ERRORS 0x00000002
532 #endif /* (_WIN32_WINNT >= 0x0500) */
533 #if (_WIN32_WINNT >= 0x0400)
534 #define FIBER_FLAG_FLOAT_SWITCH 0x1
535 #endif
536 #define FLS_OUT_OF_INDEXES 0xFFFFFFFF
537 #define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000
538 #if (_WIN32_WINNT >= 0x0600)
539 #define MAX_RESTART_CMD_LINE 0x800
540 #define RESTART_CYCLICAL 0x1
541 #define RESTART_NOTIFY_SOLUTION 0x2
542 #define RESTART_NOTIFY_FAULT 0x4
543 #define VOLUME_NAME_DOS 0x0
544 #define VOLUME_NAME_GUID 0x1
545 #define VOLUME_NAME_NT 0x2
546 #define VOLUME_NAME_NONE 0x4
547 #define FILE_NAME_NORMALIZED 0x0
548 #define FILE_NAME_OPENED 0x8
549 #define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1
550 #define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2
551 #endif
552 #if (_WIN32_WINNT >= 0x0500)
553 #define GET_MODULE_HANDLE_EX_FLAG_PIN 0x1
554 #define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT 0x2
555 #define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS 0x4
556 #endif
557 #if (_WIN32_WINNT >= 0x0600)
558 #define CREATE_EVENT_MANUAL_RESET 0x1
559 #define CREATE_EVENT_INITIAL_SET 0x2
560 #define CREATE_MUTEX_INITIAL_OWNER 0x1
561 #define CREATE_WAITABLE_TIMER_MANUAL_RESET 0x1
562 #define SRWLOCK_INIT RTL_SRWLOCK_INIT
563 #define CONDITION_VARIABLE_INIT RTL_CONDITION_VARIABLE_INIT
564 #define CONDITION_VARIABLE_LOCKMODE_SHARED RTL_CONDITION_VARIABLE_LOCKMODE_SHARED
565 #endif
566
567 #ifndef RC_INVOKED
568 #ifndef _FILETIME_
569 #define _FILETIME_
570 typedef struct _FILETIME {
571 DWORD dwLowDateTime;
572 DWORD dwHighDateTime;
573 } FILETIME,*PFILETIME,*LPFILETIME;
574 #endif
575 typedef struct _BY_HANDLE_FILE_INFORMATION {
576 DWORD dwFileAttributes;
577 FILETIME ftCreationTime;
578 FILETIME ftLastAccessTime;
579 FILETIME ftLastWriteTime;
580 DWORD dwVolumeSerialNumber;
581 DWORD nFileSizeHigh;
582 DWORD nFileSizeLow;
583 DWORD nNumberOfLinks;
584 DWORD nFileIndexHigh;
585 DWORD nFileIndexLow;
586 } BY_HANDLE_FILE_INFORMATION,*LPBY_HANDLE_FILE_INFORMATION;
587 typedef struct _DCB {
588 DWORD DCBlength;
589 DWORD BaudRate;
590 DWORD fBinary:1;
591 DWORD fParity:1;
592 DWORD fOutxCtsFlow:1;
593 DWORD fOutxDsrFlow:1;
594 DWORD fDtrControl:2;
595 DWORD fDsrSensitivity:1;
596 DWORD fTXContinueOnXoff:1;
597 DWORD fOutX:1;
598 DWORD fInX:1;
599 DWORD fErrorChar:1;
600 DWORD fNull:1;
601 DWORD fRtsControl:2;
602 DWORD fAbortOnError:1;
603 DWORD fDummy2:17;
604 WORD wReserved;
605 WORD XonLim;
606 WORD XoffLim;
607 BYTE ByteSize;
608 BYTE Parity;
609 BYTE StopBits;
610 char XonChar;
611 char XoffChar;
612 char ErrorChar;
613 char EofChar;
614 char EvtChar;
615 WORD wReserved1;
616 } DCB,*LPDCB;
617 typedef struct _COMM_CONFIG {
618 DWORD dwSize;
619 WORD wVersion;
620 WORD wReserved;
621 DCB dcb;
622 DWORD dwProviderSubType;
623 DWORD dwProviderOffset;
624 DWORD dwProviderSize;
625 WCHAR wcProviderData[1];
626 } COMMCONFIG,*LPCOMMCONFIG;
627 typedef struct _COMMPROP {
628 WORD wPacketLength;
629 WORD wPacketVersion;
630 DWORD dwServiceMask;
631 DWORD dwReserved1;
632 DWORD dwMaxTxQueue;
633 DWORD dwMaxRxQueue;
634 DWORD dwMaxBaud;
635 DWORD dwProvSubType;
636 DWORD dwProvCapabilities;
637 DWORD dwSettableParams;
638 DWORD dwSettableBaud;
639 WORD wSettableData;
640 WORD wSettableStopParity;
641 DWORD dwCurrentTxQueue;
642 DWORD dwCurrentRxQueue;
643 DWORD dwProvSpec1;
644 DWORD dwProvSpec2;
645 WCHAR wcProvChar[1];
646 } COMMPROP,*LPCOMMPROP;
647 typedef struct _COMMTIMEOUTS {
648 DWORD ReadIntervalTimeout;
649 DWORD ReadTotalTimeoutMultiplier;
650 DWORD ReadTotalTimeoutConstant;
651 DWORD WriteTotalTimeoutMultiplier;
652 DWORD WriteTotalTimeoutConstant;
653 } COMMTIMEOUTS,*LPCOMMTIMEOUTS;
654 typedef struct _COMSTAT {
655 DWORD fCtsHold:1;
656 DWORD fDsrHold:1;
657 DWORD fRlsdHold:1;
658 DWORD fXoffHold:1;
659 DWORD fXoffSent:1;
660 DWORD fEof:1;
661 DWORD fTxim:1;
662 DWORD fReserved:25;
663 DWORD cbInQue;
664 DWORD cbOutQue;
665 } COMSTAT,*LPCOMSTAT;
666 typedef DWORD (WINAPI *LPTHREAD_START_ROUTINE)(LPVOID);
667 typedef struct _CREATE_PROCESS_DEBUG_INFO {
668 HANDLE hFile;
669 HANDLE hProcess;
670 HANDLE hThread;
671 LPVOID lpBaseOfImage;
672 DWORD dwDebugInfoFileOffset;
673 DWORD nDebugInfoSize;
674 LPVOID lpThreadLocalBase;
675 LPTHREAD_START_ROUTINE lpStartAddress;
676 LPVOID lpImageName;
677 WORD fUnicode;
678 } CREATE_PROCESS_DEBUG_INFO,*LPCREATE_PROCESS_DEBUG_INFO;
679 typedef struct _CREATE_THREAD_DEBUG_INFO {
680 HANDLE hThread;
681 LPVOID lpThreadLocalBase;
682 LPTHREAD_START_ROUTINE lpStartAddress;
683 } CREATE_THREAD_DEBUG_INFO,*LPCREATE_THREAD_DEBUG_INFO;
684 typedef struct _EXCEPTION_DEBUG_INFO {
685 EXCEPTION_RECORD ExceptionRecord;
686 DWORD dwFirstChance;
687 } EXCEPTION_DEBUG_INFO,*LPEXCEPTION_DEBUG_INFO;
688 typedef struct _EXIT_THREAD_DEBUG_INFO {
689 DWORD dwExitCode;
690 } EXIT_THREAD_DEBUG_INFO,*LPEXIT_THREAD_DEBUG_INFO;
691 typedef struct _EXIT_PROCESS_DEBUG_INFO {
692 DWORD dwExitCode;
693 } EXIT_PROCESS_DEBUG_INFO,*LPEXIT_PROCESS_DEBUG_INFO;
694 typedef struct _LOAD_DLL_DEBUG_INFO {
695 HANDLE hFile;
696 LPVOID lpBaseOfDll;
697 DWORD dwDebugInfoFileOffset;
698 DWORD nDebugInfoSize;
699 LPVOID lpImageName;
700 WORD fUnicode;
701 } LOAD_DLL_DEBUG_INFO,*LPLOAD_DLL_DEBUG_INFO;
702 typedef struct _UNLOAD_DLL_DEBUG_INFO {
703 LPVOID lpBaseOfDll;
704 } UNLOAD_DLL_DEBUG_INFO,*LPUNLOAD_DLL_DEBUG_INFO;
705 typedef struct _OUTPUT_DEBUG_STRING_INFO {
706 LPSTR lpDebugStringData;
707 WORD fUnicode;
708 WORD nDebugStringLength;
709 } OUTPUT_DEBUG_STRING_INFO,*LPOUTPUT_DEBUG_STRING_INFO;
710 typedef struct _RIP_INFO {
711 DWORD dwError;
712 DWORD dwType;
713 } RIP_INFO,*LPRIP_INFO;
714 typedef struct _DEBUG_EVENT {
715 DWORD dwDebugEventCode;
716 DWORD dwProcessId;
717 DWORD dwThreadId;
718 union {
719 EXCEPTION_DEBUG_INFO Exception;
720 CREATE_THREAD_DEBUG_INFO CreateThread;
721 CREATE_PROCESS_DEBUG_INFO CreateProcessInfo;
722 EXIT_THREAD_DEBUG_INFO ExitThread;
723 EXIT_PROCESS_DEBUG_INFO ExitProcess;
724 LOAD_DLL_DEBUG_INFO LoadDll;
725 UNLOAD_DLL_DEBUG_INFO UnloadDll;
726 OUTPUT_DEBUG_STRING_INFO DebugString;
727 RIP_INFO RipInfo;
728 } u;
729 } DEBUG_EVENT,*LPDEBUG_EVENT;
730 typedef struct _OVERLAPPED {
731 ULONG_PTR Internal;
732 ULONG_PTR InternalHigh;
733 DWORD Offset;
734 DWORD OffsetHigh;
735 HANDLE hEvent;
736 } OVERLAPPED,*POVERLAPPED,*LPOVERLAPPED;
737 typedef struct _STARTUPINFOA {
738 DWORD cb;
739 LPSTR lpReserved;
740 LPSTR lpDesktop;
741 LPSTR lpTitle;
742 DWORD dwX;
743 DWORD dwY;
744 DWORD dwXSize;
745 DWORD dwYSize;
746 DWORD dwXCountChars;
747 DWORD dwYCountChars;
748 DWORD dwFillAttribute;
749 DWORD dwFlags;
750 WORD wShowWindow;
751 WORD cbReserved2;
752 PBYTE lpReserved2;
753 HANDLE hStdInput;
754 HANDLE hStdOutput;
755 HANDLE hStdError;
756 } STARTUPINFOA,*LPSTARTUPINFOA;
757 typedef struct _STARTUPINFOW {
758 DWORD cb;
759 LPWSTR lpReserved;
760 LPWSTR lpDesktop;
761 LPWSTR lpTitle;
762 DWORD dwX;
763 DWORD dwY;
764 DWORD dwXSize;
765 DWORD dwYSize;
766 DWORD dwXCountChars;
767 DWORD dwYCountChars;
768 DWORD dwFillAttribute;
769 DWORD dwFlags;
770 WORD wShowWindow;
771 WORD cbReserved2;
772 PBYTE lpReserved2;
773 HANDLE hStdInput;
774 HANDLE hStdOutput;
775 HANDLE hStdError;
776 } STARTUPINFOW,*LPSTARTUPINFOW;
777 typedef struct _PROCESS_INFORMATION {
778 HANDLE hProcess;
779 HANDLE hThread;
780 DWORD dwProcessId;
781 DWORD dwThreadId;
782 } PROCESS_INFORMATION,*LPPROCESS_INFORMATION;
783 typedef struct _CRITICAL_SECTION_DEBUG {
784 WORD Type;
785 WORD CreatorBackTraceIndex;
786 struct _CRITICAL_SECTION *CriticalSection;
787 LIST_ENTRY ProcessLocksList;
788 DWORD EntryCount;
789 DWORD ContentionCount;
790 //#ifdef __WINESRC__ //not all wine code is marked so
791 DWORD_PTR Spare[8/sizeof(DWORD_PTR)];/* in Wine they store a string here */
792 //#else
793 //WORD SpareWORD;
794 //#endif
795 } CRITICAL_SECTION_DEBUG,*PCRITICAL_SECTION_DEBUG;
796 typedef struct _CRITICAL_SECTION {
797 PCRITICAL_SECTION_DEBUG DebugInfo;
798 LONG LockCount;
799 LONG RecursionCount;
800 HANDLE OwningThread;
801 HANDLE LockSemaphore;
802 ULONG_PTR SpinCount;
803 } CRITICAL_SECTION,*PCRITICAL_SECTION,*LPCRITICAL_SECTION;
804 #ifndef _SYSTEMTIME_
805 #define _SYSTEMTIME_
806 typedef struct _SYSTEMTIME {
807 WORD wYear;
808 WORD wMonth;
809 WORD wDayOfWeek;
810 WORD wDay;
811 WORD wHour;
812 WORD wMinute;
813 WORD wSecond;
814 WORD wMilliseconds;
815 } SYSTEMTIME,*LPSYSTEMTIME,*PSYSTEMTIME;
816 #endif /* _SYSTEMTIME_ */
817 #if (_WIN32_WINNT >= 0x0500)
818 typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK ;
819 #endif
820 typedef struct _WIN32_FILE_ATTRIBUTE_DATA {
821 DWORD dwFileAttributes;
822 FILETIME ftCreationTime;
823 FILETIME ftLastAccessTime;
824 FILETIME ftLastWriteTime;
825 DWORD nFileSizeHigh;
826 DWORD nFileSizeLow;
827 } WIN32_FILE_ATTRIBUTE_DATA,*LPWIN32_FILE_ATTRIBUTE_DATA;
828 typedef struct _WIN32_FIND_DATAA {
829 DWORD dwFileAttributes;
830 FILETIME ftCreationTime;
831 FILETIME ftLastAccessTime;
832 FILETIME ftLastWriteTime;
833 DWORD nFileSizeHigh;
834 DWORD nFileSizeLow;
835 DWORD dwReserved0;
836 DWORD dwReserved1;
837 CHAR cFileName[MAX_PATH];
838 CHAR cAlternateFileName[14];
839 } WIN32_FIND_DATAA,*PWIN32_FIND_DATAA,*LPWIN32_FIND_DATAA;
840 typedef struct _WIN32_FIND_DATAW {
841 DWORD dwFileAttributes;
842 FILETIME ftCreationTime;
843 FILETIME ftLastAccessTime;
844 FILETIME ftLastWriteTime;
845 DWORD nFileSizeHigh;
846 DWORD nFileSizeLow;
847 DWORD dwReserved0;
848 DWORD dwReserved1;
849 WCHAR cFileName[MAX_PATH];
850 WCHAR cAlternateFileName[14];
851 } WIN32_FIND_DATAW,*PWIN32_FIND_DATAW,*LPWIN32_FIND_DATAW;
852 #if (_WIN32_WINNT >= 0x0501)
853 typedef enum _STREAM_INFO_LEVELS {
854 FindStreamInfoStandard
855 } STREAM_INFO_LEVELS;
856 typedef struct _WIN32_FIND_STREAM_DATA {
857 LARGE_INTEGER StreamSize;
858 WCHAR cStreamName[MAX_PATH + 36];
859 } WIN32_FIND_STREAM_DATA, *PWIN32_FIND_STREAM_DATA;
860 #endif
861 typedef struct _WIN32_STREAM_ID {
862 DWORD dwStreamId;
863 DWORD dwStreamAttributes;
864 LARGE_INTEGER Size;
865 DWORD dwStreamNameSize;
866 WCHAR cStreamName[ANYSIZE_ARRAY];
867 } WIN32_STREAM_ID, *LPWIN32_STREAM_ID;
868 #if (_WIN32_WINNT >= 0x0600)
869 typedef enum _FILE_ID_TYPE {
870 FileIdType,
871 MaximumFileIdType
872 } FILE_ID_TYPE, *PFILE_ID_TYPE;
873 typedef struct _FILE_ID_DESCRIPTOR {
874 DWORD dwSize;
875 FILE_ID_TYPE Type;
876 _ANONYMOUS_UNION union {
877 LARGE_INTEGER FileID;
878 } DUMMYUNIONNAME;
879 } FILE_ID_DESCRIPTOR, *LPFILE_ID_DESCRIPTOR;
880 #endif
881 typedef enum _FINDEX_INFO_LEVELS {
882 FindExInfoStandard,
883 FindExInfoMaxInfoLevel
884 } FINDEX_INFO_LEVELS;
885 typedef enum _FINDEX_SEARCH_OPS {
886 FindExSearchNameMatch,
887 FindExSearchLimitToDirectories,
888 FindExSearchLimitToDevices,
889 FindExSearchMaxSearchOp
890 } FINDEX_SEARCH_OPS;
891 typedef struct tagHW_PROFILE_INFOA {
892 DWORD dwDockInfo;
893 CHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
894 CHAR szHwProfileName[MAX_PROFILE_LEN];
895 } HW_PROFILE_INFOA,*LPHW_PROFILE_INFOA;
896 typedef struct tagHW_PROFILE_INFOW {
897 DWORD dwDockInfo;
898 WCHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
899 WCHAR szHwProfileName[MAX_PROFILE_LEN];
900 } HW_PROFILE_INFOW,*LPHW_PROFILE_INFOW;
901 typedef enum _GET_FILEEX_INFO_LEVELS {
902 GetFileExInfoStandard,
903 GetFileExMaxInfoLevel
904 } GET_FILEEX_INFO_LEVELS;
905 typedef struct _SYSTEM_INFO {
906 _ANONYMOUS_UNION union {
907 DWORD dwOemId;
908 _ANONYMOUS_STRUCT struct {
909 WORD wProcessorArchitecture;
910 WORD wReserved;
911 } DUMMYSTRUCTNAME;
912 } DUMMYUNIONNAME;
913 DWORD dwPageSize;
914 PVOID lpMinimumApplicationAddress;
915 PVOID lpMaximumApplicationAddress;
916 DWORD_PTR dwActiveProcessorMask;
917 DWORD dwNumberOfProcessors;
918 DWORD dwProcessorType;
919 DWORD dwAllocationGranularity;
920 WORD wProcessorLevel;
921 WORD wProcessorRevision;
922 } SYSTEM_INFO,*LPSYSTEM_INFO;
923 typedef struct _SYSTEM_POWER_STATUS {
924 BYTE ACLineStatus;
925 BYTE BatteryFlag;
926 BYTE BatteryLifePercent;
927 BYTE Reserved1;
928 DWORD BatteryLifeTime;
929 DWORD BatteryFullLifeTime;
930 } SYSTEM_POWER_STATUS,*LPSYSTEM_POWER_STATUS;
931 typedef struct _TIME_ZONE_INFORMATION {
932 LONG Bias;
933 WCHAR StandardName[32];
934 SYSTEMTIME StandardDate;
935 LONG StandardBias;
936 WCHAR DaylightName[32];
937 SYSTEMTIME DaylightDate;
938 LONG DaylightBias;
939 } TIME_ZONE_INFORMATION,*LPTIME_ZONE_INFORMATION;
940 typedef struct _MEMORYSTATUS {
941 DWORD dwLength;
942 DWORD dwMemoryLoad;
943 DWORD dwTotalPhys;
944 DWORD dwAvailPhys;
945 DWORD dwTotalPageFile;
946 DWORD dwAvailPageFile;
947 DWORD dwTotalVirtual;
948 DWORD dwAvailVirtual;
949 } MEMORYSTATUS,*LPMEMORYSTATUS;
950 #if (_WIN32_WINNT >= 0x0500)
951 typedef struct _MEMORYSTATUSEX {
952 DWORD dwLength;
953 DWORD dwMemoryLoad;
954 DWORDLONG ullTotalPhys;
955 DWORDLONG ullAvailPhys;
956 DWORDLONG ullTotalPageFile;
957 DWORDLONG ullAvailPageFile;
958 DWORDLONG ullTotalVirtual;
959 DWORDLONG ullAvailVirtual;
960 DWORDLONG ullAvailExtendedVirtual;
961 } MEMORYSTATUSEX, *LPMEMORYSTATUSEX;
962 #endif
963 #ifndef _LDT_ENTRY_DEFINED
964 #define _LDT_ENTRY_DEFINED
965 typedef struct _LDT_ENTRY {
966 WORD LimitLow;
967 WORD BaseLow;
968 union {
969 struct {
970 BYTE BaseMid;
971 BYTE Flags1;
972 BYTE Flags2;
973 BYTE BaseHi;
974 } Bytes;
975 struct {
976 DWORD BaseMid:8;
977 DWORD Type:5;
978 DWORD Dpl:2;
979 DWORD Pres:1;
980 DWORD LimitHi:4;
981 DWORD Sys:1;
982 DWORD Reserved_0:1;
983 DWORD Default_Big:1;
984 DWORD Granularity:1;
985 DWORD BaseHi:8;
986 } Bits;
987 } HighWord;
988 } LDT_ENTRY,*PLDT_ENTRY,*LPLDT_ENTRY;
989 #endif
990 typedef struct _PROCESS_HEAP_ENTRY {
991 PVOID lpData;
992 DWORD cbData;
993 BYTE cbOverhead;
994 BYTE iRegionIndex;
995 WORD wFlags;
996 _ANONYMOUS_UNION union {
997 struct {
998 HANDLE hMem;
999 DWORD dwReserved[3];
1000 } Block;
1001 struct {
1002 DWORD dwCommittedSize;
1003 DWORD dwUnCommittedSize;
1004 LPVOID lpFirstBlock;
1005 LPVOID lpLastBlock;
1006 } Region;
1007 } DUMMYUNIONNAME;
1008 } PROCESS_HEAP_ENTRY,*LPPROCESS_HEAP_ENTRY;
1009 typedef struct _OFSTRUCT {
1010 BYTE cBytes;
1011 BYTE fFixedDisk;
1012 WORD nErrCode;
1013 WORD Reserved1;
1014 WORD Reserved2;
1015 CHAR szPathName[OFS_MAXPATHNAME];
1016 } OFSTRUCT,*LPOFSTRUCT,*POFSTRUCT;
1017 #if (_WIN32_WINNT >= 0x0501)
1018 typedef struct tagACTCTXA {
1019 ULONG cbSize;
1020 DWORD dwFlags;
1021 LPCSTR lpSource;
1022 USHORT wProcessorArchitecture;
1023 LANGID wLangId;
1024 LPCSTR lpAssemblyDirectory;
1025 LPCSTR lpResourceName;
1026 LPCSTR lpApplicationName;
1027 HMODULE hModule;
1028 } ACTCTXA,*PACTCTXA;
1029 typedef const ACTCTXA *PCACTCTXA;
1030 typedef struct tagACTCTXW {
1031 ULONG cbSize;
1032 DWORD dwFlags;
1033 LPCWSTR lpSource;
1034 USHORT wProcessorArchitecture;
1035 LANGID wLangId;
1036 LPCWSTR lpAssemblyDirectory;
1037 LPCWSTR lpResourceName;
1038 LPCWSTR lpApplicationName;
1039 HMODULE hModule;
1040 } ACTCTXW,*PACTCTXW;
1041 typedef const ACTCTXW *PCACTCTXW;
1042 typedef struct tagACTCTX_SECTION_KEYED_DATA {
1043 ULONG cbSize;
1044 ULONG ulDataFormatVersion;
1045 PVOID lpData;
1046 ULONG ulLength;
1047 PVOID lpSectionGlobalData;
1048 ULONG ulSectionGlobalDataLength;
1049 PVOID lpSectionBase;
1050 ULONG ulSectionTotalLength;
1051 HANDLE hActCtx;
1052 ULONG ulAssemblyRosterIndex;
1053 } ACTCTX_SECTION_KEYED_DATA,*PACTCTX_SECTION_KEYED_DATA;
1054 typedef const ACTCTX_SECTION_KEYED_DATA *PCACTCTX_SECTION_KEYED_DATA;
1055 typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION {
1056 HANDLE hActCtx;
1057 DWORD dwFlags;
1058 } ACTIVATION_CONTEXT_BASIC_INFORMATION, *PACTIVATION_CONTEXT_BASIC_INFORMATION;
1059 typedef const struct _ACTIVATION_CONTEXT_BASIC_INFORMATION *PCACTIVATION_CONTEXT_BASIC_INFORMATION;
1060 typedef enum {
1061 LowMemoryResourceNotification ,
1062 HighMemoryResourceNotification
1063 } MEMORY_RESOURCE_NOTIFICATION_TYPE;
1064 #endif /* (_WIN32_WINNT >= 0x0501) */
1065 #if (_WIN32_WINNT >= 0x0500)
1066 typedef enum _COMPUTER_NAME_FORMAT {
1067 ComputerNameNetBIOS,
1068 ComputerNameDnsHostname,
1069 ComputerNameDnsDomain,
1070 ComputerNameDnsFullyQualified,
1071 ComputerNamePhysicalNetBIOS,
1072 ComputerNamePhysicalDnsHostname,
1073 ComputerNamePhysicalDnsDomain,
1074 ComputerNamePhysicalDnsFullyQualified,
1075 ComputerNameMax
1076 } COMPUTER_NAME_FORMAT;
1077 #endif /* (_WIN32_WINNT >= 0x0500) */
1078 #if (_WIN32_WINNT >= 0x0600)
1079 typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK;
1080 typedef RTL_CONDITION_VARIABLE CONDITION_VARIABLE, *PCONDITION_VARIABLE;
1081 #endif
1082 typedef DWORD(WINAPI *LPPROGRESS_ROUTINE)(LARGE_INTEGER,LARGE_INTEGER,LARGE_INTEGER,LARGE_INTEGER,DWORD,DWORD,HANDLE,HANDLE,LPVOID);
1083 typedef void(WINAPI *LPFIBER_START_ROUTINE)(PVOID);
1084 typedef VOID (WINAPI *PFLS_CALLBACK_FUNCTION)(PVOID);
1085 typedef BOOL(CALLBACK *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG_PTR);
1086 typedef BOOL(CALLBACK *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG_PTR);
1087 typedef BOOL(CALLBACK *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG_PTR);
1088 typedef BOOL(CALLBACK *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG_PTR);
1089 typedef BOOL(CALLBACK *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG_PTR);
1090 typedef BOOL(CALLBACK *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG_PTR);
1091 typedef void(CALLBACK *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD,DWORD,LPOVERLAPPED);
1092 typedef LONG(CALLBACK *PTOP_LEVEL_EXCEPTION_FILTER)(LPEXCEPTION_POINTERS);
1093 typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER;
1094 typedef void(APIENTRY *PAPCFUNC)(ULONG_PTR);
1095 typedef void(CALLBACK *PTIMERAPCROUTINE)(PVOID,DWORD,DWORD);
1096 #if (_WIN32_WINNT >= 0x0600)
1097 typedef DWORD (WINAPI *APPLICATION_RECOVERY_CALLBACK)(PVOID);
1098 #endif
1099
1100 #ifdef WINE_NO_UNICODE_MACROS /* force using a cast */
1101 #define MAKEINTATOM(atom) ((ULONG_PTR)((WORD)(atom)))
1102 #else
1103 #define MAKEINTATOM(i) (LPTSTR)((ULONG_PTR)((WORD)(i)))
1104 #endif
1105
1106 /* Functions */
1107 #ifndef UNDER_CE
1108 int APIENTRY WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
1109 #else
1110 int APIENTRY WinMain(HINSTANCE,HINSTANCE,LPWSTR,int);
1111 #endif
1112 int APIENTRY wWinMain(HINSTANCE,HINSTANCE,LPWSTR,int);
1113 long WINAPI _hread(HFILE,LPVOID,long);
1114 long WINAPI _hwrite(HFILE,LPCSTR,long);
1115 HFILE WINAPI _lclose(HFILE);
1116 HFILE WINAPI _lcreat(LPCSTR,int);
1117 LONG WINAPI _llseek(HFILE,LONG,int);
1118 HFILE WINAPI _lopen(LPCSTR,int);
1119 UINT WINAPI _lread(HFILE,LPVOID,UINT);
1120 UINT WINAPI _lwrite(HFILE,LPCSTR,UINT);
1121 BOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,PDWORD,PDWORD,PBOOL);
1122 BOOL WINAPI AccessCheckAndAuditAlarmA(LPCSTR,LPVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,PDWORD,PBOOL,PBOOL);
1123 BOOL WINAPI AccessCheckAndAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,PDWORD,PBOOL,PBOOL);
1124 #if (_WIN32_WINNT >= 0x0600)
1125 VOID WINAPI AcquireSRWLockExclusive(PSRWLOCK);
1126 VOID WINAPI AcquireSRWLockShared(PSRWLOCK);
1127 #endif
1128 #if (_WIN32_WINNT >= 0x0501)
1129 BOOL WINAPI ActivateActCtx(HANDLE,ULONG_PTR*);
1130 #endif
1131 BOOL WINAPI AddAccessAllowedAce(PACL,DWORD,DWORD,PSID);
1132 BOOL WINAPI AddAccessDeniedAce(PACL,DWORD,DWORD,PSID);
1133 #if (_WIN32_WINNT >= 0x0500)
1134 BOOL WINAPI AddAccessAllowedAceEx(PACL,DWORD,DWORD,DWORD,PSID);
1135 BOOL WINAPI AddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID);
1136 BOOL WINAPI AddAccessAllowedObjectAce(PACL,DWORD,DWORD,DWORD,GUID*,GUID*,PSID);
1137 BOOL WINAPI AddAccessDeniedObjectAce(PACL,DWORD,DWORD,DWORD,GUID*,GUID*,PSID);
1138 #endif
1139 BOOL WINAPI AddAce(PACL,DWORD,DWORD,PVOID,DWORD);
1140 ATOM WINAPI AddAtomA(LPCSTR);
1141 ATOM WINAPI AddAtomW(LPCWSTR);
1142 BOOL WINAPI AddAuditAccessAce(PACL,DWORD,DWORD,PSID,BOOL,BOOL);
1143 #if (_WIN32_WINNT >= 0x0500)
1144 BOOL WINAPI AddAuditAccessObjectAce(PACL,DWORD,DWORD,DWORD,GUID*,GUID*,PSID,BOOL,BOOL);
1145 #endif
1146 #if (_WIN32_WINNT >= 0x0501)
1147 void WINAPI AddRefActCtx(HANDLE);
1148 #endif
1149 #if (_WIN32_WINNT >= 0x0500)
1150 PVOID WINAPI AddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER);
1151 #endif
1152 BOOL WINAPI AccessCheckByType(PSECURITY_DESCRIPTOR,PSID,HANDLE,DWORD,POBJECT_TYPE_LIST,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL);
1153 BOOL WINAPI AdjustTokenGroups(HANDLE,BOOL,PTOKEN_GROUPS,DWORD,PTOKEN_GROUPS,PDWORD);
1154 BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,PDWORD);
1155 BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID*);
1156 BOOL WINAPI CheckTokenMembership(HANDLE,PSID,PBOOL);
1157 BOOL WINAPI AllocateLocallyUniqueId(PLUID);
1158 BOOL WINAPI AreAllAccessesGranted(DWORD,DWORD);
1159 BOOL WINAPI AreAnyAccessesGranted(DWORD,DWORD);
1160 BOOL WINAPI AreFileApisANSI(void);
1161 BOOL WINAPI BackupEventLogA(HANDLE,LPCSTR);
1162 BOOL WINAPI BackupEventLogW(HANDLE,LPCWSTR);
1163 BOOL WINAPI BackupRead(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1164 BOOL WINAPI BackupSeek(HANDLE,DWORD,DWORD,LPDWORD,LPDWORD,LPVOID*);
1165 BOOL WINAPI BackupWrite(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
1166 BOOL WINAPI Beep(DWORD,DWORD);
1167 HANDLE WINAPI BeginUpdateResourceA(LPCSTR,BOOL);
1168 HANDLE WINAPI BeginUpdateResourceW(LPCWSTR,BOOL);
1169 #if (_WIN32_WINNT >= 0x0500)
1170 BOOL WINAPI BindIoCompletionCallback(HANDLE,LPOVERLAPPED_COMPLETION_ROUTINE,ULONG);
1171 #endif
1172 BOOL WINAPI BuildCommDCBA(LPCSTR,LPDCB);
1173 BOOL WINAPI BuildCommDCBW(LPCWSTR,LPDCB);
1174 BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS);
1175 BOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS);
1176 BOOL WINAPI CallNamedPipeA(LPCSTR,PVOID,DWORD,PVOID,DWORD,PDWORD,DWORD);
1177 BOOL WINAPI CallNamedPipeW(LPCWSTR,PVOID,DWORD,PVOID,DWORD,PDWORD,DWORD);
1178 BOOL WINAPI CancelDeviceWakeupRequest(HANDLE);
1179 BOOL WINAPI CancelIo(HANDLE);
1180 #if (_WIN32_WINNT >= 0x0600)
1181 BOOL WINAPI CancelIoEx(HANDLE,LPOVERLAPPED);
1182 BOOL WINAPI CancelSynchronousIo(HANDLE);
1183 #endif
1184 BOOL WINAPI CancelWaitableTimer(HANDLE);
1185 #if (_WIN32_WINNT >= 0x0501)
1186 BOOL WINAPI CheckNameLegalDOS8Dot3A(LPCSTR,LPSTR,DWORD,PBOOL,PBOOL);
1187 BOOL WINAPI CheckNameLegalDOS8Dot3W(LPCWSTR,LPSTR,DWORD,PBOOL,PBOOL);
1188 BOOL WINAPI CheckRemoteDebuggerPresent(HANDLE,PBOOL);
1189 #endif
1190 BOOL WINAPI ClearCommBreak(HANDLE);
1191 BOOL WINAPI ClearCommError(HANDLE,PDWORD,LPCOMSTAT);
1192 BOOL WINAPI ClearEventLogA(HANDLE,LPCSTR);
1193 BOOL WINAPI ClearEventLogW(HANDLE,LPCWSTR);
1194 BOOL WINAPI CloseEventLog(HANDLE);
1195 BOOL WINAPI CloseHandle(HANDLE);
1196 BOOL WINAPI CommConfigDialogA(LPCSTR,HWND,LPCOMMCONFIG);
1197 BOOL WINAPI CommConfigDialogW(LPCWSTR,HWND,LPCOMMCONFIG);
1198 LONG WINAPI CompareFileTime(CONST FILETIME*,CONST FILETIME*);
1199 BOOL WINAPI ConnectNamedPipe(HANDLE,LPOVERLAPPED);
1200 BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
1201 #if (_WIN32_WINNT >= 0x0400)
1202 BOOL WINAPI ConvertFiberToThread(void);
1203 #endif
1204 PVOID WINAPI ConvertThreadToFiber(PVOID);
1205 BOOL WINAPI CopyFileA(LPCSTR,LPCSTR,BOOL);
1206 BOOL WINAPI CopyFileW(LPCWSTR,LPCWSTR,BOOL);
1207 BOOL WINAPI CopyFileExA(LPCSTR,LPCSTR,LPPROGRESS_ROUTINE,LPVOID,LPBOOL,DWORD);
1208 BOOL WINAPI CopyFileExW(LPCWSTR,LPCWSTR,LPPROGRESS_ROUTINE,LPVOID,LPBOOL,DWORD);
1209 #define MoveMemory RtlMoveMemory
1210 #define CopyMemory RtlCopyMemory
1211 #define FillMemory RtlFillMemory
1212 #define ZeroMemory RtlZeroMemory
1213 #define SecureZeroMemory RtlSecureZeroMemory
1214 BOOL WINAPI CopySid(DWORD,PSID,PSID);
1215 #if (_WIN32_WINNT >= 0x0501)
1216 HANDLE WINAPI CreateActCtxA(PCACTCTXA);
1217 HANDLE WINAPI CreateActCtxW(PCACTCTXW);
1218 #endif
1219 BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
1220 BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
1221 BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1222 BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1223 HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR);
1224 HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR);
1225 #if (_WIN32_WINNT >= 0x0600)
1226 HANDLE WINAPI CreateEventExA(LPSECURITY_ATTRIBUTES,LPCSTR,DWORD,DWORD);
1227 HANDLE WINAPI CreateEventExW(LPSECURITY_ATTRIBUTES,LPCWSTR,DWORD,DWORD);
1228 #endif
1229 LPVOID WINAPI CreateFiber(SIZE_T,LPFIBER_START_ROUTINE,LPVOID);
1230 #if (_WIN32_WINNT >= 0x0400)
1231 LPVOID WINAPI CreateFiberEx(SIZE_T,SIZE_T,DWORD,LPFIBER_START_ROUTINE,LPVOID);
1232 #endif
1233 HANDLE WINAPI CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE);
1234 HANDLE WINAPI CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE);
1235 HANDLE WINAPI CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCSTR);
1236 HANDLE WINAPI CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCWSTR);
1237 #if (_WIN32_WINNT >= 0x0500)
1238 BOOL WINAPI CreateHardLinkA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
1239 BOOL WINAPI CreateHardLinkW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
1240 #endif
1241 HANDLE WINAPI CreateIoCompletionPort(HANDLE,HANDLE,ULONG_PTR,DWORD);
1242 #if (_WIN32_WINNT >= 0x0500)
1243 HANDLE WINAPI CreateJobObjectA(LPSECURITY_ATTRIBUTES,LPCSTR);
1244 HANDLE WINAPI CreateJobObjectW(LPSECURITY_ATTRIBUTES,LPCWSTR);
1245 BOOL WINAPI TerminateJobObject(HANDLE,UINT);
1246 BOOL WINAPI AssignProcessToJobObject(HANDLE,HANDLE);
1247 #endif
1248 HANDLE WINAPI CreateMailslotA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1249 HANDLE WINAPI CreateMailslotW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1250 #if (_WIN32_WINNT >= 0x0501)
1251 HANDLE WINAPI CreateMemoryResourceNotification(MEMORY_RESOURCE_NOTIFICATION_TYPE);
1252 #endif
1253 HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1254 HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1255 #if (_WIN32_WINNT >= 0x0600)
1256 HANDLE WINAPI CreateMutexExA(LPSECURITY_ATTRIBUTES,LPCSTR,DWORD,DWORD);
1257 HANDLE WINAPI CreateMutexExW(LPSECURITY_ATTRIBUTES,LPCWSTR,DWORD,DWORD);
1258 #endif
1259 HANDLE WINAPI CreateNamedPipeA(LPCSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1260 HANDLE WINAPI CreateNamedPipeW(LPCWSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES);
1261 BOOL WINAPI CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD);
1262 BOOL WINAPI CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR*,BOOL,HANDLE,PGENERIC_MAPPING);
1263 BOOL WINAPI CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,PVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1264 BOOL WINAPI CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,PVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1265 BOOL WINAPI CreateProcessAsUserA(HANDLE,LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,PVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION);
1266 BOOL WINAPI CreateProcessAsUserW(HANDLE,LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,PVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION);
1267 HANDLE WINAPI CreateRemoteThread(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD);
1268 HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR);
1269 HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR);
1270 #if (_WIN32_WINNT >= 0x0600)
1271 HANDLE WINAPI CreateSemaphoreExA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR,DWORD,DWORD);
1272 HANDLE WINAPI CreateSemaphoreExW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR,DWORD,DWORD);
1273 #endif
1274 DWORD WINAPI CreateTapePartition(HANDLE,DWORD,DWORD,DWORD);
1275 #if (_WIN32_WINNT >= 0x0500)
1276 HANDLE WINAPI CreateTimerQueue(void);
1277 BOOL WINAPI CreateTimerQueueTimer(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,DWORD,DWORD,ULONG);
1278 #endif
1279 HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,PVOID,DWORD,PDWORD);
1280 HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
1281 HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR);
1282 #if (_WIN32_WINNT >= 0x0600)
1283 HANDLE WINAPI CreateWaitableTimerExA(LPSECURITY_ATTRIBUTES,LPCSTR,DWORD,DWORD);
1284 HANDLE WINAPI CreateWaitableTimerExW(LPSECURITY_ATTRIBUTES,LPCWSTR,DWORD,DWORD);
1285 #endif
1286 #if (_WIN32_WINNT >= 0x0501)
1287 BOOL WINAPI CreateWellKnownSid(WELL_KNOWN_SID_TYPE,PSID,PSID,DWORD*);
1288 BOOL WINAPI DeactivateActCtx(DWORD,ULONG_PTR);
1289 #endif
1290 BOOL WINAPI DebugActiveProcess(DWORD);
1291 #if (_WIN32_WINNT >= 0x0501)
1292 BOOL WINAPI DebugActiveProcessStop(DWORD);
1293 #endif
1294 void WINAPI DebugBreak(void);
1295 #if (_WIN32_WINNT >= 0x0501)
1296 BOOL WINAPI DebugBreakProcess(HANDLE);
1297 BOOL WINAPI DebugSetProcessKillOnExit(BOOL);
1298 #endif
1299 PVOID WINAPI DecodePointer(PVOID);
1300 PVOID WINAPI DecodeSystemPointer(PVOID);
1301 BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
1302 BOOL WINAPI DefineDosDeviceW(DWORD,LPCWSTR,LPCWSTR);
1303 #define DefineHandleTable(w) ((w),TRUE)
1304 BOOL WINAPI DeleteAce(PACL,DWORD);
1305 ATOM WINAPI DeleteAtom(ATOM);
1306 void WINAPI DeleteCriticalSection(PCRITICAL_SECTION);
1307 void WINAPI DeleteFiber(PVOID);
1308 BOOL WINAPI DeleteFileA(LPCSTR);
1309 BOOL WINAPI DeleteFileW(LPCWSTR);
1310 #if (_WIN32_WINNT >= 0x0500)
1311 BOOL WINAPI DeleteTimerQueue(HANDLE);
1312 BOOL WINAPI DeleteTimerQueueEx(HANDLE,HANDLE);
1313 BOOL WINAPI DeleteTimerQueueTimer(HANDLE,HANDLE,HANDLE);
1314 BOOL WINAPI DeleteVolumeMountPointA(LPCSTR);
1315 BOOL WINAPI DeleteVolumeMountPointW(LPCWSTR);
1316 #endif
1317 BOOL WINAPI DeregisterEventSource(HANDLE);
1318 BOOL WINAPI DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR*);
1319 BOOL WINAPI DeviceIoControl(HANDLE,DWORD,PVOID,DWORD,PVOID,DWORD,PDWORD,POVERLAPPED);
1320 BOOL WINAPI DisableThreadLibraryCalls(HMODULE);
1321 #if (_WIN32_WINNT >= 0x0500)
1322 BOOL WINAPI DnsHostnameToComputerNameA(LPCSTR,LPSTR,LPDWORD);
1323 BOOL WINAPI DnsHostnameToComputerNameW(LPCWSTR,LPWSTR,LPDWORD);
1324 #endif
1325 BOOL WINAPI DisconnectNamedPipe(HANDLE);
1326 BOOL WINAPI DosDateTimeToFileTime(WORD,WORD,LPFILETIME);
1327 BOOL WINAPI DuplicateHandle(HANDLE,HANDLE,HANDLE,PHANDLE,DWORD,BOOL,DWORD);
1328 BOOL WINAPI DuplicateToken(HANDLE,SECURITY_IMPERSONATION_LEVEL,PHANDLE);
1329 BOOL WINAPI DuplicateTokenEx(HANDLE,DWORD,LPSECURITY_ATTRIBUTES,SECURITY_IMPERSONATION_LEVEL,TOKEN_TYPE,PHANDLE);
1330 PVOID WINAPI EncodePointer(PVOID);
1331 PVOID WINAPI EncodeSystemPointer(PVOID);
1332 BOOL WINAPI EncryptFileA(LPCSTR);
1333 BOOL WINAPI EncryptFileW(LPCWSTR);
1334 BOOL WINAPI EndUpdateResourceA(HANDLE,BOOL);
1335 BOOL WINAPI EndUpdateResourceW(HANDLE,BOOL);
1336 void WINAPI EnterCriticalSection(LPCRITICAL_SECTION);
1337 BOOL WINAPI EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,ENUMRESLANGPROCA,LONG_PTR);
1338 BOOL WINAPI EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,ENUMRESLANGPROCW,LONG_PTR);
1339 BOOL WINAPI EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,LONG_PTR);
1340 BOOL WINAPI EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,LONG_PTR);
1341 BOOL WINAPI EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG_PTR);
1342 BOOL WINAPI EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG_PTR);
1343 BOOL WINAPI EqualPrefixSid(PSID,PSID);
1344 BOOL WINAPI EqualSid(PSID,PSID);
1345 DWORD WINAPI EraseTape(HANDLE,DWORD,BOOL);
1346 BOOL WINAPI EscapeCommFunction(HANDLE,DWORD);
1347 DECLSPEC_NORETURN void WINAPI ExitProcess(UINT);
1348 DECLSPEC_NORETURN void WINAPI ExitThread(DWORD);
1349 DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
1350 DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
1351 void WINAPI FatalAppExitA(UINT,LPCSTR);
1352 void WINAPI FatalAppExitW(UINT,LPCWSTR);
1353 void WINAPI FatalExit(int);
1354 BOOL WINAPI FileEncryptionStatusA(LPCSTR,LPDWORD);
1355 BOOL WINAPI FileEncryptionStatusW(LPCWSTR,LPDWORD);
1356 BOOL WINAPI FileTimeToDosDateTime(CONST FILETIME *,LPWORD,LPWORD);
1357 BOOL WINAPI FileTimeToLocalFileTime(CONST FILETIME *,LPFILETIME);
1358 BOOL WINAPI FileTimeToSystemTime(CONST FILETIME *,LPSYSTEMTIME);
1359 #if (_WIN32_WINNT >= 0x0501)
1360 BOOL WINAPI FindActCtxSectionGuid(DWORD,const GUID*,ULONG,const GUID*,PACTCTX_SECTION_KEYED_DATA);
1361 BOOL WINAPI FindActCtxSectionStringA(DWORD,const GUID*,ULONG,LPCSTR,PACTCTX_SECTION_KEYED_DATA);
1362 BOOL WINAPI FindActCtxSectionStringW(DWORD,const GUID*,ULONG,LPCWSTR,PACTCTX_SECTION_KEYED_DATA);
1363 #endif
1364 ATOM WINAPI FindAtomA(LPCSTR);
1365 ATOM WINAPI FindAtomW(LPCWSTR);
1366 BOOL WINAPI FindClose(HANDLE);
1367 BOOL WINAPI FindCloseChangeNotification(HANDLE);
1368 HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD);
1369 HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD);
1370 HANDLE WINAPI FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
1371 HANDLE WINAPI FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW);
1372 HANDLE WINAPI FindFirstFileExA(LPCSTR,FINDEX_INFO_LEVELS,PVOID,FINDEX_SEARCH_OPS,PVOID,DWORD);
1373 HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,PVOID,FINDEX_SEARCH_OPS,PVOID,DWORD);
1374 #if (_WIN32_WINNT >= 0x0501)
1375 HANDLE WINAPI FindFirstStreamW(LPCWSTR,STREAM_INFO_LEVELS,LPVOID,DWORD);
1376 #endif
1377 BOOL WINAPI FindFirstFreeAce(PACL,PVOID*);
1378 #if (_WIN32_WINNT >= 0x0500)
1379 HANDLE WINAPI FindFirstVolumeA(LPSTR,DWORD);
1380 HANDLE WINAPI FindFirstVolumeW(LPWSTR,DWORD);
1381 HANDLE WINAPI FindFirstVolumeMountPointA(LPCSTR,LPSTR,DWORD);
1382 HANDLE WINAPI FindFirstVolumeMountPointW(LPCWSTR,LPWSTR,DWORD);
1383 #endif
1384 BOOL WINAPI FindNextChangeNotification(HANDLE);
1385 BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
1386 BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
1387 #if (_WIN32_WINNT >= 0x0501)
1388 BOOL WINAPI FindNextStreamW(HANDLE,LPVOID);
1389 #endif
1390 #if (_WIN32_WINNT >= 0x0500)
1391 BOOL WINAPI FindNextVolumeA(HANDLE,LPSTR,DWORD);
1392 BOOL WINAPI FindNextVolumeW(HANDLE,LPWSTR,DWORD);
1393 BOOL WINAPI FindNextVolumeMountPointA(HANDLE,LPSTR,DWORD);
1394 BOOL WINAPI FindNextVolumeMountPointW(HANDLE,LPWSTR,DWORD);
1395 BOOL WINAPI FindVolumeClose(HANDLE);
1396 BOOL WINAPI FindVolumeMountPointClose(HANDLE);
1397 #endif
1398 HRSRC WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
1399 HRSRC WINAPI FindResourceW(HINSTANCE,LPCWSTR,LPCWSTR);
1400 HRSRC WINAPI FindResourceExA(HINSTANCE,LPCSTR,LPCSTR,WORD);
1401 HRSRC WINAPI FindResourceExW(HINSTANCE,LPCWSTR,LPCWSTR,WORD);
1402 #if (_WIN32_WINNT >= 0x0502)
1403 DWORD WINAPI GetFirmwareEnvironmentVariableA(LPCSTR,LPCSTR,PVOID,DWORD);
1404 DWORD WINAPI GetFirmwareEnvironmentVariableW(LPCWSTR,LPCWSTR,PVOID,DWORD);
1405 #endif
1406 BOOL WINAPI FlushFileBuffers(HANDLE);
1407 BOOL WINAPI FlushInstructionCache(HANDLE,PCVOID,DWORD);
1408 BOOL WINAPI FlushViewOfFile(PCVOID,SIZE_T);
1409 DWORD WINAPI FlsAlloc(PFLS_CALLBACK_FUNCTION);
1410 PVOID WINAPI FlsGetValue(DWORD);
1411 BOOL WINAPI FlsSetValue(DWORD,PVOID);
1412 BOOL WINAPI FlsFree(DWORD);
1413 DWORD WINAPI FormatMessageA(DWORD,PCVOID,DWORD,DWORD,LPSTR,DWORD,va_list*);
1414 DWORD WINAPI FormatMessageW(DWORD,PCVOID,DWORD,DWORD,LPWSTR,DWORD,va_list*);
1415 BOOL WINAPI FreeEnvironmentStringsA(LPSTR);
1416 BOOL WINAPI FreeEnvironmentStringsW(LPWSTR);
1417 BOOL WINAPI FreeLibrary(HMODULE);
1418 DECLSPEC_NORETURN void WINAPI FreeLibraryAndExitThread(HMODULE,DWORD);
1419 #define FreeModule(m) FreeLibrary(m)
1420 #define FreeProcInstance(p) (void)(p)
1421 #ifndef XFree86Server
1422 BOOL WINAPI FreeResource(HGLOBAL);
1423 #endif /* ndef XFree86Server */
1424 PVOID WINAPI FreeSid(PSID);
1425 BOOL WINAPI GetAce(PACL,DWORD,LPVOID*);
1426 BOOL WINAPI GetAclInformation(PACL,PVOID,DWORD,ACL_INFORMATION_CLASS);
1427 #if (_WIN32_WINNT >= 0x0600)
1428 HRESULT WINAPI GetApplicationRecoveryCallback(HANDLE,APPLICATION_RECOVERY_CALLBACK*,PVOID*, DWORD*, DWORD*);
1429 HRESULT WINAPI GetApplicationRestart(HANDLE,PWSTR,PDWORD,PDWORD);
1430 #endif
1431 UINT WINAPI GetAtomNameA(ATOM,LPSTR,int);
1432 UINT WINAPI GetAtomNameW(ATOM,LPWSTR,int);
1433 BOOL WINAPI GetBinaryTypeA(LPCSTR,PDWORD);
1434 BOOL WINAPI GetBinaryTypeW(LPCWSTR,PDWORD);
1435 LPSTR WINAPI GetCommandLineA(VOID);
1436 LPWSTR WINAPI GetCommandLineW(VOID);
1437 BOOL WINAPI GetCommConfig(HANDLE,LPCOMMCONFIG,PDWORD);
1438 BOOL WINAPI GetCommMask(HANDLE,PDWORD);
1439 BOOL WINAPI GetCommModemStatus(HANDLE,PDWORD);
1440 BOOL WINAPI GetCommProperties(HANDLE,LPCOMMPROP);
1441 BOOL WINAPI GetCommState(HANDLE,LPDCB);
1442 BOOL WINAPI GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
1443 DWORD WINAPI GetCompressedFileSizeA(LPCSTR,PDWORD);
1444 DWORD WINAPI GetCompressedFileSizeW(LPCWSTR,PDWORD);
1445 BOOL WINAPI GetComputerNameA(LPSTR,PDWORD);
1446 BOOL WINAPI GetComputerNameW(LPWSTR,PDWORD);
1447 #if (_WIN32_WINNT >= 0x0500)
1448 BOOL WINAPI GetComputerNameExA(COMPUTER_NAME_FORMAT,LPSTR,LPDWORD);
1449 BOOL WINAPI GetComputerNameExW(COMPUTER_NAME_FORMAT,LPWSTR,LPDWORD);
1450 #endif
1451 #if (_WIN32_WINNT >= 0x0501)
1452 BOOL WINAPI GetCurrentActCtx(HANDLE*);
1453 #endif
1454 DWORD WINAPI GetCurrentDirectoryA(DWORD,LPSTR);
1455 DWORD WINAPI GetCurrentDirectoryW(DWORD,LPWSTR);
1456 BOOL WINAPI GetCurrentHwProfileA(LPHW_PROFILE_INFOA);
1457 BOOL WINAPI GetCurrentHwProfileW(LPHW_PROFILE_INFOW);
1458 HANDLE WINAPI GetCurrentProcess(void);
1459 DWORD WINAPI GetCurrentProcessId(void);
1460 HANDLE WINAPI GetCurrentThread(void);
1461 DWORD WINAPI GetCurrentThreadId(void);
1462 #define GetCurrentTime GetTickCount
1463 BOOL WINAPI GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,PDWORD);
1464 BOOL WINAPI GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,PDWORD);
1465 BOOL WINAPI GetDiskFreeSpaceA(LPCSTR,PDWORD,PDWORD,PDWORD,PDWORD);
1466 BOOL WINAPI GetDiskFreeSpaceW(LPCWSTR,PDWORD,PDWORD,PDWORD,PDWORD);
1467 BOOL WINAPI GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1468 BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER);
1469 #if (_WIN32_WINNT >= 0x0502)
1470 DWORD WINAPI GetDllDirectoryA(DWORD,LPSTR);
1471 DWORD WINAPI GetDllDirectoryW(DWORD,LPWSTR);
1472 #endif
1473 UINT WINAPI GetDriveTypeA(LPCSTR);
1474 UINT WINAPI GetDriveTypeW(LPCWSTR);
1475 LPSTR WINAPI GetEnvironmentStrings(void);
1476 LPWSTR WINAPI GetEnvironmentStringsW(void);
1477 DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD);
1478 DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD);
1479 BOOL WINAPI GetExitCodeProcess(HANDLE,PDWORD);
1480 BOOL WINAPI GetExitCodeThread(HANDLE,PDWORD);
1481 DWORD WINAPI GetFileAttributesA(LPCSTR);
1482 #if (_WIN32_WINNT >= 0x0600)
1483 BOOL WINAPI GetFileAttributesByHandle(HANDLE,LPDWORD,DWORD);
1484 DWORD WINAPI GetFinalPathNameByHandleA(HANDLE,LPSTR,DWORD,DWORD);
1485 DWORD WINAPI GetFinalPathNameByHandleW(HANDLE,LPWSTR,DWORD,DWORD);
1486 #endif
1487 DWORD WINAPI GetFileAttributesW(LPCWSTR);
1488 BOOL WINAPI GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,PVOID);
1489 BOOL WINAPI GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,PVOID);
1490 #if (_WIN32_WINNT >= 0x0600)
1491 BOOL WINAPI GetFileBandwidthReservation(HANDLE,LPDWORD,LPDWORD,LPBOOL,LPDWORD,LPDWORD);
1492 #endif
1493 BOOL WINAPI GetFileInformationByHandle(HANDLE,LPBY_HANDLE_FILE_INFORMATION);
1494 BOOL WINAPI GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,PDWORD);
1495 BOOL WINAPI GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,PDWORD);
1496 DWORD WINAPI GetFileSize(HANDLE,PDWORD);
1497 BOOL WINAPI GetFileSizeEx(HANDLE,PLARGE_INTEGER);
1498 BOOL WINAPI GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME);
1499 DWORD WINAPI GetFileType(HANDLE);
1500 #define GetFreeSpace(w) (0x100000L)
1501 DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*);
1502 DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*);
1503 BOOL WINAPI GetHandleInformation(HANDLE,PDWORD);
1504 BOOL WINAPI GetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,PDWORD);
1505 DWORD WINAPI GetLastError(void);
1506 DWORD WINAPI GetLengthSid(PSID);
1507 void WINAPI GetLocalTime(LPSYSTEMTIME);
1508 DWORD WINAPI GetLogicalDrives(void);
1509 DWORD WINAPI GetLogicalDriveStringsA(DWORD,LPSTR);
1510 DWORD WINAPI GetLogicalDriveStringsW(DWORD,LPWSTR);
1511 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
1512 DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
1513 DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
1514 #endif
1515 BOOL WINAPI GetMailslotInfo(HANDLE,PDWORD,PDWORD,PDWORD,PDWORD);
1516 DWORD WINAPI GetModuleFileNameA(HINSTANCE,LPSTR,DWORD);
1517 DWORD WINAPI GetModuleFileNameW(HINSTANCE,LPWSTR,DWORD);
1518 HMODULE WINAPI GetModuleHandleA(LPCSTR);
1519 HMODULE WINAPI GetModuleHandleW(LPCWSTR);
1520 #if (_WIN32_WINNT >= 0x0500)
1521 BOOL WINAPI GetModuleHandleExA(DWORD,LPCSTR,HMODULE*);
1522 BOOL WINAPI GetModuleHandleExW(DWORD,LPCWSTR,HMODULE*);
1523 #endif
1524 BOOL WINAPI GetNamedPipeHandleStateA(HANDLE,PDWORD,PDWORD,PDWORD,PDWORD,LPSTR,DWORD);
1525 BOOL WINAPI GetNamedPipeHandleStateW(HANDLE,PDWORD,PDWORD,PDWORD,PDWORD,LPWSTR,DWORD);
1526 BOOL WINAPI GetNamedPipeInfo(HANDLE,PDWORD,PDWORD,PDWORD,PDWORD);
1527 #if (_WIN32_WINNT >= 0x0501)
1528 VOID WINAPI GetNativeSystemInfo(LPSYSTEM_INFO);
1529 #endif
1530 BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
1531 BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
1532 BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,PDWORD,BOOL);
1533 DWORD WINAPI GetPriorityClass(HANDLE);
1534 BOOL WINAPI GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,PDWORD);
1535 UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR);
1536 UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR);
1537 DWORD WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR);
1538 DWORD WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1539 DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR);
1540 DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR);
1541 DWORD WINAPI GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,DWORD,LPCSTR);
1542 DWORD WINAPI GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,DWORD,LPCWSTR);
1543 BOOL WINAPI GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
1544 BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
1545 FARPROC WINAPI GetProcAddress(HINSTANCE,LPCSTR);
1546 BOOL WINAPI GetProcessAffinityMask(HANDLE,PDWORD_PTR,PDWORD_PTR);
1547 #if (_WIN32_WINNT >= 0x0502)
1548 BOOL WINAPI GetProcessHandleCount(HANDLE,PDWORD);
1549 #endif
1550 HANDLE WINAPI GetProcessHeap(VOID);
1551 DWORD WINAPI GetProcessHeaps(DWORD,PHANDLE);
1552 #if (_WIN32_WINNT >= 0x0502)
1553 DWORD WINAPI GetProcessId(HANDLE);
1554 #endif
1555 #if (_WIN32_WINNT >= 0x0500)
1556 BOOL WINAPI GetProcessIoCounters(HANDLE,PIO_COUNTERS);
1557 #endif
1558 BOOL WINAPI GetProcessPriorityBoost(HANDLE,PBOOL);
1559 BOOL WINAPI GetProcessShutdownParameters(PDWORD,PDWORD);
1560 BOOL WINAPI GetProcessTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1561 DWORD WINAPI GetProcessVersion(DWORD);
1562 HWINSTA WINAPI GetProcessWindowStation(void);
1563 BOOL WINAPI GetProcessWorkingSetSize(HANDLE,PSIZE_T,PSIZE_T);
1564 UINT WINAPI GetProfileIntA(LPCSTR,LPCSTR,INT);
1565 UINT WINAPI GetProfileIntW(LPCWSTR,LPCWSTR,INT);
1566 DWORD WINAPI GetProfileSectionA(LPCSTR,LPSTR,DWORD);
1567 DWORD WINAPI GetProfileSectionW(LPCWSTR,LPWSTR,DWORD);
1568 DWORD WINAPI GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,DWORD);
1569 DWORD WINAPI GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,DWORD);
1570 BOOL WINAPI GetQueuedCompletionStatus(HANDLE,PDWORD,PULONG_PTR,LPOVERLAPPED*,DWORD);
1571 BOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,PDWORD);
1572 BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL*,LPBOOL);
1573 BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID*,LPBOOL);
1574 DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR);
1575 BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID*,LPBOOL);
1576 DWORD WINAPI GetSecurityDescriptorRMControl(PSECURITY_DESCRIPTOR,PUCHAR);
1577 BOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL*,LPBOOL);
1578 DWORD WINAPI GetShortPathNameA(LPCSTR,LPSTR,DWORD);
1579 DWORD WINAPI GetShortPathNameW(LPCWSTR,LPWSTR,DWORD);
1580 PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
1581 DWORD WINAPI GetSidLengthRequired(UCHAR);
1582 PDWORD WINAPI GetSidSubAuthority(PSID,DWORD);
1583 PUCHAR WINAPI GetSidSubAuthorityCount(PSID);
1584 VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA);
1585 VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW);
1586 HANDLE WINAPI GetStdHandle(DWORD);
1587 UINT WINAPI GetSystemDirectoryA(LPSTR,UINT);
1588 UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT);
1589 VOID WINAPI GetSystemInfo(LPSYSTEM_INFO);
1590 BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
1591 #if (_WIN32_WINNT >= 0x0502)
1592 BOOL WINAPI GetSystemRegistryQuota(PDWORD,PDWORD);
1593 #endif
1594 VOID WINAPI GetSystemTime(LPSYSTEMTIME);
1595 #if (_WIN32_WINNT >= 0x0501)
1596 BOOL WINAPI GetSystemTimes(LPFILETIME,LPFILETIME,LPFILETIME);
1597 #endif
1598 BOOL WINAPI GetSystemTimeAdjustment(PDWORD,PDWORD,PBOOL);
1599 void WINAPI GetSystemTimeAsFileTime(LPFILETIME);
1600 #if (_WIN32_WINNT >= 0x0500)
1601 UINT WINAPI GetSystemWindowsDirectoryA(LPSTR,UINT);
1602 UINT WINAPI GetSystemWindowsDirectoryW(LPWSTR,UINT);
1603 #endif
1604 #if (_WIN32_WINNT >= 0x0501)
1605 UINT WINAPI GetSystemWow64DirectoryA(LPSTR,UINT);
1606 UINT WINAPI GetSystemWow64DirectoryW(LPWSTR,UINT);
1607 #endif
1608 DWORD WINAPI GetTapeParameters(HANDLE,DWORD,PDWORD,PVOID);
1609 DWORD WINAPI GetTapePosition(HANDLE,DWORD,PDWORD,PDWORD,PDWORD);
1610 DWORD WINAPI GetTapeStatus(HANDLE);
1611 UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
1612 UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
1613 DWORD WINAPI GetTempPathA(DWORD,LPSTR);
1614 DWORD WINAPI GetTempPathW(DWORD,LPWSTR);
1615 BOOL WINAPI GetThreadContext(HANDLE,LPCONTEXT);
1616 #if (_WIN32_WINNT >= 0x0502)
1617 BOOL WINAPI GetThreadIOPendingFlag(HANDLE,PBOOL);
1618 #endif
1619 int WINAPI GetThreadPriority(HANDLE);
1620 BOOL WINAPI GetThreadPriorityBoost(HANDLE,PBOOL);
1621 BOOL WINAPI GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY);
1622 BOOL WINAPI GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
1623 DWORD WINAPI GetTickCount(VOID);
1624 #if (_WIN32_WINNT >= 0x0600)
1625 ULONGLONG WINAPI GetTickCount64(VOID);
1626 #endif
1627 DWORD WINAPI GetThreadId(HANDLE);
1628 DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION);
1629 BOOL WINAPI GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,DWORD,PDWORD);
1630 BOOL WINAPI GetUserNameA (LPSTR,PDWORD);
1631 BOOL WINAPI GetUserNameW(LPWSTR,PDWORD);
1632 DWORD WINAPI GetVersion(void);
1633 BOOL WINAPI GetVersionExA(LPOSVERSIONINFOA);
1634 BOOL WINAPI GetVersionExW(LPOSVERSIONINFOW);
1635 BOOL WINAPI GetVolumeInformationA(LPCSTR,LPSTR,DWORD,PDWORD,PDWORD,PDWORD,LPSTR,DWORD);
1636 BOOL WINAPI GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,PDWORD,PDWORD,PDWORD,LPWSTR,DWORD);
1637 #if (_WIN32_WINNT >= 0x0500)
1638 BOOL WINAPI GetVolumeNameForVolumeMountPointA(LPCSTR,LPSTR,DWORD);
1639 BOOL WINAPI GetVolumeNameForVolumeMountPointW(LPCWSTR,LPWSTR,DWORD);
1640 BOOL WINAPI GetVolumePathNameA(LPCSTR,LPSTR,DWORD);
1641 BOOL WINAPI GetVolumePathNameW(LPCWSTR,LPWSTR,DWORD);
1642 #endif
1643 #if (_WIN32_WINNT >= 0x0501)
1644 BOOL WINAPI GetVolumePathNamesForVolumeNameA(LPCSTR,LPSTR,DWORD,PDWORD);
1645 BOOL WINAPI GetVolumePathNamesForVolumeNameW(LPCWSTR,LPWSTR,DWORD,PDWORD);
1646 #endif
1647 UINT WINAPI GetWindowsDirectoryA(LPSTR,UINT);
1648 UINT WINAPI GetWindowsDirectoryW(LPWSTR,UINT);
1649 DWORD WINAPI GetWindowThreadProcessId(HWND,PDWORD);
1650 UINT WINAPI GetWriteWatch(DWORD,PVOID,SIZE_T,PVOID*,PULONG_PTR,PULONG);
1651 ATOM WINAPI GlobalAddAtomA(LPCSTR);
1652 ATOM WINAPI GlobalAddAtomW( LPCWSTR);
1653 HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
1654 SIZE_T WINAPI GlobalCompact(DWORD); /* Obsolete: Has no effect. */
1655 ATOM WINAPI GlobalDeleteAtom(ATOM);
1656 #define GlobalDiscard(m) GlobalReAlloc((m),0,GMEM_MOVEABLE)
1657 ATOM WINAPI GlobalFindAtomA(LPCSTR);
1658 ATOM WINAPI GlobalFindAtomW(LPCWSTR);
1659 VOID WINAPI GlobalFix(HGLOBAL); /* Obsolete: Has no effect. */
1660 UINT WINAPI GlobalFlags(HGLOBAL); /* Obsolete: Has no effect. */
1661 HGLOBAL WINAPI GlobalFree(HGLOBAL);
1662 UINT WINAPI GlobalGetAtomNameA(ATOM,LPSTR,int);
1663 UINT WINAPI GlobalGetAtomNameW(ATOM,LPWSTR,int);
1664 HGLOBAL WINAPI GlobalHandle(PCVOID);
1665 LPVOID WINAPI GlobalLock(HGLOBAL);
1666 VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS);
1667 #if (_WIN32_WINNT >= 0x0500)
1668 BOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX);
1669 #endif
1670 HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT);
1671 DWORD WINAPI GlobalSize(HGLOBAL);
1672 VOID WINAPI GlobalUnfix(HGLOBAL); /* Obsolete: Has no effect. */
1673 BOOL WINAPI GlobalUnlock(HGLOBAL);
1674 BOOL WINAPI GlobalUnWire(HGLOBAL); /* Obsolete: Has no effect. */
1675 PVOID WINAPI GlobalWire(HGLOBAL); /* Obsolete: Has no effect. */
1676 #define HasOverlappedIoCompleted(lpOverlapped) ((lpOverlapped)->Internal != STATUS_PENDING)
1677 PVOID WINAPI HeapAlloc(HANDLE,DWORD,SIZE_T);
1678 SIZE_T WINAPI HeapCompact(HANDLE,DWORD);
1679 HANDLE WINAPI HeapCreate(DWORD,DWORD,DWORD);
1680 BOOL WINAPI HeapDestroy(HANDLE);
1681 BOOL WINAPI HeapFree(HANDLE,DWORD,PVOID);
1682 BOOL WINAPI HeapLock(HANDLE);
1683 #if (_WIN32_WINNT >= 0x0501)
1684 BOOL WINAPI HeapQueryInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T,PSIZE_T);
1685 #endif
1686 PVOID WINAPI HeapReAlloc(HANDLE,DWORD,PVOID,DWORD);
1687 #if (_WIN32_WINNT >= 0x0501)
1688 BOOL WINAPI HeapSetInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T);
1689 #endif
1690 DWORD WINAPI HeapSize(HANDLE,DWORD,PCVOID);
1691 BOOL WINAPI HeapUnlock(HANDLE);
1692 BOOL WINAPI HeapValidate(HANDLE,DWORD,PCVOID);
1693 BOOL WINAPI HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY);
1694 BOOL WINAPI ImpersonateAnonymousToken(HANDLE);
1695 BOOL WINAPI ImpersonateLoggedOnUser(HANDLE);
1696 BOOL WINAPI ImpersonateNamedPipeClient(HANDLE);
1697 BOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
1698 BOOL WINAPI InitAtomTable(DWORD);
1699 BOOL WINAPI InitializeAcl(PACL,DWORD,DWORD);
1700 #if (_WIN32_WINNT >= 0x0600)
1701 VOID WINAPI InitializeConditionVariable(PCONDITION_VARIABLE);
1702 #endif
1703 VOID WINAPI InitializeCriticalSection(LPCRITICAL_SECTION);
1704 BOOL WINAPI InitializeCriticalSectionAndSpinCount(LPCRITICAL_SECTION,DWORD);
1705 DWORD WINAPI SetCriticalSectionSpinCount(LPCRITICAL_SECTION,DWORD);
1706 BOOL WINAPI InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD);
1707 BOOL WINAPI InitializeSid (PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
1708 #if !defined(__WINDDK_H) && _WIN32_WINNT >= 0x0501
1709 VOID WINAPI InitializeSListHead(PSLIST_HEADER);
1710 #endif
1711 #if (_WIN32_WINNT >= 0x0600)
1712 VOID WINAPI InitializeSRWLock(PSRWLOCK);
1713 #endif
1714 #ifndef __INTERLOCKED_DECLARED
1715 #define __INTERLOCKED_DECLARED
1716
1717 #if defined (_M_AMD64) || defined (_M_IA64)
1718
1719 #define InterlockedAnd _InterlockedAnd
1720 #define InterlockedOr _InterlockedOr
1721 #define InterlockedXor _InterlockedXor
1722 #define InterlockedIncrement _InterlockedIncrement
1723 #define InterlockedIncrementAcquire InterlockedIncrement
1724 #define InterlockedIncrementRelease InterlockedIncrement
1725 #define InterlockedDecrement _InterlockedDecrement
1726 #define InterlockedDecrementAcquire InterlockedDecrement
1727 #define InterlockedDecrementRelease InterlockedDecrement
1728 #define InterlockedExchange _InterlockedExchange
1729 #define InterlockedExchangeAdd _InterlockedExchangeAdd
1730 #define InterlockedCompareExchange _InterlockedCompareExchange
1731 #define InterlockedCompareExchangeAcquire InterlockedCompareExchange
1732 #define InterlockedCompareExchangeRelease InterlockedCompareExchange
1733 #define InterlockedExchangePointer _InterlockedExchangePointer
1734 #define InterlockedCompareExchangePointer _InterlockedCompareExchangePointer
1735 #define InterlockedCompareExchangePointerAcquire _InterlockedCompareExchangePointer
1736 #define InterlockedCompareExchangePointerRelease _InterlockedCompareExchangePointer
1737 #define InterlockedAnd64 _InterlockedAnd64
1738 #define InterlockedOr64 _InterlockedOr64
1739 #define InterlockedXor64 _InterlockedXor64
1740 #define InterlockedIncrement64 _InterlockedIncrement64
1741 #define InterlockedDecrement64 _InterlockedDecrement64
1742 #define InterlockedExchange64 _InterlockedExchange64
1743 #define InterlockedExchangeAdd64 _InterlockedExchangeAdd64
1744 #define InterlockedCompareExchange64 _InterlockedCompareExchange64
1745 #define InterlockedCompareExchangeAcquire64 InterlockedCompareExchange64
1746 #define InterlockedCompareExchangeRelease64 InterlockedCompareExchange64
1747
1748 #else // !(defined (_M_AMD64) || defined (_M_IA64))
1749
1750 LONG WINAPI InterlockedOr(IN OUT LONG volatile *,LONG);
1751 LONG WINAPI InterlockedAnd(IN OUT LONG volatile *,LONG);
1752 LONG WINAPI InterlockedCompareExchange(IN OUT LONG volatile *,LONG,LONG);
1753 LONG WINAPI InterlockedDecrement(IN OUT LONG volatile *);
1754 LONG WINAPI InterlockedExchange(IN OUT LONG volatile *,LONG);
1755 #if defined(_WIN64)
1756 /* PVOID WINAPI InterlockedExchangePointer(PVOID*,PVOID); */
1757 #define InterlockedExchangePointer(t,v) \
1758 (PVOID)_InterlockedExchange64((LONGLONG*)(t),(LONGLONG)(v))
1759 /* PVOID WINAPI InterlockedCompareExchangePointer(PVOID*,PVOID,PVOID); */
1760 #define InterlockedCompareExchangePointer(d,e,c) \
1761 (PVOID)_InterlockedCompareExchange64((LONGLONG*)(d),(LONGLONG)(e),(LONGLONG)(c))
1762 #else
1763 /* PVOID WINAPI InterlockedExchangePointer(PVOID*,PVOID); */
1764 #define InterlockedExchangePointer(t,v) \
1765 (PVOID)InterlockedExchange((LPLONG)(t),(LONG)(v))
1766 /* PVOID WINAPI InterlockedCompareExchangePointer(PVOID*,PVOID,PVOID); */
1767 #define InterlockedCompareExchangePointer(d,e,c) \
1768 (PVOID)InterlockedCompareExchange((LPLONG)(d),(LONG)(e),(LONG)(c))
1769 #endif
1770 LONG WINAPI InterlockedExchangeAdd(IN OUT LONG volatile *,LONG);
1771 #if (_WIN32_WINNT >= 0x0501)
1772 PSLIST_ENTRY WINAPI InterlockedFlushSList(PSLIST_HEADER);
1773 #endif
1774 LONG WINAPI InterlockedIncrement(IN OUT LONG volatile *);
1775 #if (_WIN32_WINNT >= 0x0501)
1776 PSLIST_ENTRY WINAPI InterlockedPopEntrySList(PSLIST_HEADER);
1777 PSLIST_ENTRY WINAPI InterlockedPushEntrySList(PSLIST_HEADER,PSLIST_ENTRY);
1778 #endif
1779
1780 #endif // !(defined (_M_AMD64) || defined (_M_IA64))
1781
1782 VOID WINAPI InitializeSListHead(PSLIST_HEADER);
1783 USHORT WINAPI QueryDepthSList(PSLIST_HEADER);
1784
1785 #if !defined(InterlockedAnd)
1786 #define InterlockedAnd InterlockedAnd_Inline
1787 FORCEINLINE
1788 LONG
1789 InterlockedAnd_Inline(IN OUT volatile LONG *Target,
1790 IN LONG Set)
1791 {
1792 LONG i;
1793 LONG j;
1794
1795 j = *Target;
1796 do {
1797 i = j;
1798 j = _InterlockedCompareExchange((volatile long *)Target,
1799 i & Set,
1800 i);
1801
1802 } while (i != j);
1803
1804 return j;
1805 }
1806 #endif
1807
1808 #if !defined(InterlockedOr)
1809 #define InterlockedOr InterlockedOr_Inline
1810 FORCEINLINE
1811 LONG
1812 InterlockedOr_Inline(IN OUT volatile LONG *Target,
1813 IN LONG Set)
1814 {
1815 LONG i;
1816 LONG j;
1817
1818 j = *Target;
1819 do {
1820 i = j;
1821 j = _InterlockedCompareExchange((volatile long *)Target,
1822 i | Set,
1823 i);
1824
1825 } while (i != j);
1826
1827 return j;
1828 }
1829 #endif
1830
1831 #endif /* __INTERLOCKED_DECLARED */
1832
1833 BOOL WINAPI IsBadCodePtr(FARPROC);
1834 BOOL WINAPI IsBadHugeReadPtr(PCVOID,UINT_PTR);
1835 BOOL WINAPI IsBadHugeWritePtr(PVOID,UINT_PTR);
1836 BOOL WINAPI IsBadReadPtr(PCVOID,UINT_PTR);
1837 BOOL WINAPI IsBadStringPtrA(LPCSTR,UINT_PTR);
1838 BOOL WINAPI IsBadStringPtrW(LPCWSTR,UINT_PTR);
1839 BOOL WINAPI IsBadWritePtr(PVOID,UINT_PTR);
1840 BOOL WINAPI IsDebuggerPresent(void);
1841 #if (_WIN32_WINNT >= 0x0501)
1842 BOOL WINAPI IsProcessInJob(HANDLE,HANDLE,PBOOL);
1843 #endif
1844 BOOL WINAPI IsProcessorFeaturePresent(DWORD);
1845 BOOL WINAPI IsSystemResumeAutomatic(void);
1846 BOOL WINAPI IsTextUnicode(PCVOID,int,LPINT);
1847 #if (_WIN32_WINNT >= 0x0600)
1848 BOOL WINAPI IsThreadAFiber(VOID);
1849 #endif
1850 BOOL WINAPI IsValidAcl(PACL);
1851 BOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
1852 BOOL WINAPI IsValidSid(PSID);
1853 #if (_WIN32_WINNT >= 0x0501)
1854 BOOL WINAPI IsWellKnownSid(PSID,WELL_KNOWN_SID_TYPE);
1855 BOOL WINAPI IsWow64Process(HANDLE,PBOOL);
1856 #endif
1857 void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION);
1858 #define LimitEmsPages(n)
1859 HINSTANCE WINAPI LoadLibraryA(LPCSTR);
1860 HINSTANCE WINAPI LoadLibraryExA(LPCSTR,HANDLE,DWORD);
1861 HINSTANCE WINAPI LoadLibraryExW(LPCWSTR,HANDLE,DWORD);
1862 HINSTANCE WINAPI LoadLibraryW(LPCWSTR);
1863 DWORD WINAPI LoadModule(LPCSTR,PVOID);
1864 HGLOBAL WINAPI LoadResource(HINSTANCE,HRSRC);
1865 HLOCAL WINAPI LocalAlloc(UINT,SIZE_T);
1866 SIZE_T WINAPI LocalCompact(UINT); /* Obsolete: Has no effect. */
1867 #define LocalDiscard(m) (LocalReAlloc((m),0,LMEM_MOVEABLE))
1868 BOOL WINAPI LocalFileTimeToFileTime(CONST FILETIME *,LPFILETIME);
1869 UINT WINAPI LocalFlags(HLOCAL); /* Obsolete: Has no effect. */
1870 HLOCAL WINAPI LocalFree(HLOCAL);
1871 HLOCAL WINAPI LocalHandle(LPCVOID);
1872 PVOID WINAPI LocalLock(HLOCAL);
1873 HLOCAL WINAPI LocalReAlloc(HLOCAL,SIZE_T,UINT);
1874 SIZE_T WINAPI LocalShrink(HLOCAL,UINT); /* Obsolete: Has no effect. */
1875 SIZE_T WINAPI LocalSize(HLOCAL);
1876 BOOL WINAPI LocalUnlock(HLOCAL);
1877 BOOL WINAPI LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
1878 BOOL WINAPI LockFileEx(HANDLE,DWORD,DWORD,DWORD,DWORD,LPOVERLAPPED);
1879 PVOID WINAPI LockResource(HGLOBAL);
1880 #define LockSegment(w) GlobalFix((HANDLE)(w)) /* Obsolete: Has no effect. */
1881 BOOL WINAPI LogonUserA(LPSTR,LPSTR,LPSTR,DWORD,DWORD,PHANDLE);
1882 BOOL WINAPI LogonUserW(LPWSTR,LPWSTR,LPWSTR,DWORD,DWORD,PHANDLE);
1883 BOOL WINAPI LookupAccountNameA(LPCSTR,LPCSTR,PSID,PDWORD,LPSTR,PDWORD,PSID_NAME_USE);
1884 BOOL WINAPI LookupAccountNameW(LPCWSTR,LPCWSTR,PSID,PDWORD,LPWSTR,PDWORD,PSID_NAME_USE);
1885 BOOL WINAPI LookupAccountSidA(LPCSTR,PSID,LPSTR,PDWORD,LPSTR,PDWORD,PSID_NAME_USE);
1886 BOOL WINAPI LookupAccountSidW(LPCWSTR,PSID,LPWSTR,PDWORD,LPWSTR,PDWORD,PSID_NAME_USE);
1887 BOOL WINAPI LookupPrivilegeDisplayNameA(LPCSTR,LPCSTR,LPSTR,PDWORD,PDWORD);
1888 BOOL WINAPI LookupPrivilegeDisplayNameW(LPCWSTR,LPCWSTR,LPWSTR,PDWORD,PDWORD);
1889 BOOL WINAPI LookupPrivilegeNameA(LPCSTR,PLUID,LPSTR,PDWORD);
1890 BOOL WINAPI LookupPrivilegeNameW(LPCWSTR,PLUID,LPWSTR,PDWORD);
1891 BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,PLUID);
1892 BOOL WINAPI LookupPrivilegeValueW(LPCWSTR,LPCWSTR,PLUID);
1893 LPSTR WINAPI lstrcatA(LPSTR,LPCSTR);
1894 LPWSTR WINAPI lstrcatW(LPWSTR,LPCWSTR);
1895 int WINAPI lstrcmpA(LPCSTR,LPCSTR);
1896 int WINAPI lstrcmpiA(LPCSTR,LPCSTR);
1897 int WINAPI lstrcmpiW( LPCWSTR,LPCWSTR);
1898 int WINAPI lstrcmpW(LPCWSTR,LPCWSTR);
1899 LPSTR WINAPI lstrcpyA(LPSTR,LPCSTR);
1900 LPSTR WINAPI lstrcpynA(LPSTR,LPCSTR,int);
1901 LPWSTR WINAPI lstrcpynW(LPWSTR,LPCWSTR,int);
1902 LPWSTR WINAPI lstrcpyW(LPWSTR,LPCWSTR);
1903 int WINAPI lstrlenA(LPCSTR);
1904 int WINAPI lstrlenW(LPCWSTR);
1905 BOOL WINAPI MakeAbsoluteSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PDWORD,PACL,PDWORD,PACL,PDWORD,PSID,PDWORD,PSID,PDWORD);
1906 #define MakeProcInstance(p,i) (p)
1907 BOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PDWORD);
1908 VOID WINAPI MapGenericMask(PDWORD,PGENERIC_MAPPING);
1909 PVOID WINAPI MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,SIZE_T);
1910 PVOID WINAPI MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,SIZE_T,PVOID);
1911 BOOL WINAPI MoveFileA(LPCSTR,LPCSTR);
1912 BOOL WINAPI MoveFileExA(LPCSTR,LPCSTR,DWORD);
1913 BOOL WINAPI MoveFileExW(LPCWSTR,LPCWSTR,DWORD);
1914 BOOL WINAPI MoveFileW(LPCWSTR,LPCWSTR);
1915 int WINAPI MulDiv(int,int,int);
1916 BOOL WINAPI NotifyChangeEventLog(HANDLE,HANDLE);
1917 BOOL WINAPI ObjectCloseAuditAlarmA(LPCSTR,PVOID,BOOL);
1918 BOOL WINAPI ObjectCloseAuditAlarmW(LPCWSTR,PVOID,BOOL);
1919 BOOL WINAPI ObjectDeleteAuditAlarmA(LPCSTR,PVOID,BOOL);
1920 BOOL WINAPI ObjectDeleteAuditAlarmW(LPCWSTR,PVOID,BOOL);
1921 BOOL WINAPI ObjectOpenAuditAlarmA(LPCSTR,PVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,HANDLE,DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,PBOOL);
1922 BOOL WINAPI ObjectOpenAuditAlarmW(LPCWSTR,PVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,HANDLE,DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,PBOOL);
1923 BOOL WINAPI ObjectPrivilegeAuditAlarmA(LPCSTR,PVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL);
1924 BOOL WINAPI ObjectPrivilegeAuditAlarmW(LPCWSTR,PVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL);
1925 HANDLE WINAPI OpenBackupEventLogA(LPCSTR,LPCSTR);
1926 HANDLE WINAPI OpenBackupEventLogW(LPCWSTR,LPCWSTR);
1927 HANDLE WINAPI OpenEventA(DWORD,BOOL,LPCSTR);
1928 HANDLE WINAPI OpenEventLogA (LPCSTR,LPCSTR);
1929 HANDLE WINAPI OpenEventLogW(LPCWSTR,LPCWSTR);
1930 HANDLE WINAPI OpenEventW(DWORD,BOOL,LPCWSTR);
1931 HFILE WINAPI OpenFile(LPCSTR,LPOFSTRUCT,UINT);
1932 #if (_WIN32_WINNT >= 0x0600)
1933 HANDLE WINAPI OpenFileById(HANDLE,LPFILE_ID_DESCRIPTOR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD);
1934 #endif
1935 HANDLE WINAPI OpenFileMappingA(DWORD,BOOL,LPCSTR);
1936 HANDLE WINAPI OpenFileMappingW(DWORD,BOOL,LPCWSTR);
1937 HANDLE WINAPI OpenMutexA(DWORD,BOOL,LPCSTR);
1938 HANDLE WINAPI OpenMutexW(DWORD,BOOL,LPCWSTR);
1939 HANDLE WINAPI OpenProcess(DWORD,BOOL,DWORD);
1940 BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
1941 HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
1942 HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
1943 #if (_WIN32_WINNT >= 0x0500) || (_WIN32_WINDOWS >= 0x0490)
1944 HANDLE WINAPI OpenThread(DWORD,BOOL,DWORD);
1945 #endif
1946 BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
1947 HANDLE WINAPI OpenWaitableTimerA(DWORD,BOOL,LPCSTR);
1948 HANDLE WINAPI OpenWaitableTimerW(DWORD,BOOL,LPCWSTR);
1949 void WINAPI OutputDebugStringA(LPCSTR);
1950 void WINAPI OutputDebugStringW(LPCWSTR);
1951 BOOL WINAPI PeekNamedPipe(HANDLE,PVOID,DWORD,PDWORD,PDWORD,PDWORD);
1952 BOOL WINAPI PostQueuedCompletionStatus(HANDLE,DWORD,ULONG_PTR,LPOVERLAPPED);
1953 DWORD WINAPI PrepareTape(HANDLE,DWORD,BOOL);
1954 BOOL WINAPI PrivilegeCheck (HANDLE,PPRIVILEGE_SET,PBOOL);
1955 BOOL WINAPI PrivilegedServiceAuditAlarmA(LPCSTR,LPCSTR,HANDLE,PPRIVILEGE_SET,BOOL);
1956 BOOL WINAPI PrivilegedServiceAuditAlarmW(LPCWSTR,LPCWSTR,HANDLE,PPRIVILEGE_SET,BOOL);
1957 #if (_WIN32_WINNT >= 0x0500)
1958 BOOL WINAPI ProcessIdToSessionId(DWORD,DWORD*);
1959 #endif
1960 BOOL WINAPI PulseEvent(HANDLE);
1961 BOOL WINAPI PurgeComm(HANDLE,DWORD);
1962 #if (_WIN32_WINNT >= 0x0501)
1963 BOOL WINAPI QueryActCtxW(DWORD,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T*);
1964 #endif
1965 DWORD WINAPI QueryDosDeviceA(LPCSTR,LPSTR,DWORD);
1966 DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
1967 #if (_WIN32_WINNT >= 0x0501)
1968 BOOL WINAPI QueryMemoryResourceNotification(HANDLE,PBOOL);
1969 #endif
1970 BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER);
1971 BOOL WINAPI QueryPerformanceFrequency(PLARGE_INTEGER);
1972 #if (_WIN32_WINNT >= 0x0600)
1973 VOID WINAPI QuerySecurityAccessMask(SECURITY_INFORMATION,LPDWORD);
1974 #endif
1975 DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
1976 #if (_WIN32_WINNT >= 0x0500)
1977 BOOL WINAPI QueueUserWorkItem(LPTHREAD_START_ROUTINE,PVOID,ULONG);
1978 #endif
1979 void WINAPI RaiseException(DWORD,DWORD,DWORD,const ULONG_PTR*);
1980 BOOL WINAPI ReadDirectoryChangesW(HANDLE,PVOID,DWORD,BOOL,DWORD,PDWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
1981 BOOL WINAPI ReadEventLogA(HANDLE,DWORD,DWORD,PVOID,DWORD,DWORD *,DWORD *);
1982 BOOL WINAPI ReadEventLogW(HANDLE,DWORD,DWORD,PVOID,DWORD,DWORD *,DWORD *);
1983 BOOL WINAPI ReadFile(HANDLE,PVOID,DWORD,PDWORD,LPOVERLAPPED);
1984 BOOL WINAPI ReadFileEx(HANDLE,PVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
1985 BOOL WINAPI ReadFileScatter(HANDLE,FILE_SEGMENT_ELEMENT*,DWORD,LPDWORD,LPOVERLAPPED);
1986 BOOL WINAPI ReadProcessMemory(HANDLE,PCVOID,PVOID,SIZE_T,PSIZE_T);
1987 #if (_WIN32_WINNT >= 0x0600)
1988 VOID WINAPI RecoveryFinished(BOOL);
1989 HRESULT WINAPI RecoveryInProgress(OUT PBOOL);
1990 HRESULT WINAPI RegisterApplicationRecoveryCallback(APPLICATION_RECOVERY_CALLBACK,PVOID, DWORD, DWORD);
1991 HRESULT WINAPI RegisterApplicationRestart(PCWSTR,DWORD);
1992 #endif
1993 HANDLE WINAPI RegisterEventSourceA (LPCSTR,LPCSTR);
1994 HANDLE WINAPI RegisterEventSourceW(LPCWSTR,LPCWSTR);
1995 #if (_WIN32_WINNT >= 0x0500)
1996 BOOL WINAPI RegisterWaitForSingleObject(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG);
1997 HANDLE WINAPI RegisterWaitForSingleObjectEx(HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG);
1998 #endif
1999 #if (_WIN32_WINNT >= 0x0501)
2000 void WINAPI ReleaseActCtx(HANDLE);
2001 #endif
2002 BOOL WINAPI ReleaseMutex(HANDLE);
2003 BOOL WINAPI ReleaseSemaphore(HANDLE,LONG,LPLONG);
2004 #if (_WIN32_WINNT >= 0x0600)
2005 VOID WINAPI ReleaseSRWLockExclusive(PSRWLOCK);
2006 VOID WINAPI ReleaseSRWLockShared(PSRWLOCK);
2007 #endif
2008 BOOL WINAPI RemoveDirectoryA(LPCSTR);
2009 BOOL WINAPI RemoveDirectoryW(LPCWSTR);
2010 #if (_WIN32_WINNT >= 0x0500)
2011 ULONG WINAPI RemoveVectoredExceptionHandler(PVOID);
2012 #endif
2013 #if (_WIN32_WINNT >= 0x0500)
2014 BOOL WINAPI ReplaceFileA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPVOID,LPVOID);
2015 BOOL WINAPI ReplaceFileW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPVOID,LPVOID);
2016 #endif
2017 BOOL WINAPI ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR*,PVOID);
2018 BOOL WINAPI ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR*,PVOID);
2019 BOOL WINAPI ResetEvent(HANDLE);
2020 UINT WINAPI ResetWriteWatch(LPVOID,SIZE_T);
2021 #if (_WIN32_WINNT >= 0x0510)
2022 VOID WINAPI RestoreLastError(DWORD);
2023 #endif
2024 DWORD WINAPI ResumeThread(HANDLE);
2025 BOOL WINAPI RevertToSelf(void);
2026 DWORD WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
2027 DWORD WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
2028 BOOL WINAPI SetAclInformation(PACL,PVOID,DWORD,ACL_INFORMATION_CLASS);
2029 BOOL WINAPI SetCommBreak(HANDLE);
2030 BOOL WINAPI SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD);
2031 BOOL WINAPI SetCommMask(HANDLE,DWORD);
2032 BOOL WINAPI SetCommState(HANDLE,LPDCB);
2033 BOOL WINAPI SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS);
2034 BOOL WINAPI SetComputerNameA(LPCSTR);
2035 BOOL WINAPI SetComputerNameW(LPCWSTR);
2036 #if (_WIN32_WINNT >= 0x0500)
2037 BOOL WINAPI SetComputerNameExA(COMPUTER_NAME_FORMAT,LPCSTR);
2038 BOOL WINAPI SetComputerNameExW(COMPUTER_NAME_FORMAT,LPCWSTR);
2039 #endif
2040 BOOL WINAPI SetCurrentDirectoryA(LPCSTR);
2041 BOOL WINAPI SetCurrentDirectoryW(LPCWSTR);
2042 BOOL WINAPI SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD);
2043 BOOL WINAPI SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD);
2044 #if (_WIN32_WINNT >= 0x0502)
2045 BOOL WINAPI SetDllDirectoryA(LPCSTR);
2046 BOOL WINAPI SetDllDirectoryW(LPCWSTR);
2047 #endif
2048 BOOL WINAPI SetEndOfFile(HANDLE);
2049 BOOL WINAPI SetEnvironmentVariableA(LPCSTR,LPCSTR);
2050 BOOL WINAPI SetEnvironmentVariableW(LPCWSTR,LPCWSTR);
2051 UINT WINAPI SetErrorMode(UINT);
2052 BOOL WINAPI SetEvent(HANDLE);
2053 VOID WINAPI SetFileApisToANSI(void);
2054 VOID WINAPI SetFileApisToOEM(void);
2055 BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD);
2056 #if (_WIN32_WINNT >= 0x0600)
2057 BOOL WINAPI SetFileAttributesByHandle(HANDLE,DWORD,DWORD);
2058 #endif
2059 BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
2060 #if (_WIN32_WINNT >= 0x0600)
2061 BOOL WINAPI SetFileBandwidthReservation(HANDLE,DWORD,DWORD,BOOL,LPDWORD,LPDWORD);
2062 BOOL WINAPI SetFileCompletionNotificationModes(HANDLE,UCHAR);
2063 #endif
2064 DWORD WINAPI SetFilePointer(HANDLE,LONG,PLONG,DWORD);
2065 BOOL WINAPI SetFilePointerEx(HANDLE,LARGE_INTEGER,PLARGE_INTEGER,DWORD);
2066 BOOL WINAPI SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
2067 BOOL WINAPI SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
2068 #if (_WIN32_WINNT >= 0x0501)
2069 BOOL WINAPI SetFileShortNameA(HANDLE,LPCSTR);
2070 BOOL WINAPI SetFileShortNameW(HANDLE,LPCWSTR);
2071 #endif
2072 BOOL WINAPI SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*);
2073 #if (_WIN32_WINNT >= 0x0501)
2074 BOOL WINAPI SetFileValidData(HANDLE,LONGLONG);
2075 #endif
2076 #if (_WIN32_WINNT >= 0x0502)
2077 BOOL WINAPI SetFirmwareEnvironmentVariableA(LPCSTR,LPCSTR,PVOID,DWORD);
2078 BOOL WINAPI SetFirmwareEnvironmentVariableW(LPCWSTR,LPCWSTR,PVOID,DWORD);
2079 #endif
2080 UINT WINAPI SetHandleCount(UINT);
2081 BOOL WINAPI SetHandleInformation(HANDLE,DWORD,DWORD);
2082 BOOL WINAPI SetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
2083 void WINAPI SetLastError(DWORD);
2084 void WINAPI SetLastErrorEx(DWORD,DWORD);
2085 BOOL WINAPI SetLocalTime(const SYSTEMTIME*);
2086 BOOL WINAPI SetMailslotInfo(HANDLE,DWORD);
2087 BOOL WINAPI SetNamedPipeHandleState(HANDLE,PDWORD,PDWORD,PDWORD);
2088 BOOL WINAPI SetPriorityClass(HANDLE,DWORD);
2089 BOOL WINAPI SetPrivateObjectSecurity(SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR *,PGENERIC_MAPPING,HANDLE);
2090 BOOL WINAPI SetProcessAffinityMask(HANDLE,DWORD_PTR);
2091 BOOL WINAPI SetProcessPriorityBoost(HANDLE,BOOL);
2092 BOOL WINAPI SetProcessShutdownParameters(DWORD,DWORD);
2093 BOOL WINAPI SetProcessWorkingSetSize(HANDLE,SIZE_T,SIZE_T);
2094 #if (_WIN32_WINNT >= 0x0600)
2095 VOID WINAPI SetSecurityAccessMask(SECURITY_INFORMATION,LPDWORD);
2096 #endif
2097 BOOL WINAPI SetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,SECURITY_DESCRIPTOR_CONTROL,SECURITY_DESCRIPTOR_CONTROL);
2098 BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
2099 BOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL);
2100 BOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL);
2101 DWORD WINAPI SetSecurityDescriptorRMControl(PSECURITY_DESCRIPTOR,PUCHAR);
2102 BOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL);
2103 BOOL WINAPI SetStdHandle(DWORD,HANDLE);
2104 #define SetSwapAreaSize(w) (w)
2105 BOOL WINAPI SetSystemPowerState(BOOL,BOOL);
2106 BOOL WINAPI SetSystemTime(const SYSTEMTIME*);
2107 BOOL WINAPI SetSystemTimeAdjustment(DWORD,BOOL);
2108 DWORD WINAPI SetTapeParameters(HANDLE,DWORD,PVOID);
2109 DWORD WINAPI SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL);
2110 DWORD_PTR WINAPI SetThreadAffinityMask(HANDLE,DWORD_PTR);
2111 BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT*);
2112 DWORD WINAPI SetThreadIdealProcessor(HANDLE,DWORD);
2113 BOOL WINAPI SetThreadPriority(HANDLE,int);
2114 BOOL WINAPI SetThreadPriorityBoost(HANDLE,BOOL);
2115 BOOL WINAPI SetThreadToken (PHANDLE,HANDLE);
2116 BOOL WINAPI SetTimeZoneInformation(const TIME_ZONE_INFORMATION *);
2117 BOOL WINAPI SetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,DWORD);
2118 LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER);
2119 BOOL WINAPI SetupComm(HANDLE,DWORD,DWORD);
2120 BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
2121 BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
2122 #if (_WIN32_WINNT >= 0x0500)
2123 BOOL WINAPI SetVolumeMountPointA(LPCSTR,LPCSTR);
2124 BOOL WINAPI SetVolumeMountPointW(LPCWSTR,LPCWSTR);
2125 #endif
2126 BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,PVOID,BOOL);
2127 DWORD WINAPI SignalObjectAndWait(HANDLE,HANDLE,DWORD,BOOL);
2128 DWORD WINAPI SizeofResource(HINSTANCE,HRSRC);
2129 void WINAPI Sleep(DWORD);
2130 #if (_WIN32_WINNT >= 0x0600)
2131 BOOL WINAPI SleepConditionVariableCS(PCONDITION_VARIABLE,PCRITICAL_SECTION,DWORD);
2132 BOOL WINAPI SleepConditionVariableSRW(PCONDITION_VARIABLE,PSRWLOCK,DWORD,ULONG);
2133 #endif
2134 DWORD WINAPI SleepEx(DWORD,BOOL);
2135 DWORD WINAPI SuspendThread(HANDLE);
2136 void WINAPI SwitchToFiber(PVOID);
2137 BOOL WINAPI SwitchToThread(void);
2138 BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME);
2139 BOOL WINAPI SystemTimeToTzSpecificLocalTime(CONST TIME_ZONE_INFORMATION*,CONST SYSTEMTIME*,LPSYSTEMTIME);
2140 BOOL WINAPI TerminateProcess(HANDLE,UINT);
2141 BOOL WINAPI TerminateThread(HANDLE,DWORD);
2142 DWORD WINAPI TlsAlloc(VOID);
2143 BOOL WINAPI TlsFree(DWORD);
2144 PVOID WINAPI TlsGetValue(DWORD);
2145 BOOL WINAPI TlsSetValue(DWORD,PVOID);
2146 BOOL WINAPI TransactNamedPipe(HANDLE,PVOID,DWORD,PVOID,DWORD,PDWORD,LPOVERLAPPED);
2147 BOOL WINAPI TransmitCommChar(HANDLE,char);
2148 BOOL WINAPI TryEnterCriticalSection(LPCRITICAL_SECTION);
2149 BOOL WINAPI TzSpecificLocalTimeToSystemTime(LPTIME_ZONE_INFORMATION,LPSYSTEMTIME,LPSYSTEMTIME);
2150 LONG WINAPI UnhandledExceptionFilter(LPEXCEPTION_POINTERS);
2151 BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
2152 BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
2153 #define UnlockResource(h) (h)
2154 #define UnlockSegment(w) GlobalUnfix((HANDLE)(w)) /* Obsolete: Has no effect. */
2155 BOOL WINAPI UnmapViewOfFile(LPCVOID);
2156 #if (_WIN32_WINNT >= 0x0500)
2157 BOOL WINAPI UnregisterWait(HANDLE);
2158 BOOL WINAPI UnregisterWaitEx(HANDLE,HANDLE);
2159 #endif
2160 BOOL WINAPI UpdateResourceA(HANDLE,LPCSTR,LPCSTR,WORD,PVOID,DWORD);
2161 BOOL WINAPI UpdateResourceW(HANDLE,LPCWSTR,LPCWSTR,WORD,PVOID,DWORD);
2162 BOOL WINAPI VerifyVersionInfoA(LPOSVERSIONINFOEXA,DWORD,DWORDLONG);
2163 BOOL WINAPI VerifyVersionInfoW(LPOSVERSIONINFOEXW,DWORD,DWORDLONG);
2164 PVOID WINAPI VirtualAlloc(PVOID,SIZE_T,DWORD,DWORD);
2165 PVOID WINAPI VirtualAllocEx(HANDLE,PVOID,SIZE_T,DWORD,DWORD);
2166 BOOL WINAPI VirtualFree(PVOID,SIZE_T,DWORD);
2167 BOOL WINAPI VirtualFreeEx(HANDLE,PVOID,SIZE_T,DWORD);
2168 BOOL WINAPI VirtualLock(PVOID,SIZE_T);
2169 BOOL WINAPI VirtualProtect(PVOID,SIZE_T,DWORD,PDWORD);
2170 BOOL WINAPI VirtualProtectEx(HANDLE,PVOID,SIZE_T,DWORD,PDWORD);
2171 DWORD WINAPI VirtualQuery(LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T);
2172 DWORD WINAPI VirtualQueryEx(HANDLE,LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T);
2173 BOOL WINAPI VirtualUnlock(PVOID,SIZE_T);
2174 BOOL WINAPI WaitCommEvent(HANDLE,PDWORD,LPOVERLAPPED);
2175 BOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT,DWORD);
2176 DWORD WINAPI WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD);
2177 DWORD WINAPI WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL);
2178 DWORD WINAPI WaitForSingleObject(HANDLE,DWORD);
2179 DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
2180 BOOL WINAPI WaitNamedPipeA(LPCSTR,DWORD);
2181 BOOL WINAPI WaitNamedPipeW(LPCWSTR,DWORD);
2182 #if (_WIN32_WINNT >= 0x0600)
2183 VOID WINAPI WakeConditionVariable(PCONDITION_VARIABLE);
2184 VOID WINAPI WakeAllConditionVariable(PCONDITION_VARIABLE);
2185 #endif
2186 BOOL WINAPI WinLoadTrustProvider(GUID*);
2187 BOOL WINAPI WriteFile(HANDLE,PCVOID,DWORD,PDWORD,LPOVERLAPPED);
2188 BOOL WINAPI WriteFileEx(HANDLE,PCVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
2189 BOOL WINAPI WriteFileGather(HANDLE,FILE_SEGMENT_ELEMENT*,DWORD,LPDWORD,LPOVERLAPPED);
2190 BOOL WINAPI WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR);
2191 BOOL WINAPI WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR);
2192 BOOL WINAPI WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
2193 BOOL WINAPI WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
2194 BOOL WINAPI WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR);
2195 BOOL WINAPI WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR);
2196 BOOL WINAPI WriteProcessMemory(HANDLE,LPVOID,LPCVOID,SIZE_T,SIZE_T*);
2197 BOOL WINAPI WriteProfileSectionA(LPCSTR,LPCSTR);
2198 BOOL WINAPI WriteProfileSectionW(LPCWSTR,LPCWSTR);
2199 BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
2200 BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
2201 DWORD WINAPI WriteTapemark(HANDLE,DWORD,DWORD,BOOL);
2202 #define Yield()
2203 #if (_WIN32_WINNT >= 0x0501)
2204 BOOL WINAPI ZombifyActCtx(HANDLE);
2205 #endif
2206 #if (_WIN32_WINNT >= 0x0500)
2207 BOOL WINAPI AllocateUserPhysicalPages(HANDLE,PULONG_PTR,PULONG_PTR);
2208 BOOL WINAPI FreeUserPhysicalPages(HANDLE,PULONG_PTR,PULONG_PTR);
2209 BOOL WINAPI MapUserPhysicalPages(PVOID,ULONG_PTR,PULONG_PTR);
2210 BOOL WINAPI MapUserPhysicalPagesScatter(PVOID*,ULONG_PTR,PULONG_PTR);
2211 #endif
2212
2213 #ifdef UNICODE
2214 typedef STARTUPINFOW STARTUPINFO,*LPSTARTUPINFO;
2215 typedef WIN32_FIND_DATAW WIN32_FIND_DATA,*LPWIN32_FIND_DATA;
2216 typedef HW_PROFILE_INFOW HW_PROFILE_INFO,*LPHW_PROFILE_INFO;
2217 typedef ENUMRESLANGPROCW ENUMRESLANGPROC;
2218 typedef ENUMRESNAMEPROCW ENUMRESNAMEPROC;
2219 typedef ENUMRESTYPEPROCW ENUMRESTYPEPROC;
2220 #if (_WIN32_WINNT >= 0x0501)
2221 typedef ACTCTXW ACTCTX,*PACTCTX;
2222 typedef PCACTCTXW PCACTCTX;
2223 #endif
2224 #define AccessCheckAndAuditAlarm AccessCheckAndAuditAlarmW
2225 #define AddAtom AddAtomW
2226 #define BackupEventLog BackupEventLogW
2227 #define BeginUpdateResource BeginUpdateResourceW
2228 #define BuildCommDCB BuildCommDCBW
2229 #define BuildCommDCBAndTimeouts BuildCommDCBAndTimeoutsW
2230 #define CallNamedPipe CallNamedPipeW
2231 #if (_WIN32_WINNT >= 0x0501)
2232 #define CheckNameLegalDOS8Dot3 CheckNameLegalDOS8Dot3W
2233 #endif
2234 #define ClearEventLog ClearEventLogW
2235 #define CommConfigDialog CommConfigDialogW
2236 #define CopyFile CopyFileW
2237 #define CopyFileEx CopyFileExW
2238 #if (_WIN32_WINNT >= 0x0501)
2239 #define CreateActCtx CreateActCtxW
2240 #endif
2241 #define CreateDirectory CreateDirectoryW
2242 #define CreateDirectoryEx CreateDirectoryExW
2243 #define CreateEvent CreateEventW
2244 #define CreateFile CreateFileW
2245 #define CreateFileMapping CreateFileMappingW
2246 #if (_WIN32_WINNT >= 0x0500)
2247 #define CreateHardLink CreateHardLinkW
2248 #define CreateJobObject CreateJobObjectW
2249 #endif
2250 #define CreateMailslot CreateMailslotW
2251 #define CreateMutex CreateMutexW
2252 #define CreateNamedPipe CreateNamedPipeW
2253 #define CreateProcess CreateProcessW
2254 #define CreateProcessAsUser CreateProcessAsUserW
2255 #define CreateSemaphore CreateSemaphoreW
2256 #define CreateWaitableTimer CreateWaitableTimerW
2257 #define DefineDosDevice DefineDosDeviceW
2258 #define DeleteFile DeleteFileW
2259 #if (_WIN32_WINNT >= 0x0500)
2260 #define DeleteVolumeMountPoint DeleteVolumeMountPointW
2261 #define DnsHostnameToComputerName DnsHostnameToComputerNameW
2262 #endif
2263 #define EncryptFile EncryptFileW
2264 #define EndUpdateResource EndUpdateResourceW
2265 #define EnumResourceLanguages EnumResourceLanguagesW
2266 #define EnumResourceNames EnumResourceNamesW
2267 #define EnumResourceTypes EnumResourceTypesW
2268 #define ExpandEnvironmentStrings ExpandEnvironmentStringsW
2269 #define FatalAppExit FatalAppExitW
2270 #define FileEncryptionStatus FileEncryptionStatusW
2271 #if (_WIN32_WINNT >= 0x0501)
2272 #define FindActCtxSectionString FindActCtxSectionStringW
2273 #endif
2274 #define FindAtom FindAtomW
2275 #define FindFirstChangeNotification FindFirstChangeNotificationW
2276 #define FindFirstFile FindFirstFileW
2277 #define FindFirstFileEx FindFirstFileExW
2278 #if (_WIN32_WINNT >= 0x0500)
2279 #define FindFirstVolume FindFirstVolumeW
2280 #define FindFirstVolumeMountPoint FindFirstVolumeMountPointW
2281 #endif
2282 #define FindNextFile FindNextFileW
2283 #if (_WIN32_WINNT >= 0x0500)
2284 #define FindNextVolume FindNextVolumeW
2285 #define FindNextVolumeMountPoint FindNextVolumeMountPointW
2286 #endif
2287 #define FindResource FindResourceW
2288 #define FindResourceEx FindResourceExW
2289 #define FormatMessage FormatMessageW
2290 #define FreeEnvironmentStrings FreeEnvironmentStringsW
2291 #define GetAtomName GetAtomNameW
2292 #define GetBinaryType GetBinaryTypeW
2293 #define GetCommandLine GetCommandLineW
2294 #define GetCompressedFileSize GetCompressedFileSizeW
2295 #define GetComputerName GetComputerNameW
2296 #define GetCurrentDirectory GetCurrentDirectoryW
2297 #define GetDefaultCommConfig GetDefaultCommConfigW
2298 #define GetDiskFreeSpace GetDiskFreeSpaceW
2299 #define GetDiskFreeSpaceEx GetDiskFreeSpaceExW
2300 #if (_WIN32_WINNT >= 0x0502)
2301 #define GetDllDirectory GetDllDirectoryW
2302 #endif
2303 #define GetDriveType GetDriveTypeW
2304 #define GetEnvironmentStrings GetEnvironmentStringsW
2305 #define GetEnvironmentVariable GetEnvironmentVariableW
2306 #define GetFileAttributes GetFileAttributesW
2307 #define GetFileAttributesEx GetFileAttributesExW
2308 #define GetFileSecurity GetFileSecurityW
2309 #if (_WIN32_WINNT >= 0x0600)
2310 #define GetFinalPathNameByHandle GetFinalPathNameByHandleW
2311 #endif
2312 #define GetFullPathName GetFullPathNameW
2313 #define GetLogicalDriveStrings GetLogicalDriveStringsW
2314 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
2315 #define GetLongPathName GetLongPathNameW
2316 #endif
2317 #define GetModuleFileName GetModuleFileNameW
2318 #define GetModuleHandle GetModuleHandleW
2319 #if (_WIN32_WINNT >= 0x0500)
2320 #define GetModuleHandleEx GetModuleHandleExW
2321 #endif
2322 #define GetNamedPipeHandleState GetNamedPipeHandleStateW
2323 #define GetPrivateProfileInt GetPrivateProfileIntW
2324 #define GetPrivateProfileSection GetPrivateProfileSectionW
2325 #define GetPrivateProfileSectionNames GetPrivateProfileSectionNamesW
2326 #define GetPrivateProfileString GetPrivateProfileStringW
2327 #define GetPrivateProfileStruct GetPrivateProfileStructW
2328 #define GetProfileInt GetProfileIntW
2329 #define GetProfileSection GetProfileSectionW
2330 #define GetProfileString GetProfileStringW
2331 #define GetShortPathName GetShortPathNameW
2332 #define GetStartupInfo GetStartupInfoW
2333 #define GetSystemDirectory GetSystemDirectoryW
2334 #if (_WIN32_WINNT >= 0x0500)
2335 #define GetSystemWindowsDirectory GetSystemWindowsDirectoryW
2336 #endif
2337 #if (_WIN32_WINNT >= 0x0501)
2338 #define GetSystemWow64Directory GetSystemWow64DirectoryW
2339 #endif
2340 #define GetTempFileName GetTempFileNameW
2341 #define GetTempPath GetTempPathW
2342 #define GetUserName GetUserNameW
2343 #define GetVersionEx GetVersionExW
2344 #define GetVolumeInformation GetVolumeInformationW
2345 #define GetVolumeNameForVolumeMountPoint GetVolumeNameForVolumeMountPointW
2346 #define GetVolumePathName GetVolumePathNameW
2347 #define GetVolumePathNamesForVolumeName GetVolumePathNamesForVolumeNameW
2348 #define GetWindowsDirectory GetWindowsDirectoryW
2349 #define GlobalAddAtom GlobalAddAtomW
2350 #define GlobalFindAtom GlobalFindAtomW
2351 #define GlobalGetAtomName GlobalGetAtomNameW
2352 #define IsBadStringPtr IsBadStringPtrW
2353 #define LoadLibrary LoadLibraryW
2354 #define LoadLibraryEx LoadLibraryExW
2355 #define LogonUser LogonUserW
2356 #define LookupAccountName LookupAccountNameW
2357 #define LookupAccountSid LookupAccountSidW
2358 #define LookupPrivilegeDisplayName LookupPrivilegeDisplayNameW
2359 #define LookupPrivilegeName LookupPrivilegeNameW
2360 #define LookupPrivilegeValue LookupPrivilegeValueW
2361 #define lstrcat lstrcatW
2362 #define lstrcmp lstrcmpW
2363 #define lstrcmpi lstrcmpiW
2364 #define lstrcpy lstrcpyW
2365 #define lstrcpyn lstrcpynW
2366 #define lstrlen lstrlenW
2367 #define MoveFile MoveFileW
2368 #define MoveFileEx MoveFileExW
2369 #define ObjectCloseAuditAlarm ObjectCloseAuditAlarmW
2370 #define ObjectDeleteAuditAlarm ObjectDeleteAuditAlarmW
2371 #define ObjectOpenAuditAlarm ObjectOpenAuditAlarmW
2372 #define ObjectPrivilegeAuditAlarm ObjectPrivilegeAuditAlarmW
2373 #define OpenBackupEventLog OpenBackupEventLogW
2374 #define OpenEvent OpenEventW
2375 #define OpenEventLog OpenEventLogW
2376 #define OpenFileMapping OpenFileMappingW
2377 #define OpenMutex OpenMutexW
2378 #define OpenSemaphore OpenSemaphoreW
2379 #define OutputDebugString OutputDebugStringW
2380 #define PrivilegedServiceAuditAlarm PrivilegedServiceAuditAlarmW
2381 #define QueryDosDevice QueryDosDeviceW
2382 #define ReadEventLog ReadEventLogW
2383 #define RegisterEventSource RegisterEventSourceW
2384 #define RemoveDirectory RemoveDirectoryW
2385 #if (_WIN32_WINNT >= 0x0500)
2386 #define ReplaceFile ReplaceFileW
2387 #endif
2388 #define ReportEvent ReportEventW
2389 #define SearchPath SearchPathW
2390 #define SetComputerName SetComputerNameW
2391 #define SetComputerNameEx SetComputerNameExW
2392 #define SetCurrentDirectory SetCurrentDirectoryW
2393 #define SetDefaultCommConfig SetDefaultCommConfigW
2394 #if (_WIN32_WINNT >= 0x0502)
2395 #define SetDllDirectory SetDllDirectoryW
2396 #endif
2397 #define SetEnvironmentVariable SetEnvironmentVariableW
2398 #define SetFileAttributes SetFileAttributesW
2399 #define SetFileSecurity SetFileSecurityW
2400 #if (_WIN32_WINNT >= 0x0501)
2401 #define SetFileShortName SetFileShortNameW
2402 #endif
2403 #if (_WIN32_WINNT >= 0x0502)
2404 #define SetFirmwareEnvironmentVariable SetFirmwareEnvironmentVariableW
2405 #endif
2406 #define SetVolumeLabel SetVolumeLabelW
2407 #define SetVolumeMountPoint SetVolumeMountPointW
2408 #define UpdateResource UpdateResourceW
2409 #define VerifyVersionInfo VerifyVersionInfoW
2410 #define WaitNamedPipe WaitNamedPipeW
2411 #define WritePrivateProfileSection WritePrivateProfileSectionW
2412 #define WritePrivateProfileString WritePrivateProfileStringW
2413 #define WritePrivateProfileStruct WritePrivateProfileStructW
2414 #define WriteProfileSection WriteProfileSectionW
2415 #define WriteProfileString WriteProfileStringW
2416 #else
2417 typedef STARTUPINFOA STARTUPINFO,*LPSTARTUPINFO;
2418 typedef WIN32_FIND_DATAA WIN32_FIND_DATA,*LPWIN32_FIND_DATA;
2419 typedef HW_PROFILE_INFOA HW_PROFILE_INFO,*LPHW_PROFILE_INFO;
2420 #if (_WIN32_WINNT >= 0x0501)
2421 typedef ACTCTXA ACTCTX,*PACTCTX;
2422 typedef PCACTCTXA PCACTCTX;
2423 #endif
2424 typedef ENUMRESLANGPROCA ENUMRESLANGPROC;
2425 typedef ENUMRESNAMEPROCA ENUMRESNAMEPROC;
2426 typedef ENUMRESTYPEPROCA ENUMRESTYPEPROC;
2427 #define AccessCheckAndAuditAlarm AccessCheckAndAuditAlarmA
2428 #define AddAtom AddAtomA
2429 #define BackupEventLog BackupEventLogA
2430 #define BeginUpdateResource BeginUpdateResourceA
2431 #define BuildCommDCB BuildCommDCBA
2432 #define BuildCommDCBAndTimeouts BuildCommDCBAndTimeoutsA
2433 #define CallNamedPipe CallNamedPipeA
2434 #if (_WIN32_WINNT >= 0x0501)
2435 #define CheckNameLegalDOS8Dot3 CheckNameLegalDOS8Dot3A
2436 #endif
2437 #define ClearEventLog ClearEventLogA
2438 #define CommConfigDialog CommConfigDialogA
2439 #define CopyFile CopyFileA
2440 #define CopyFileEx CopyFileExA
2441 #if (_WIN32_WINNT >= 0x0501)
2442 #define CreateActCtx CreateActCtxA
2443 #endif
2444 #define CreateDirectory CreateDirectoryA
2445 #define CreateDirectoryEx CreateDirectoryExA
2446 #define CreateEvent CreateEventA
2447 #define CreateFile CreateFileA
2448 #define CreateFileMapping CreateFileMappingA
2449 #if (_WIN32_WINNT >= 0x0500)
2450 #define CreateHardLink CreateHardLinkA
2451 #define CreateJobObject CreateJobObjectA
2452 #endif
2453 #define CreateMailslot CreateMailslotA
2454 #define CreateMutex CreateMutexA
2455 #define CreateNamedPipe CreateNamedPipeA
2456 #define CreateProcess CreateProcessA
2457 #define CreateProcessAsUser CreateProcessAsUserA
2458 #define CreateSemaphore CreateSemaphoreA
2459 #define CreateWaitableTimer CreateWaitableTimerA
2460 #define DefineDosDevice DefineDosDeviceA
2461 #define DeleteFile DeleteFileA
2462 #if (_WIN32_WINNT >= 0x0500)
2463 #define DeleteVolumeMountPoint DeleteVolumeMountPointA
2464 #define DnsHostnameToComputerName DnsHostnameToComputerNameA
2465 #endif
2466 #define EncryptFile EncryptFileA
2467 #define EndUpdateResource EndUpdateResourceA
2468 #define EnumResourceLanguages EnumResourceLanguagesA
2469 #define EnumResourceNames EnumResourceNamesA
2470 #define EnumResourceTypes EnumResourceTypesA
2471 #define ExpandEnvironmentStrings ExpandEnvironmentStringsA
2472 #define FatalAppExit FatalAppExitA
2473 #define FileEncryptionStatus FileEncryptionStatusA
2474 #if (_WIN32_WINNT >= 0x0501)
2475 #define FindActCtxSectionString FindActCtxSectionStringA
2476 #endif
2477 #define FindAtom FindAtomA
2478 #define FindFirstChangeNotification FindFirstChangeNotificationA
2479 #define FindFirstFile FindFirstFileA
2480 #define FindFirstFileEx FindFirstFileExA
2481 #if (_WIN32_WINNT >= 0x0500)
2482 #define FindFirstVolume FindFirstVolumeA
2483 #define FindFirstVolumeMountPoint FindFirstVolumeMountPointA
2484 #endif
2485 #define FindNextFile FindNextFileA
2486 #if (_WIN32_WINNT >= 0x0500)
2487 #define FindNextVolume FindNextVolumeA
2488 #define FindNextVolumeMountPoint FindNextVolumeMountPointA
2489 #endif
2490 #define FindResource FindResourceA
2491 #define FindResourceEx FindResourceExA
2492 #define FormatMessage FormatMessageA
2493 #define FreeEnvironmentStrings FreeEnvironmentStringsA
2494 #define GetAtomName GetAtomNameA
2495 #define GetBinaryType GetBinaryTypeA
2496 #define GetCommandLine GetCommandLineA
2497 #define GetComputerName GetComputerNameA
2498 #define GetCompressedFileSize GetCompressedFileSizeA
2499 #define GetCurrentDirectory GetCurrentDirectoryA
2500 #define GetDefaultCommConfig GetDefaultCommConfigA
2501 #define GetDiskFreeSpace GetDiskFreeSpaceA
2502 #define GetDiskFreeSpaceEx GetDiskFreeSpaceExA
2503 #if (_WIN32_WINNT >= 0x0502)
2504 #define GetDllDirectory GetDllDirectoryA
2505 #endif
2506 #define GetDriveType GetDriveTypeA
2507 #define GetEnvironmentStringsA GetEnvironmentStrings
2508 #define GetEnvironmentVariable GetEnvironmentVariableA
2509 #define GetFileAttributes GetFileAttributesA
2510 #define GetFileAttributesEx GetFileAttributesExA
2511 #define GetFileSecurity GetFileSecurityA
2512 #if (_WIN32_WINNT >= 0x0600)
2513 #define GetFinalPathNameByHandle GetFinalPathNameByHandleA
2514 #endif
2515 #define GetFullPathName GetFullPathNameA
2516 #define GetLogicalDriveStrings GetLogicalDriveStringsA
2517 #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
2518 #define GetLongPathName GetLongPathNameA
2519 #endif
2520 #define GetNamedPipeHandleState GetNamedPipeHandleStateA
2521 #define GetModuleHandle GetModuleHandleA
2522 #if (_WIN32_WINNT >= 0x0500)
2523 #define GetModuleHandleEx GetModuleHandleExA
2524 #endif
2525 #define GetModuleFileName GetModuleFileNameA
2526 #define GetPrivateProfileInt GetPrivateProfileIntA
2527 #define GetPrivateProfileSection GetPrivateProfileSectionA
2528 #define GetPrivateProfileSectionNames GetPrivateProfileSectionNamesA
2529 #define GetPrivateProfileString GetPrivateProfileStringA
2530 #define GetPrivateProfileStruct GetPrivateProfileStructA
2531 #define GetProfileInt GetProfileIntA
2532 #define GetProfileSection GetProfileSectionA
2533 #define GetProfileString GetProfileStringA
2534 #define GetShortPathName GetShortPathNameA
2535 #define GetStartupInfo GetStartupInfoA
2536 #define GetSystemDirectory GetSystemDirectoryA
2537 #if (_WIN32_WINNT >= 0x0500)
2538 #define GetSystemWindowsDirectory GetSystemWindowsDirectoryA
2539 #endif
2540 #if (_WIN32_WINNT >= 0x0501)
2541 #define GetSystemWow64Directory GetSystemWow64DirectoryA
2542 #endif
2543 #define GetTempFileName GetTempFileNameA
2544 #define GetTempPath GetTempPathA
2545 #define GetUserName GetUserNameA
2546 #define GetVersionEx GetVersionExA
2547 #define GetVolumeInformation GetVolumeInformationA
2548 #define GetVolumeNameForVolumeMountPoint GetVolumeNameForVolumeMountPointA
2549 #define GetVolumePathName GetVolumePathNameA
2550 #define GetVolumePathNamesForVolumeName GetVolumePathNamesForVolumeNameA
2551 #define GetWindowsDirectory GetWindowsDirectoryA
2552 #define GlobalAddAtom GlobalAddAtomA
2553 #define GlobalFindAtom GlobalFindAtomA
2554 #define GlobalGetAtomName GlobalGetAtomNameA
2555 #define IsBadStringPtr IsBadStringPtrA
2556 #define LoadLibrary LoadLibraryA
2557 #define LoadLibraryEx LoadLibraryExA
2558 #define LogonUser LogonUserA
2559 #define LookupAccountName LookupAccountNameA
2560 #define LookupAccountSid LookupAccountSidA
2561 #define LookupPrivilegeDisplayName LookupPrivilegeDisplayNameA
2562 #define LookupPrivilegeName LookupPrivilegeNameA
2563 #define LookupPrivilegeValue LookupPrivilegeValueA
2564 #define lstrcat lstrcatA
2565 #define lstrcmp lstrcmpA
2566 #define lstrcmpi lstrcmpiA
2567 #define lstrcpy lstrcpyA
2568 #define lstrcpyn lstrcpynA
2569 #define lstrlen lstrlenA
2570 #define MoveFile MoveFileA
2571 #define MoveFileEx MoveFileExA
2572 #define ObjectCloseAuditAlarm ObjectCloseAuditAlarmA
2573 #define ObjectDeleteAuditAlarm ObjectDeleteAuditAlarmA
2574 #define ObjectOpenAuditAlarm ObjectOpenAuditAlarmA
2575 #define ObjectPrivilegeAuditAlarm ObjectPrivilegeAuditAlarmA
2576 #define OpenBackupEventLog OpenBackupEventLogA
2577 #define OpenEvent OpenEventA
2578 #define OpenEventLog OpenEventLogA
2579 #define OpenFileMapping OpenFileMappingA
2580 #define OpenMutex OpenMutexA
2581 #define OpenSemaphore OpenSemaphoreA
2582 #define OutputDebugString OutputDebugStringA
2583 #define PrivilegedServiceAuditAlarm PrivilegedServiceAuditAlarmA
2584 #define QueryDosDevice QueryDosDeviceA
2585 #define ReadEventLog ReadEventLogA
2586 #define RegisterEventSource RegisterEventSourceA
2587 #define RemoveDirectory RemoveDirectoryA
2588 #if (_WIN32_WINNT >= 0x0500)
2589 #define ReplaceFile ReplaceFileA
2590 #endif
2591 #define ReportEvent ReportEventA
2592 #define SearchPath SearchPathA
2593 #define SetComputerName SetComputerNameA
2594 #define SetComputerNameEx SetComputerNameExA
2595 #define SetCurrentDirectory SetCurrentDirectoryA
2596 #define SetDefaultCommConfig SetDefaultCommConfigA
2597 #if (_WIN32_WINNT >= 0x0502)
2598 #define SetDllDirectory SetDllDirectoryA
2599 #endif
2600 #define SetEnvironmentVariable SetEnvironmentVariableA
2601 #define SetFileAttributes SetFileAttributesA
2602 #define SetFileSecurity SetFileSecurityA
2603 #if (_WIN32_WINNT >= 0x0501)
2604 #define SetFileShortName SetFileShortNameA
2605 #endif
2606 #if (_WIN32_WINNT >= 0x0502)
2607 #define SetFirmwareEnvironmentVariable SetFirmwareEnvironmentVariableA
2608 #endif
2609 #define SetVolumeLabel SetVolumeLabelA
2610 #define SetVolumeMountPoint SetVolumeMountPointA
2611 #define UpdateResource UpdateResourceA
2612 #define VerifyVersionInfo VerifyVersionInfoA
2613 #define WaitNamedPipe WaitNamedPipeA
2614 #define WritePrivateProfileSection WritePrivateProfileSectionA
2615 #define WritePrivateProfileString WritePrivateProfileStringA
2616 #define WritePrivateProfileStruct WritePrivateProfileStructA
2617 #define WriteProfileSection WriteProfileSectionA
2618 #define WriteProfileString WriteProfileStringA
2619 #endif
2620 #endif
2621 #ifdef __cplusplus
2622 }
2623 #endif
2624 #endif /* _WINBASE_H */