2 * Internal NT APIs and data structures
4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_WINTERNL_H
22 #define __WINE_WINTERNL_H
29 #endif /* defined(__cplusplus) */
32 /**********************************************************************
33 * Fundamental types and data structures
36 #ifndef WINE_NTSTATUS_DECLARED
37 #define WINE_NTSTATUS_DECLARED
38 typedef LONG NTSTATUS
;
41 typedef const char *PCSZ
;
44 typedef CSHORT
*PCSHORT
;
46 #ifndef __STRING_DEFINED__
47 #define __STRING_DEFINED__
48 typedef struct _STRING
{
55 typedef STRING ANSI_STRING
;
56 typedef PSTRING PANSI_STRING
;
57 typedef const STRING
*PCANSI_STRING
;
59 typedef STRING OEM_STRING
;
60 typedef PSTRING POEM_STRING
;
61 typedef const STRING
*PCOEM_STRING
;
63 #ifndef __UNICODE_STRING_DEFINED__
64 #define __UNICODE_STRING_DEFINED__
65 typedef struct _UNICODE_STRING
{
66 USHORT Length
; /* bytes */
67 USHORT MaximumLength
; /* bytes */
69 } UNICODE_STRING
, *PUNICODE_STRING
;
72 typedef const UNICODE_STRING
*PCUNICODE_STRING
;
76 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
77 typedef struct _FILETIME
79 #ifdef WORDS_BIGENDIAN
86 } FILETIME
, *PFILETIME
, *LPFILETIME
;
87 #endif /* _FILETIME_ */
90 * RTL_SYSTEM_TIME and RTL_TIME_ZONE_INFORMATION are the same as
91 * the SYSTEMTIME and TIME_ZONE_INFORMATION structures defined
92 * in winbase.h, however we need to define them separately so
93 * winternl.h doesn't depend on winbase.h. They are used by
94 * RtlQueryTimeZoneInformation and RtlSetTimeZoneInformation.
95 * The names are guessed; if anybody knows the real names, let me know.
97 typedef struct _RTL_SYSTEM_TIME
{
106 } RTL_SYSTEM_TIME
, *PRTL_SYSTEM_TIME
;
108 typedef struct _RTL_TIME_ZONE_INFORMATION
{
110 WCHAR StandardName
[32];
111 RTL_SYSTEM_TIME StandardDate
;
113 WCHAR DaylightName
[32];
114 RTL_SYSTEM_TIME DaylightDate
;
116 } RTL_TIME_ZONE_INFORMATION
, *PRTL_TIME_ZONE_INFORMATION
;
118 typedef struct _RTL_TIME_DYNAMIC_ZONE_INFORMATION
121 WCHAR StandardName
[32];
122 RTL_SYSTEM_TIME StandardDate
;
124 WCHAR DaylightName
[32];
125 RTL_SYSTEM_TIME DaylightDate
;
127 WCHAR TimeZoneKeyName
[128];
128 BOOLEAN DynamicDaylightTimeDisabled
;
129 } RTL_DYNAMIC_TIME_ZONE_INFORMATION
, *PRTL_DYNAMIC_TIME_ZONE_INFORMATION
;
131 typedef struct _CLIENT_ID
133 HANDLE UniqueProcess
;
135 } CLIENT_ID
, *PCLIENT_ID
;
137 typedef struct _CURDIR
139 UNICODE_STRING DosPath
;
143 typedef struct RTL_DRIVE_LETTER_CURDIR
148 UNICODE_STRING DosPath
;
149 } RTL_DRIVE_LETTER_CURDIR
, *PRTL_DRIVE_LETTER_CURDIR
;
151 typedef struct _RTL_RELATIVE_NAME
153 UNICODE_STRING RelativeName
;
154 HANDLE ContainerDirectory
;
156 } RTL_RELATIVE_NAME
, *PRTL_RELATIVE_NAME
;
158 typedef struct tagRTL_BITMAP
{
159 ULONG SizeOfBitMap
; /* Number of bits in the bitmap */
160 PULONG Buffer
; /* Bitmap data, assumed sized to a DWORD boundary */
161 } RTL_BITMAP
, *PRTL_BITMAP
;
163 typedef const RTL_BITMAP
*PCRTL_BITMAP
;
165 typedef struct tagRTL_BITMAP_RUN
{
166 ULONG StartingIndex
; /* Bit position at which run starts */
167 ULONG NumberOfBits
; /* Size of the run in bits */
168 } RTL_BITMAP_RUN
, *PRTL_BITMAP_RUN
;
170 typedef const RTL_BITMAP_RUN
*PCRTL_BITMAP_RUN
;
172 typedef struct _RTL_USER_PROCESS_PARAMETERS
174 ULONG AllocationSize
;
178 HANDLE ConsoleHandle
;
183 CURDIR CurrentDirectory
;
184 UNICODE_STRING DllPath
;
185 UNICODE_STRING ImagePathName
;
186 UNICODE_STRING CommandLine
;
194 ULONG dwFillAttribute
;
197 UNICODE_STRING WindowTitle
;
198 UNICODE_STRING Desktop
;
199 UNICODE_STRING ShellInfo
;
200 UNICODE_STRING RuntimeInfo
;
201 RTL_DRIVE_LETTER_CURDIR DLCurrentDirectory
[0x20];
202 } RTL_USER_PROCESS_PARAMETERS
, *PRTL_USER_PROCESS_PARAMETERS
;
204 /* value for Flags field (FIXME: not the correct name) */
205 #define PROCESS_PARAMS_FLAG_NORMALIZED 1
207 typedef struct _PEB_LDR_DATA
212 LIST_ENTRY InLoadOrderModuleList
;
213 LIST_ENTRY InMemoryOrderModuleList
;
214 LIST_ENTRY InInitializationOrderModuleList
;
215 PVOID EntryInProgress
;
216 BOOLEAN ShutdownInProgress
;
217 HANDLE ShutdownThreadId
;
218 } PEB_LDR_DATA
, *PPEB_LDR_DATA
;
220 typedef struct _GDI_TEB_BATCH
227 typedef struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME
229 struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME
*Previous
;
230 struct _ACTIVATION_CONTEXT
*ActivationContext
;
232 } RTL_ACTIVATION_CONTEXT_STACK_FRAME
, *PRTL_ACTIVATION_CONTEXT_STACK_FRAME
;
234 typedef struct _ACTIVATION_CONTEXT_STACK
237 ULONG NextCookieSequenceNumber
;
238 RTL_ACTIVATION_CONTEXT_STACK_FRAME
*ActiveFrame
;
239 LIST_ENTRY FrameListCache
;
240 } ACTIVATION_CONTEXT_STACK
, *PACTIVATION_CONTEXT_STACK
;
242 typedef struct _TEB_ACTIVE_FRAME_CONTEXT
245 const char *FrameName
;
246 } TEB_ACTIVE_FRAME_CONTEXT
, *PTEB_ACTIVE_FRAME_CONTEXT
;
248 typedef struct _TEB_ACTIVE_FRAME_CONTEXT_EX
250 TEB_ACTIVE_FRAME_CONTEXT BasicContext
;
251 const char *SourceLocation
;
252 } TEB_ACTIVE_FRAME_CONTEXT_EX
, *PTEB_ACTIVE_FRAME_CONTEXT_EX
;
254 typedef struct _TEB_ACTIVE_FRAME
257 struct _TEB_ACTIVE_FRAME
*Previous
;
258 TEB_ACTIVE_FRAME_CONTEXT
*Context
;
259 } TEB_ACTIVE_FRAME
, *PTEB_ACTIVE_FRAME
;
261 typedef struct _TEB_ACTIVE_FRAME_EX
263 TEB_ACTIVE_FRAME BasicFrame
;
264 void *ExtensionIdentifier
;
265 } TEB_ACTIVE_FRAME_EX
, *PTEB_ACTIVE_FRAME_EX
;
267 #define TEB_ACTIVE_FRAME_CONTEXT_FLAG_EXTENDED 0x00000001
268 #define TEB_ACTIVE_FRAME_FLAG_EXTENDED 0x00000001
270 /***********************************************************************
275 BOOLEAN InheritedAddressSpace
; /* 000/000 */
276 BOOLEAN ReadImageFileExecOptions
; /* 001/001 */
277 BOOLEAN BeingDebugged
; /* 002/002 */
278 BOOLEAN SpareBool
; /* 003/003 */
279 HANDLE Mutant
; /* 004/008 */
280 HMODULE ImageBaseAddress
; /* 008/010 */
281 PPEB_LDR_DATA LdrData
; /* 00c/018 */
282 RTL_USER_PROCESS_PARAMETERS
*ProcessParameters
; /* 010/020 */
283 PVOID SubSystemData
; /* 014/028 */
284 HANDLE ProcessHeap
; /* 018/030 */
285 PRTL_CRITICAL_SECTION FastPebLock
; /* 01c/038 */
286 PVOID
/*PPEBLOCKROUTINE*/ FastPebLockRoutine
; /* 020/040 */
287 PVOID
/*PPEBLOCKROUTINE*/ FastPebUnlockRoutine
; /* 024/048 */
288 ULONG EnvironmentUpdateCount
; /* 028/050 */
289 PVOID KernelCallbackTable
; /* 02c/058 */
290 ULONG Reserved
[2]; /* 030/060 */
291 PVOID
/*PPEB_FREE_BLOCK*/ FreeList
; /* 038/068 */
292 ULONG TlsExpansionCounter
; /* 03c/070 */
293 PRTL_BITMAP TlsBitmap
; /* 040/078 */
294 ULONG TlsBitmapBits
[2]; /* 044/080 */
295 PVOID ReadOnlySharedMemoryBase
; /* 04c/088 */
296 PVOID ReadOnlySharedMemoryHeap
; /* 050/090 */
297 PVOID
*ReadOnlyStaticServerData
; /* 054/098 */
298 PVOID AnsiCodePageData
; /* 058/0a0 */
299 PVOID OemCodePageData
; /* 05c/0a8 */
300 PVOID UnicodeCaseTableData
; /* 060/0b0 */
301 ULONG NumberOfProcessors
; /* 064/0b8 */
302 ULONG NtGlobalFlag
; /* 068/0bc */
303 LARGE_INTEGER CriticalSectionTimeout
; /* 070/0c0 */
304 SIZE_T HeapSegmentReserve
; /* 078/0c8 */
305 SIZE_T HeapSegmentCommit
; /* 07c/0d0 */
306 SIZE_T HeapDeCommitTotalFreeThreshold
; /* 080/0d8 */
307 SIZE_T HeapDeCommitFreeBlockThreshold
; /* 084/0e0 */
308 ULONG NumberOfHeaps
; /* 088/0e8 */
309 ULONG MaximumNumberOfHeaps
; /* 08c/0ec */
310 PVOID
*ProcessHeaps
; /* 090/0f0 */
311 PVOID GdiSharedHandleTable
; /* 094/0f8 */
312 PVOID ProcessStarterHelper
; /* 098/100 */
313 PVOID GdiDCAttributeList
; /* 09c/108 */
314 PVOID LoaderLock
; /* 0a0/110 */
315 ULONG OSMajorVersion
; /* 0a4/118 */
316 ULONG OSMinorVersion
; /* 0a8/11c */
317 ULONG OSBuildNumber
; /* 0ac/120 */
318 ULONG OSPlatformId
; /* 0b0/124 */
319 ULONG ImageSubSystem
; /* 0b4/128 */
320 ULONG ImageSubSystemMajorVersion
; /* 0b8/12c */
321 ULONG ImageSubSystemMinorVersion
; /* 0bc/130 */
322 ULONG ImageProcessAffinityMask
; /* 0c0/134 */
323 HANDLE GdiHandleBuffer
[28]; /* 0c4/138 */
324 ULONG unknown
[6]; /* 134/218 */
325 PVOID PostProcessInitRoutine
; /* 14c/230 */
326 PRTL_BITMAP TlsExpansionBitmap
; /* 150/238 */
327 ULONG TlsExpansionBitmapBits
[32]; /* 154/240 */
328 ULONG SessionId
; /* 1d4/2c0 */
329 ULARGE_INTEGER AppCompatFlags
; /* 1d8/2c8 */
330 ULARGE_INTEGER AppCompatFlagsUser
; /* 1e0/2d0 */
331 PVOID ShimData
; /* 1e8/2d8 */
332 PVOID AppCompatInfo
; /* 1ec/2e0 */
333 UNICODE_STRING CSDVersion
; /* 1f0/2e8 */
334 PVOID ActivationContextData
; /* 1f8/2f8 */
335 PVOID ProcessAssemblyStorageMap
; /* 1fc/300 */
336 PVOID SystemDefaultActivationData
; /* 200/308 */
337 PVOID SystemAssemblyStorageMap
; /* 204/310 */
338 SIZE_T MinimumStackCommit
; /* 208/318 */
339 PVOID
*FlsCallback
; /* 20c/320 */
340 LIST_ENTRY FlsListHead
; /* 210/328 */
341 PRTL_BITMAP FlsBitmap
; /* 218/338 */
342 ULONG FlsBitmapBits
[4]; /* 21c/340 */
346 /***********************************************************************
351 NT_TIB Tib
; /* 000/0000 */
352 PVOID EnvironmentPointer
; /* 01c/0038 */
353 CLIENT_ID ClientId
; /* 020/0040 */
354 PVOID ActiveRpcHandle
; /* 028/0050 */
355 PVOID ThreadLocalStoragePointer
; /* 02c/0058 */
356 PPEB Peb
; /* 030/0060 */
357 ULONG LastErrorValue
; /* 034/0068 */
358 ULONG CountOfOwnedCriticalSections
; /* 038/006c */
359 PVOID CsrClientThread
; /* 03c/0070 */
360 PVOID Win32ThreadInfo
; /* 040/0078 */
361 ULONG Win32ClientInfo
[31]; /* 044/0080 used for user32 private data in Wine */
362 PVOID WOW32Reserved
; /* 0c0/0100 */
363 ULONG CurrentLocale
; /* 0c4/0108 */
364 ULONG FpSoftwareStatusRegister
; /* 0c8/010c */
365 PVOID SystemReserved1
[54]; /* 0cc/0110 used for kernel32 private data in Wine */
366 LONG ExceptionCode
; /* 1a4/02c0 */
367 ACTIVATION_CONTEXT_STACK ActivationContextStack
; /* 1a8/02c8 */
368 BYTE SpareBytes1
[24]; /* 1bc/02e8 */
369 PVOID SystemReserved2
[10]; /* 1d4/0300 used for ntdll platform-specific private data in Wine */
370 GDI_TEB_BATCH GdiTebBatch
; /* 1fc/0350 used for ntdll private data in Wine */
371 HANDLE gdiRgn
; /* 6dc/0838 */
372 HANDLE gdiPen
; /* 6e0/0840 */
373 HANDLE gdiBrush
; /* 6e4/0848 */
374 CLIENT_ID RealClientId
; /* 6e8/0850 */
375 HANDLE GdiCachedProcessHandle
; /* 6f0/0860 */
376 ULONG GdiClientPID
; /* 6f4/0868 */
377 ULONG GdiClientTID
; /* 6f8/086c */
378 PVOID GdiThreadLocaleInfo
; /* 6fc/0870 */
379 ULONG UserReserved
[5]; /* 700/0878 */
380 PVOID glDispatchTable
[280]; /* 714/0890 */
381 PVOID glReserved1
[26]; /* b74/1150 */
382 PVOID glReserved2
; /* bdc/1220 */
383 PVOID glSectionInfo
; /* be0/1228 */
384 PVOID glSection
; /* be4/1230 */
385 PVOID glTable
; /* be8/1238 */
386 PVOID glCurrentRC
; /* bec/1240 */
387 PVOID glContext
; /* bf0/1248 */
388 ULONG LastStatusValue
; /* bf4/1250 */
389 UNICODE_STRING StaticUnicodeString
; /* bf8/1258 used by advapi32 */
390 WCHAR StaticUnicodeBuffer
[261]; /* c00/1268 used by advapi32 */
391 PVOID DeallocationStack
; /* e0c/1478 */
392 PVOID TlsSlots
[64]; /* e10/1480 */
393 LIST_ENTRY TlsLinks
; /* f10/1680 */
394 PVOID Vdm
; /* f18/1690 */
395 PVOID ReservedForNtRpc
; /* f1c/1698 */
396 PVOID DbgSsReserved
[2]; /* f20/16a0 */
397 ULONG HardErrorDisabled
; /* f28/16b0 */
398 PVOID Instrumentation
[16]; /* f2c/16b8 */
399 PVOID WinSockData
; /* f6c/1738 */
400 ULONG GdiBatchCount
; /* f70/1740 */
401 ULONG Spare2
; /* f74/1744 */
402 ULONG GuaranteedStackBytes
; /* f78/1748 */
403 PVOID ReservedForPerf
; /* f7c/1750 */
404 PVOID ReservedForOle
; /* f80/1758 */
405 ULONG WaitingOnLoaderLock
; /* f84/1760 */
406 PVOID Reserved5
[3]; /* f88/1768 */
407 PVOID
*TlsExpansionSlots
; /* f94/1780 */
409 PVOID DeallocationBStore
; /* /1788 */
410 PVOID BStoreLimit
; /* /1790 */
412 ULONG ImpersonationLocale
; /* f98/1798 */
413 ULONG IsImpersonating
; /* f9c/179c */
414 PVOID NlsCache
; /* fa0/17a0 */
415 PVOID ShimData
; /* fa4/17a8 */
416 ULONG HeapVirtualAffinity
; /* fa8/17b0 */
417 PVOID CurrentTransactionHandle
; /* fac/17b8 */
418 TEB_ACTIVE_FRAME
*ActiveFrame
; /* fb0/17c0 */
419 PVOID
*FlsSlots
; /* fb4/17c8 */
422 /***********************************************************************
426 typedef enum _FILE_INFORMATION_CLASS
{
427 FileDirectoryInformation
= 1,
428 FileFullDirectoryInformation
,
429 FileBothDirectoryInformation
,
430 FileBasicInformation
,
431 FileStandardInformation
,
432 FileInternalInformation
,
434 FileAccessInformation
,
436 FileRenameInformation
,
438 FileNamesInformation
,
439 FileDispositionInformation
,
440 FilePositionInformation
,
441 FileFullEaInformation
,
443 FileAlignmentInformation
,
445 FileAllocationInformation
,
446 FileEndOfFileInformation
,
447 FileAlternateNameInformation
,
448 FileStreamInformation
,
450 FilePipeLocalInformation
,
451 FilePipeRemoteInformation
,
452 FileMailslotQueryInformation
,
453 FileMailslotSetInformation
,
454 FileCompressionInformation
,
455 FileObjectIdInformation
,
456 FileCompletionInformation
,
457 FileMoveClusterInformation
,
458 FileQuotaInformation
,
459 FileReparsePointInformation
,
460 FileNetworkOpenInformation
,
461 FileAttributeTagInformation
,
462 FileTrackingInformation
,
463 FileIdBothDirectoryInformation
,
464 FileIdFullDirectoryInformation
,
465 FileValidDataLengthInformation
,
466 FileShortNameInformation
,
467 FileIoCompletionNotificationInformation
,
468 FileIoStatusBlockRangeInformation
,
469 FileIoPriorityHintInformation
,
470 FileSfioReserveInformation
,
471 FileSfioVolumeInformation
,
472 FileHardLinkInformation
,
473 FileProcessIdsUsingFileInformation
,
474 FileNormalizedNameInformation
,
475 FileNetworkPhysicalNameInformation
,
476 FileIdGlobalTxDirectoryInformation
,
477 FileIsRemoteDeviceInformation
,
478 FileAttributeCacheInformation
,
479 FileNumaNodeInformation
,
480 FileStandardLinkInformation
,
481 FileRemoteProtocolInformation
,
482 FileRenameInformationBypassAccessCheck
,
483 FileLinkInformationBypassAccessCheck
,
484 FileVolumeNameInformation
,
486 FileIdExtdDirectoryInformation
,
487 FileReplaceCompletionInformation
,
488 FileHardLinkFullIdInformation
,
489 FileIdExtdBothDirectoryInformation
,
490 FileMaximumInformation
491 } FILE_INFORMATION_CLASS
, *PFILE_INFORMATION_CLASS
;
493 typedef struct _FILE_DIRECTORY_INFORMATION
{
494 ULONG NextEntryOffset
;
496 LARGE_INTEGER CreationTime
;
497 LARGE_INTEGER LastAccessTime
;
498 LARGE_INTEGER LastWriteTime
;
499 LARGE_INTEGER ChangeTime
;
500 LARGE_INTEGER EndOfFile
;
501 LARGE_INTEGER AllocationSize
;
502 ULONG FileAttributes
;
503 ULONG FileNameLength
;
504 WCHAR FileName
[ANYSIZE_ARRAY
];
505 } FILE_DIRECTORY_INFORMATION
, *PFILE_DIRECTORY_INFORMATION
;
507 typedef struct _FILE_FULL_DIRECTORY_INFORMATION
{
508 ULONG NextEntryOffset
;
510 LARGE_INTEGER CreationTime
;
511 LARGE_INTEGER LastAccessTime
;
512 LARGE_INTEGER LastWriteTime
;
513 LARGE_INTEGER ChangeTime
;
514 LARGE_INTEGER EndOfFile
;
515 LARGE_INTEGER AllocationSize
;
516 ULONG FileAttributes
;
517 ULONG FileNameLength
;
519 WCHAR FileName
[ANYSIZE_ARRAY
];
520 } FILE_FULL_DIRECTORY_INFORMATION
, *PFILE_FULL_DIRECTORY_INFORMATION
,
521 FILE_FULL_DIR_INFORMATION
, *PFILE_FULL_DIR_INFORMATION
;
523 typedef struct _FILE_ID_FULL_DIRECTORY_INFORMATION
{
524 ULONG NextEntryOffset
;
526 LARGE_INTEGER CreationTime
;
527 LARGE_INTEGER LastAccessTime
;
528 LARGE_INTEGER LastWriteTime
;
529 LARGE_INTEGER ChangeTime
;
530 LARGE_INTEGER EndOfFile
;
531 LARGE_INTEGER AllocationSize
;
532 ULONG FileAttributes
;
533 ULONG FileNameLength
;
535 LARGE_INTEGER FileId
;
536 WCHAR FileName
[ANYSIZE_ARRAY
];
537 } FILE_ID_FULL_DIRECTORY_INFORMATION
, *PFILE_ID_FULL_DIRECTORY_INFORMATION
;
539 typedef struct _FILE_BOTH_DIRECTORY_INFORMATION
{
540 ULONG NextEntryOffset
;
542 LARGE_INTEGER CreationTime
;
543 LARGE_INTEGER LastAccessTime
;
544 LARGE_INTEGER LastWriteTime
;
545 LARGE_INTEGER ChangeTime
;
546 LARGE_INTEGER EndOfFile
;
547 LARGE_INTEGER AllocationSize
;
548 ULONG FileAttributes
;
549 ULONG FileNameLength
;
551 CHAR ShortNameLength
;
553 WCHAR FileName
[ANYSIZE_ARRAY
];
554 } FILE_BOTH_DIRECTORY_INFORMATION
, *PFILE_BOTH_DIRECTORY_INFORMATION
,
555 FILE_BOTH_DIR_INFORMATION
, *PFILE_BOTH_DIR_INFORMATION
;
557 typedef struct _FILE_ID_BOTH_DIRECTORY_INFORMATION
{
558 ULONG NextEntryOffset
;
560 LARGE_INTEGER CreationTime
;
561 LARGE_INTEGER LastAccessTime
;
562 LARGE_INTEGER LastWriteTime
;
563 LARGE_INTEGER ChangeTime
;
564 LARGE_INTEGER EndOfFile
;
565 LARGE_INTEGER AllocationSize
;
566 ULONG FileAttributes
;
567 ULONG FileNameLength
;
569 CHAR ShortNameLength
;
571 LARGE_INTEGER FileId
;
572 WCHAR FileName
[ANYSIZE_ARRAY
];
573 } FILE_ID_BOTH_DIRECTORY_INFORMATION
, *PFILE_ID_BOTH_DIRECTORY_INFORMATION
;
575 typedef struct _FILE_ID_GLOBAL_TX_DIR_INFORMATION
{
576 ULONG NextEntryOffset
;
578 LARGE_INTEGER CreationTime
;
579 LARGE_INTEGER LastAccessTime
;
580 LARGE_INTEGER LastWriteTime
;
581 LARGE_INTEGER ChangeTime
;
582 LARGE_INTEGER EndOfFile
;
583 LARGE_INTEGER AllocationSize
;
584 ULONG FileAttributes
;
585 ULONG FileNameLength
;
586 LARGE_INTEGER FileId
;
587 GUID LockingTransactionId
;
589 WCHAR FileName
[ANYSIZE_ARRAY
];
590 } FILE_ID_GLOBAL_TX_DIR_INFORMATION
, *PFILE_ID_GLOBAL_TX_DIR_INFORMATION
;
592 typedef struct _FILE_BASIC_INFORMATION
{
593 LARGE_INTEGER CreationTime
;
594 LARGE_INTEGER LastAccessTime
;
595 LARGE_INTEGER LastWriteTime
;
596 LARGE_INTEGER ChangeTime
;
597 ULONG FileAttributes
;
598 } FILE_BASIC_INFORMATION
, *PFILE_BASIC_INFORMATION
;
600 typedef struct _FILE_STANDARD_INFORMATION
{
601 LARGE_INTEGER AllocationSize
;
602 LARGE_INTEGER EndOfFile
;
604 BOOLEAN DeletePending
;
606 } FILE_STANDARD_INFORMATION
, *PFILE_STANDARD_INFORMATION
;
608 typedef struct _FILE_INTERNAL_INFORMATION
{
609 LARGE_INTEGER IndexNumber
;
610 } FILE_INTERNAL_INFORMATION
, *PFILE_INTERNAL_INFORMATION
;
612 typedef struct _FILE_ID_128
{
613 UCHAR Identifier
[16];
614 } FILE_ID_128
, *PFILE_ID_128
;
616 typedef struct _FILE_ID_INFORMATION
{
617 ULONGLONG VolumeSerialNumber
;
619 } FILE_ID_INFORMATION
, *PFILE_ID_INFORMATION
;
621 typedef struct _FILE_EA_INFORMATION
{
623 } FILE_EA_INFORMATION
, *PFILE_EA_INFORMATION
;
625 typedef struct _FILE_ACCESS_INFORMATION
{
626 ACCESS_MASK AccessFlags
;
627 } FILE_ACCESS_INFORMATION
, *PFILE_ACCESS_INFORMATION
;
629 typedef struct _FILE_NAME_INFORMATION
{
630 ULONG FileNameLength
;
632 } FILE_NAME_INFORMATION
, *PFILE_NAME_INFORMATION
;
634 typedef struct _FILE_RENAME_INFORMATION
{
635 BOOLEAN ReplaceIfExists
;
636 HANDLE RootDirectory
;
637 ULONG FileNameLength
;
639 } FILE_RENAME_INFORMATION
, *PFILE_RENAME_INFORMATION
;
641 typedef struct _FILE_LINK_INFORMATION
{
642 BOOLEAN ReplaceIfExists
;
643 HANDLE RootDirectory
;
644 ULONG FileNameLength
;
646 } FILE_LINK_INFORMATION
, *PFILE_LINK_INFORMATION
;
648 typedef struct _FILE_NAMES_INFORMATION
{
649 ULONG NextEntryOffset
;
651 ULONG FileNameLength
;
653 } FILE_NAMES_INFORMATION
, *PFILE_NAMES_INFORMATION
;
655 typedef struct _FILE_DISPOSITION_INFORMATION
{
656 BOOLEAN DoDeleteFile
;
657 } FILE_DISPOSITION_INFORMATION
, *PFILE_DISPOSITION_INFORMATION
;
659 typedef struct _FILE_POSITION_INFORMATION
{
660 LARGE_INTEGER CurrentByteOffset
;
661 } FILE_POSITION_INFORMATION
, *PFILE_POSITION_INFORMATION
;
663 typedef struct _FILE_ALIGNMENT_INFORMATION
{
664 ULONG AlignmentRequirement
;
665 } FILE_ALIGNMENT_INFORMATION
, *PFILE_ALIGNMENT_INFORMATION
;
667 typedef struct _FILE_ALLOCATION_INFORMATION
{
668 LARGE_INTEGER AllocationSize
;
669 } FILE_ALLOCATION_INFORMATION
, *PFILE_ALLOCATION_INFORMATION
;
671 typedef struct _FILE_END_OF_FILE_INFORMATION
{
672 LARGE_INTEGER EndOfFile
;
673 } FILE_END_OF_FILE_INFORMATION
, *PFILE_END_OF_FILE_INFORMATION
;
675 typedef struct _FILE_NETWORK_OPEN_INFORMATION
{
676 LARGE_INTEGER CreationTime
;
677 LARGE_INTEGER LastAccessTime
;
678 LARGE_INTEGER LastWriteTime
;
679 LARGE_INTEGER ChangeTime
;
680 LARGE_INTEGER AllocationSize
;
681 LARGE_INTEGER EndOfFile
;
682 ULONG FileAttributes
;
683 } FILE_NETWORK_OPEN_INFORMATION
, *PFILE_NETWORK_OPEN_INFORMATION
;
685 typedef struct _FILE_FULL_EA_INFORMATION
{
686 ULONG NextEntryOffset
;
689 USHORT EaValueLength
;
691 } FILE_FULL_EA_INFORMATION
, *PFILE_FULL_EA_INFORMATION
;
693 typedef struct _FILE_MODE_INFORMATION
{
695 } FILE_MODE_INFORMATION
, *PFILE_MODE_INFORMATION
;
697 typedef struct _FILE_STREAM_INFORMATION
699 ULONG NextEntryOffset
;
700 ULONG StreamNameLength
;
701 LARGE_INTEGER StreamSize
;
702 LARGE_INTEGER StreamAllocationSize
;
704 } FILE_STREAM_INFORMATION
, *PFILE_STREAM_INFORMATION
;
706 typedef struct _FILE_ATTRIBUTE_TAG_INFORMATION
708 ULONG FileAttributes
;
710 } FILE_ATTRIBUTE_TAG_INFORMATION
, *PFILE_ATTRIBUTE_TAG_INFORMATION
;
712 typedef struct _FILE_MAILSLOT_QUERY_INFORMATION
{
713 ULONG MaximumMessageSize
;
715 ULONG NextMessageSize
;
716 ULONG MessagesAvailable
;
717 LARGE_INTEGER ReadTimeout
;
718 } FILE_MAILSLOT_QUERY_INFORMATION
, *PFILE_MAILSLOT_QUERY_INFORMATION
;
720 typedef struct _FILE_MAILSLOT_SET_INFORMATION
{
721 LARGE_INTEGER ReadTimeout
;
722 } FILE_MAILSLOT_SET_INFORMATION
, *PFILE_MAILSLOT_SET_INFORMATION
;
724 typedef struct _FILE_PIPE_INFORMATION
{
726 ULONG CompletionMode
;
727 } FILE_PIPE_INFORMATION
, *PFILE_PIPE_INFORMATION
;
729 typedef struct _FILE_PIPE_LOCAL_INFORMATION
{
731 ULONG NamedPipeConfiguration
;
732 ULONG MaximumInstances
;
733 ULONG CurrentInstances
;
735 ULONG ReadDataAvailable
;
737 ULONG WriteQuotaAvailable
;
738 ULONG NamedPipeState
;
740 } FILE_PIPE_LOCAL_INFORMATION
, *PFILE_PIPE_LOCAL_INFORMATION
;
742 #define FILE_PIPE_DISCONNECTED_STATE 0x00000001
743 #define FILE_PIPE_LISTENING_STATE 0x00000002
744 #define FILE_PIPE_CONNECTED_STATE 0x00000003
745 #define FILE_PIPE_CLOSING_STATE 0x00000004
747 typedef struct _FILE_OBJECTID_INFORMATION
{
748 LONGLONG FileReference
;
752 UCHAR BirthVolumeId
[16];
753 UCHAR BirthObjectId
[16];
756 UCHAR ExtendedInfo
[48];
758 } FILE_OBJECTID_INFORMATION
, *PFILE_OBJECTID_INFORMATION
;
760 typedef struct _FILE_QUOTA_INFORMATION
{
761 ULONG NextEntryOffset
;
763 LARGE_INTEGER ChangeTime
;
764 LARGE_INTEGER QuotaUsed
;
765 LARGE_INTEGER QuotaThreshold
;
766 LARGE_INTEGER QuotaLimit
;
768 } FILE_QUOTA_INFORMATION
, *PFILE_QUOTA_INFORMATION
;
770 typedef struct _FILE_REPARSE_POINT_INFORMATION
{
771 LONGLONG FileReference
;
773 } FILE_REPARSE_POINT_INFORMATION
, *PFILE_REPARSE_POINT_INFORMATION
;
775 typedef struct _FILE_ALL_INFORMATION
{
776 FILE_BASIC_INFORMATION BasicInformation
;
777 FILE_STANDARD_INFORMATION StandardInformation
;
778 FILE_INTERNAL_INFORMATION InternalInformation
;
779 FILE_EA_INFORMATION EaInformation
;
780 FILE_ACCESS_INFORMATION AccessInformation
;
781 FILE_POSITION_INFORMATION PositionInformation
;
782 FILE_MODE_INFORMATION ModeInformation
;
783 FILE_ALIGNMENT_INFORMATION AlignmentInformation
;
784 FILE_NAME_INFORMATION NameInformation
;
785 } FILE_ALL_INFORMATION
, *PFILE_ALL_INFORMATION
;
787 typedef struct _FILE_IO_COMPLETION_NOTIFICATION_INFORMATION
{
789 } FILE_IO_COMPLETION_NOTIFICATION_INFORMATION
, *PFILE_IO_COMPLETION_NOTIFICATION_INFORMATION
;
791 #define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1
792 #define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2
793 #define FILE_SKIP_SET_USER_EVENT_ON_FAST_IO 0x4
795 typedef enum _FSINFOCLASS
{
796 FileFsVolumeInformation
= 1,
797 FileFsLabelInformation
,
798 FileFsSizeInformation
,
799 FileFsDeviceInformation
,
800 FileFsAttributeInformation
,
801 FileFsControlInformation
,
802 FileFsFullSizeInformation
,
803 FileFsObjectIdInformation
,
804 FileFsMaximumInformation
805 } FS_INFORMATION_CLASS
, *PFS_INFORMATION_CLASS
;
807 typedef enum _KEY_INFORMATION_CLASS
{
812 KeyCachedInformation
,
814 KeyVirtualizationInformation
,
815 KeyHandleTagsInformation
,
817 } KEY_INFORMATION_CLASS
;
819 typedef enum _KEY_VALUE_INFORMATION_CLASS
{
820 KeyValueBasicInformation
,
821 KeyValueFullInformation
,
822 KeyValuePartialInformation
,
823 KeyValueFullInformationAlign64
,
824 KeyValuePartialInformationAlign64
825 } KEY_VALUE_INFORMATION_CLASS
;
827 typedef enum _OBJECT_INFORMATION_CLASS
{
828 ObjectBasicInformation
,
829 ObjectNameInformation
,
830 ObjectTypeInformation
,
831 ObjectAllInformation
,
832 ObjectDataInformation
833 } OBJECT_INFORMATION_CLASS
, *POBJECT_INFORMATION_CLASS
;
835 typedef enum _PROCESSINFOCLASS
{
836 ProcessBasicInformation
= 0,
837 ProcessQuotaLimits
= 1,
838 ProcessIoCounters
= 2,
839 ProcessVmCounters
= 3,
841 ProcessBasePriority
= 5,
842 ProcessRaisePriority
= 6,
843 ProcessDebugPort
= 7,
844 ProcessExceptionPort
= 8,
845 ProcessAccessToken
= 9,
846 ProcessLdtInformation
= 10,
848 ProcessDefaultHardErrorMode
= 12,
849 ProcessIoPortHandlers
= 13,
850 ProcessPooledUsageAndLimits
= 14,
851 ProcessWorkingSetWatch
= 15,
852 ProcessUserModeIOPL
= 16,
853 ProcessEnableAlignmentFaultFixup
= 17,
854 ProcessPriorityClass
= 18,
855 ProcessWx86Information
= 19,
856 ProcessHandleCount
= 20,
857 ProcessAffinityMask
= 21,
858 ProcessPriorityBoost
= 22,
859 ProcessDeviceMap
= 23,
860 ProcessSessionInformation
= 24,
861 ProcessForegroundInformation
= 25,
862 ProcessWow64Information
= 26,
863 ProcessImageFileName
= 27,
864 ProcessLUIDDeviceMapsEnabled
= 28,
865 ProcessBreakOnTermination
= 29,
866 ProcessDebugObjectHandle
= 30,
867 ProcessDebugFlags
= 31,
868 ProcessHandleTracing
= 32,
869 ProcessExecuteFlags
= 34,
870 ProcessTlsInformation
= 35,
872 ProcessImageInformation
= 37,
873 ProcessCycleTime
= 38,
874 ProcessPagePriority
= 39,
875 ProcessInstrumentationCallback
= 40,
876 ProcessThreadStackAllocation
= 41,
877 ProcessWorkingSetWatchEx
= 42,
878 ProcessImageFileNameWin32
= 43,
880 } PROCESSINFOCLASS
, PROCESS_INFORMATION_CLASS
;
882 #define MEM_EXECUTE_OPTION_DISABLE 0x01
883 #define MEM_EXECUTE_OPTION_ENABLE 0x02
884 #define MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION 0x04
885 #define MEM_EXECUTE_OPTION_PERMANENT 0x08
887 typedef enum _SECTION_INHERIT
{
892 typedef enum _SYSTEM_INFORMATION_CLASS
{
893 SystemBasicInformation
= 0,
894 SystemCpuInformation
= 1,
895 SystemPerformanceInformation
= 2,
896 SystemTimeOfDayInformation
= 3, /* was SystemTimeInformation */
898 SystemProcessInformation
= 5,
901 SystemProcessorPerformanceInformation
= 8,
904 SystemModuleInformation
= 11,
909 SystemHandleInformation
= 16,
911 SystemPageFileInformation
= 18,
914 SystemCacheInformation
= 21,
916 SystemInterruptInformation
= 23,
917 SystemDpcBehaviourInformation
= 24,
918 SystemFullMemoryInformation
= 25,
919 SystemNotImplemented6
= 25,
920 SystemLoadImage
= 26,
921 SystemUnloadImage
= 27,
922 SystemTimeAdjustmentInformation
= 28,
923 SystemTimeAdjustment
= 28,
924 SystemSummaryMemoryInformation
= 29,
925 SystemNotImplemented7
= 29,
926 SystemNextEventIdInformation
= 30,
927 SystemNotImplemented8
= 30,
928 SystemEventIdsInformation
= 31,
929 SystemCrashDumpInformation
= 32,
930 SystemExceptionInformation
= 33,
931 SystemCrashDumpStateInformation
= 34,
932 SystemKernelDebuggerInformation
= 35,
933 SystemContextSwitchInformation
= 36,
934 SystemRegistryQuotaInformation
= 37,
935 SystemCurrentTimeZoneInformation
= 44,
936 SystemTimeZoneInformation
= 44,
937 SystemLookasideInformation
= 45,
938 SystemSetTimeSlipEvent
= 46,
939 SystemCreateSession
= 47,
940 SystemDeleteSession
= 48,
941 SystemInvalidInfoClass4
= 49,
942 SystemRangeStartInformation
= 50,
943 SystemVerifierInformation
= 51,
944 SystemAddVerifier
= 52,
945 SystemSessionProcessesInformation
= 53,
946 SystemLoadGdiDriverInSystemSpace
= 54,
947 SystemNumaProcessorMap
= 55,
948 SystemPrefetcherInformation
= 56,
949 SystemExtendedProcessInformation
= 57,
950 SystemRecommendedSharedDataAlignment
= 58,
951 SystemComPlusPackage
= 59,
952 SystemNumaAvailableMemory
= 60,
953 SystemProcessorPowerInformation
= 61,
954 SystemEmulationBasicInformation
= 62,
955 SystemEmulationProcessorInformation
= 63,
956 SystemExtendedHandleInformation
= 64,
957 SystemLostDelayedWriteInformation
= 65,
958 SystemBigPoolInformation
= 66,
959 SystemSessionPoolTagInformation
= 67,
960 SystemSessionMappedViewInformation
= 68,
961 SystemHotpatchInformation
= 69,
962 SystemObjectSecurityMode
= 70,
963 SystemWatchdogTimerHandler
= 71,
964 SystemWatchdogTimerInformation
= 72,
965 SystemLogicalProcessorInformation
= 73,
966 SystemWow64SharedInformation
= 74,
967 SystemRegisterFirmwareTableInformationHandler
= 75,
968 SystemFirmwareTableInformation
= 76,
969 SystemModuleInformationEx
= 77,
970 SystemVerifierTriageInformation
= 78,
971 SystemSuperfetchInformation
= 79,
972 SystemMemoryListInformation
= 80,
973 SystemFileCacheInformationEx
= 81,
974 SystemLogicalProcessorInformationEx
= 107,
975 SystemInformationClassMax
976 } SYSTEM_INFORMATION_CLASS
, *PSYSTEM_INFORMATION_CLASS
;
978 typedef enum _THREADINFOCLASS
{
979 ThreadBasicInformation
= 0,
984 ThreadImpersonationToken
,
985 ThreadDescriptorTableEntry
,
986 ThreadEnableAlignmentFaultFixup
,
987 ThreadEventPair_Reusable
,
988 ThreadQuerySetWin32StartAddress
,
990 ThreadPerformanceCount
,
992 ThreadIdealProcessor
,
994 ThreadSetTlsArrayAddress
,
996 ThreadHideFromDebugger
,
997 ThreadBreakOnTermination
,
998 ThreadSwitchLegacyState
,
1000 ThreadLastSystemCall
,
1004 ThreadActualBasePriority
,
1005 ThreadTebInformation
,
1009 ThreadGroupInformation
,
1010 ThreadUmsInformation
,
1011 ThreadCounterProfiling
,
1012 ThreadIdealProcessorEx
,
1013 ThreadSuspendCount
= 35,
1014 ThreadDescription
= 38,
1018 typedef struct _THREAD_BASIC_INFORMATION
1020 NTSTATUS ExitStatus
;
1021 PVOID TebBaseAddress
;
1023 ULONG_PTR AffinityMask
;
1026 } THREAD_BASIC_INFORMATION
, *PTHREAD_BASIC_INFORMATION
;
1028 typedef struct _THREAD_DESCRIPTOR_INFORMATION
1032 } THREAD_DESCRIPTOR_INFORMATION
, *PTHREAD_DESCRIPTOR_INFORMATION
;
1034 typedef struct _THREAD_DESCRIPTION_INFORMATION
1036 UNICODE_STRING Description
;
1037 } THREAD_DESCRIPTION_INFORMATION
, *PTHREAD_DESCRIPTION_INFORMATION
;
1039 typedef struct _KERNEL_USER_TIMES
{
1040 LARGE_INTEGER CreateTime
;
1041 LARGE_INTEGER ExitTime
;
1042 LARGE_INTEGER KernelTime
;
1043 LARGE_INTEGER UserTime
;
1044 } KERNEL_USER_TIMES
, *PKERNEL_USER_TIMES
;
1046 typedef enum _WINSTATIONINFOCLASS
{
1047 WinStationInformation
= 8
1048 } WINSTATIONINFOCLASS
;
1050 typedef enum _MEMORY_INFORMATION_CLASS
{
1051 MemoryBasicInformation
,
1052 MemoryWorkingSetList
,
1054 MemoryBasicVlmInformation
,
1055 MemoryWorkingSetExInformation
1056 } MEMORY_INFORMATION_CLASS
;
1058 typedef struct _MEMORY_SECTION_NAME
1060 UNICODE_STRING SectionFileName
;
1061 } MEMORY_SECTION_NAME
, *PMEMORY_SECTION_NAME
;
1063 typedef union _MEMORY_WORKING_SET_EX_BLOCK
{
1066 ULONG_PTR Valid
: 1;
1067 ULONG_PTR ShareCount
: 3;
1068 ULONG_PTR Win32Protection
: 11;
1069 ULONG_PTR Shared
: 1;
1071 ULONG_PTR Locked
: 1;
1072 ULONG_PTR LargePage
: 1;
1074 } MEMORY_WORKING_SET_EX_BLOCK
, *PMEMORY_WORKING_SET_EX_BLOCK
;
1076 typedef struct _MEMORY_WORKING_SET_EX_INFORMATION
{
1077 PVOID VirtualAddress
;
1078 MEMORY_WORKING_SET_EX_BLOCK VirtualAttributes
;
1079 } MEMORY_WORKING_SET_EX_INFORMATION
, *PMEMORY_WORKING_SET_EX_INFORMATION
;
1081 typedef enum _MUTANT_INFORMATION_CLASS
1083 MutantBasicInformation
1084 } MUTANT_INFORMATION_CLASS
, *PMUTANT_INFORMATION_CLASS
;
1086 typedef struct _MUTANT_BASIC_INFORMATION
{
1088 BOOLEAN OwnedByCaller
;
1089 BOOLEAN AbandonedState
;
1090 } MUTANT_BASIC_INFORMATION
, *PMUTANT_BASIC_INFORMATION
;
1092 typedef enum _TIMER_INFORMATION_CLASS
1094 TimerBasicInformation
= 0
1095 } TIMER_INFORMATION_CLASS
;
1097 typedef struct _TIMER_BASIC_INFORMATION
1099 LARGE_INTEGER RemainingTime
;
1101 } TIMER_BASIC_INFORMATION
, *PTIMER_BASIC_INFORMATION
;
1104 /* return type of RtlDetermineDosPathNameType_U (FIXME: not the correct names) */
1108 UNC_PATH
, /* "//foo" */
1109 ABSOLUTE_DRIVE_PATH
, /* "c:/foo" */
1110 RELATIVE_DRIVE_PATH
, /* "c:foo" */
1111 ABSOLUTE_PATH
, /* "/foo" */
1112 RELATIVE_PATH
, /* "foo" */
1113 DEVICE_PATH
, /* "//./foo" */
1114 UNC_DOT_PATH
/* "//." */
1115 } DOS_PATHNAME_TYPE
;
1118 /***********************************************************************
1119 * Types and data structures
1122 /* This is used by NtQuerySystemInformation */
1123 typedef struct _SYSTEM_THREAD_INFORMATION
1125 LARGE_INTEGER KernelTime
; /* 00/00 */
1126 LARGE_INTEGER UserTime
; /* 08/08 */
1127 LARGE_INTEGER CreateTime
; /* 10/10 */
1128 DWORD dwTickCount
; /* 18/18 */
1129 LPVOID StartAddress
; /* 1c/20 */
1130 CLIENT_ID ClientId
; /* 20/28 */
1131 DWORD dwCurrentPriority
; /* 28/38 */
1132 DWORD dwBasePriority
; /* 2c/3c */
1133 DWORD dwContextSwitches
; /* 30/40 */
1134 DWORD dwThreadState
; /* 34/44 */
1135 DWORD dwWaitReason
; /* 38/48 */
1136 DWORD dwUnknown
; /* 3c/4c */
1137 } SYSTEM_THREAD_INFORMATION
, *PSYSTEM_THREAD_INFORMATION
;
1139 typedef struct _IO_STATUS_BLOCK
{
1145 ULONG_PTR Information
;
1146 } IO_STATUS_BLOCK
, *PIO_STATUS_BLOCK
;
1148 typedef void (WINAPI
* PIO_APC_ROUTINE
)(PVOID
,PIO_STATUS_BLOCK
,ULONG
);
1150 typedef struct _KEY_BASIC_INFORMATION
{
1151 LARGE_INTEGER LastWriteTime
;
1155 } KEY_BASIC_INFORMATION
, *PKEY_BASIC_INFORMATION
;
1157 typedef struct _KEY_NODE_INFORMATION
1159 LARGE_INTEGER LastWriteTime
;
1166 } KEY_NODE_INFORMATION
, *PKEY_NODE_INFORMATION
;
1168 typedef struct _KEY_FULL_INFORMATION
1170 LARGE_INTEGER LastWriteTime
;
1178 ULONG MaxValueNameLen
;
1179 ULONG MaxValueDataLen
;
1181 } KEY_FULL_INFORMATION
, *PKEY_FULL_INFORMATION
;
1183 typedef struct _KEY_NAME_INFORMATION
{
1186 } KEY_NAME_INFORMATION
, *PKEY_NAME_INFORMATION
;
1188 typedef struct _KEY_CACHED_INFORMATION
1190 LARGE_INTEGER LastWriteTime
;
1195 ULONG MaxValueNameLen
;
1196 ULONG MaxValueDataLen
;
1198 } KEY_CACHED_INFORMATION
, *PKEY_CACHED_INFORMATION
;
1200 typedef struct _KEY_VALUE_ENTRY
1202 PUNICODE_STRING ValueName
;
1206 } KEY_VALUE_ENTRY
, *PKEY_VALUE_ENTRY
;
1208 typedef struct _KEY_VALUE_BASIC_INFORMATION
{
1213 } KEY_VALUE_BASIC_INFORMATION
, *PKEY_VALUE_BASIC_INFORMATION
;
1215 typedef struct _KEY_VALUE_FULL_INFORMATION
{
1222 } KEY_VALUE_FULL_INFORMATION
, *PKEY_VALUE_FULL_INFORMATION
;
1224 typedef struct _KEY_VALUE_PARTIAL_INFORMATION
{
1229 } KEY_VALUE_PARTIAL_INFORMATION
, *PKEY_VALUE_PARTIAL_INFORMATION
;
1231 #ifndef __OBJECT_ATTRIBUTES_DEFINED__
1232 #define __OBJECT_ATTRIBUTES_DEFINED__
1233 typedef struct _OBJECT_ATTRIBUTES
{
1235 HANDLE RootDirectory
;
1236 PUNICODE_STRING ObjectName
;
1238 PVOID SecurityDescriptor
; /* type SECURITY_DESCRIPTOR */
1239 PVOID SecurityQualityOfService
; /* type SECURITY_QUALITY_OF_SERVICE */
1240 } OBJECT_ATTRIBUTES
, *POBJECT_ATTRIBUTES
;
1243 typedef struct _OBJECT_DATA_INFORMATION
{
1244 BOOLEAN InheritHandle
;
1245 BOOLEAN ProtectFromClose
;
1246 } OBJECT_DATA_INFORMATION
, *POBJECT_DATA_INFORMATION
;
1248 typedef struct _OBJECT_BASIC_INFORMATION
{
1250 ACCESS_MASK GrantedAccess
;
1253 ULONG PagedPoolUsage
;
1254 ULONG NonPagedPoolUsage
;
1256 ULONG NameInformationLength
;
1257 ULONG TypeInformationLength
;
1258 ULONG SecurityDescriptorLength
;
1259 LARGE_INTEGER CreateTime
;
1260 } OBJECT_BASIC_INFORMATION
, *POBJECT_BASIC_INFORMATION
;
1262 typedef struct _OBJECT_NAME_INFORMATION
{
1263 UNICODE_STRING Name
;
1264 } OBJECT_NAME_INFORMATION
, *POBJECT_NAME_INFORMATION
;
1266 typedef struct __OBJECT_TYPE_INFORMATION
{
1267 UNICODE_STRING TypeName
;
1268 ULONG Reserved
[22];
1269 } OBJECT_TYPE_INFORMATION
, *POBJECT_TYPE_INFORMATION
;
1271 typedef struct _PROCESS_BASIC_INFORMATION
{
1273 DWORD_PTR ExitStatus
;
1274 PPEB PebBaseAddress
;
1275 DWORD_PTR AffinityMask
;
1276 DWORD_PTR BasePriority
;
1277 ULONG_PTR UniqueProcessId
;
1278 ULONG_PTR InheritedFromUniqueProcessId
;
1281 PPEB PebBaseAddress
;
1283 ULONG_PTR UniqueProcessId
;
1286 } PROCESS_BASIC_INFORMATION
, *PPROCESS_BASIC_INFORMATION
;
1288 #define PROCESS_PRIOCLASS_IDLE 1
1289 #define PROCESS_PRIOCLASS_NORMAL 2
1290 #define PROCESS_PRIOCLASS_HIGH 3
1291 #define PROCESS_PRIOCLASS_REALTIME 4
1292 #define PROCESS_PRIOCLASS_BELOW_NORMAL 5
1293 #define PROCESS_PRIOCLASS_ABOVE_NORMAL 6
1295 typedef struct _PROCESS_PRIORITY_CLASS
{
1297 UCHAR PriorityClass
;
1298 } PROCESS_PRIORITY_CLASS
, *PPROCESS_PRIORITY_CLASS
;
1300 typedef struct _RTL_HEAP_DEFINITION
{
1301 ULONG Length
; /* = sizeof(RTL_HEAP_DEFINITION) */
1304 } RTL_HEAP_DEFINITION
, *PRTL_HEAP_DEFINITION
;
1306 typedef struct _RTL_RWLOCK
{
1307 RTL_CRITICAL_SECTION rtlCS
;
1309 HANDLE hSharedReleaseSemaphore
;
1310 UINT uSharedWaiters
;
1312 HANDLE hExclusiveReleaseSemaphore
;
1313 UINT uExclusiveWaiters
;
1316 HANDLE hOwningThreadId
;
1317 DWORD dwTimeoutBoost
;
1319 } RTL_RWLOCK
, *LPRTL_RWLOCK
;
1321 /* System Information Class 0x00 */
1323 typedef struct _SYSTEM_BASIC_INFORMATION
{
1326 ULONG KeMaximumIncrement
;
1328 ULONG MmNumberOfPhysicalPages
;
1329 ULONG MmLowestPhysicalPage
;
1330 ULONG MmHighestPhysicalPage
;
1331 ULONG_PTR AllocationGranularity
;
1332 PVOID LowestUserAddress
;
1333 PVOID HighestUserAddress
;
1334 ULONG_PTR ActiveProcessorsAffinityMask
;
1335 BYTE NumberOfProcessors
;
1339 CCHAR NumberOfProcessors
;
1341 } SYSTEM_BASIC_INFORMATION
, *PSYSTEM_BASIC_INFORMATION
;
1343 /* System Information Class 0x01 */
1345 typedef struct _SYSTEM_CPU_INFORMATION
{
1348 WORD Revision
; /* combination of CPU model and stepping */
1349 WORD Reserved
; /* always zero */
1350 DWORD FeatureSet
; /* see bit flags below */
1351 } SYSTEM_CPU_INFORMATION
, *PSYSTEM_CPU_INFORMATION
;
1353 /* definitions of bits in the Feature set for the x86 processors */
1354 #define CPU_FEATURE_VME 0x00000005 /* Virtual 86 Mode Extensions */
1355 #define CPU_FEATURE_TSC 0x00000002 /* Time Stamp Counter available */
1356 #define CPU_FEATURE_CMOV 0x00000008 /* Conditional Move instruction*/
1357 #define CPU_FEATURE_PGE 0x00000014 /* Page table Entry Global bit */
1358 #define CPU_FEATURE_PSE 0x00000024 /* Page Size Extension */
1359 #define CPU_FEATURE_MTRR 0x00000040 /* Memory Type Range Registers */
1360 #define CPU_FEATURE_CX8 0x00000080 /* Compare and eXchange 8 byte instr. */
1361 #define CPU_FEATURE_MMX 0x00000100 /* Multi Media eXtensions */
1362 #define CPU_FEATURE_X86 0x00000200 /* seems to be always ON, on the '86 */
1363 #define CPU_FEATURE_PAT 0x00000400 /* Page Attribute Table */
1364 #define CPU_FEATURE_FXSR 0x00000800 /* FXSAVE and FXSTORE instructions */
1365 #define CPU_FEATURE_SEP 0x00001000 /* SYSENTER and SYSEXIT instructions */
1366 #define CPU_FEATURE_SSE 0x00002000 /* SSE extensions (ext. MMX) */
1367 #define CPU_FEATURE_3DNOW 0x00004000 /* 3DNOW instructions available */
1368 #define CPU_FEATURE_SSE2 0x00010000 /* SSE2 extensions (XMMI64) */
1369 #define CPU_FEATURE_DS 0x00020000 /* Debug Store */
1370 #define CPU_FEATURE_HTT 0x00040000 /* Hyper Threading Technology */
1372 /* System Information Class 0x02 */
1374 /* Documented in "Windows NT/2000 Native API Reference" by Gary Nebbett. */
1375 typedef struct _SYSTEM_PERFORMANCE_INFORMATION
{
1376 LARGE_INTEGER IdleTime
;
1377 LARGE_INTEGER ReadTransferCount
;
1378 LARGE_INTEGER WriteTransferCount
;
1379 LARGE_INTEGER OtherTransferCount
;
1380 ULONG ReadOperationCount
;
1381 ULONG WriteOperationCount
;
1382 ULONG OtherOperationCount
;
1383 ULONG AvailablePages
;
1384 ULONG TotalCommittedPages
;
1385 ULONG TotalCommitLimit
;
1386 ULONG PeakCommitment
;
1388 ULONG WriteCopyFaults
;
1389 ULONG TransitionFaults
;
1391 ULONG DemandZeroFaults
;
1395 ULONG PagefilePagesWritten
;
1396 ULONG PagefilePageWriteIos
;
1397 ULONG MappedFilePagesWritten
;
1398 ULONG MappedFilePageWriteIos
;
1399 ULONG PagedPoolUsage
;
1400 ULONG NonPagedPoolUsage
;
1401 ULONG PagedPoolAllocs
;
1402 ULONG PagedPoolFrees
;
1403 ULONG NonPagedPoolAllocs
;
1404 ULONG NonPagedPoolFrees
;
1405 ULONG TotalFreeSystemPtes
;
1406 ULONG SystemCodePage
;
1407 ULONG TotalSystemDriverPages
;
1408 ULONG TotalSystemCodePages
;
1409 ULONG SmallNonPagedLookasideListAllocateHits
;
1410 ULONG SmallPagedLookasideListAllocateHits
;
1412 ULONG MmSystemCachePage
;
1413 ULONG PagedPoolPage
;
1414 ULONG SystemDriverPage
;
1415 ULONG FastReadNoWait
;
1417 ULONG FastReadResourceMiss
;
1418 ULONG FastReadNotPossible
;
1419 ULONG FastMdlReadNoWait
;
1420 ULONG FastMdlReadWait
;
1421 ULONG FastMdlReadResourceMiss
;
1422 ULONG FastMdlReadNotPossible
;
1423 ULONG MapDataNoWait
;
1425 ULONG MapDataNoWaitMiss
;
1426 ULONG MapDataWaitMiss
;
1427 ULONG PinMappedDataCount
;
1428 ULONG PinReadNoWait
;
1430 ULONG PinReadNoWaitMiss
;
1431 ULONG PinReadWaitMiss
;
1432 ULONG CopyReadNoWait
;
1434 ULONG CopyReadNoWaitMiss
;
1435 ULONG CopyReadWaitMiss
;
1436 ULONG MdlReadNoWait
;
1438 ULONG MdlReadNoWaitMiss
;
1439 ULONG MdlReadWaitMiss
;
1442 ULONG LazyWritePages
;
1445 ULONG ContextSwitches
;
1446 ULONG FirstLevelTbFills
;
1447 ULONG SecondLevelTbFills
;
1449 } SYSTEM_PERFORMANCE_INFORMATION
, *PSYSTEM_PERFORMANCE_INFORMATION
;
1451 /* System Information Class 0x03 */
1453 typedef struct _SYSTEM_TIMEOFDAY_INFORMATION
{
1455 LARGE_INTEGER liKeBootTime
;
1456 LARGE_INTEGER liKeSystemTime
;
1457 LARGE_INTEGER liExpTimeZoneBias
;
1458 ULONG uCurrentTimeZoneId
;
1460 ULONGLONG BootTimeBias
;
1461 ULONGLONG SleepTimeBias
;
1465 } SYSTEM_TIMEOFDAY_INFORMATION
, *PSYSTEM_TIMEOFDAY_INFORMATION
; /* was SYSTEM_TIME_INFORMATION */
1467 /* System Information Class 0x08 */
1469 typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
{
1470 LARGE_INTEGER IdleTime
;
1471 LARGE_INTEGER KernelTime
;
1472 LARGE_INTEGER UserTime
;
1473 LARGE_INTEGER Reserved1
[2];
1475 } SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
, *PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
;
1477 /* System Information Class 0x0b */
1479 typedef struct _SYSTEM_DRIVER_INFORMATION
{
1485 char szName
[MAX_PATH
+ 1];
1486 } SYSTEM_DRIVER_INFORMATION
, *PSYSTEM_DRIVER_INFORMATION
;
1488 /* System Information Class 0x10 */
1490 typedef struct _SYSTEM_HANDLE_ENTRY
{
1495 PVOID ObjectPointer
;
1497 } SYSTEM_HANDLE_ENTRY
, *PSYSTEM_HANDLE_ENTRY
;
1499 typedef struct _SYSTEM_HANDLE_INFORMATION
{
1501 SYSTEM_HANDLE_ENTRY Handle
[1];
1502 } SYSTEM_HANDLE_INFORMATION
, *PSYSTEM_HANDLE_INFORMATION
;
1504 /* System Information Class 0x15 */
1506 typedef struct _SYSTEM_CACHE_INFORMATION
{
1509 ULONG PageFaultCount
;
1510 ULONG MinimumWorkingSet
;
1511 ULONG MaximumWorkingSet
;
1516 } SYSTEM_CACHE_INFORMATION
, *PSYSTEM_CACHE_INFORMATION
;
1518 /* System Information Class 0x17 */
1520 typedef struct _SYSTEM_INTERRUPT_INFORMATION
{
1522 } SYSTEM_INTERRUPT_INFORMATION
, *PSYSTEM_INTERRUPT_INFORMATION
;
1524 typedef struct _SYSTEM_CONFIGURATION_INFO
{
1528 WORD ProcessorArchitecture
;
1533 PVOID MinimumApplicationAddress
;
1534 PVOID MaximumApplicationAddress
;
1535 ULONG ActiveProcessorMask
;
1536 ULONG NumberOfProcessors
;
1537 ULONG ProcessorType
;
1538 ULONG AllocationGranularity
;
1539 WORD ProcessorLevel
;
1540 WORD ProcessorRevision
;
1541 } SYSTEM_CONFIGURATION_INFO
, *PSYSTEM_CONFIGURATION_INFO
;
1543 typedef struct _SYSTEM_EXCEPTION_INFORMATION
{
1545 } SYSTEM_EXCEPTION_INFORMATION
, *PSYSTEM_EXCEPTION_INFORMATION
;
1547 typedef struct _SYSTEM_LOOKASIDE_INFORMATION
{
1549 } SYSTEM_LOOKASIDE_INFORMATION
, *PSYSTEM_LOOKASIDE_INFORMATION
;
1551 typedef struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION
{
1552 BOOLEAN DebuggerEnabled
;
1553 BOOLEAN DebuggerNotPresent
;
1554 } SYSTEM_KERNEL_DEBUGGER_INFORMATION
, *PSYSTEM_KERNEL_DEBUGGER_INFORMATION
;
1556 /* System Information Class 0x05 */
1558 typedef struct _VM_COUNTERS_
{
1559 SIZE_T PeakVirtualSize
;
1561 ULONG PageFaultCount
;
1562 SIZE_T PeakWorkingSetSize
;
1563 SIZE_T WorkingSetSize
;
1564 SIZE_T QuotaPeakPagedPoolUsage
;
1565 SIZE_T QuotaPagedPoolUsage
;
1566 SIZE_T QuotaPeakNonPagedPoolUsage
;
1567 SIZE_T QuotaNonPagedPoolUsage
;
1568 SIZE_T PagefileUsage
;
1569 SIZE_T PeakPagefileUsage
;
1570 SIZE_T PrivatePageCount
;
1571 } VM_COUNTERS
, *PVM_COUNTERS
;
1573 typedef struct _SYSTEM_PROCESS_INFORMATION
{
1574 #ifdef __WINESRC__ /* win32/win64 */
1575 ULONG NextEntryOffset
; /* 00/00 */
1576 DWORD dwThreadCount
; /* 04/04 */
1577 DWORD dwUnknown1
[6]; /* 08/08 */
1578 LARGE_INTEGER CreationTime
; /* 20/20 */
1579 LARGE_INTEGER UserTime
; /* 28/28 */
1580 LARGE_INTEGER KernelTime
; /* 30/30 */
1581 UNICODE_STRING ProcessName
; /* 38/38 */
1582 DWORD dwBasePriority
; /* 40/48 */
1583 HANDLE UniqueProcessId
; /* 44/50 */
1584 HANDLE ParentProcessId
; /* 48/58 */
1585 ULONG HandleCount
; /* 4c/60 */
1586 ULONG SessionId
; /* 50/64 */
1587 DWORD dwUnknown4
; /* 54/68 */
1588 VM_COUNTERS vmCounters
; /* 58/70 */
1589 IO_COUNTERS ioCounters
; /* 88/d0 */
1590 SYSTEM_THREAD_INFORMATION ti
[1]; /* b8/100 */
1592 ULONG NextEntryOffset
; /* 00/00 */
1593 BYTE Reserved1
[52]; /* 04/04 */
1594 PVOID Reserved2
[3]; /* 38/38 */
1595 HANDLE UniqueProcessId
; /* 44/50 */
1596 PVOID Reserved3
; /* 48/58 */
1597 ULONG HandleCount
; /* 4c/60 */
1598 BYTE Reserved4
[4]; /* 50/64 */
1599 PVOID Reserved5
[11]; /* 54/68 */
1600 SIZE_T PeakPagefileUsage
; /* 80/c0 */
1601 SIZE_T PrivatePageCount
; /* 84/c8 */
1602 LARGE_INTEGER Reserved6
[6]; /* 88/d0 */
1604 } SYSTEM_PROCESS_INFORMATION
, *PSYSTEM_PROCESS_INFORMATION
;
1606 typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION
{
1607 ULONG RegistryQuotaAllowed
;
1608 ULONG RegistryQuotaUsed
;
1610 } SYSTEM_REGISTRY_QUOTA_INFORMATION
, *PSYSTEM_REGISTRY_QUOTA_INFORMATION
;
1612 typedef struct _SYSTEM_TIME_ADJUSTMENT
{
1613 ULONG TimeAdjustment
;
1614 BOOLEAN TimeAdjustmentDisabled
;
1615 } SYSTEM_TIME_ADJUSTMENT
, *PSYSTEM_TIME_ADJUSTMENT
;
1617 typedef enum _SYSTEM_FIRMWARE_TABLE_ACTION
1619 SystemFirmwareTable_Enumerate
= 0,
1620 SystemFirmwareTable_Get
= 1
1621 } SYSTEM_FIRMWARE_TABLE_ACTION
, *PSYSTEM_FIRMWARE_TABLE_ACTION
;
1623 /* System Information Class 0x4C */
1625 typedef struct _SYSTEM_FIRMWARE_TABLE_INFORMATION
1627 ULONG ProviderSignature
;
1628 SYSTEM_FIRMWARE_TABLE_ACTION Action
;
1630 ULONG TableBufferLength
;
1631 UCHAR TableBuffer
[1];
1632 } SYSTEM_FIRMWARE_TABLE_INFORMATION
, *PSYSTEM_FIRMWARE_TABLE_INFORMATION
;
1634 typedef struct _TIME_FIELDS
1641 CSHORT Milliseconds
;
1643 } TIME_FIELDS
, *PTIME_FIELDS
;
1645 typedef struct _WINSTATIONINFORMATIONW
{
1648 BYTE Reserved3
[1140];
1649 } WINSTATIONINFORMATIONW
, *PWINSTATIONINFORMATIONW
;
1651 typedef BOOLEAN (WINAPI
* PWINSTATIONQUERYINFORMATIONW
)(HANDLE
,ULONG
,WINSTATIONINFOCLASS
,PVOID
,ULONG
,PULONG
);
1653 typedef struct _LDR_RESOURCE_INFO
1658 } LDR_RESOURCE_INFO
, *PLDR_RESOURCE_INFO
;
1661 /* debug buffer definitions */
1663 typedef struct _DEBUG_BUFFER
{
1664 HANDLE SectionHandle
;
1666 PVOID RemoteSectionBase
;
1667 ULONG SectionBaseDelta
;
1668 HANDLE EventPairHandle
;
1670 HANDLE RemoteThreadHandle
;
1671 ULONG InfoClassMask
;
1673 ULONG AllocatedSize
;
1675 PVOID ModuleInformation
;
1676 PVOID BackTraceInformation
;
1677 PVOID HeapInformation
;
1678 PVOID LockInformation
;
1680 } DEBUG_BUFFER
, *PDEBUG_BUFFER
;
1682 #define PDI_MODULES 0x01
1683 #define PDI_BACKTRACE 0x02
1684 #define PDI_HEAPS 0x04
1685 #define PDI_HEAP_TAGS 0x08
1686 #define PDI_HEAP_BLOCKS 0x10
1687 #define PDI_LOCKS 0x20
1689 typedef struct _DEBUG_MODULE_INFORMATION
{
1697 USHORT ModuleNameOffset
;
1698 CHAR ImageName
[256];
1699 } DEBUG_MODULE_INFORMATION
, *PDEBUG_MODULE_INFORMATION
;
1701 typedef struct _DEBUG_HEAP_INFORMATION
{
1713 } DEBUG_HEAP_INFORMATION
, *PDEBUG_HEAP_INFORMATION
;
1715 typedef struct _DEBUG_LOCK_INFORMATION
{
1718 USHORT CreatorBackTraceIndex
;
1719 ULONG OwnerThreadId
;
1721 ULONG ContentionCount
;
1723 ULONG RecursionCount
;
1724 ULONG NumberOfSharedWaiters
;
1725 ULONG NumberOfExclusiveWaiters
;
1726 } DEBUG_LOCK_INFORMATION
, *PDEBUG_LOCK_INFORMATION
;
1728 typedef struct _PORT_MESSAGE_HEADER
{
1732 USHORT VirtualRangesOffset
;
1736 } PORT_MESSAGE_HEADER
, *PPORT_MESSAGE_HEADER
, PORT_MESSAGE
, *PPORT_MESSAGE
;
1738 typedef unsigned short RTL_ATOM
, *PRTL_ATOM
;
1740 /* Wine doesn't implement atom table as NT does:
1741 * - in NT, atom tables are user space tables, which ntdll directly accesses
1742 * - on Wine, (even local) atom tables are wineserver objects, hence a HANDLE
1744 typedef struct atom_table
*RTL_ATOM_TABLE
, **PRTL_ATOM_TABLE
;
1746 typedef enum _ATOM_INFORMATION_CLASS
{
1747 AtomBasicInformation
= 0,
1748 AtomTableInformation
= 1,
1749 } ATOM_INFORMATION_CLASS
;
1751 typedef struct _ATOM_BASIC_INFORMATION
{
1752 USHORT ReferenceCount
;
1756 } ATOM_BASIC_INFORMATION
, *PATOM_BASIC_INFORMATION
;
1758 /* FIXME: names probably not correct */
1759 typedef struct _RTL_HANDLE
1761 struct _RTL_HANDLE
* Next
;
1764 /* FIXME: names probably not correct */
1765 typedef struct _RTL_HANDLE_TABLE
1767 ULONG MaxHandleCount
; /* 0x00 */
1768 ULONG HandleSize
; /* 0x04 */
1769 ULONG Unused
[2]; /* 0x08-0x0c */
1770 PVOID NextFree
; /* 0x10 */
1771 PVOID FirstHandle
; /* 0x14 */
1772 PVOID ReservedMemory
; /* 0x18 */
1773 PVOID MaxHandle
; /* 0x1c */
1776 /***********************************************************************
1780 /* flags for NtCreateFile and NtOpenFile */
1781 #define FILE_DIRECTORY_FILE 0x00000001
1782 #define FILE_WRITE_THROUGH 0x00000002
1783 #define FILE_SEQUENTIAL_ONLY 0x00000004
1784 #define FILE_NO_INTERMEDIATE_BUFFERING 0x00000008
1785 #define FILE_SYNCHRONOUS_IO_ALERT 0x00000010
1786 #define FILE_SYNCHRONOUS_IO_NONALERT 0x00000020
1787 #define FILE_NON_DIRECTORY_FILE 0x00000040
1788 #define FILE_CREATE_TREE_CONNECTION 0x00000080
1789 #define FILE_COMPLETE_IF_OPLOCKED 0x00000100
1790 #define FILE_NO_EA_KNOWLEDGE 0x00000200
1791 #define FILE_OPEN_FOR_RECOVERY 0x00000400
1792 #define FILE_RANDOM_ACCESS 0x00000800
1793 #define FILE_DELETE_ON_CLOSE 0x00001000
1794 #define FILE_OPEN_BY_FILE_ID 0x00002000
1795 #define FILE_OPEN_FOR_BACKUP_INTENT 0x00004000
1796 #define FILE_NO_COMPRESSION 0x00008000
1797 #define FILE_RESERVE_OPFILTER 0x00100000
1798 #define FILE_OPEN_REPARSE_POINT 0x00200000
1799 #define FILE_OPEN_OFFLINE_FILE 0x00400000
1800 #define FILE_OPEN_FOR_FREE_SPACE_QUERY 0x00800000
1802 #define FILE_ATTRIBUTE_VALID_FLAGS 0x00007fb7
1803 #define FILE_ATTRIBUTE_VALID_SET_FLAGS 0x000031a7
1805 /* status for NtCreateFile or NtOpenFile */
1806 #define FILE_SUPERSEDED 0
1807 #define FILE_OPENED 1
1808 #define FILE_CREATED 2
1809 #define FILE_OVERWRITTEN 3
1810 #define FILE_EXISTS 4
1811 #define FILE_DOES_NOT_EXIST 5
1813 /* disposition for NtCreateFile */
1814 #define FILE_SUPERSEDE 0
1816 #define FILE_CREATE 2
1817 #define FILE_OPEN_IF 3
1818 #define FILE_OVERWRITE 4
1819 #define FILE_OVERWRITE_IF 5
1820 #define FILE_MAXIMUM_DISPOSITION 5
1822 /* Characteristics of a File System */
1823 #define FILE_REMOVABLE_MEDIA 0x00000001
1824 #define FILE_READ_ONLY_DEVICE 0x00000002
1825 #define FILE_FLOPPY_DISKETTE 0x00000004
1826 #define FILE_WRITE_ONE_MEDIA 0x00000008
1827 #define FILE_REMOTE_DEVICE 0x00000010
1828 #define FILE_DEVICE_IS_MOUNTED 0x00000020
1829 #define FILE_VIRTUAL_VOLUME 0x00000040
1830 #define FILE_AUTOGENERATED_DEVICE_NAME 0x00000080
1831 #define FILE_DEVICE_SECURE_OPEN 0x00000100
1832 #define FILE_CHARACTERISTIC_PNP_DEVICE 0x00000800
1833 #define FILE_CHARACTERISTIC_TS_DEVICE 0x00001000
1834 #define FILE_CHARACTERISTIC_WEBDAV_DEVICE 0x00002000
1835 #define FILE_CHARACTERISTIC_CSV 0x00010000
1836 #define FILE_DEVICE_ALLOW_APPCONTAINER_TRAVERSAL 0x00020000
1837 #define FILE_PORTABLE_DEVICE 0x00040000
1839 /* options for NtCreateNamedPipeFile */
1840 #define FILE_PIPE_INBOUND 0x00000000
1841 #define FILE_PIPE_OUTBOUND 0x00000001
1842 #define FILE_PIPE_FULL_DUPLEX 0x00000002
1844 /* options for pipe's type */
1845 #define FILE_PIPE_TYPE_MESSAGE 0x00000001
1846 #define FILE_PIPE_TYPE_BYTE 0x00000000
1847 /* options for pipe's message mode */
1848 #define FILE_PIPE_MESSAGE_MODE 0x00000001
1849 #define FILE_PIPE_BYTE_STREAM_MODE 0x00000000
1850 /* options for pipe's blocking mode */
1851 #define FILE_PIPE_COMPLETE_OPERATION 0x00000001
1852 #define FILE_PIPE_QUEUE_OPERATION 0x00000000
1853 /* and client / server end */
1854 #define FILE_PIPE_SERVER_END 0x00000001
1855 #define FILE_PIPE_CLIENT_END 0x00000000
1857 #define INTERNAL_TS_ACTIVE_CONSOLE_ID ( *((volatile ULONG*)(0x7ffe02d8)) )
1859 #define LOGONID_CURRENT ((ULONG)-1)
1861 #define OBJ_INHERIT 0x00000002
1862 #define OBJ_PERMANENT 0x00000010
1863 #define OBJ_EXCLUSIVE 0x00000020
1864 #define OBJ_CASE_INSENSITIVE 0x00000040
1865 #define OBJ_OPENIF 0x00000080
1866 #define OBJ_OPENLINK 0x00000100
1867 #define OBJ_KERNEL_HANDLE 0x00000200
1868 #define OBJ_VALID_ATTRIBUTES 0x000003F2
1870 #define SERVERNAME_CURRENT ((HANDLE)NULL)
1872 typedef void (CALLBACK
*PNTAPCFUNC
)(ULONG_PTR
,ULONG_PTR
,ULONG_PTR
); /* FIXME: not the right name */
1873 typedef void (CALLBACK
*PRTL_THREAD_START_ROUTINE
)(LPVOID
); /* FIXME: not the right name */
1874 typedef DWORD (CALLBACK
*PRTL_WORK_ITEM_ROUTINE
)(LPVOID
); /* FIXME: not the right name */
1875 typedef void (NTAPI
*RTL_WAITORTIMERCALLBACKFUNC
)(PVOID
,BOOLEAN
); /* FIXME: not the right name */
1878 /* DbgPrintEx default levels */
1879 #define DPFLTR_ERROR_LEVEL 0
1880 #define DPFLTR_WARNING_LEVEL 1
1881 #define DPFLTR_TRACE_LEVEL 2
1882 #define DPFLTR_INFO_LEVEL 3
1883 #define DPFLTR_MASK 0x8000000
1885 /* Well-known LUID values */
1886 #define SE_MIN_WELL_KNOWN_PRIVILEGE 2
1887 #define SE_CREATE_TOKEN_PRIVILEGE 2
1888 #define SE_ASSIGNPRIMARYTOKEN_PRIVILEGE 3
1889 #define SE_LOCK_MEMORY_PRIVILEGE 4
1890 #define SE_INCREASE_QUOTA_PRIVILEGE 5
1891 #define SE_UNSOLICITED_INPUT_PRIVILEGE 6 /* obsolete */
1892 #define SE_MACHINE_ACCOUNT_PRIVILEGE 6
1893 #define SE_TCB_PRIVILEGE 7
1894 #define SE_SECURITY_PRIVILEGE 8
1895 #define SE_TAKE_OWNERSHIP_PRIVILEGE 9
1896 #define SE_LOAD_DRIVER_PRIVILEGE 10
1897 #define SE_SYSTEM_PROFILE_PRIVILEGE 11
1898 #define SE_SYSTEMTIME_PRIVILEGE 12
1899 #define SE_PROF_SINGLE_PROCESS_PRIVILEGE 13
1900 #define SE_INC_BASE_PRIORITY_PRIVILEGE 14
1901 #define SE_CREATE_PAGEFILE_PRIVILEGE 15
1902 #define SE_CREATE_PERMANENT_PRIVILEGE 16
1903 #define SE_BACKUP_PRIVILEGE 17
1904 #define SE_RESTORE_PRIVILEGE 18
1905 #define SE_SHUTDOWN_PRIVILEGE 19
1906 #define SE_DEBUG_PRIVILEGE 20
1907 #define SE_AUDIT_PRIVILEGE 21
1908 #define SE_SYSTEM_ENVIRONMENT_PRIVILEGE 22
1909 #define SE_CHANGE_NOTIFY_PRIVILEGE 23
1910 #define SE_REMOTE_SHUTDOWN_PRIVILEGE 24
1911 #define SE_UNDOCK_PRIVILEGE 25
1912 #define SE_SYNC_AGENT_PRIVILEGE 26
1913 #define SE_ENABLE_DELEGATION_PRIVILEGE 27
1914 #define SE_MANAGE_VOLUME_PRIVILEGE 28
1915 #define SE_IMPERSONATE_PRIVILEGE 29
1916 #define SE_CREATE_GLOBAL_PRIVILEGE 30
1917 #define SE_MAX_WELL_KNOWN_PRIVILEGE SE_CREATE_GLOBAL_PRIVILEGE
1919 /* NtGlobalFlag bits */
1920 #define FLG_STOP_ON_EXCEPTION 0x00000001
1921 #define FLG_SHOW_LDR_SNAPS 0x00000002
1922 #define FLG_DEBUG_INITIAL_COMMAND 0x00000004
1923 #define FLG_STOP_ON_HUNG_GUI 0x00000008
1924 #define FLG_HEAP_ENABLE_TAIL_CHECK 0x00000010
1925 #define FLG_HEAP_ENABLE_FREE_CHECK 0x00000020
1926 #define FLG_HEAP_VALIDATE_PARAMETERS 0x00000040
1927 #define FLG_HEAP_VALIDATE_ALL 0x00000080
1928 #define FLG_APPLICATION_VERIFIER 0x00000100
1929 #define FLG_POOL_ENABLE_TAGGING 0x00000400
1930 #define FLG_HEAP_ENABLE_TAGGING 0x00000800
1931 #define FLG_USER_STACK_TRACE_DB 0x00001000
1932 #define FLG_KERNEL_STACK_TRACE_DB 0x00002000
1933 #define FLG_MAINTAIN_OBJECT_TYPELIST 0x00004000
1934 #define FLG_HEAP_ENABLE_TAG_BY_DLL 0x00008000
1935 #define FLG_DISABLE_STACK_EXTENSION 0x00010000
1936 #define FLG_ENABLE_CSRDEBUG 0x00020000
1937 #define FLG_ENABLE_KDEBUG_SYMBOL_LOAD 0x00040000
1938 #define FLG_DISABLE_PAGE_KERNEL_STACKS 0x00080000
1939 #define FLG_ENABLE_SYSTEM_CRIT_BREAKS 0x00100000
1940 #define FLG_HEAP_DISABLE_COALESCING 0x00200000
1941 #define FLG_ENABLE_CLOSE_EXCEPTIONS 0x00400000
1942 #define FLG_ENABLE_EXCEPTION_LOGGING 0x00800000
1943 #define FLG_ENABLE_HANDLE_TYPE_TAGGING 0x01000000
1944 #define FLG_HEAP_PAGE_ALLOCS 0x02000000
1945 #define FLG_DEBUG_INITIAL_COMMAND_EX 0x04000000
1946 #define FLG_DISABLE_DBGPRINT 0x08000000
1947 #define FLG_CRITSEC_EVENT_CREATION 0x10000000
1948 #define FLG_LDR_TOP_DOWN 0x20000000
1949 #define FLG_ENABLE_HANDLE_EXCEPTIONS 0x40000000
1950 #define FLG_DISABLE_PROTDLLS 0x80000000
1952 /* Rtl*Registry* functions structs and defines */
1953 #define RTL_REGISTRY_ABSOLUTE 0
1954 #define RTL_REGISTRY_SERVICES 1
1955 #define RTL_REGISTRY_CONTROL 2
1956 #define RTL_REGISTRY_WINDOWS_NT 3
1957 #define RTL_REGISTRY_DEVICEMAP 4
1958 #define RTL_REGISTRY_USER 5
1960 #define RTL_REGISTRY_HANDLE 0x40000000
1961 #define RTL_REGISTRY_OPTIONAL 0x80000000
1963 #define RTL_QUERY_REGISTRY_SUBKEY 0x00000001
1964 #define RTL_QUERY_REGISTRY_TOPKEY 0x00000002
1965 #define RTL_QUERY_REGISTRY_REQUIRED 0x00000004
1966 #define RTL_QUERY_REGISTRY_NOVALUE 0x00000008
1967 #define RTL_QUERY_REGISTRY_NOEXPAND 0x00000010
1968 #define RTL_QUERY_REGISTRY_DIRECT 0x00000020
1969 #define RTL_QUERY_REGISTRY_DELETE 0x00000040
1971 typedef NTSTATUS (WINAPI
*PRTL_QUERY_REGISTRY_ROUTINE
)( PCWSTR ValueName
,
1976 PVOID EntryContext
);
1978 typedef struct _RTL_QUERY_REGISTRY_TABLE
1980 PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine
;
1986 ULONG DefaultLength
;
1987 } RTL_QUERY_REGISTRY_TABLE
, *PRTL_QUERY_REGISTRY_TABLE
;
1989 typedef struct _KEY_MULTIPLE_VALUE_INFORMATION
1991 PUNICODE_STRING ValueName
;
1995 } KEY_MULTIPLE_VALUE_INFORMATION
, *PKEY_MULTIPLE_VALUE_INFORMATION
;
1997 typedef VOID (CALLBACK
*PRTL_OVERLAPPED_COMPLETION_ROUTINE
)(DWORD
,DWORD
,LPVOID
);
1999 typedef VOID (CALLBACK
*PTIMER_APC_ROUTINE
) ( PVOID
, ULONG
, LONG
);
2001 typedef enum _EVENT_INFORMATION_CLASS
{
2002 EventBasicInformation
2003 } EVENT_INFORMATION_CLASS
, *PEVENT_INFORMATION_CLASS
;
2005 typedef struct _EVENT_BASIC_INFORMATION
{
2006 EVENT_TYPE EventType
;
2008 } EVENT_BASIC_INFORMATION
, *PEVENT_BASIC_INFORMATION
;
2010 typedef enum _SEMAPHORE_INFORMATION_CLASS
{
2011 SemaphoreBasicInformation
2012 } SEMAPHORE_INFORMATION_CLASS
, *PSEMAPHORE_INFORMATION_CLASS
;
2014 typedef struct _SEMAPHORE_BASIC_INFORMATION
{
2017 } SEMAPHORE_BASIC_INFORMATION
, *PSEMAPHORE_BASIC_INFORMATION
;
2019 typedef enum _SECTION_INFORMATION_CLASS
2021 SectionBasicInformation
,
2022 SectionImageInformation
,
2023 } SECTION_INFORMATION_CLASS
;
2025 typedef struct _SECTION_BASIC_INFORMATION
{
2029 } SECTION_BASIC_INFORMATION
, *PSECTION_BASIC_INFORMATION
;
2031 typedef struct _SECTION_IMAGE_INFORMATION
{
2032 PVOID TransferAddress
;
2034 SIZE_T MaximumStackSize
;
2035 SIZE_T CommittedStackSize
;
2036 ULONG SubSystemType
;
2037 WORD SubsystemVersionLow
;
2038 WORD SubsystemVersionHigh
;
2040 USHORT ImageCharacteristics
;
2041 USHORT DllCharacteristics
;
2043 BOOLEAN ImageContainsCode
;
2049 UCHAR ComPlusNativeReady
: 1;
2050 UCHAR ComPlusILOnly
: 1;
2051 UCHAR ImageDynamicallyRelocated
: 1;
2052 UCHAR ImageMappedFlat
: 1;
2053 UCHAR BaseBelow4gb
: 1;
2058 ULONG ImageFileSize
;
2060 } SECTION_IMAGE_INFORMATION
, *PSECTION_IMAGE_INFORMATION
;
2062 typedef struct _LPC_SECTION_WRITE
{
2064 HANDLE SectionHandle
;
2065 ULONG SectionOffset
;
2068 PVOID TargetViewBase
;
2069 } LPC_SECTION_WRITE
, *PLPC_SECTION_WRITE
;
2071 typedef struct _LPC_SECTION_READ
{
2075 } LPC_SECTION_READ
, *PLPC_SECTION_READ
;
2077 typedef struct _LPC_MESSAGE
{
2081 USHORT VirtualRangesOffset
;
2083 ULONG_PTR MessageId
;
2084 ULONG_PTR SectionSize
;
2085 UCHAR Data
[ANYSIZE_ARRAY
];
2086 } LPC_MESSAGE
, *PLPC_MESSAGE
;
2088 typedef struct _RTL_USER_PROCESS_INFORMATION
2094 SECTION_IMAGE_INFORMATION ImageInformation
;
2095 } RTL_USER_PROCESS_INFORMATION
, *PRTL_USER_PROCESS_INFORMATION
;
2097 typedef enum _SHUTDOWN_ACTION
{
2101 } SHUTDOWN_ACTION
, *PSHUTDOWN_ACTION
;
2103 typedef struct _COUNTED_REASON_CONTEXT
2111 UNICODE_STRING ResourceFileName
;
2112 USHORT ResourceReasonId
;
2114 UNICODE_STRING
*ReasonStrings
;
2116 UNICODE_STRING SimpleString
;
2118 } COUNTED_REASON_CONTEXT
, *PCOUNTED_REASON_CONTEXT
;
2120 typedef enum _KPROFILE_SOURCE
{
2122 ProfileAlignmentFixup
,
2125 ProfileLoadInstructions
,
2126 ProfilePipelineFrozen
,
2127 ProfileBranchInstructions
,
2128 ProfileTotalNonissues
,
2129 ProfileDcacheMisses
,
2130 ProfileIcacheMisses
,
2132 ProfileBranchMispredictions
,
2133 ProfileStoreInstructions
,
2134 ProfileFpInstructions
,
2135 ProfileIntegerInstructions
,
2139 ProfileSpecialInstructions
,
2141 ProfileIcacheIssues
,
2142 ProfileDcacheAccesses
,
2143 ProfileMemoryBarrierCycles
,
2144 ProfileLoadLinkedIssues
,
2146 } KPROFILE_SOURCE
, *PKPROFILE_SOURCE
;
2148 typedef struct _DIRECTORY_BASIC_INFORMATION
{
2149 UNICODE_STRING ObjectName
;
2150 UNICODE_STRING ObjectTypeName
;
2151 } DIRECTORY_BASIC_INFORMATION
, *PDIRECTORY_BASIC_INFORMATION
;
2153 typedef struct _INITIAL_TEB
{
2155 void *OldStackLimit
;
2158 void *DeallocationStack
;
2159 } INITIAL_TEB
, *PINITIAL_TEB
;
2161 typedef enum _PORT_INFORMATION_CLASS
{
2163 } PORT_INFORMATION_CLASS
, *PPORT_INFORMATION_CLASS
;
2165 typedef enum _IO_COMPLETION_INFORMATION_CLASS
{
2166 IoCompletionBasicInformation
2167 } IO_COMPLETION_INFORMATION_CLASS
, *PIO_COMPLETION_INFORMATION_CLASS
;
2169 typedef struct _FILE_COMPLETION_INFORMATION
{
2170 HANDLE CompletionPort
;
2171 ULONG_PTR CompletionKey
;
2172 } FILE_COMPLETION_INFORMATION
, *PFILE_COMPLETION_INFORMATION
;
2174 #define IO_COMPLETION_QUERY_STATE 0x0001
2175 #define IO_COMPLETION_MODIFY_STATE 0x0002
2176 #define IO_COMPLETION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
2178 typedef struct _FILE_IO_COMPLETION_INFORMATION
{
2179 ULONG_PTR CompletionKey
;
2180 ULONG_PTR CompletionValue
;
2181 IO_STATUS_BLOCK IoStatusBlock
;
2182 } FILE_IO_COMPLETION_INFORMATION
, *PFILE_IO_COMPLETION_INFORMATION
;
2184 typedef enum _HARDERROR_RESPONSE_OPTION
{
2185 OptionAbortRetryIgnore
,
2191 OptionShutdownSystem
2192 } HARDERROR_RESPONSE_OPTION
, *PHARDERROR_RESPONSE_OPTION
;
2194 typedef enum _HARDERROR_RESPONSE
{
2195 ResponseReturnToCaller
,
2204 } HARDERROR_RESPONSE
, *PHARDERROR_RESPONSE
;
2206 typedef enum _SYSDBG_COMMAND
{
2207 SysDbgQueryModuleInformation
,
2208 SysDbgQueryTraceInformation
,
2209 SysDbgSetTracepoint
,
2210 SysDbgSetSpecialCall
,
2211 SysDbgClearSpecialCalls
,
2212 SysDbgQuerySpecialCalls
,
2218 SysDbgWritePhysical
,
2219 SysDbgReadControlSpace
,
2220 SysDbgWriteControlSpace
,
2227 } SYSDBG_COMMAND
, *PSYSDBG_COMMAND
;
2229 typedef struct _CPTABLEINFO
2232 USHORT MaximumCharacterSize
;
2234 USHORT UniDefaultChar
;
2235 USHORT TransDefaultChar
;
2236 USHORT TransUniDefaultChar
;
2237 USHORT DBCSCodePage
;
2239 USHORT
*MultiByteTable
;
2240 void *WideCharTable
;
2242 USHORT
*DBCSOffsets
;
2243 } CPTABLEINFO
, *PCPTABLEINFO
;
2245 typedef struct _NLSTABLEINFO
2247 CPTABLEINFO OemTableInfo
;
2248 CPTABLEINFO AnsiTableInfo
;
2249 USHORT
*UpperCaseTable
;
2250 USHORT
*LowerCaseTable
;
2251 } NLSTABLEINFO
, *PNLSTABLEINFO
;
2253 /*************************************************************************
2256 * Those are not part of standard Winternl.h
2259 typedef struct _LDR_SERVICE_TAG_RECORD
2261 struct _LDR_SERVICE_TAG_RECORD
*Next
;
2263 } LDR_SERVICE_TAG_RECORD
, *PLDR_SERVICE_TAG_RECORD
;
2265 typedef struct _LDRP_CSLIST
2267 SINGLE_LIST_ENTRY
*Tail
;
2268 } LDRP_CSLIST
, *PLDRP_CSLIST
;
2270 typedef enum _LDR_DDAG_STATE
2272 LdrModulesMerged
= -5,
2273 LdrModulesInitError
= -4,
2274 LdrModulesSnapError
= -3,
2275 LdrModulesUnloaded
= -2,
2276 LdrModulesUnloading
= -1,
2277 LdrModulesPlaceHolder
= 0,
2278 LdrModulesMapping
= 1,
2279 LdrModulesMapped
= 2,
2280 LdrModulesWaitingForDependencies
= 3,
2281 LdrModulesSnapping
= 4,
2282 LdrModulesSnapped
= 5,
2283 LdrModulesCondensed
= 6,
2284 LdrModulesReadyToInit
= 7,
2285 LdrModulesInitializing
= 8,
2286 LdrModulesReadyToRun
= 9,
2289 typedef struct _LDR_DDAG_NODE
2292 LDR_SERVICE_TAG_RECORD
*ServiceTagList
;
2294 ULONG ReferenceCount
;
2295 ULONG DependencyCount
;
2298 LDRP_CSLIST Dependencies
;
2299 SINGLE_LIST_ENTRY RemovalLink
;
2301 LDRP_CSLIST IncomingDependencies
;
2302 LDR_DDAG_STATE State
;
2303 SINGLE_LIST_ENTRY CondenseLink
;
2304 ULONG PreorderNumber
;
2306 } LDR_DDAG_NODE
, *PLDR_DDAG_NODE
;
2308 typedef enum _LDR_DLL_LOAD_REASON
2310 LoadReasonStaticDependency
,
2311 LoadReasonStaticForwarderDependency
,
2312 LoadReasonDynamicForwarderDependency
,
2313 LoadReasonDelayloadDependency
,
2314 LoadReasonDynamicLoad
,
2315 LoadReasonAsImageLoad
,
2316 LoadReasonAsDataLoad
,
2317 LoadReasonUnknown
= -1
2318 } LDR_DLL_LOAD_REASON
, *PLDR_DLL_LOAD_REASON
;
2320 typedef struct _LDR_MODULE
2322 LIST_ENTRY InLoadOrderModuleList
;
2323 LIST_ENTRY InMemoryOrderModuleList
;
2324 LIST_ENTRY InInitializationOrderModuleList
;
2328 UNICODE_STRING FullDllName
;
2329 UNICODE_STRING BaseDllName
;
2333 HANDLE SectionHandle
;
2335 ULONG TimeDateStamp
;
2336 HANDLE ActivationContext
;
2338 LDR_DDAG_NODE
* DdagNode
;
2339 LIST_ENTRY NodeModuleLink
;
2340 struct _LDRP_LOAD_CONTEXT
*LoadContext
;
2341 void* ParentDllBase
;
2342 void* SwitchBackContext
;
2343 RTL_BALANCED_NODE BaseAddressIndexNode
;
2344 RTL_BALANCED_NODE MappingInfoIndexNode
;
2345 ULONG_PTR OriginalBase
;
2346 LARGE_INTEGER LoadTime
;
2347 ULONG BaseNameHashValue
;
2348 LDR_DLL_LOAD_REASON LoadReason
;
2349 ULONG ImplicitPathOptions
;
2350 ULONG ReferenceCount
;
2351 } LDR_MODULE
, *PLDR_MODULE
;
2353 typedef struct _LDR_DLL_LOADED_NOTIFICATION_DATA
2356 const UNICODE_STRING
*FullDllName
;
2357 const UNICODE_STRING
*BaseDllName
;
2360 } LDR_DLL_LOADED_NOTIFICATION_DATA
, *PLDR_DLL_LOADED_NOTIFICATION_DATA
;
2362 typedef struct _LDR_DLL_UNLOADED_NOTIFICATION_DATA
2365 const UNICODE_STRING
*FullDllName
;
2366 const UNICODE_STRING
*BaseDllName
;
2369 } LDR_DLL_UNLOADED_NOTIFICATION_DATA
, *PLDR_DLL_UNLOADED_NOTIFICATION_DATA
;
2371 typedef union _LDR_DLL_NOTIFICATION_DATA
2373 LDR_DLL_LOADED_NOTIFICATION_DATA Loaded
;
2374 LDR_DLL_UNLOADED_NOTIFICATION_DATA Unloaded
;
2375 } LDR_DLL_NOTIFICATION_DATA
, *PLDR_DLL_NOTIFICATION_DATA
;
2377 typedef void (CALLBACK
*PLDR_DLL_NOTIFICATION_FUNCTION
)(ULONG
, LDR_DLL_NOTIFICATION_DATA
*, void*);
2379 /* those defines are (some of the) regular LDR_MODULE.Flags values */
2380 #define LDR_IMAGE_IS_DLL 0x00000004
2381 #define LDR_LOAD_IN_PROGRESS 0x00001000
2382 #define LDR_UNLOAD_IN_PROGRESS 0x00002000
2383 #define LDR_NO_DLL_CALLS 0x00040000
2384 #define LDR_PROCESS_ATTACHED 0x00080000
2385 #define LDR_COR_IMAGE 0x00400000
2386 #define LDR_COR_ILONLY 0x01000000
2388 /* these ones is Wine specific */
2389 #define LDR_DONT_RESOLVE_REFS 0x40000000
2390 #define LDR_WINE_INTERNAL 0x80000000
2392 /* flag for LdrAddRefDll */
2393 #define LDR_ADDREF_DLL_PIN 0x00000001
2395 #define LDR_DLL_NOTIFICATION_REASON_LOADED 1
2396 #define LDR_DLL_NOTIFICATION_REASON_UNLOADED 2
2398 /* FIXME: to be checked */
2399 #define MAXIMUM_FILENAME_LENGTH 256
2401 typedef struct _SYSTEM_MODULE
2403 PVOID Section
; /* 00/00 */
2404 PVOID MappedBaseAddress
; /* 04/08 */
2405 PVOID ImageBaseAddress
; /* 08/10 */
2406 ULONG ImageSize
; /* 0c/18 */
2407 ULONG Flags
; /* 10/1c */
2408 WORD LoadOrderIndex
; /* 14/20 */
2409 WORD InitOrderIndex
; /* 16/22 */
2410 WORD LoadCount
; /* 18/24 */
2411 WORD NameOffset
; /* 1a/26 */
2412 BYTE Name
[MAXIMUM_FILENAME_LENGTH
]; /* 1c/28 */
2413 } SYSTEM_MODULE
, *PSYSTEM_MODULE
;
2415 typedef struct _SYSTEM_MODULE_INFORMATION
2418 SYSTEM_MODULE Modules
[1]; /* FIXME: should be Modules[0] */
2419 } SYSTEM_MODULE_INFORMATION
, *PSYSTEM_MODULE_INFORMATION
;
2421 #define THREAD_CREATE_FLAGS_CREATE_SUSPENDED 0x00000001
2422 #define THREAD_CREATE_FLAGS_SKIP_THREAD_ATTACH 0x00000002
2423 #define THREAD_CREATE_FLAGS_HIDE_FROM_DEBUGGER 0x00000004
2424 #define THREAD_CREATE_FLAGS_HAS_SECURITY_DESCRIPTOR 0x00000010
2425 #define THREAD_CREATE_FLAGS_ACCESS_CHECK_IN_TARGET 0x00000020
2426 #define THREAD_CREATE_FLAGS_INITIAL_THREAD 0x00000080
2428 typedef LONG (CALLBACK
*PRTL_EXCEPTION_FILTER
)(PEXCEPTION_POINTERS
);
2430 typedef void (CALLBACK
*PTP_IO_CALLBACK
)(PTP_CALLBACK_INSTANCE
,void*,void*,IO_STATUS_BLOCK
*,PTP_IO
);
2432 /***********************************************************************
2433 * Function declarations
2436 NTSYSAPI
void WINAPI
DbgBreakPoint(void);
2437 NTSYSAPI NTSTATUS WINAPIV
DbgPrint(LPCSTR fmt
, ...);
2438 NTSYSAPI NTSTATUS WINAPIV
DbgPrintEx(ULONG iComponentId
, ULONG Level
, LPCSTR fmt
, ...);
2439 NTSYSAPI NTSTATUS WINAPI
DbgUiIssueRemoteBreakin(HANDLE
);
2440 NTSYSAPI
void WINAPI
DbgUiRemoteBreakin(void*);
2441 NTSYSAPI
void WINAPI
DbgUserBreakPoint(void);
2442 NTSYSAPI NTSTATUS WINAPI
LdrAccessResource(HMODULE
,const IMAGE_RESOURCE_DATA_ENTRY
*,void**,PULONG
);
2443 NTSYSAPI NTSTATUS WINAPI
LdrAddDllDirectory(const UNICODE_STRING
*,void**);
2444 NTSYSAPI NTSTATUS WINAPI
LdrAddRefDll(ULONG
,HMODULE
);
2445 NTSYSAPI NTSTATUS WINAPI
LdrDisableThreadCalloutsForDll(HMODULE
);
2446 NTSYSAPI NTSTATUS WINAPI
LdrFindEntryForAddress(const void*, PLDR_MODULE
*);
2447 NTSYSAPI NTSTATUS WINAPI
LdrFindResourceDirectory_U(HMODULE
,const LDR_RESOURCE_INFO
*,ULONG
,const IMAGE_RESOURCE_DIRECTORY
**);
2448 NTSYSAPI NTSTATUS WINAPI
LdrFindResource_U(HMODULE
,const LDR_RESOURCE_INFO
*,ULONG
,const IMAGE_RESOURCE_DATA_ENTRY
**);
2449 NTSYSAPI NTSTATUS WINAPI
LdrGetDllDirectory(UNICODE_STRING
*);
2450 NTSYSAPI NTSTATUS WINAPI
LdrGetDllHandle(LPCWSTR
, ULONG
, const UNICODE_STRING
*, HMODULE
*);
2451 NTSYSAPI NTSTATUS WINAPI
LdrGetDllPath(PCWSTR
,ULONG
,PWSTR
*,PWSTR
*);
2452 NTSYSAPI NTSTATUS WINAPI
LdrGetProcedureAddress(HMODULE
, const ANSI_STRING
*, ULONG
, void**);
2453 NTSYSAPI NTSTATUS WINAPI
LdrLoadDll(LPCWSTR
, DWORD
, const UNICODE_STRING
*, HMODULE
*);
2454 NTSYSAPI NTSTATUS WINAPI
LdrLockLoaderLock(ULONG
,ULONG
*,ULONG_PTR
*);
2455 IMAGE_BASE_RELOCATION
* WINAPI
LdrProcessRelocationBlock(void*,UINT
,USHORT
*,INT_PTR
);
2456 NTSYSAPI NTSTATUS WINAPI
LdrQueryImageFileExecutionOptions(const UNICODE_STRING
*,LPCWSTR
,ULONG
,void*,ULONG
,ULONG
*);
2457 NTSYSAPI NTSTATUS WINAPI
LdrQueryProcessModuleInformation(SYSTEM_MODULE_INFORMATION
*, ULONG
, ULONG
*);
2458 NTSYSAPI NTSTATUS WINAPI
LdrRemoveDllDirectory(void*);
2459 NTSYSAPI NTSTATUS WINAPI
LdrSetDefaultDllDirectories(ULONG
);
2460 NTSYSAPI NTSTATUS WINAPI
LdrSetDllDirectory(const UNICODE_STRING
*);
2461 NTSYSAPI
void WINAPI
LdrShutdownProcess(void);
2462 NTSYSAPI
void WINAPI
LdrShutdownThread(void);
2463 NTSYSAPI NTSTATUS WINAPI
LdrUnloadDll(HMODULE
);
2464 NTSYSAPI NTSTATUS WINAPI
LdrUnlockLoaderLock(ULONG
,ULONG_PTR
);
2465 NTSYSAPI NTSTATUS WINAPI
NtAcceptConnectPort(PHANDLE
,ULONG
,PLPC_MESSAGE
,BOOLEAN
,PLPC_SECTION_WRITE
,PLPC_SECTION_READ
);
2466 NTSYSAPI NTSTATUS WINAPI
NtAccessCheck(PSECURITY_DESCRIPTOR
,HANDLE
,ACCESS_MASK
,PGENERIC_MAPPING
,PPRIVILEGE_SET
,PULONG
,PULONG
,NTSTATUS
*);
2467 NTSYSAPI NTSTATUS WINAPI
NtAccessCheckAndAuditAlarm(PUNICODE_STRING
,HANDLE
,PUNICODE_STRING
,PUNICODE_STRING
,PSECURITY_DESCRIPTOR
,ACCESS_MASK
,PGENERIC_MAPPING
,BOOLEAN
,PACCESS_MASK
,PBOOLEAN
,PBOOLEAN
);
2468 NTSYSAPI NTSTATUS WINAPI
NtAddAtom(const WCHAR
*,ULONG
,RTL_ATOM
*);
2469 NTSYSAPI NTSTATUS WINAPI
NtAdjustGroupsToken(HANDLE
,BOOLEAN
,PTOKEN_GROUPS
,ULONG
,PTOKEN_GROUPS
,PULONG
);
2470 NTSYSAPI NTSTATUS WINAPI
NtAdjustPrivilegesToken(HANDLE
,BOOLEAN
,PTOKEN_PRIVILEGES
,DWORD
,PTOKEN_PRIVILEGES
,PDWORD
);
2471 NTSYSAPI NTSTATUS WINAPI
NtAlertResumeThread(HANDLE
,PULONG
);
2472 NTSYSAPI NTSTATUS WINAPI
NtAlertThread(HANDLE ThreadHandle
);
2473 NTSYSAPI NTSTATUS WINAPI
NtAllocateLocallyUniqueId(PLUID lpLuid
);
2474 NTSYSAPI NTSTATUS WINAPI
NtAllocateUuids(PULARGE_INTEGER
,PULONG
,PULONG
,PUCHAR
);
2475 NTSYSAPI NTSTATUS WINAPI
NtAllocateVirtualMemory(HANDLE
,PVOID
*,ULONG_PTR
,SIZE_T
*,ULONG
,ULONG
);
2476 NTSYSAPI NTSTATUS WINAPI
NtAreMappedFilesTheSame(PVOID
,PVOID
);
2477 NTSYSAPI NTSTATUS WINAPI
NtAssignProcessToJobObject(HANDLE
,HANDLE
);
2478 NTSYSAPI NTSTATUS WINAPI
NtCallbackReturn(PVOID
,ULONG
,NTSTATUS
);
2479 NTSYSAPI NTSTATUS WINAPI
NtCancelIoFile(HANDLE
,PIO_STATUS_BLOCK
);
2480 NTSYSAPI NTSTATUS WINAPI
NtCancelIoFileEx(HANDLE
,PIO_STATUS_BLOCK
,PIO_STATUS_BLOCK
);
2481 NTSYSAPI NTSTATUS WINAPI
NtCancelTimer(HANDLE
, BOOLEAN
*);
2482 NTSYSAPI NTSTATUS WINAPI
NtClearEvent(HANDLE
);
2483 NTSYSAPI NTSTATUS WINAPI
NtClearPowerRequest(HANDLE
,POWER_REQUEST_TYPE
);
2484 NTSYSAPI NTSTATUS WINAPI
NtClose(HANDLE
);
2485 NTSYSAPI NTSTATUS WINAPI
NtCloseObjectAuditAlarm(PUNICODE_STRING
,HANDLE
,BOOLEAN
);
2486 NTSYSAPI NTSTATUS WINAPI
NtCompleteConnectPort(HANDLE
);
2487 NTSYSAPI NTSTATUS WINAPI
NtConnectPort(PHANDLE
,PUNICODE_STRING
,PSECURITY_QUALITY_OF_SERVICE
,PLPC_SECTION_WRITE
,PLPC_SECTION_READ
,PULONG
,PVOID
,PULONG
);
2488 NTSYSAPI NTSTATUS WINAPI
NtContinue(PCONTEXT
,BOOLEAN
);
2489 NTSYSAPI NTSTATUS WINAPI
NtCreateDirectoryObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2490 NTSYSAPI NTSTATUS WINAPI
NtCreateEvent(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,EVENT_TYPE
,BOOLEAN
);
2491 NTSYSAPI NTSTATUS WINAPI
NtCreateEventPair(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2492 NTSYSAPI NTSTATUS WINAPI
NtCreateFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,ULONG
,ULONG
,ULONG
,ULONG
,PVOID
,ULONG
);
2493 NTSYSAPI NTSTATUS WINAPI
NtCreateIoCompletion(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,ULONG
);
2494 NTSYSAPI NTSTATUS WINAPI
NtCreateJobObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2495 NTSYSAPI NTSTATUS WINAPI
NtCreateKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,PULONG
);
2496 NTSYSAPI NTSTATUS WINAPI
NtCreateKeyTransacted(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,HANDLE
,ULONG
*);
2497 NTSYSAPI NTSTATUS WINAPI
NtCreateKeyedEvent(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
);
2498 NTSYSAPI NTSTATUS WINAPI
NtCreateMailslotFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
,ULONG
,PLARGE_INTEGER
);
2499 NTSYSAPI NTSTATUS WINAPI
NtCreateMutant(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,BOOLEAN
);
2500 NTSYSAPI NTSTATUS WINAPI
NtCreateNamedPipeFile(PHANDLE
,ULONG
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,PLARGE_INTEGER
);
2501 NTSYSAPI NTSTATUS WINAPI
NtCreatePagingFile(PUNICODE_STRING
,PLARGE_INTEGER
,PLARGE_INTEGER
,PLARGE_INTEGER
);
2502 NTSYSAPI NTSTATUS WINAPI
NtCreatePort(PHANDLE
,POBJECT_ATTRIBUTES
,ULONG
,ULONG
,PULONG
);
2503 NTSYSAPI NTSTATUS WINAPI
NtCreatePowerRequest(HANDLE
*,COUNTED_REASON_CONTEXT
*);
2504 NTSYSAPI NTSTATUS WINAPI
NtCreateProcess(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,HANDLE
,BOOLEAN
,HANDLE
,HANDLE
,HANDLE
);
2505 NTSYSAPI NTSTATUS WINAPI
NtCreateProfile(PHANDLE
,HANDLE
,PVOID
,ULONG
,ULONG
,PVOID
,ULONG
,KPROFILE_SOURCE
,KAFFINITY
);
2506 NTSYSAPI NTSTATUS WINAPI
NtCreateSection(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const LARGE_INTEGER
*,ULONG
,ULONG
,HANDLE
);
2507 NTSYSAPI NTSTATUS WINAPI
NtCreateSemaphore(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,LONG
,LONG
);
2508 NTSYSAPI NTSTATUS WINAPI
NtCreateSymbolicLinkObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PUNICODE_STRING
);
2509 NTSYSAPI NTSTATUS WINAPI
NtCreateThread(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,HANDLE
,PCLIENT_ID
,PCONTEXT
,PINITIAL_TEB
,BOOLEAN
);
2510 NTSYSAPI NTSTATUS WINAPI
NtCreateTimer(HANDLE
*, ACCESS_MASK
, const OBJECT_ATTRIBUTES
*, TIMER_TYPE
);
2511 NTSYSAPI NTSTATUS WINAPI
NtCreateToken(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,TOKEN_TYPE
,PLUID
,PLARGE_INTEGER
,PTOKEN_USER
,PTOKEN_GROUPS
,PTOKEN_PRIVILEGES
,PTOKEN_OWNER
,PTOKEN_PRIMARY_GROUP
,PTOKEN_DEFAULT_DACL
,PTOKEN_SOURCE
);
2512 NTSYSAPI NTSTATUS WINAPI
NtDelayExecution(BOOLEAN
,const LARGE_INTEGER
*);
2513 NTSYSAPI NTSTATUS WINAPI
NtDeleteAtom(RTL_ATOM
);
2514 NTSYSAPI NTSTATUS WINAPI
NtDeleteFile(POBJECT_ATTRIBUTES
);
2515 NTSYSAPI NTSTATUS WINAPI
NtDeleteKey(HANDLE
);
2516 NTSYSAPI NTSTATUS WINAPI
NtDeleteValueKey(HANDLE
,const UNICODE_STRING
*);
2517 NTSYSAPI NTSTATUS WINAPI
NtDeviceIoControlFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,PVOID
,ULONG
,PVOID
,ULONG
);
2518 NTSYSAPI NTSTATUS WINAPI
NtDisplayString(PUNICODE_STRING
);
2519 NTSYSAPI NTSTATUS WINAPI
NtDuplicateObject(HANDLE
,HANDLE
,HANDLE
,PHANDLE
,ACCESS_MASK
,ULONG
,ULONG
);
2520 NTSYSAPI NTSTATUS WINAPI
NtDuplicateToken(HANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,SECURITY_IMPERSONATION_LEVEL
,TOKEN_TYPE
,PHANDLE
);
2521 NTSYSAPI NTSTATUS WINAPI
NtEnumerateKey(HANDLE
,ULONG
,KEY_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
2522 NTSYSAPI NTSTATUS WINAPI
NtEnumerateValueKey(HANDLE
,ULONG
,KEY_VALUE_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2523 NTSYSAPI NTSTATUS WINAPI
NtExtendSection(HANDLE
,PLARGE_INTEGER
);
2524 NTSYSAPI NTSTATUS WINAPI
NtFindAtom(const WCHAR
*,ULONG
,RTL_ATOM
*);
2525 NTSYSAPI NTSTATUS WINAPI
NtFlushBuffersFile(HANDLE
,IO_STATUS_BLOCK
*);
2526 NTSYSAPI NTSTATUS WINAPI
NtFlushInstructionCache(HANDLE
,LPCVOID
,SIZE_T
);
2527 NTSYSAPI NTSTATUS WINAPI
NtFlushKey(HANDLE
);
2528 NTSYSAPI NTSTATUS WINAPI
NtFlushVirtualMemory(HANDLE
,LPCVOID
*,SIZE_T
*,ULONG
);
2529 NTSYSAPI NTSTATUS WINAPI
NtFlushWriteBuffer(VOID
);
2530 NTSYSAPI NTSTATUS WINAPI
NtFreeVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
2531 NTSYSAPI NTSTATUS WINAPI
NtFsControlFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,PVOID
,ULONG
,PVOID
,ULONG
);
2532 NTSYSAPI NTSTATUS WINAPI
NtGetContextThread(HANDLE
,CONTEXT
*);
2533 NTSYSAPI ULONG WINAPI
NtGetCurrentProcessorNumber(void);
2534 NTSYSAPI NTSTATUS WINAPI
NtGetNlsSectionPtr(ULONG
,ULONG
,void*,void**,SIZE_T
*);
2535 NTSYSAPI NTSTATUS WINAPI
NtGetPlugPlayEvent(ULONG
,ULONG
,PVOID
,ULONG
);
2536 NTSYSAPI ULONG WINAPI
NtGetTickCount(VOID
);
2537 NTSYSAPI NTSTATUS WINAPI
NtGetWriteWatch(HANDLE
,ULONG
,PVOID
,SIZE_T
,PVOID
*,ULONG_PTR
*,ULONG
*);
2538 NTSYSAPI NTSTATUS WINAPI
NtImpersonateAnonymousToken(HANDLE
);
2539 NTSYSAPI NTSTATUS WINAPI
NtImpersonateClientOfPort(HANDLE
,PPORT_MESSAGE
);
2540 NTSYSAPI NTSTATUS WINAPI
NtImpersonateThread(HANDLE
,HANDLE
,PSECURITY_QUALITY_OF_SERVICE
);
2541 NTSYSAPI NTSTATUS WINAPI
NtInitializeRegistry(BOOLEAN
);
2542 NTSYSAPI NTSTATUS WINAPI
NtInitiatePowerAction(POWER_ACTION
,SYSTEM_POWER_STATE
,ULONG
,BOOLEAN
);
2543 NTSYSAPI NTSTATUS WINAPI
NtIsProcessInJob(HANDLE
,HANDLE
);
2544 NTSYSAPI NTSTATUS WINAPI
NtListenPort(HANDLE
,PLPC_MESSAGE
);
2545 NTSYSAPI NTSTATUS WINAPI
NtLoadDriver(const UNICODE_STRING
*);
2546 NTSYSAPI NTSTATUS WINAPI
NtLoadKey(const OBJECT_ATTRIBUTES
*,OBJECT_ATTRIBUTES
*);
2547 NTSYSAPI NTSTATUS WINAPI
NtLockFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,void*,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,PLARGE_INTEGER
,ULONG
*,BOOLEAN
,BOOLEAN
);
2548 NTSYSAPI NTSTATUS WINAPI
NtLockVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
2549 NTSYSAPI NTSTATUS WINAPI
NtMakeTemporaryObject(HANDLE
);
2550 NTSYSAPI NTSTATUS WINAPI
NtMapViewOfSection(HANDLE
,HANDLE
,PVOID
*,ULONG_PTR
,SIZE_T
,const LARGE_INTEGER
*,SIZE_T
*,SECTION_INHERIT
,ULONG
,ULONG
);
2551 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeDirectoryFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,ULONG
,BOOLEAN
);
2552 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeKey(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,BOOLEAN
,PVOID
,ULONG
,BOOLEAN
);
2553 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeMultipleKeys(HANDLE
,ULONG
,OBJECT_ATTRIBUTES
*,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,BOOLEAN
,PVOID
,ULONG
,BOOLEAN
);
2554 NTSYSAPI NTSTATUS WINAPI
NtOpenDirectoryObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2555 NTSYSAPI NTSTATUS WINAPI
NtOpenEvent(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2556 NTSYSAPI NTSTATUS WINAPI
NtOpenEventPair(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2557 NTSYSAPI NTSTATUS WINAPI
NtOpenFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
);
2558 NTSYSAPI NTSTATUS WINAPI
NtOpenIoCompletion(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2559 NTSYSAPI NTSTATUS WINAPI
NtOpenJobObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2560 NTSYSAPI NTSTATUS WINAPI
NtOpenKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2561 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyEx(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
);
2562 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyTransacted(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,HANDLE
);
2563 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyTransactedEx(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,HANDLE
);
2564 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyedEvent(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2565 NTSYSAPI NTSTATUS WINAPI
NtOpenMutant(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2566 NTSYSAPI NTSTATUS WINAPI
NtOpenObjectAuditAlarm(PUNICODE_STRING
,PHANDLE
,PUNICODE_STRING
,PUNICODE_STRING
,PSECURITY_DESCRIPTOR
,HANDLE
,ACCESS_MASK
,ACCESS_MASK
,PPRIVILEGE_SET
,BOOLEAN
,BOOLEAN
,PBOOLEAN
);
2567 NTSYSAPI NTSTATUS WINAPI
NtOpenProcess(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const CLIENT_ID
*);
2568 NTSYSAPI NTSTATUS WINAPI
NtOpenProcessToken(HANDLE
,DWORD
,HANDLE
*);
2569 NTSYSAPI NTSTATUS WINAPI
NtOpenProcessTokenEx(HANDLE
,DWORD
,DWORD
,HANDLE
*);
2570 NTSYSAPI NTSTATUS WINAPI
NtOpenSection(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2571 NTSYSAPI NTSTATUS WINAPI
NtOpenSemaphore(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2572 NTSYSAPI NTSTATUS WINAPI
NtOpenSymbolicLinkObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2573 NTSYSAPI NTSTATUS WINAPI
NtOpenThread(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const CLIENT_ID
*);
2574 NTSYSAPI NTSTATUS WINAPI
NtOpenThreadToken(HANDLE
,DWORD
,BOOLEAN
,HANDLE
*);
2575 NTSYSAPI NTSTATUS WINAPI
NtOpenThreadTokenEx(HANDLE
,DWORD
,BOOLEAN
,DWORD
,HANDLE
*);
2576 NTSYSAPI NTSTATUS WINAPI
NtOpenTimer(HANDLE
*, ACCESS_MASK
, const OBJECT_ATTRIBUTES
*);
2577 NTSYSAPI NTSTATUS WINAPI
NtPowerInformation(POWER_INFORMATION_LEVEL
,PVOID
,ULONG
,PVOID
,ULONG
);
2578 NTSYSAPI NTSTATUS WINAPI
NtPrivilegeCheck(HANDLE
,PPRIVILEGE_SET
,PBOOLEAN
);
2579 NTSYSAPI NTSTATUS WINAPI
NtPrivilegeObjectAuditAlarm(PUNICODE_STRING
,HANDLE
,HANDLE
,ULONG
,PPRIVILEGE_SET
,BOOLEAN
);
2580 NTSYSAPI NTSTATUS WINAPI
NtPrivilegedServiceAuditAlarm(PUNICODE_STRING
,PUNICODE_STRING
,HANDLE
,PPRIVILEGE_SET
,BOOLEAN
);
2581 NTSYSAPI NTSTATUS WINAPI
NtProtectVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
,ULONG
*);
2582 NTSYSAPI NTSTATUS WINAPI
NtPulseEvent(HANDLE
,LONG
*);
2583 NTSYSAPI NTSTATUS WINAPI
NtQueueApcThread(HANDLE
,PNTAPCFUNC
,ULONG_PTR
,ULONG_PTR
,ULONG_PTR
);
2584 NTSYSAPI NTSTATUS WINAPI
NtQueryAttributesFile(const OBJECT_ATTRIBUTES
*,FILE_BASIC_INFORMATION
*);
2585 NTSYSAPI NTSTATUS WINAPI
NtQueryDefaultLocale(BOOLEAN
,LCID
*);
2586 NTSYSAPI NTSTATUS WINAPI
NtQueryDefaultUILanguage(LANGID
*);
2587 NTSYSAPI NTSTATUS WINAPI
NtQueryDirectoryFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FILE_INFORMATION_CLASS
,BOOLEAN
,PUNICODE_STRING
,BOOLEAN
);
2588 NTSYSAPI NTSTATUS WINAPI
NtQueryDirectoryObject(HANDLE
,PDIRECTORY_BASIC_INFORMATION
,ULONG
,BOOLEAN
,BOOLEAN
,PULONG
,PULONG
);
2589 NTSYSAPI NTSTATUS WINAPI
NtQueryEaFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,BOOLEAN
,PVOID
,ULONG
,PULONG
,BOOLEAN
);
2590 NTSYSAPI NTSTATUS WINAPI
NtQueryEvent(HANDLE
,EVENT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2591 NTSYSAPI NTSTATUS WINAPI
NtQueryFullAttributesFile(const OBJECT_ATTRIBUTES
*,FILE_NETWORK_OPEN_INFORMATION
*);
2592 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationAtom(RTL_ATOM
,ATOM_INFORMATION_CLASS
,PVOID
,ULONG
,ULONG
*);
2593 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,LONG
,FILE_INFORMATION_CLASS
);
2594 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationJobObject(HANDLE
,JOBOBJECTINFOCLASS
,PVOID
,ULONG
,PULONG
);
2595 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationPort(HANDLE
,PORT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2596 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationProcess(HANDLE
,PROCESSINFOCLASS
,PVOID
,ULONG
,PULONG
);
2597 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationThread(HANDLE
,THREADINFOCLASS
,PVOID
,ULONG
,PULONG
);
2598 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationToken(HANDLE
,TOKEN_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2599 NTSYSAPI NTSTATUS WINAPI
NtQueryInstallUILanguage(LANGID
*);
2600 NTSYSAPI NTSTATUS WINAPI
NtQueryIntervalProfile(KPROFILE_SOURCE
,PULONG
);
2601 NTSYSAPI NTSTATUS WINAPI
NtQueryIoCompletion(HANDLE
,IO_COMPLETION_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2602 NTSYSAPI NTSTATUS WINAPI
NtQueryKey(HANDLE
,KEY_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
2603 NTSYSAPI NTSTATUS WINAPI
NtQueryMultipleValueKey(HANDLE
,PKEY_MULTIPLE_VALUE_INFORMATION
,ULONG
,PVOID
,ULONG
,PULONG
);
2604 NTSYSAPI NTSTATUS WINAPI
NtQueryMutant(HANDLE
,MUTANT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2605 NTSYSAPI NTSTATUS WINAPI
NtQueryObject(HANDLE
, OBJECT_INFORMATION_CLASS
, PVOID
, ULONG
, PULONG
);
2606 NTSYSAPI NTSTATUS WINAPI
NtQueryOpenSubKeys(POBJECT_ATTRIBUTES
,PULONG
);
2607 NTSYSAPI NTSTATUS WINAPI
NtQueryPerformanceCounter(PLARGE_INTEGER
, PLARGE_INTEGER
);
2608 NTSYSAPI NTSTATUS WINAPI
NtQuerySecurityObject(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,ULONG
,PULONG
);
2609 NTSYSAPI NTSTATUS WINAPI
NtQuerySection(HANDLE
,SECTION_INFORMATION_CLASS
,PVOID
,SIZE_T
,SIZE_T
*);
2610 NTSYSAPI NTSTATUS WINAPI
NtQuerySemaphore(HANDLE
,SEMAPHORE_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2611 NTSYSAPI NTSTATUS WINAPI
NtQuerySymbolicLinkObject(HANDLE
,PUNICODE_STRING
,PULONG
);
2612 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemEnvironmentValue(PUNICODE_STRING
,PWCHAR
,ULONG
,PULONG
);
2613 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2614 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemInformationEx(SYSTEM_INFORMATION_CLASS
,void*,ULONG
,void*,ULONG
,ULONG
*);
2615 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemTime(PLARGE_INTEGER
);
2616 NTSYSAPI NTSTATUS WINAPI
NtQueryTimer(HANDLE
,TIMER_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2617 NTSYSAPI NTSTATUS WINAPI
NtQueryTimerResolution(PULONG
,PULONG
,PULONG
);
2618 NTSYSAPI NTSTATUS WINAPI
NtQueryValueKey(HANDLE
,const UNICODE_STRING
*,KEY_VALUE_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
2619 NTSYSAPI NTSTATUS WINAPI
NtQueryLicenseValue(const UNICODE_STRING
*,ULONG
*,PVOID
,ULONG
,ULONG
*);
2620 NTSYSAPI NTSTATUS WINAPI
NtQueryVirtualMemory(HANDLE
,LPCVOID
,MEMORY_INFORMATION_CLASS
,PVOID
,SIZE_T
,SIZE_T
*);
2621 NTSYSAPI NTSTATUS WINAPI
NtQueryVolumeInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FS_INFORMATION_CLASS
);
2622 NTSYSAPI NTSTATUS WINAPI
NtRaiseException(PEXCEPTION_RECORD
,PCONTEXT
,BOOL
);
2623 NTSYSAPI NTSTATUS WINAPI
NtRaiseHardError(NTSTATUS
,ULONG
,PUNICODE_STRING
,PVOID
*,HARDERROR_RESPONSE_OPTION
,PHARDERROR_RESPONSE
);
2624 NTSYSAPI NTSTATUS WINAPI
NtReadFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,PLARGE_INTEGER
,PULONG
);
2625 NTSYSAPI NTSTATUS WINAPI
NtReadFileScatter(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,FILE_SEGMENT_ELEMENT
*,ULONG
,PLARGE_INTEGER
,PULONG
);
2626 NTSYSAPI NTSTATUS WINAPI
NtReadRequestData(HANDLE
,PLPC_MESSAGE
,ULONG
,PVOID
,ULONG
,PULONG
);
2627 NTSYSAPI NTSTATUS WINAPI
NtReadVirtualMemory(HANDLE
,const void*,void*,SIZE_T
,SIZE_T
*);
2628 NTSYSAPI NTSTATUS WINAPI
NtRegisterThreadTerminatePort(HANDLE
);
2629 NTSYSAPI NTSTATUS WINAPI
NtReleaseKeyedEvent(HANDLE
,const void*,BOOLEAN
,const LARGE_INTEGER
*);
2630 NTSYSAPI NTSTATUS WINAPI
NtReleaseMutant(HANDLE
,PLONG
);
2631 NTSYSAPI NTSTATUS WINAPI
NtReleaseSemaphore(HANDLE
,ULONG
,PULONG
);
2632 NTSYSAPI NTSTATUS WINAPI
NtRemoveIoCompletion(HANDLE
,PULONG_PTR
,PULONG_PTR
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
);
2633 NTSYSAPI NTSTATUS WINAPI
NtRemoveIoCompletionEx(HANDLE
,FILE_IO_COMPLETION_INFORMATION
*,ULONG
,ULONG
*,LARGE_INTEGER
*,BOOLEAN
);
2634 NTSYSAPI NTSTATUS WINAPI
NtRenameKey(HANDLE
,UNICODE_STRING
*);
2635 NTSYSAPI NTSTATUS WINAPI
NtReplaceKey(POBJECT_ATTRIBUTES
,HANDLE
,POBJECT_ATTRIBUTES
);
2636 NTSYSAPI NTSTATUS WINAPI
NtReplyPort(HANDLE
,PLPC_MESSAGE
);
2637 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReceivePort(HANDLE
,PULONG
,PLPC_MESSAGE
,PLPC_MESSAGE
);
2638 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReceivePortEx(HANDLE
,PVOID
*,PPORT_MESSAGE
,PPORT_MESSAGE
,PLARGE_INTEGER
);
2639 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReplyPort(HANDLE
,PLPC_MESSAGE
);
2640 NTSYSAPI NTSTATUS WINAPI
NtRequestPort(HANDLE
,PLPC_MESSAGE
);
2641 NTSYSAPI NTSTATUS WINAPI
NtRequestWaitReplyPort(HANDLE
,PLPC_MESSAGE
,PLPC_MESSAGE
);
2642 NTSYSAPI NTSTATUS WINAPI
NtResetEvent(HANDLE
,LONG
*);
2643 NTSYSAPI NTSTATUS WINAPI
NtResetWriteWatch(HANDLE
,PVOID
,SIZE_T
);
2644 NTSYSAPI NTSTATUS WINAPI
NtRestoreKey(HANDLE
,HANDLE
,ULONG
);
2645 NTSYSAPI NTSTATUS WINAPI
NtResumeThread(HANDLE
,PULONG
);
2646 NTSYSAPI NTSTATUS WINAPI
NtSaveKey(HANDLE
,HANDLE
);
2647 NTSYSAPI NTSTATUS WINAPI
NtSecureConnectPort(PHANDLE
,PUNICODE_STRING
,PSECURITY_QUALITY_OF_SERVICE
,PLPC_SECTION_WRITE
,PSID
,PLPC_SECTION_READ
,PULONG
,PVOID
,PULONG
);
2648 NTSYSAPI NTSTATUS WINAPI
NtSetContextThread(HANDLE
,const CONTEXT
*);
2649 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultHardErrorPort(HANDLE
);
2650 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultLocale(BOOLEAN
,LCID
);
2651 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultUILanguage(LANGID
);
2652 NTSYSAPI NTSTATUS WINAPI
NtSetEaFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
);
2653 NTSYSAPI NTSTATUS WINAPI
NtSetEvent(HANDLE
,LONG
*);
2654 NTSYSAPI NTSTATUS WINAPI
NtSetHighEventPair(HANDLE
);
2655 NTSYSAPI NTSTATUS WINAPI
NtSetHighWaitLowEventPair(HANDLE
);
2656 NTSYSAPI NTSTATUS WINAPI
NtSetHighWaitLowThread(VOID
);
2657 NTSYSAPI NTSTATUS WINAPI
NtSetInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FILE_INFORMATION_CLASS
);
2658 NTSYSAPI NTSTATUS WINAPI
NtSetInformationJobObject(HANDLE
,JOBOBJECTINFOCLASS
,PVOID
,ULONG
);
2659 NTSYSAPI NTSTATUS WINAPI
NtSetInformationKey(HANDLE
,const int,PVOID
,ULONG
);
2660 NTSYSAPI NTSTATUS WINAPI
NtSetInformationObject(HANDLE
, OBJECT_INFORMATION_CLASS
, PVOID
, ULONG
);
2661 NTSYSAPI NTSTATUS WINAPI
NtSetInformationProcess(HANDLE
,PROCESS_INFORMATION_CLASS
,PVOID
,ULONG
);
2662 NTSYSAPI NTSTATUS WINAPI
NtSetInformationThread(HANDLE
,THREADINFOCLASS
,LPCVOID
,ULONG
);
2663 NTSYSAPI NTSTATUS WINAPI
NtSetInformationToken(HANDLE
,TOKEN_INFORMATION_CLASS
,PVOID
,ULONG
);
2664 NTSYSAPI NTSTATUS WINAPI
NtSetIntervalProfile(ULONG
,KPROFILE_SOURCE
);
2665 NTSYSAPI NTSTATUS WINAPI
NtSetIoCompletion(HANDLE
,ULONG_PTR
,ULONG_PTR
,NTSTATUS
,SIZE_T
);
2666 NTSYSAPI NTSTATUS WINAPI
NtSetLdtEntries(ULONG
,LDT_ENTRY
,ULONG
,LDT_ENTRY
);
2667 NTSYSAPI NTSTATUS WINAPI
NtSetLowEventPair(HANDLE
);
2668 NTSYSAPI NTSTATUS WINAPI
NtSetLowWaitHighEventPair(HANDLE
);
2669 NTSYSAPI NTSTATUS WINAPI
NtSetLowWaitHighThread(VOID
);
2670 NTSYSAPI NTSTATUS WINAPI
NtSetPowerRequest(HANDLE
,POWER_REQUEST_TYPE
);
2671 NTSYSAPI NTSTATUS WINAPI
NtSetSecurityObject(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
2672 NTSYSAPI NTSTATUS WINAPI
NtSetSystemEnvironmentValue(PUNICODE_STRING
,PUNICODE_STRING
);
2673 NTSYSAPI NTSTATUS WINAPI
NtSetSystemInformation(SYSTEM_INFORMATION_CLASS
,PVOID
,ULONG
);
2674 NTSYSAPI NTSTATUS WINAPI
NtSetSystemPowerState(POWER_ACTION
,SYSTEM_POWER_STATE
,ULONG
);
2675 NTSYSAPI NTSTATUS WINAPI
NtSetSystemTime(const LARGE_INTEGER
*,LARGE_INTEGER
*);
2676 NTSYSAPI NTSTATUS WINAPI
NtSetThreadExecutionState(EXECUTION_STATE
,EXECUTION_STATE
*);
2677 NTSYSAPI NTSTATUS WINAPI
NtSetTimer(HANDLE
, const LARGE_INTEGER
*, PTIMER_APC_ROUTINE
, PVOID
, BOOLEAN
, ULONG
, BOOLEAN
*);
2678 NTSYSAPI NTSTATUS WINAPI
NtSetTimerResolution(ULONG
,BOOLEAN
,PULONG
);
2679 NTSYSAPI NTSTATUS WINAPI
NtSetValueKey(HANDLE
,const UNICODE_STRING
*,ULONG
,ULONG
,const void *,ULONG
);
2680 NTSYSAPI NTSTATUS WINAPI
NtSetVolumeInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FS_INFORMATION_CLASS
);
2681 NTSYSAPI NTSTATUS WINAPI
NtSignalAndWaitForSingleObject(HANDLE
,HANDLE
,BOOLEAN
,const LARGE_INTEGER
*);
2682 NTSYSAPI NTSTATUS WINAPI
NtShutdownSystem(SHUTDOWN_ACTION
);
2683 NTSYSAPI NTSTATUS WINAPI
NtStartProfile(HANDLE
);
2684 NTSYSAPI NTSTATUS WINAPI
NtStopProfile(HANDLE
);
2685 NTSYSAPI NTSTATUS WINAPI
NtSuspendThread(HANDLE
,PULONG
);
2686 NTSYSAPI NTSTATUS WINAPI
NtSystemDebugControl(SYSDBG_COMMAND
,PVOID
,ULONG
,PVOID
,ULONG
,PULONG
);
2687 NTSYSAPI NTSTATUS WINAPI
NtTerminateJobObject(HANDLE
,NTSTATUS
);
2688 NTSYSAPI NTSTATUS WINAPI
NtTerminateProcess(HANDLE
,LONG
);
2689 NTSYSAPI NTSTATUS WINAPI
NtTerminateThread(HANDLE
,LONG
);
2690 NTSYSAPI NTSTATUS WINAPI
NtTestAlert(VOID
);
2691 NTSYSAPI NTSTATUS WINAPI
NtUnloadDriver(const UNICODE_STRING
*);
2692 NTSYSAPI NTSTATUS WINAPI
NtUnloadKey(POBJECT_ATTRIBUTES
);
2693 NTSYSAPI NTSTATUS WINAPI
NtUnloadKeyEx(POBJECT_ATTRIBUTES
,HANDLE
);
2694 NTSYSAPI NTSTATUS WINAPI
NtUnlockFile(HANDLE
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,PLARGE_INTEGER
,PULONG
);
2695 NTSYSAPI NTSTATUS WINAPI
NtUnlockVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
2696 NTSYSAPI NTSTATUS WINAPI
NtUnmapViewOfSection(HANDLE
,PVOID
);
2697 NTSYSAPI NTSTATUS WINAPI
NtVdmControl(ULONG
,PVOID
);
2698 NTSYSAPI NTSTATUS WINAPI
NtWaitForKeyedEvent(HANDLE
,const void*,BOOLEAN
,const LARGE_INTEGER
*);
2699 NTSYSAPI NTSTATUS WINAPI
NtWaitForSingleObject(HANDLE
,BOOLEAN
,const LARGE_INTEGER
*);
2700 NTSYSAPI NTSTATUS WINAPI
NtWaitForMultipleObjects(ULONG
,const HANDLE
*,BOOLEAN
,BOOLEAN
,const LARGE_INTEGER
*);
2701 NTSYSAPI NTSTATUS WINAPI
NtWaitHighEventPair(HANDLE
);
2702 NTSYSAPI NTSTATUS WINAPI
NtWaitLowEventPair(HANDLE
);
2703 NTSYSAPI NTSTATUS WINAPI
NtWriteFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,const void*,ULONG
,PLARGE_INTEGER
,PULONG
);
2704 NTSYSAPI NTSTATUS WINAPI
NtWriteFileGather(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,FILE_SEGMENT_ELEMENT
*,ULONG
,PLARGE_INTEGER
,PULONG
);
2705 NTSYSAPI NTSTATUS WINAPI
NtWriteRequestData(HANDLE
,PLPC_MESSAGE
,ULONG
,PVOID
,ULONG
,PULONG
);
2706 NTSYSAPI NTSTATUS WINAPI
NtWriteVirtualMemory(HANDLE
,void*,const void*,SIZE_T
,SIZE_T
*);
2707 NTSYSAPI NTSTATUS WINAPI
NtYieldExecution(void);
2709 NTSYSAPI
void WINAPI
RtlAcquirePebLock(void);
2710 NTSYSAPI BYTE WINAPI
RtlAcquireResourceExclusive(LPRTL_RWLOCK
,BYTE
);
2711 NTSYSAPI BYTE WINAPI
RtlAcquireResourceShared(LPRTL_RWLOCK
,BYTE
);
2712 NTSYSAPI
void WINAPI
RtlAcquireSRWLockExclusive(RTL_SRWLOCK
*);
2713 NTSYSAPI
void WINAPI
RtlAcquireSRWLockShared(RTL_SRWLOCK
*);
2714 NTSYSAPI NTSTATUS WINAPI
RtlActivateActivationContext(DWORD
,HANDLE
,ULONG_PTR
*);
2715 NTSYSAPI NTSTATUS WINAPI
RtlAddAce(PACL
,DWORD
,DWORD
,PACE_HEADER
,DWORD
);
2716 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedAce(PACL
,DWORD
,DWORD
,PSID
);
2717 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
);
2718 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedObjectAce(PACL
,DWORD
,DWORD
,DWORD
,GUID
*,GUID
*,PSID
);
2719 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedAce(PACL
,DWORD
,DWORD
,PSID
);
2720 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
);
2721 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedObjectAce(PACL
,DWORD
,DWORD
,DWORD
,GUID
*,GUID
*,PSID
);
2722 NTSYSAPI NTSTATUS WINAPI
RtlAddAtomToAtomTable(RTL_ATOM_TABLE
,const WCHAR
*,RTL_ATOM
*);
2723 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessAce(PACL
,DWORD
,DWORD
,PSID
,BOOL
,BOOL
);
2724 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
,BOOL
,BOOL
);
2725 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessObjectAce(PACL
,DWORD
,DWORD
,DWORD
,GUID
*,GUID
*,PSID
,BOOL
,BOOL
);
2726 NTSYSAPI NTSTATUS WINAPI
RtlAddMandatoryAce(PACL
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
);
2727 NTSYSAPI
void WINAPI
RtlAddRefActivationContext(HANDLE
);
2728 NTSYSAPI PVOID WINAPI
RtlAddVectoredExceptionHandler(ULONG
,PVECTORED_EXCEPTION_HANDLER
);
2729 NTSYSAPI NTSTATUS WINAPI
RtlAdjustPrivilege(ULONG
,BOOLEAN
,BOOLEAN
,PBOOLEAN
);
2730 NTSYSAPI NTSTATUS WINAPI
RtlAllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY
,BYTE
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
*);
2731 NTSYSAPI RTL_HANDLE
* WINAPI
RtlAllocateHandle(RTL_HANDLE_TABLE
*,ULONG
*);
2732 NTSYSAPI PVOID WINAPI
RtlAllocateHeap(HANDLE
,ULONG
,SIZE_T
) __WINE_ALLOC_SIZE(3);
2733 NTSYSAPI WCHAR WINAPI
RtlAnsiCharToUnicodeChar(LPSTR
*);
2734 NTSYSAPI DWORD WINAPI
RtlAnsiStringToUnicodeSize(const STRING
*);
2735 NTSYSAPI NTSTATUS WINAPI
RtlAnsiStringToUnicodeString(PUNICODE_STRING
,PCANSI_STRING
,BOOLEAN
);
2736 NTSYSAPI NTSTATUS WINAPI
RtlAppendAsciizToString(STRING
*,LPCSTR
);
2737 NTSYSAPI NTSTATUS WINAPI
RtlAppendStringToString(STRING
*,const STRING
*);
2738 NTSYSAPI NTSTATUS WINAPI
RtlAppendUnicodeStringToString(UNICODE_STRING
*,const UNICODE_STRING
*);
2739 NTSYSAPI NTSTATUS WINAPI
RtlAppendUnicodeToString(UNICODE_STRING
*,LPCWSTR
);
2740 NTSYSAPI BOOLEAN WINAPI
RtlAreAllAccessesGranted(ACCESS_MASK
,ACCESS_MASK
);
2741 NTSYSAPI BOOLEAN WINAPI
RtlAreAnyAccessesGranted(ACCESS_MASK
,ACCESS_MASK
);
2742 NTSYSAPI BOOLEAN WINAPI
RtlAreBitsSet(PCRTL_BITMAP
,ULONG
,ULONG
);
2743 NTSYSAPI BOOLEAN WINAPI
RtlAreBitsClear(PCRTL_BITMAP
,ULONG
,ULONG
);
2744 NTSYSAPI NTSTATUS WINAPI
RtlCharToInteger(PCSZ
,ULONG
,PULONG
);
2745 NTSYSAPI NTSTATUS WINAPI
RtlCheckRegistryKey(ULONG
, PWSTR
);
2746 NTSYSAPI
void WINAPI
RtlClearAllBits(PRTL_BITMAP
);
2747 NTSYSAPI
void WINAPI
RtlClearBits(PRTL_BITMAP
,ULONG
,ULONG
);
2748 NTSYSAPI NTSTATUS WINAPI
RtlCreateActivationContext(HANDLE
*,const void*);
2749 NTSYSAPI PDEBUG_BUFFER WINAPI
RtlCreateQueryDebugBuffer(ULONG
,BOOLEAN
);
2750 NTSYSAPI NTSTATUS WINAPI
RtlCreateRegistryKey(ULONG
,PWSTR
);
2751 NTSYSAPI ULONG WINAPI
RtlCompactHeap(HANDLE
,ULONG
);
2752 NTSYSAPI LONG WINAPI
RtlCompareString(const STRING
*,const STRING
*,BOOLEAN
);
2753 NTSYSAPI LONG WINAPI
RtlCompareUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2754 NTSYSAPI LONG WINAPI
RtlCompareUnicodeStrings(const WCHAR
*,SIZE_T
,const WCHAR
*,SIZE_T
,BOOLEAN
);
2755 NTSYSAPI NTSTATUS WINAPI
RtlCompressBuffer(USHORT
,PUCHAR
,ULONG
,PUCHAR
,ULONG
,ULONG
,PULONG
,PVOID
);
2756 NTSYSAPI DWORD WINAPI
RtlComputeCrc32(DWORD
,const BYTE
*,INT
);
2757 NTSYSAPI NTSTATUS WINAPI
RtlConvertSidToUnicodeString(PUNICODE_STRING
,PSID
,BOOLEAN
);
2758 NTSYSAPI
void WINAPI
RtlCopyLuid(PLUID
,const LUID
*);
2759 NTSYSAPI
void WINAPI
RtlCopyLuidAndAttributesArray(ULONG
,const LUID_AND_ATTRIBUTES
*,PLUID_AND_ATTRIBUTES
);
2760 NTSYSAPI BOOLEAN WINAPI
RtlCopySid(DWORD
,PSID
,PSID
);
2761 NTSYSAPI NTSTATUS WINAPI
RtlCopySecurityDescriptor(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
);
2762 NTSYSAPI
void WINAPI
RtlCopyString(STRING
*,const STRING
*);
2763 NTSYSAPI
void WINAPI
RtlCopyUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*);
2764 NTSYSAPI NTSTATUS WINAPI
RtlCreateAcl(PACL
,DWORD
,DWORD
);
2765 NTSYSAPI NTSTATUS WINAPI
RtlCreateAtomTable(ULONG
,RTL_ATOM_TABLE
*);
2766 NTSYSAPI NTSTATUS WINAPI
RtlCreateEnvironment(BOOLEAN
, PWSTR
*);
2767 NTSYSAPI HANDLE WINAPI
RtlCreateHeap(ULONG
,PVOID
,SIZE_T
,SIZE_T
,PVOID
,PRTL_HEAP_DEFINITION
);
2768 NTSYSAPI NTSTATUS WINAPI
RtlCreateProcessParameters(RTL_USER_PROCESS_PARAMETERS
**,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,PWSTR
,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*);
2769 NTSYSAPI NTSTATUS WINAPI
RtlCreateProcessParametersEx(RTL_USER_PROCESS_PARAMETERS
**,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,PWSTR
,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,ULONG
);
2770 NTSYSAPI NTSTATUS WINAPI
RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR
,DWORD
);
2771 NTSYSAPI NTSTATUS WINAPI
RtlCreateTimerQueue(PHANDLE
);
2772 NTSYSAPI NTSTATUS WINAPI
RtlCreateTimer(PHANDLE
, HANDLE
, RTL_WAITORTIMERCALLBACKFUNC
, PVOID
, DWORD
, DWORD
, ULONG
);
2773 NTSYSAPI BOOLEAN WINAPI
RtlCreateUnicodeString(PUNICODE_STRING
,LPCWSTR
);
2774 NTSYSAPI BOOLEAN WINAPI
RtlCreateUnicodeStringFromAsciiz(PUNICODE_STRING
,LPCSTR
);
2775 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserProcess(UNICODE_STRING
*,ULONG
,RTL_USER_PROCESS_PARAMETERS
*,SECURITY_DESCRIPTOR
*,SECURITY_DESCRIPTOR
*,HANDLE
,BOOLEAN
,HANDLE
,HANDLE
,RTL_USER_PROCESS_INFORMATION
*);
2776 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserThread(HANDLE
,SECURITY_DESCRIPTOR
*,BOOLEAN
,PVOID
,SIZE_T
,SIZE_T
,PRTL_THREAD_START_ROUTINE
,void*,HANDLE
*,CLIENT_ID
*);
2777 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserStack(SIZE_T
,SIZE_T
,ULONG
,SIZE_T
,SIZE_T
,INITIAL_TEB
*);
2778 NTSYSAPI NTSTATUS WINAPI
RtlCustomCPToUnicodeN(CPTABLEINFO
*,WCHAR
*,DWORD
,DWORD
*,const char*,DWORD
);
2779 NTSYSAPI
void WINAPI
RtlDeactivateActivationContext(DWORD
,ULONG_PTR
);
2780 NTSYSAPI PVOID WINAPI
RtlDecodePointer(PVOID
);
2781 NTSYSAPI NTSTATUS WINAPI
RtlDecompressBuffer(USHORT
,PUCHAR
,ULONG
,PUCHAR
,ULONG
,PULONG
);
2782 NTSYSAPI NTSTATUS WINAPI
RtlDeleteAce(PACL
,DWORD
);
2783 NTSYSAPI NTSTATUS WINAPI
RtlDeleteAtomFromAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
);
2784 NTSYSAPI NTSTATUS WINAPI
RtlDeleteCriticalSection(RTL_CRITICAL_SECTION
*);
2785 NTSYSAPI NTSTATUS WINAPI
RtlDeleteRegistryValue(ULONG
, PCWSTR
, PCWSTR
);
2786 NTSYSAPI
void WINAPI
RtlDeleteResource(LPRTL_RWLOCK
);
2787 NTSYSAPI NTSTATUS WINAPI
RtlDeleteSecurityObject(PSECURITY_DESCRIPTOR
*);
2788 NTSYSAPI NTSTATUS WINAPI
RtlDeleteTimer(HANDLE
, HANDLE
, HANDLE
);
2789 NTSYSAPI NTSTATUS WINAPI
RtlDeleteTimerQueueEx(HANDLE
, HANDLE
);
2790 NTSYSAPI PRTL_USER_PROCESS_PARAMETERS WINAPI
RtlDeNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS
*);
2791 NTSYSAPI NTSTATUS WINAPI
RtlDeregisterWait(HANDLE
);
2792 NTSYSAPI NTSTATUS WINAPI
RtlDeregisterWaitEx(HANDLE
,HANDLE
);
2793 NTSYSAPI NTSTATUS WINAPI
RtlDestroyAtomTable(RTL_ATOM_TABLE
);
2794 NTSYSAPI NTSTATUS WINAPI
RtlDestroyEnvironment(PWSTR
);
2795 NTSYSAPI NTSTATUS WINAPI
RtlDestroyHandleTable(RTL_HANDLE_TABLE
*);
2796 NTSYSAPI HANDLE WINAPI
RtlDestroyHeap(HANDLE
);
2797 NTSYSAPI
void WINAPI
RtlDestroyProcessParameters(RTL_USER_PROCESS_PARAMETERS
*);
2798 NTSYSAPI NTSTATUS WINAPI
RtlDestroyQueryDebugBuffer(PDEBUG_BUFFER
);
2799 NTSYSAPI DOS_PATHNAME_TYPE WINAPI
RtlDetermineDosPathNameType_U(PCWSTR
);
2800 NTSYSAPI BOOLEAN WINAPI
RtlDllShutdownInProgress(void);
2801 NTSYSAPI BOOLEAN WINAPI
RtlDoesFileExists_U(LPCWSTR
);
2802 NTSYSAPI BOOLEAN WINAPI
RtlDosPathNameToNtPathName_U(PCWSTR
,PUNICODE_STRING
,PWSTR
*,CURDIR
*);
2803 NTSYSAPI NTSTATUS WINAPI
RtlDosPathNameToNtPathName_U_WithStatus(PCWSTR
,PUNICODE_STRING
,PWSTR
*,CURDIR
*);
2804 NTSYSAPI ULONG WINAPI
RtlDosSearchPath_U(LPCWSTR
, LPCWSTR
, LPCWSTR
, ULONG
, LPWSTR
, LPWSTR
*);
2805 NTSYSAPI WCHAR WINAPI
RtlDowncaseUnicodeChar(WCHAR
);
2806 NTSYSAPI NTSTATUS WINAPI
RtlDowncaseUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2807 NTSYSAPI
void WINAPI
RtlDumpResource(LPRTL_RWLOCK
);
2808 NTSYSAPI NTSTATUS WINAPI
RtlDuplicateUnicodeString(int,const UNICODE_STRING
*,UNICODE_STRING
*);
2809 NTSYSAPI NTSTATUS WINAPI
RtlEmptyAtomTable(RTL_ATOM_TABLE
,BOOLEAN
);
2810 NTSYSAPI PVOID WINAPI
RtlEncodePointer(PVOID
);
2811 NTSYSAPI NTSTATUS WINAPI
RtlEnterCriticalSection(RTL_CRITICAL_SECTION
*);
2812 NTSYSAPI
void WINAPI
RtlEraseUnicodeString(UNICODE_STRING
*);
2813 NTSYSAPI NTSTATUS WINAPI
RtlEqualComputerName(const UNICODE_STRING
*,const UNICODE_STRING
*);
2814 NTSYSAPI NTSTATUS WINAPI
RtlEqualDomainName(const UNICODE_STRING
*,const UNICODE_STRING
*);
2815 NTSYSAPI BOOLEAN WINAPI
RtlEqualLuid(const LUID
*,const LUID
*);
2816 NTSYSAPI BOOL WINAPI
RtlEqualPrefixSid(PSID
,PSID
);
2817 NTSYSAPI BOOL WINAPI
RtlEqualSid(PSID
,PSID
);
2818 NTSYSAPI BOOLEAN WINAPI
RtlEqualString(const STRING
*,const STRING
*,BOOLEAN
);
2819 NTSYSAPI BOOLEAN WINAPI
RtlEqualUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2820 NTSYSAPI
void DECLSPEC_NORETURN WINAPI
RtlExitUserProcess(ULONG
);
2821 NTSYSAPI
void DECLSPEC_NORETURN WINAPI
RtlExitUserThread(ULONG
);
2822 NTSYSAPI NTSTATUS WINAPI
RtlExpandEnvironmentStrings(const WCHAR
*,WCHAR
*,SIZE_T
,WCHAR
*,SIZE_T
,SIZE_T
*);
2823 NTSYSAPI NTSTATUS WINAPI
RtlExpandEnvironmentStrings_U(PCWSTR
, const UNICODE_STRING
*, UNICODE_STRING
*, ULONG
*);
2824 NTSYSAPI NTSTATUS WINAPI
RtlFindActivationContextSectionString(ULONG
,const GUID
*,ULONG
,const UNICODE_STRING
*,PVOID
);
2825 NTSYSAPI NTSTATUS WINAPI
RtlFindActivationContextSectionGuid(ULONG
,const GUID
*,ULONG
,const GUID
*,PVOID
);
2826 NTSYSAPI NTSTATUS WINAPI
RtlFindCharInUnicodeString(int,const UNICODE_STRING
*,const UNICODE_STRING
*,USHORT
*);
2827 NTSYSAPI ULONG WINAPI
RtlFindClearBits(PCRTL_BITMAP
,ULONG
,ULONG
);
2828 NTSYSAPI ULONG WINAPI
RtlFindClearBitsAndSet(PRTL_BITMAP
,ULONG
,ULONG
);
2829 NTSYSAPI ULONG WINAPI
RtlFindClearRuns(PCRTL_BITMAP
,PRTL_BITMAP_RUN
,ULONG
,BOOLEAN
);
2830 NTSYSAPI ULONG WINAPI
RtlFindLastBackwardRunSet(PCRTL_BITMAP
,ULONG
,PULONG
);
2831 NTSYSAPI ULONG WINAPI
RtlFindLastBackwardRunClear(PCRTL_BITMAP
,ULONG
,PULONG
);
2832 NTSYSAPI CCHAR WINAPI
RtlFindLeastSignificantBit(ULONGLONG
);
2833 NTSYSAPI ULONG WINAPI
RtlFindLongestRunSet(PCRTL_BITMAP
,PULONG
);
2834 NTSYSAPI ULONG WINAPI
RtlFindLongestRunClear(PCRTL_BITMAP
,PULONG
);
2835 NTSYSAPI NTSTATUS WINAPI
RtlFindMessage(HMODULE
,ULONG
,ULONG
,ULONG
,const MESSAGE_RESOURCE_ENTRY
**);
2836 NTSYSAPI CCHAR WINAPI
RtlFindMostSignificantBit(ULONGLONG
);
2837 NTSYSAPI ULONG WINAPI
RtlFindNextForwardRunSet(PCRTL_BITMAP
,ULONG
,PULONG
);
2838 NTSYSAPI ULONG WINAPI
RtlFindNextForwardRunClear(PCRTL_BITMAP
,ULONG
,PULONG
);
2839 NTSYSAPI ULONG WINAPI
RtlFindSetBits(PCRTL_BITMAP
,ULONG
,ULONG
);
2840 NTSYSAPI ULONG WINAPI
RtlFindSetBitsAndClear(PRTL_BITMAP
,ULONG
,ULONG
);
2841 NTSYSAPI ULONG WINAPI
RtlFindSetRuns(PCRTL_BITMAP
,PRTL_BITMAP_RUN
,ULONG
,BOOLEAN
);
2842 NTSYSAPI BOOLEAN WINAPI
RtlFirstFreeAce(PACL
,PACE_HEADER
*);
2843 NTSYSAPI NTSTATUS WINAPI
RtlFormatCurrentUserKeyPath(PUNICODE_STRING
);
2844 NTSYSAPI NTSTATUS WINAPI
RtlFormatMessage(LPWSTR
,UCHAR
,BOOLEAN
,BOOLEAN
,BOOLEAN
,__ms_va_list
*,LPWSTR
,ULONG
);
2845 NTSYSAPI
void WINAPI
RtlFreeAnsiString(PANSI_STRING
);
2846 NTSYSAPI BOOLEAN WINAPI
RtlFreeHandle(RTL_HANDLE_TABLE
*,RTL_HANDLE
*);
2847 NTSYSAPI BOOLEAN WINAPI
RtlFreeHeap(HANDLE
,ULONG
,PVOID
);
2848 NTSYSAPI
void WINAPI
RtlFreeOemString(POEM_STRING
);
2849 NTSYSAPI DWORD WINAPI
RtlFreeSid(PSID
);
2850 NTSYSAPI
void WINAPI
RtlFreeThreadActivationContextStack(void);
2851 NTSYSAPI
void WINAPI
RtlFreeUnicodeString(PUNICODE_STRING
);
2852 NTSYSAPI
void WINAPI
RtlFreeUserStack(void*);
2853 NTSYSAPI NTSTATUS WINAPI
RtlGetAce(PACL
,DWORD
,LPVOID
*);
2854 NTSYSAPI NTSTATUS WINAPI
RtlGetActiveActivationContext(HANDLE
*);
2855 NTSYSAPI NTSTATUS WINAPI
RtlGetCompressionWorkSpaceSize(USHORT
,PULONG
,PULONG
);
2856 NTSYSAPI NTSTATUS WINAPI
RtlGetControlSecurityDescriptor(PSECURITY_DESCRIPTOR
, PSECURITY_DESCRIPTOR_CONTROL
,LPDWORD
);
2857 NTSYSAPI ULONG WINAPI
RtlGetCurrentDirectory_U(ULONG
, LPWSTR
);
2858 NTSYSAPI PEB
* WINAPI
RtlGetCurrentPeb(void);
2859 NTSYSAPI NTSTATUS WINAPI
RtlGetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,PBOOLEAN
,PACL
*,PBOOLEAN
);
2860 NTSYSAPI NTSTATUS WINAPI
RtlGetExePath(PCWSTR
,PWSTR
*);
2861 NTSYSAPI TEB_ACTIVE_FRAME
* WINAPI
RtlGetFrame(void);
2862 NTSYSAPI ULONG WINAPI
RtlGetFullPathName_U(PCWSTR
,ULONG
,PWSTR
,PWSTR
*);
2863 NTSYSAPI NTSTATUS WINAPI
RtlGetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
*,PBOOLEAN
);
2864 NTSYSAPI NTSTATUS WINAPI
RtlGetLastNtStatus(void);
2865 NTSYSAPI DWORD WINAPI
RtlGetLastWin32Error(void);
2866 NTSYSAPI DWORD WINAPI
RtlGetLongestNtPathLength(void);
2867 NTSYSAPI ULONG WINAPI
RtlGetNtGlobalFlags(void);
2868 NTSYSAPI BOOLEAN WINAPI
RtlGetNtProductType(LPDWORD
);
2869 NTSYSAPI NTSTATUS WINAPI
RtlGetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
*,PBOOLEAN
);
2870 NTSYSAPI ULONG WINAPI
RtlGetProcessHeaps(ULONG
,HANDLE
*);
2871 NTSYSAPI NTSTATUS WINAPI
RtlGetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,PBOOLEAN
,PACL
*,PBOOLEAN
);
2872 NTSYSAPI NTSTATUS WINAPI
RtlGetSearchPath(PWSTR
*);
2873 NTSYSAPI LONGLONG WINAPI
RtlGetSystemTimePrecise(void);
2874 NTSYSAPI DWORD WINAPI
RtlGetThreadErrorMode(void);
2875 NTSYSAPI NTSTATUS WINAPI
RtlGetVersion(RTL_OSVERSIONINFOEXW
*);
2876 NTSYSAPI NTSTATUS WINAPI
RtlGUIDFromString(PUNICODE_STRING
,GUID
*);
2877 NTSYSAPI PSID_IDENTIFIER_AUTHORITY WINAPI
RtlIdentifierAuthoritySid(PSID
);
2878 NTSYSAPI NTSTATUS WINAPI
RtlIdnToAscii(DWORD
,const WCHAR
*,INT
,WCHAR
*,INT
*);
2879 NTSYSAPI NTSTATUS WINAPI
RtlIdnToNameprepUnicode(DWORD
,const WCHAR
*,INT
,WCHAR
*,INT
*);
2880 NTSYSAPI NTSTATUS WINAPI
RtlIdnToUnicode(DWORD
,const WCHAR
*,INT
,WCHAR
*,INT
*);
2881 NTSYSAPI PVOID WINAPI
RtlImageDirectoryEntryToData(HMODULE
,BOOL
,WORD
,ULONG
*);
2882 NTSYSAPI PIMAGE_NT_HEADERS WINAPI
RtlImageNtHeader(HMODULE
);
2883 NTSYSAPI PIMAGE_SECTION_HEADER WINAPI
RtlImageRvaToSection(const IMAGE_NT_HEADERS
*,HMODULE
,DWORD
);
2884 NTSYSAPI PVOID WINAPI
RtlImageRvaToVa(const IMAGE_NT_HEADERS
*,HMODULE
,DWORD
,IMAGE_SECTION_HEADER
**);
2885 NTSYSAPI NTSTATUS WINAPI
RtlImpersonateSelf(SECURITY_IMPERSONATION_LEVEL
);
2886 NTSYSAPI
void WINAPI
RtlInitString(PSTRING
,PCSZ
);
2887 NTSYSAPI
void WINAPI
RtlInitAnsiString(PANSI_STRING
,PCSZ
);
2888 NTSYSAPI NTSTATUS WINAPI
RtlInitAnsiStringEx(PANSI_STRING
,PCSZ
);
2889 NTSYSAPI
void WINAPI
RtlInitCodePageTable(USHORT
*,CPTABLEINFO
*);
2890 NTSYSAPI
void WINAPI
RtlInitNlsTables(USHORT
*,USHORT
*,USHORT
*,NLSTABLEINFO
*);
2891 NTSYSAPI
void WINAPI
RtlInitUnicodeString(PUNICODE_STRING
,PCWSTR
);
2892 NTSYSAPI NTSTATUS WINAPI
RtlInitUnicodeStringEx(PUNICODE_STRING
,PCWSTR
);
2893 NTSYSAPI
void WINAPI
RtlInitializeBitMap(PRTL_BITMAP
,PULONG
,ULONG
);
2894 NTSYSAPI
void WINAPI
RtlInitializeConditionVariable(RTL_CONDITION_VARIABLE
*);
2895 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSection(RTL_CRITICAL_SECTION
*);
2896 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSectionAndSpinCount(RTL_CRITICAL_SECTION
*,ULONG
);
2897 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSectionEx(RTL_CRITICAL_SECTION
*,ULONG
,ULONG
);
2898 NTSYSAPI
void WINAPI
RtlInitializeHandleTable(ULONG
,ULONG
,RTL_HANDLE_TABLE
*);
2899 NTSYSAPI
void WINAPI
RtlInitializeResource(LPRTL_RWLOCK
);
2900 NTSYSAPI
void WINAPI
RtlInitializeSRWLock(RTL_SRWLOCK
*);
2901 NTSYSAPI BOOL WINAPI
RtlInitializeSid(PSID
,PSID_IDENTIFIER_AUTHORITY
,BYTE
);
2902 NTSYSAPI NTSTATUS WINAPI
RtlInt64ToUnicodeString(ULONGLONG
,ULONG
,UNICODE_STRING
*);
2903 NTSYSAPI NTSTATUS WINAPI
RtlIntegerToChar(ULONG
,ULONG
,ULONG
,PCHAR
);
2904 NTSYSAPI NTSTATUS WINAPI
RtlIntegerToUnicodeString(ULONG
,ULONG
,UNICODE_STRING
*);
2905 NTSYSAPI BOOLEAN WINAPI
RtlIsActivationContextActive(HANDLE
);
2906 NTSYSAPI BOOL WINAPI
RtlIsCriticalSectionLocked(RTL_CRITICAL_SECTION
*);
2907 NTSYSAPI BOOL WINAPI
RtlIsCriticalSectionLockedByThread(RTL_CRITICAL_SECTION
*);
2908 NTSYSAPI ULONG WINAPI
RtlIsDosDeviceName_U(PCWSTR
);
2909 NTSYSAPI BOOLEAN WINAPI
RtlIsNameLegalDOS8Dot3(const UNICODE_STRING
*,POEM_STRING
,PBOOLEAN
);
2910 NTSYSAPI NTSTATUS WINAPI
RtlIsNormalizedString(ULONG
,const WCHAR
*,INT
,BOOLEAN
*);
2911 NTSYSAPI BOOLEAN WINAPI
RtlIsProcessorFeaturePresent(UINT
);
2912 NTSYSAPI BOOLEAN WINAPI
RtlIsTextUnicode(LPCVOID
,INT
,INT
*);
2913 NTSYSAPI BOOLEAN WINAPI
RtlIsValidHandle(const RTL_HANDLE_TABLE
*, const RTL_HANDLE
*);
2914 NTSYSAPI BOOLEAN WINAPI
RtlIsValidIndexHandle(const RTL_HANDLE_TABLE
*, ULONG Index
, RTL_HANDLE
**);
2915 NTSYSAPI NTSTATUS WINAPI
RtlLeaveCriticalSection(RTL_CRITICAL_SECTION
*);
2916 NTSYSAPI DWORD WINAPI
RtlLengthRequiredSid(DWORD
);
2917 NTSYSAPI ULONG WINAPI
RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR
);
2918 NTSYSAPI DWORD WINAPI
RtlLengthSid(PSID
);
2919 NTSYSAPI NTSTATUS WINAPI
RtlLocalTimeToSystemTime(const LARGE_INTEGER
*,PLARGE_INTEGER
);
2920 NTSYSAPI NTSTATUS WINAPI
RtlLocaleNameToLcid(const WCHAR
*,LCID
*,ULONG
);
2921 NTSYSAPI BOOLEAN WINAPI
RtlLockHeap(HANDLE
);
2922 NTSYSAPI NTSTATUS WINAPI
RtlLookupAtomInAtomTable(RTL_ATOM_TABLE
,const WCHAR
*,RTL_ATOM
*);
2923 NTSYSAPI NTSTATUS WINAPI
RtlMakeSelfRelativeSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,LPDWORD
);
2924 NTSYSAPI
void WINAPI
RtlMapGenericMask(PACCESS_MASK
,const GENERIC_MAPPING
*);
2925 NTSYSAPI NTSTATUS WINAPI
RtlMultiByteToUnicodeN(LPWSTR
,DWORD
,LPDWORD
,LPCSTR
,DWORD
);
2926 NTSYSAPI NTSTATUS WINAPI
RtlMultiByteToUnicodeSize(DWORD
*,LPCSTR
,UINT
);
2927 NTSYSAPI NTSTATUS WINAPI
RtlNewSecurityObject(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
*,BOOLEAN
,HANDLE
,PGENERIC_MAPPING
);
2928 NTSYSAPI PRTL_USER_PROCESS_PARAMETERS WINAPI
RtlNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS
*);
2929 NTSYSAPI NTSTATUS WINAPI
RtlNormalizeString(ULONG
,const WCHAR
*,INT
,WCHAR
*,INT
*);
2930 NTSYSAPI ULONG WINAPI
RtlNtStatusToDosError(NTSTATUS
);
2931 NTSYSAPI ULONG WINAPI
RtlNtStatusToDosErrorNoTeb(NTSTATUS
);
2932 NTSYSAPI ULONG WINAPI
RtlNumberOfSetBits(PCRTL_BITMAP
);
2933 NTSYSAPI ULONG WINAPI
RtlNumberOfClearBits(PCRTL_BITMAP
);
2934 NTSYSAPI UINT WINAPI
RtlOemStringToUnicodeSize(const STRING
*);
2935 NTSYSAPI NTSTATUS WINAPI
RtlOemStringToUnicodeString(UNICODE_STRING
*,const STRING
*,BOOLEAN
);
2936 NTSYSAPI NTSTATUS WINAPI
RtlOemToUnicodeN(LPWSTR
,DWORD
,LPDWORD
,LPCSTR
,DWORD
);
2937 NTSYSAPI NTSTATUS WINAPI
RtlOpenCurrentUser(ACCESS_MASK
,PHANDLE
);
2938 NTSYSAPI PVOID WINAPI
RtlPcToFileHeader(PVOID
,PVOID
*);
2939 NTSYSAPI NTSTATUS WINAPI
RtlPinAtomInAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
);
2940 NTSYSAPI
void WINAPI
RtlPopFrame(TEB_ACTIVE_FRAME
*);
2941 NTSYSAPI BOOLEAN WINAPI
RtlPrefixString(const STRING
*,const STRING
*,BOOLEAN
);
2942 NTSYSAPI BOOLEAN WINAPI
RtlPrefixUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2943 NTSYSAPI
void WINAPI
RtlPushFrame(TEB_ACTIVE_FRAME
*);
2944 NTSYSAPI NTSTATUS WINAPI
RtlQueryActivationContextApplicationSettings(DWORD
,HANDLE
,const WCHAR
*,const WCHAR
*,WCHAR
*,SIZE_T
,SIZE_T
*);
2945 NTSYSAPI NTSTATUS WINAPI
RtlQueryAtomInAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
,ULONG
*,ULONG
*,WCHAR
*,ULONG
*);
2946 NTSYSAPI NTSTATUS WINAPI
RtlQueryDynamicTimeZoneInformation(RTL_DYNAMIC_TIME_ZONE_INFORMATION
*);
2947 NTSYSAPI NTSTATUS WINAPI
RtlQueryEnvironmentVariable_U(PWSTR
,PUNICODE_STRING
,PUNICODE_STRING
);
2948 NTSYSAPI NTSTATUS WINAPI
RtlQueryHeapInformation(HANDLE
,HEAP_INFORMATION_CLASS
,PVOID
,SIZE_T
,PSIZE_T
);
2949 NTSYSAPI NTSTATUS WINAPI
RtlQueryInformationAcl(PACL
,LPVOID
,DWORD
,ACL_INFORMATION_CLASS
);
2950 NTSYSAPI NTSTATUS WINAPI
RtlQueryInformationActivationContext(ULONG
,HANDLE
,PVOID
,ULONG
,PVOID
,SIZE_T
,SIZE_T
*);
2951 NTSYSAPI BOOL WINAPI
RtlQueryPerformanceCounter(LARGE_INTEGER
*);
2952 NTSYSAPI BOOL WINAPI
RtlQueryPerformanceFrequency(LARGE_INTEGER
*);
2953 NTSYSAPI NTSTATUS WINAPI
RtlQueryProcessDebugInformation(ULONG
,ULONG
,PDEBUG_BUFFER
);
2954 NTSYSAPI NTSTATUS WINAPI
RtlQueryRegistryValues(ULONG
, PCWSTR
, PRTL_QUERY_REGISTRY_TABLE
, PVOID
, PVOID
);
2955 NTSYSAPI NTSTATUS WINAPI
RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION
*);
2956 NTSYSAPI BOOL WINAPI
RtlQueryUnbiasedInterruptTime(ULONGLONG
*);
2957 NTSYSAPI NTSTATUS WINAPI
RtlQueueWorkItem(PRTL_WORK_ITEM_ROUTINE
,PVOID
,ULONG
);
2958 NTSYSAPI
void WINAPI
RtlRaiseException(PEXCEPTION_RECORD
);
2959 NTSYSAPI
void WINAPI
RtlRaiseStatus(NTSTATUS
);
2960 NTSYSAPI ULONG WINAPI
RtlRandom(PULONG
);
2961 NTSYSAPI PVOID WINAPI
RtlReAllocateHeap(HANDLE
,ULONG
,PVOID
,SIZE_T
);
2962 NTSYSAPI NTSTATUS WINAPI
RtlRegisterWait(PHANDLE
,HANDLE
,RTL_WAITORTIMERCALLBACKFUNC
,PVOID
,ULONG
,ULONG
);
2963 NTSYSAPI
void WINAPI
RtlReleaseActivationContext(HANDLE
);
2964 NTSYSAPI
void WINAPI
RtlReleasePath(PWSTR
);
2965 NTSYSAPI
void WINAPI
RtlReleasePebLock(void);
2966 NTSYSAPI
void WINAPI
RtlReleaseResource(LPRTL_RWLOCK
);
2967 NTSYSAPI
void WINAPI
RtlReleaseSRWLockExclusive(RTL_SRWLOCK
*);
2968 NTSYSAPI
void WINAPI
RtlReleaseSRWLockShared(RTL_SRWLOCK
*);
2969 NTSYSAPI ULONG WINAPI
RtlRemoveVectoredExceptionHandler(PVOID
);
2970 NTSYSAPI
void WINAPI
RtlResetRtlTranslations(const NLSTABLEINFO
*);
2971 NTSYSAPI
void WINAPI
RtlRestoreLastWin32Error(DWORD
);
2972 NTSYSAPI
void WINAPI
RtlSecondsSince1970ToTime(DWORD
,LARGE_INTEGER
*);
2973 NTSYSAPI
void WINAPI
RtlSecondsSince1980ToTime(DWORD
,LARGE_INTEGER
*);
2974 NTSYSAPI NTSTATUS WINAPI
RtlSelfRelativeToAbsoluteSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PDWORD
,PACL
,PDWORD
,PACL
,PDWORD
,PSID
,PDWORD
,PSID
,PDWORD
);
2975 NTSYSAPI
void WINAPI
RtlSetAllBits(PRTL_BITMAP
);
2976 NTSYSAPI
void WINAPI
RtlSetBits(PRTL_BITMAP
,ULONG
,ULONG
);
2977 NTSYSAPI ULONG WINAPI
RtlSetCriticalSectionSpinCount(RTL_CRITICAL_SECTION
*,ULONG
);
2978 NTSYSAPI NTSTATUS WINAPI
RtlSetControlSecurityDescriptor(PSECURITY_DESCRIPTOR
,SECURITY_DESCRIPTOR_CONTROL
,SECURITY_DESCRIPTOR_CONTROL
);
2979 NTSYSAPI NTSTATUS WINAPI
RtlSetCurrentDirectory_U(const UNICODE_STRING
*);
2980 NTSYSAPI
void WINAPI
RtlSetCurrentEnvironment(PWSTR
, PWSTR
*);
2981 NTSYSAPI NTSTATUS WINAPI
RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,BOOLEAN
,PACL
,BOOLEAN
);
2982 NTSYSAPI NTSTATUS WINAPI
RtlSetEnvironmentVariable(PWSTR
*,PUNICODE_STRING
,PUNICODE_STRING
);
2983 NTSYSAPI NTSTATUS WINAPI
RtlSetHeapInformation(HANDLE
,HEAP_INFORMATION_CLASS
,PVOID
,SIZE_T
);
2984 NTSYSAPI NTSTATUS WINAPI
RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
,BOOLEAN
);
2985 NTSYSAPI NTSTATUS WINAPI
RtlSetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
,BOOLEAN
);
2986 NTSYSAPI NTSTATUS WINAPI
RtlSetIoCompletionCallback(HANDLE
,PRTL_OVERLAPPED_COMPLETION_ROUTINE
,ULONG
);
2987 NTSYSAPI
void WINAPI
RtlSetLastWin32Error(DWORD
);
2988 NTSYSAPI
void WINAPI
RtlSetLastWin32ErrorAndNtStatusFromNtStatus(NTSTATUS
);
2989 NTSYSAPI NTSTATUS WINAPI
RtlSetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,BOOLEAN
,PACL
,BOOLEAN
);
2990 NTSYSAPI NTSTATUS WINAPI
RtlSetSearchPathMode(ULONG
);
2991 NTSYSAPI NTSTATUS WINAPI
RtlSetThreadErrorMode(DWORD
,LPDWORD
);
2992 NTSYSAPI NTSTATUS WINAPI
RtlSetTimeZoneInformation(const RTL_TIME_ZONE_INFORMATION
*);
2993 NTSYSAPI
void WINAPI
RtlSetUnhandledExceptionFilter(PRTL_EXCEPTION_FILTER
);
2994 NTSYSAPI SIZE_T WINAPI
RtlSizeHeap(HANDLE
,ULONG
,const void*);
2995 NTSYSAPI NTSTATUS WINAPI
RtlSleepConditionVariableCS(RTL_CONDITION_VARIABLE
*,RTL_CRITICAL_SECTION
*,const LARGE_INTEGER
*);
2996 NTSYSAPI NTSTATUS WINAPI
RtlSleepConditionVariableSRW(RTL_CONDITION_VARIABLE
*,RTL_SRWLOCK
*,const LARGE_INTEGER
*,ULONG
);
2997 NTSYSAPI NTSTATUS WINAPI
RtlStringFromGUID(REFGUID
,PUNICODE_STRING
);
2998 NTSYSAPI LPDWORD WINAPI
RtlSubAuthoritySid(PSID
,DWORD
);
2999 NTSYSAPI LPBYTE WINAPI
RtlSubAuthorityCountSid(PSID
);
3000 NTSYSAPI NTSTATUS WINAPI
RtlSystemTimeToLocalTime(const LARGE_INTEGER
*,PLARGE_INTEGER
);
3001 NTSYSAPI
void WINAPI
RtlTimeToTimeFields(const LARGE_INTEGER
*,PTIME_FIELDS
);
3002 NTSYSAPI BOOLEAN WINAPI
RtlTimeFieldsToTime(PTIME_FIELDS
,PLARGE_INTEGER
);
3003 NTSYSAPI
void WINAPI
RtlTimeToElapsedTimeFields(const LARGE_INTEGER
*,PTIME_FIELDS
);
3004 NTSYSAPI BOOLEAN WINAPI
RtlTimeToSecondsSince1970(const LARGE_INTEGER
*,LPDWORD
);
3005 NTSYSAPI BOOLEAN WINAPI
RtlTimeToSecondsSince1980(const LARGE_INTEGER
*,LPDWORD
);
3006 NTSYSAPI BOOLEAN WINAPI
RtlTryAcquireSRWLockExclusive(RTL_SRWLOCK
*);
3007 NTSYSAPI BOOLEAN WINAPI
RtlTryAcquireSRWLockShared(RTL_SRWLOCK
*);
3008 NTSYSAPI BOOL WINAPI
RtlTryEnterCriticalSection(RTL_CRITICAL_SECTION
*);
3009 NTSYSAPI NTSTATUS WINAPI
RtlUTF8ToUnicodeN(WCHAR
*,DWORD
,DWORD
*,const char*,DWORD
);
3010 NTSYSAPI ULONGLONG __cdecl
RtlUlonglongByteSwap(ULONGLONG
);
3011 NTSYSAPI DWORD WINAPI
RtlUnicodeStringToAnsiSize(const UNICODE_STRING
*);
3012 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToAnsiString(PANSI_STRING
,PCUNICODE_STRING
,BOOLEAN
);
3013 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToInteger(const UNICODE_STRING
*,ULONG
,ULONG
*);
3014 NTSYSAPI DWORD WINAPI
RtlUnicodeStringToOemSize(const UNICODE_STRING
*);
3015 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToOemString(POEM_STRING
,PCUNICODE_STRING
,BOOLEAN
);
3016 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToCustomCPN(CPTABLEINFO
*,char*,DWORD
,DWORD
*,const WCHAR
*,DWORD
);
3017 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToMultiByteN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3018 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToMultiByteSize(PULONG
,PCWSTR
,ULONG
);
3019 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToOemN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3020 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToUTF8N(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3021 NTSYSAPI ULONG WINAPI
RtlUniform(PULONG
);
3022 NTSYSAPI BOOLEAN WINAPI
RtlUnlockHeap(HANDLE
);
3023 NTSYSAPI
void WINAPI
RtlUnwind(PVOID
,PVOID
,PEXCEPTION_RECORD
,PVOID
);
3025 NTSYSAPI
void WINAPI
RtlUnwindEx(PVOID
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
,PUNWIND_HISTORY_TABLE
);
3026 #elif defined(__ia64__)
3027 NTSYSAPI
void WINAPI
RtlUnwind2(FRAME_POINTERS
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
);
3028 NTSYSAPI
void WINAPI
RtlUnwindEx(FRAME_POINTERS
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
,PUNWIND_HISTORY_TABLE
);
3030 NTSYSAPI WCHAR WINAPI
RtlUpcaseUnicodeChar(WCHAR
);
3031 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3032 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToAnsiString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3033 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToCountedOemString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3034 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToOemString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3035 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToCustomCPN(CPTABLEINFO
*,char*,DWORD
,DWORD
*,const WCHAR
*,DWORD
);
3036 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToMultiByteN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3037 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToOemN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3038 NTSYSAPI NTSTATUS WINAPI
RtlUpdateTimer(HANDLE
, HANDLE
, DWORD
, DWORD
);
3039 NTSYSAPI CHAR WINAPI
RtlUpperChar(CHAR
);
3040 NTSYSAPI
void WINAPI
RtlUpperString(STRING
*,const STRING
*);
3041 NTSYSAPI NTSTATUS WINAPI
RtlValidSecurityDescriptor(PSECURITY_DESCRIPTOR
);
3042 NTSYSAPI BOOLEAN WINAPI
RtlValidRelativeSecurityDescriptor(PSECURITY_DESCRIPTOR
,ULONG
,SECURITY_INFORMATION
);
3043 NTSYSAPI BOOLEAN WINAPI
RtlValidAcl(PACL
);
3044 NTSYSAPI BOOLEAN WINAPI
RtlValidSid(PSID
);
3045 NTSYSAPI BOOLEAN WINAPI
RtlValidateHeap(HANDLE
,ULONG
,LPCVOID
);
3046 NTSYSAPI NTSTATUS WINAPI
RtlVerifyVersionInfo(const RTL_OSVERSIONINFOEXW
*,DWORD
,DWORDLONG
);
3047 NTSYSAPI NTSTATUS WINAPI
RtlWaitOnAddress(const void *,const void *,SIZE_T
,const LARGE_INTEGER
*);
3048 NTSYSAPI
void WINAPI
RtlWakeAddressAll(const void *);
3049 NTSYSAPI
void WINAPI
RtlWakeAddressSingle(const void *);
3050 NTSYSAPI
void WINAPI
RtlWakeAllConditionVariable(RTL_CONDITION_VARIABLE
*);
3051 NTSYSAPI
void WINAPI
RtlWakeConditionVariable(RTL_CONDITION_VARIABLE
*);
3052 NTSYSAPI NTSTATUS WINAPI
RtlWalkHeap(HANDLE
,PVOID
);
3053 NTSYSAPI NTSTATUS WINAPI
RtlWow64EnableFsRedirection(BOOLEAN
);
3054 NTSYSAPI NTSTATUS WINAPI
RtlWow64EnableFsRedirectionEx(ULONG
,ULONG
*);
3056 NTSYSAPI NTSTATUS WINAPI
RtlWow64GetThreadContext(HANDLE
, WOW64_CONTEXT
*);
3057 NTSYSAPI NTSTATUS WINAPI
RtlWow64SetThreadContext(HANDLE
, const WOW64_CONTEXT
*);
3059 NTSYSAPI NTSTATUS WINAPI
RtlWriteRegistryValue(ULONG
,PCWSTR
,PCWSTR
,ULONG
,PVOID
,ULONG
);
3060 NTSYSAPI NTSTATUS WINAPI
RtlZombifyActivationContext(HANDLE
);
3061 NTSYSAPI NTSTATUS WINAPI
RtlpNtCreateKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,PULONG
);
3062 NTSYSAPI NTSTATUS WINAPI
RtlpNtEnumerateSubKey(HANDLE
,UNICODE_STRING
*, ULONG
);
3063 NTSYSAPI NTSTATUS WINAPI
RtlpWaitForCriticalSection(RTL_CRITICAL_SECTION
*);
3064 NTSYSAPI NTSTATUS WINAPI
RtlpUnWaitCriticalSection(RTL_CRITICAL_SECTION
*);
3065 NTSYSAPI NTSTATUS WINAPI
vDbgPrintEx(ULONG
,ULONG
,LPCSTR
,__ms_va_list
);
3066 NTSYSAPI NTSTATUS WINAPI
vDbgPrintExWithPrefix(LPCSTR
,ULONG
,ULONG
,LPCSTR
,__ms_va_list
);
3068 NTSYSAPI
int __cdecl
_strnicmp(LPCSTR
,LPCSTR
,size_t);
3070 /* 32-bit only functions */
3073 NTSYSAPI LONGLONG WINAPI
RtlConvertLongToLargeInteger(LONG
);
3074 NTSYSAPI ULONGLONG WINAPI
RtlConvertUlongToLargeInteger(ULONG
);
3075 NTSYSAPI LONGLONG WINAPI
RtlEnlargedIntegerMultiply(INT
,INT
);
3076 NTSYSAPI ULONGLONG WINAPI
RtlEnlargedUnsignedMultiply(UINT
,UINT
);
3077 NTSYSAPI UINT WINAPI
RtlEnlargedUnsignedDivide(ULONGLONG
,UINT
,UINT
*);
3078 NTSYSAPI LONGLONG WINAPI
RtlExtendedMagicDivide(LONGLONG
,LONGLONG
,INT
);
3079 NTSYSAPI LONGLONG WINAPI
RtlExtendedIntegerMultiply(LONGLONG
,INT
);
3080 NTSYSAPI LONGLONG WINAPI
RtlExtendedLargeIntegerDivide(LONGLONG
,INT
,INT
*);
3081 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerAdd(LONGLONG
,LONGLONG
);
3082 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerArithmeticShift(LONGLONG
,INT
);
3083 NTSYSAPI ULONGLONG WINAPI
RtlLargeIntegerDivide( ULONGLONG
,ULONGLONG
,ULONGLONG
*);
3084 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerNegate(LONGLONG
);
3085 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerShiftLeft(LONGLONG
,INT
);
3086 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerShiftRight(LONGLONG
,INT
);
3087 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerSubtract(LONGLONG
,LONGLONG
);
3088 NTSYSAPI NTSTATUS WINAPI
RtlLargeIntegerToChar(const ULONGLONG
*,ULONG
,ULONG
,PCHAR
);
3091 /* Threadpool functions */
3093 NTSYSAPI NTSTATUS WINAPI
TpAllocCleanupGroup(TP_CLEANUP_GROUP
**);
3094 NTSYSAPI NTSTATUS WINAPI
TpAllocIoCompletion(TP_IO
**,HANDLE
,PTP_IO_CALLBACK
,void *,TP_CALLBACK_ENVIRON
*);
3095 NTSYSAPI NTSTATUS WINAPI
TpAllocPool(TP_POOL
**,PVOID
);
3096 NTSYSAPI NTSTATUS WINAPI
TpAllocTimer(TP_TIMER
**,PTP_TIMER_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
3097 NTSYSAPI NTSTATUS WINAPI
TpAllocWait(TP_WAIT
**,PTP_WAIT_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
3098 NTSYSAPI NTSTATUS WINAPI
TpAllocWork(TP_WORK
**,PTP_WORK_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
3099 NTSYSAPI
void WINAPI
TpCallbackLeaveCriticalSectionOnCompletion(TP_CALLBACK_INSTANCE
*,RTL_CRITICAL_SECTION
*);
3100 NTSYSAPI NTSTATUS WINAPI
TpCallbackMayRunLong(TP_CALLBACK_INSTANCE
*);
3101 NTSYSAPI
void WINAPI
TpCallbackReleaseMutexOnCompletion(TP_CALLBACK_INSTANCE
*,HANDLE
);
3102 NTSYSAPI
void WINAPI
TpCallbackReleaseSemaphoreOnCompletion(TP_CALLBACK_INSTANCE
*,HANDLE
,DWORD
);
3103 NTSYSAPI
void WINAPI
TpCallbackSetEventOnCompletion(TP_CALLBACK_INSTANCE
*,HANDLE
);
3104 NTSYSAPI
void WINAPI
TpCallbackUnloadDllOnCompletion(TP_CALLBACK_INSTANCE
*,HMODULE
);
3105 NTSYSAPI
void WINAPI
TpCancelAsyncIoOperation(TP_IO
*);
3106 NTSYSAPI
void WINAPI
TpDisassociateCallback(TP_CALLBACK_INSTANCE
*);
3107 NTSYSAPI BOOL WINAPI
TpIsTimerSet(TP_TIMER
*);
3108 NTSYSAPI
void WINAPI
TpPostWork(TP_WORK
*);
3109 NTSYSAPI NTSTATUS WINAPI
TpQueryPoolStackInformation(TP_POOL
*, TP_POOL_STACK_INFORMATION
*stack_info
);
3110 NTSYSAPI
void WINAPI
TpReleaseCleanupGroup(TP_CLEANUP_GROUP
*);
3111 NTSYSAPI
void WINAPI
TpReleaseCleanupGroupMembers(TP_CLEANUP_GROUP
*,BOOL
,PVOID
);
3112 NTSYSAPI
void WINAPI
TpReleaseIoCompletion(TP_IO
*);
3113 NTSYSAPI
void WINAPI
TpReleasePool(TP_POOL
*);
3114 NTSYSAPI
void WINAPI
TpReleaseTimer(TP_TIMER
*);
3115 NTSYSAPI
void WINAPI
TpReleaseWait(TP_WAIT
*);
3116 NTSYSAPI
void WINAPI
TpReleaseWork(TP_WORK
*);
3117 NTSYSAPI
void WINAPI
TpSetPoolMaxThreads(TP_POOL
*,DWORD
);
3118 NTSYSAPI BOOL WINAPI
TpSetPoolMinThreads(TP_POOL
*,DWORD
);
3119 NTSYSAPI NTSTATUS WINAPI
TpSetPoolStackInformation(TP_POOL
*, TP_POOL_STACK_INFORMATION
*stack_info
);
3120 NTSYSAPI
void WINAPI
TpSetTimer(TP_TIMER
*, LARGE_INTEGER
*,LONG
,LONG
);
3121 NTSYSAPI
void WINAPI
TpSetWait(TP_WAIT
*,HANDLE
,LARGE_INTEGER
*);
3122 NTSYSAPI NTSTATUS WINAPI
TpSimpleTryPost(PTP_SIMPLE_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
3123 NTSYSAPI
void WINAPI
TpStartAsyncIoOperation(TP_IO
*);
3124 NTSYSAPI
void WINAPI
TpWaitForIoCompletion(TP_IO
*,BOOL
);
3125 NTSYSAPI
void WINAPI
TpWaitForTimer(TP_TIMER
*,BOOL
);
3126 NTSYSAPI
void WINAPI
TpWaitForWait(TP_WAIT
*,BOOL
);
3127 NTSYSAPI
void WINAPI
TpWaitForWork(TP_WORK
*,BOOL
);
3129 /* Wine internal functions */
3131 NTSYSAPI NTSTATUS CDECL
wine_nt_to_unix_file_name( const UNICODE_STRING
*nameW
, ANSI_STRING
*unix_name_ret
,
3132 UINT disposition
, BOOLEAN check_case
);
3133 NTSYSAPI NTSTATUS CDECL
wine_unix_to_nt_file_name( const ANSI_STRING
*name
, UNICODE_STRING
*nt
);
3136 /***********************************************************************
3140 #define InitializeObjectAttributes(p,n,a,r,s) \
3142 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
3143 (p)->RootDirectory = r; \
3144 (p)->Attributes = a; \
3145 (p)->ObjectName = n; \
3146 (p)->SecurityDescriptor = s; \
3147 (p)->SecurityQualityOfService = NULL; \
3150 #define NtCurrentProcess() ((HANDLE)-1)
3152 #define RtlFillMemory(Destination,Length,Fill) memset((Destination),(Fill),(Length))
3153 #define RtlMoveMemory(Destination,Source,Length) memmove((Destination),(Source),(Length))
3154 #define RtlStoreUlong(p,v) do { ULONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
3155 #define RtlStoreUlonglong(p,v) do { ULONGLONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
3156 #define RtlRetrieveUlong(p,s) memcpy((p), (s), sizeof(ULONG))
3157 #define RtlRetrieveUlonglong(p,s) memcpy((p), (s), sizeof(ULONGLONG))
3158 #define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
3160 static inline BOOLEAN
RtlCheckBit(PCRTL_BITMAP lpBits
, ULONG ulBit
)
3162 if (lpBits
&& ulBit
< lpBits
->SizeOfBitMap
&&
3163 lpBits
->Buffer
[ulBit
>> 5] & (1 << (ulBit
& 31)))
3168 /* These are implemented as __fastcall, so we can't let Winelib apps link with them */
3169 static inline USHORT
RtlUshortByteSwap(USHORT s
)
3171 return (s
>> 8) | (s
<< 8);
3173 static inline ULONG
RtlUlongByteSwap(ULONG i
)
3175 #if defined(__i386__) && defined(__GNUC__)
3177 __asm__("bswap %0" : "=r" (ret
) : "0" (i
) );
3180 return ((ULONG
)RtlUshortByteSwap((USHORT
)i
) << 16) | RtlUshortByteSwap((USHORT
)(i
>> 16));
3184 /* list manipulation macros */
3185 #define InitializeListHead(le) (void)((le)->Flink = (le)->Blink = (le))
3186 #define InsertHeadList(le,e) do { PLIST_ENTRY f = (le)->Flink; (e)->Flink = f; (e)->Blink = (le); f->Blink = (e); (le)->Flink = (e); } while (0)
3187 #define InsertTailList(le,e) do { PLIST_ENTRY b = (le)->Blink; (e)->Flink = (le); (e)->Blink = b; b->Flink = (e); (le)->Blink = (e); } while (0)
3188 #define IsListEmpty(le) ((le)->Flink == (le))
3189 #define RemoveEntryList(e) do { PLIST_ENTRY f = (e)->Flink, b = (e)->Blink; f->Blink = b; b->Flink = f; (e)->Flink = (e)->Blink = NULL; } while (0)
3190 static inline PLIST_ENTRY
RemoveHeadList(PLIST_ENTRY le
)
3192 PLIST_ENTRY f
, b
, e
;
3195 f
= le
->Flink
->Flink
;
3196 b
= le
->Flink
->Blink
;
3200 if (e
!= le
) e
->Flink
= e
->Blink
= NULL
;
3203 static inline PLIST_ENTRY
RemoveTailList(PLIST_ENTRY le
)
3205 PLIST_ENTRY f
, b
, e
;
3208 f
= le
->Blink
->Flink
;
3209 b
= le
->Blink
->Blink
;
3213 if (e
!= le
) e
->Flink
= e
->Blink
= NULL
;
3220 /* The thread information for 16-bit threads */
3221 /* NtCurrentTeb()->SubSystemTib points to this */
3224 void *unknown
; /* 00 unknown */
3225 UNICODE_STRING
*exe_name
; /* 04 exe module name */
3227 /* the following fields do not exist under Windows */
3228 UNICODE_STRING exe_str
; /* exe name string pointed to by exe_name */
3229 CURDIR curdir
; /* current directory */
3230 WCHAR curdir_buffer
[MAX_PATH
];
3231 } WIN16_SUBSYSTEM_TIB
;
3233 #endif /* __WINESRC__ */
3237 #endif /* defined(__cplusplus) */
3239 #endif /* __WINE_WINTERNL_H */