ReactOS 0.4.15-dev-7924-g5949c20
rtltypes.h
Go to the documentation of this file.
1/*++ NDK Version: 0098
2
3Copyright (c) Alex Ionescu. All rights reserved.
4
5Header Name:
6
7 rtltypes.h
8
9Abstract:
10
11 Type definitions for the Run-Time Library
12
13Author:
14
15 Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
16
17--*/
18
19#ifndef _RTLTYPES_H
20#define _RTLTYPES_H
21
22//
23// Dependencies
24//
25#include <umtypes.h>
26#include <mmtypes.h>
27#include <ldrtypes.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33//
34// Maximum Atom Length
35//
36#define RTL_MAXIMUM_ATOM_LENGTH 255
37
38//
39// Process Parameters Flags
40//
41#define RTL_USER_PROCESS_PARAMETERS_NORMALIZED 0x01
42#define RTL_USER_PROCESS_PARAMETERS_PROFILE_USER 0x02
43#define RTL_USER_PROCESS_PARAMETERS_PROFILE_KERNEL 0x04
44#define RTL_USER_PROCESS_PARAMETERS_PROFILE_SERVER 0x08
45#define RTL_USER_PROCESS_PARAMETERS_UNKNOWN 0x10
46#define RTL_USER_PROCESS_PARAMETERS_RESERVE_1MB 0x20
47#define RTL_USER_PROCESS_PARAMETERS_RESERVE_16MB 0x40
48#define RTL_USER_PROCESS_PARAMETERS_CASE_SENSITIVE 0x80
49#define RTL_USER_PROCESS_PARAMETERS_DISABLE_HEAP_CHECKS 0x100
50#define RTL_USER_PROCESS_PARAMETERS_PROCESS_OR_1 0x200
51#define RTL_USER_PROCESS_PARAMETERS_PROCESS_OR_2 0x400
52#define RTL_USER_PROCESS_PARAMETERS_PRIVATE_DLL_PATH 0x1000
53#define RTL_USER_PROCESS_PARAMETERS_LOCAL_DLL_PATH 0x2000
54#define RTL_USER_PROCESS_PARAMETERS_IMAGE_KEY_MISSING 0x4000
55#define RTL_USER_PROCESS_PARAMETERS_NX 0x20000
56
57#define RTL_MAX_DRIVE_LETTERS 32
58#define RTL_DRIVE_LETTER_VALID (USHORT)0x0001
59
60//
61// End of Exception List
62//
63#define EXCEPTION_CHAIN_END ((PEXCEPTION_REGISTRATION_RECORD)-1)
64
65//
66// Thread Error Mode Flags
67//
68/* Also defined in psdk/winbase.h */
69#define SEM_FAILCRITICALERRORS 0x0001
70#define SEM_NOGPFAULTERRORBOX 0x0002
71#define SEM_NOALIGNMENTFAULTEXCEPT 0x0004
72#define SEM_NOOPENFILEERRORBOX 0x8000
73
74#define RTL_SEM_FAILCRITICALERRORS (SEM_FAILCRITICALERRORS << 4)
75#define RTL_SEM_NOGPFAULTERRORBOX (SEM_NOGPFAULTERRORBOX << 4)
76#define RTL_SEM_NOALIGNMENTFAULTEXCEPT (SEM_NOALIGNMENTFAULTEXCEPT << 4)
77
78//
79// Range and Range List Flags
80//
81#define RTL_RANGE_LIST_ADD_IF_CONFLICT 0x00000001
82#define RTL_RANGE_LIST_ADD_SHARED 0x00000002
83
84#define RTL_RANGE_SHARED 0x01
85#define RTL_RANGE_CONFLICT 0x02
86
87//
88// Flags in RTL_ACTIVATION_CONTEXT_STACK_FRAME (from Checked NTDLL)
89//
90#define RTL_ACTIVATION_CONTEXT_STACK_FRAME_FLAG_RELEASE_ON_DEACTIVATION 0x01
91#define RTL_ACTIVATION_CONTEXT_STACK_FRAME_FLAG_NO_DEACTIVATE 0x02
92#define RTL_ACTIVATION_CONTEXT_STACK_FRAME_FLAG_ON_FREE_LIST 0x04
93#define RTL_ACTIVATION_CONTEXT_STACK_FRAME_FLAG_HEAP_ALLOCATED 0x08
94#define RTL_ACTIVATION_CONTEXT_STACK_FRAME_FLAG_NOT_REALLY_ACTIVATED 0x10
95#define RTL_ACTIVATION_CONTEXT_STACK_FRAME_FLAG_ACTIVATED 0x20
96#define RTL_ACTIVATION_CONTEXT_STACK_FRAME_FLAG_DEACTIVATED 0x40
97
98//
99// Activation Context Frame Flags (from Checked NTDLL)
100//
101#define RTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_FORMAT_WHISTLER 0x01
102
103//
104// RtlActivateActivationContextEx Flags (from Checked NTDLL)
105//
106#define RTL_ACTIVATE_ACTIVATION_CONTEXT_EX_FLAG_RELEASE_ON_STACK_DEALLOCATION 0x01
107
108//
109// RtlDeactivateActivationContext Flags (based on Win32 flag and name of above)
110//
111#define RTL_DEACTIVATE_ACTIVATION_CONTEXT_FLAG_FORCE_EARLY_DEACTIVATION 0x01
112
113//
114// RtlQueryActivationContext Flags (based on Win32 flag and name of above)
115//
116#define RTL_QUERY_ACTIVATION_CONTEXT_FLAG_USE_ACTIVE_ACTIVATION_CONTEXT 0x01
117#define RTL_QUERY_ACTIVATION_CONTEXT_FLAG_IS_HMODULE 0x02
118#define RTL_QUERY_ACTIVATION_CONTEXT_FLAG_IS_ADDRESS 0x04
119#define RTL_QUERY_ACTIVATION_CONTEXT_FLAG_NO_ADDREF 0x80000000
120
121//
122// Public Heap Flags
123//
124#if !defined(NTOS_MODE_USER) && !defined(_NTIFS_)
125#define HEAP_NO_SERIALIZE 0x00000001
126#define HEAP_GROWABLE 0x00000002
127#define HEAP_GENERATE_EXCEPTIONS 0x00000004
128#define HEAP_ZERO_MEMORY 0x00000008
129#define HEAP_REALLOC_IN_PLACE_ONLY 0x00000010
130#define HEAP_TAIL_CHECKING_ENABLED 0x00000020
131#define HEAP_FREE_CHECKING_ENABLED 0x00000040
132#define HEAP_DISABLE_COALESCE_ON_FREE 0x00000080
133#define HEAP_CREATE_ALIGN_16 0x00010000
134#define HEAP_CREATE_ENABLE_TRACING 0x00020000
135#define HEAP_CREATE_ENABLE_EXECUTE 0x00040000
136#endif
137
138//
139// User-Defined Heap Flags and Classes
140//
141#define HEAP_SETTABLE_USER_VALUE 0x00000100
142#define HEAP_SETTABLE_USER_FLAG1 0x00000200
143#define HEAP_SETTABLE_USER_FLAG2 0x00000400
144#define HEAP_SETTABLE_USER_FLAG3 0x00000800
145#define HEAP_SETTABLE_USER_FLAGS 0x00000E00
146#define HEAP_CLASS_0 0x00000000
147#define HEAP_CLASS_1 0x00001000
148#define HEAP_CLASS_2 0x00002000
149#define HEAP_CLASS_3 0x00003000
150#define HEAP_CLASS_4 0x00004000
151#define HEAP_CLASS_5 0x00005000
152#define HEAP_CLASS_6 0x00006000
153#define HEAP_CLASS_7 0x00007000
154#define HEAP_CLASS_8 0x00008000
155#define HEAP_CLASS_MASK 0x0000F000
156
157//
158// Internal HEAP Structure Flags
159//
160#define HEAP_FLAG_PAGE_ALLOCS 0x01000000
161#define HEAP_PROTECTION_ENABLED 0x02000000
162#define HEAP_BREAK_WHEN_OUT_OF_VM 0x04000000
163#define HEAP_NO_ALIGNMENT 0x08000000
164#define HEAP_CAPTURE_STACK_BACKTRACES 0x08000000
165#define HEAP_SKIP_VALIDATION_CHECKS 0x10000000
166#define HEAP_VALIDATE_ALL_ENABLED 0x20000000
167#define HEAP_VALIDATE_PARAMETERS_ENABLED 0x40000000
168#define HEAP_LOCK_USER_ALLOCATED 0x80000000
169
170//
171// Heap Validation Flags
172//
173#define HEAP_CREATE_VALID_MASK \
174 (HEAP_NO_SERIALIZE | \
175 HEAP_GROWABLE | \
176 HEAP_GENERATE_EXCEPTIONS | \
177 HEAP_ZERO_MEMORY | \
178 HEAP_REALLOC_IN_PLACE_ONLY | \
179 HEAP_TAIL_CHECKING_ENABLED | \
180 HEAP_FREE_CHECKING_ENABLED | \
181 HEAP_DISABLE_COALESCE_ON_FREE | \
182 HEAP_CLASS_MASK | \
183 HEAP_CREATE_ALIGN_16 | \
184 HEAP_CREATE_ENABLE_TRACING | \
185 HEAP_CREATE_ENABLE_EXECUTE)
186#ifdef C_ASSERT
187C_ASSERT(HEAP_CREATE_VALID_MASK == 0x0007F0FF);
188#endif
189
190//
191// Native image architecture
192//
193#if defined(_M_IX86)
194#define IMAGE_FILE_MACHINE_NATIVE IMAGE_FILE_MACHINE_I386
195#elif defined(_M_ARM)
196#define IMAGE_FILE_MACHINE_NATIVE IMAGE_FILE_MACHINE_ARM
197#elif defined(_M_AMD64)
198#define IMAGE_FILE_MACHINE_NATIVE IMAGE_FILE_MACHINE_AMD64
199#elif defined(_M_ARM64)
200#define IMAGE_FILE_MACHINE_NATIVE IMAGE_FILE_MACHINE_ARM64
201#else
202#error Define these please!
203#endif
204
205//
206// Registry Keys
207//
208#define RTL_REGISTRY_ABSOLUTE 0
209#define RTL_REGISTRY_SERVICES 1
210#define RTL_REGISTRY_CONTROL 2
211#define RTL_REGISTRY_WINDOWS_NT 3
212#define RTL_REGISTRY_DEVICEMAP 4
213#define RTL_REGISTRY_USER 5
214#define RTL_REGISTRY_MAXIMUM 6
215#define RTL_REGISTRY_HANDLE 0x40000000
216#define RTL_REGISTRY_OPTIONAL 0x80000000
217#define RTL_QUERY_REGISTRY_SUBKEY 0x00000001
218#define RTL_QUERY_REGISTRY_TOPKEY 0x00000002
219#define RTL_QUERY_REGISTRY_REQUIRED 0x00000004
220#define RTL_QUERY_REGISTRY_NOVALUE 0x00000008
221#define RTL_QUERY_REGISTRY_NOEXPAND 0x00000010
222#define RTL_QUERY_REGISTRY_DIRECT 0x00000020
223#define RTL_QUERY_REGISTRY_DELETE 0x00000040
224
225//
226// Versioning
227//
228#define VER_MINORVERSION 0x0000001
229#define VER_MAJORVERSION 0x0000002
230#define VER_BUILDNUMBER 0x0000004
231#define VER_PLATFORMID 0x0000008
232#define VER_SERVICEPACKMINOR 0x0000010
233#define VER_SERVICEPACKMAJOR 0x0000020
234#define VER_SUITENAME 0x0000040
235#define VER_PRODUCT_TYPE 0x0000080
236#define VER_PLATFORM_WIN32s 0
237#define VER_PLATFORM_WIN32_WINDOWS 1
238#define VER_PLATFORM_WIN32_NT 2
239#define VER_EQUAL 1
240#define VER_GREATER 2
241#define VER_GREATER_EQUAL 3
242#define VER_LESS 4
243#define VER_LESS_EQUAL 5
244#define VER_AND 6
245#define VER_OR 7
246#define VER_CONDITION_MASK 7
247#define VER_NUM_BITS_PER_CONDITION_MASK 3
248
249//
250// Timezone IDs
251//
252#define TIME_ZONE_ID_UNKNOWN 0
253#define TIME_ZONE_ID_STANDARD 1
254#define TIME_ZONE_ID_DAYLIGHT 2
255
256//
257// Maximum Path Length
258//
259#define MAX_PATH 260
260
261//
262// RTL Lock Type (Critical Section or Resource)
263//
264#define RTL_CRITSECT_TYPE 0
265#define RTL_RESOURCE_TYPE 1
266
267//
268// RtlAcquirePrivileges Flags
269//
270#define RTL_ACQUIRE_PRIVILEGE_IMPERSONATE 1
271#define RTL_ACQUIRE_PRIVILEGE_PROCESS 2
272
273#ifdef NTOS_MODE_USER
274
275//
276// String Hash Algorithms
277//
278#define HASH_STRING_ALGORITHM_DEFAULT 0
279#define HASH_STRING_ALGORITHM_X65599 1
280#define HASH_STRING_ALGORITHM_INVALID 0xffffffff
281
282//
283// RtlDuplicateString Flags
284//
285#define RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE 1
286#define RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING 2
287
288//
289// RtlFindCharInUnicodeString Flags
290//
291#define RTL_FIND_CHAR_IN_UNICODE_STRING_START_AT_END 1
292#define RTL_FIND_CHAR_IN_UNICODE_STRING_COMPLEMENT_CHAR_SET 2
293#define RTL_FIND_CHAR_IN_UNICODE_STRING_CASE_INSENSITIVE 4
294
295//
296// RtlDosApplyFileIsolationRedirection_Ustr Flags
297//
298#define RTL_DOS_APPLY_FILE_REDIRECTION_USTR_FLAG_RESPECT_DOT_LOCAL 0x01
299
300//
301// Codepages
302//
303#define NLS_MB_CODE_PAGE_TAG NlsMbCodePageTag
304#define NLS_MB_OEM_CODE_PAGE_TAG NlsMbOemCodePageTag
305#define NLS_OEM_LEAD_BYTE_INFO NlsOemLeadByteInfo
306
307//
308// Activation Contexts
309//
310#define INVALID_ACTIVATION_CONTEXT ((PVOID)(LONG_PTR)-1)
311
312//
313// C++ CONST casting
314//
315#if defined(__cplusplus)
316#define RTL_CONST_CAST(type) const_cast<type>
317#else
318#define RTL_CONST_CAST(type) (type)
319#endif
320
321//
322// Constant String Macro
323//
324#define RTL_CONSTANT_STRING(__SOURCE_STRING__) \
325{ \
326 sizeof(__SOURCE_STRING__) - sizeof((__SOURCE_STRING__)[0]), \
327 sizeof(__SOURCE_STRING__), \
328 (__SOURCE_STRING__) \
329}
330
331//
332// Constant Object Attributes Macro
333//
334#define RTL_CONSTANT_OBJECT_ATTRIBUTES(n, a) \
335{ \
336 sizeof(OBJECT_ATTRIBUTES), \
337 NULL, \
338 RTL_CONST_CAST(PUNICODE_STRING)(n), \
339 a, \
340 NULL, \
341 NULL \
342}
343
344#define RTL_INIT_OBJECT_ATTRIBUTES(n, a) \
345 RTL_CONSTANT_OBJECT_ATTRIBUTES(n, a)
346
347#else /* NTOS_MODE_USER */
348//
349// Message Resource Flag
350//
351#define MESSAGE_RESOURCE_UNICODE 0x0001
352
353#endif /* !NTOS_MODE_USER */
354
355//
356// RtlImageNtHeaderEx Flags
357//
358#define RTL_IMAGE_NT_HEADER_EX_FLAG_NO_RANGE_CHECK 0x00000001
359
360
361#define MAXIMUM_LEADBYTES 12
362
363//
364// RTL Debug Queries
365//
366#define RTL_DEBUG_QUERY_MODULES 0x01
367#define RTL_DEBUG_QUERY_BACKTRACES 0x02
368#define RTL_DEBUG_QUERY_HEAPS 0x04
369#define RTL_DEBUG_QUERY_HEAP_TAGS 0x08
370#define RTL_DEBUG_QUERY_HEAP_BLOCKS 0x10
371#define RTL_DEBUG_QUERY_LOCKS 0x20
372
373//
374// RTL Handle Flags
375//
376#define RTL_HANDLE_VALID 0x1
377
378//
379// RTL Atom Flags
380//
381#define RTL_ATOM_IS_PINNED 0x1
382
383//
384// Critical section lock bits
385//
386#define CS_LOCK_BIT 0x1
387#define CS_LOCK_BIT_V 0x0
388#define CS_LOCK_WAITER_WOKEN 0x2
389#define CS_LOCK_WAITER_INC 0x4
390
391//
392// Codepage Tags
393//
394#ifdef NTOS_MODE_USER
397
398//
399// Constant String Macro
400//
401#define RTL_CONSTANT_STRING(__SOURCE_STRING__) \
402{ \
403 sizeof(__SOURCE_STRING__) - sizeof((__SOURCE_STRING__)[0]), \
404 sizeof(__SOURCE_STRING__), \
405 (__SOURCE_STRING__) \
406}
407
408#endif /* NTOS_MODE_USER */
409
410//
411// Constant Large Integer Macro
412//
413#ifdef NONAMELESSUNION
414C_ASSERT(FIELD_OFFSET(LARGE_INTEGER, u.LowPart) == 0);
415#else
417#endif
418#define RTL_CONSTANT_LARGE_INTEGER(quad_part) { { (quad_part), (quad_part)>>32 } }
419#define RTL_MAKE_LARGE_INTEGER(low_part, high_part) { { (low_part), (high_part) } }
420
421//
422// Boot Status Data Field Types
423//
425{
444
445#ifdef NTOS_MODE_USER
446//
447// Table and Compare result types
448//
449typedef enum _TABLE_SEARCH_RESULT
450{
451 TableEmptyTree,
452 TableFoundNode,
453 TableInsertAsLeft,
454 TableInsertAsRight
456
458{
463
464#endif /* NTOS_MODE_USER */
465
466//
467// RTL Path Types
468//
469typedef enum _RTL_PATH_TYPE
470{
480
481#ifndef NTOS_MODE_USER
482
483//
484// Heap Information Class
485//
487{
491
492//
493// Callback function for RTL Timers or Registered Waits
494//
495typedef VOID
497 PVOID pvContext,
498 BOOLEAN fTimerOrWaitFired
499);
500
501//
502// Handler during Vectored RTL Exceptions
503//
504typedef LONG
506 PEXCEPTION_POINTERS ExceptionPointers
507);
508
509//
510// Worker Thread Callback for Rtl
511//
512typedef VOID
515);
516
517#else /* !NTOS_MODE_USER */
518
519//
520// RTL Library Allocation/Free Routines
521//
522typedef PVOID
523(NTAPI *PRTL_ALLOCATE_STRING_ROUTINE)(
525);
526
527typedef PVOID
528(NTAPI *PRTL_REALLOCATE_STRING_ROUTINE)(
531);
532
533typedef
534VOID
537);
538
539extern const PRTL_ALLOCATE_STRING_ROUTINE RtlAllocateStringRoutine;
541extern const PRTL_REALLOCATE_STRING_ROUTINE RtlReallocateStringRoutine;
542
543#endif /* NTOS_MODE_USER */
544
545//
546// Unhandled Exception Filter
547//
548typedef ULONG
550 _In_ struct _EXCEPTION_POINTERS *ExceptionInfo
551);
553
554//
555// Callback for RTL Heap Enumeration
556//
557typedef NTSTATUS
559 _In_ PVOID HeapHandle,
560 _In_ PVOID UserParam
561);
562
563//
564// Thread and Process Start Routines for RtlCreateUserThread/Process
565//
568);
569
570typedef VOID
572 PTHREAD_START_ROUTINE StartAddress,
574);
575
576//
577// Worker Start/Exit Function
578//
579typedef NTSTATUS
583 _Out_ PHANDLE ThreadHandle
584);
585
586typedef NTSTATUS
589);
590
591//
592// Declare empty structure definitions so that they may be referenced by
593// routines before they are defined
594//
595struct _RTL_AVL_TABLE;
596struct _RTL_GENERIC_TABLE;
597struct _RTL_RANGE;
598
599//
600// Routines and callbacks for the RTL AVL/Generic Table package
601//
602#ifdef NTOS_MODE_USER
603typedef NTSTATUS
604(NTAPI RTL_AVL_MATCH_FUNCTION)(
605 struct _RTL_AVL_TABLE *Table,
608);
609typedef RTL_AVL_MATCH_FUNCTION *PRTL_AVL_MATCH_FUNCTION;
610
612(NTAPI RTL_AVL_COMPARE_ROUTINE) (
613 struct _RTL_AVL_TABLE *Table,
616);
617typedef RTL_AVL_COMPARE_ROUTINE *PRTL_AVL_COMPARE_ROUTINE;
618
620(NTAPI RTL_GENERIC_COMPARE_ROUTINE) (
624);
625typedef RTL_GENERIC_COMPARE_ROUTINE *PRTL_GENERIC_COMPARE_ROUTINE;
626
627typedef PVOID
628(NTAPI RTL_GENERIC_ALLOCATE_ROUTINE) (
631);
632typedef RTL_GENERIC_ALLOCATE_ROUTINE *PRTL_GENERIC_ALLOCATE_ROUTINE;
633
634typedef PVOID
635(NTAPI RTL_AVL_ALLOCATE_ROUTINE) (
636 struct _RTL_AVL_TABLE *Table,
638);
639typedef RTL_AVL_ALLOCATE_ROUTINE *PRTL_AVL_ALLOCATE_ROUTINE;
640
641typedef VOID
642(NTAPI RTL_GENERIC_FREE_ROUTINE) (
645);
646typedef RTL_GENERIC_FREE_ROUTINE *PRTL_GENERIC_FREE_ROUTINE;
647
648typedef VOID
649(NTAPI RTL_AVL_FREE_ROUTINE) (
650 struct _RTL_AVL_TABLE *Table,
652);
653typedef RTL_AVL_FREE_ROUTINE *PRTL_AVL_FREE_ROUTINE;
654
655#ifdef RTL_USE_AVL_TABLES
656#undef RTL_GENERIC_COMPARE_ROUTINE
657#undef PRTL_GENERIC_COMPARE_ROUTINE
658#undef RTL_GENERIC_ALLOCATE_ROUTINE
659#undef PRTL_GENERIC_ALLOCATE_ROUTINE
660#undef RTL_GENERIC_FREE_ROUTINE
661#undef PRTL_GENERIC_FREE_ROUTINE
662
663#define RTL_GENERIC_COMPARE_ROUTINE RTL_AVL_COMPARE_ROUTINE
664#define PRTL_GENERIC_COMPARE_ROUTINE PRTL_AVL_COMPARE_ROUTINE
665#define RTL_GENERIC_ALLOCATE_ROUTINE RTL_AVL_ALLOCATE_ROUTINE
666#define PRTL_GENERIC_ALLOCATE_ROUTINE PRTL_AVL_ALLOCATE_ROUTINE
667#define RTL_GENERIC_FREE_ROUTINE RTL_AVL_FREE_ROUTINE
668#define PRTL_GENERIC_FREE_ROUTINE PRTL_AVL_FREE_ROUTINE
669#endif /* RTL_USE_AVL_TABLES */
670
671#endif /* NTOS_MODE_USER */
672
673//
674// RTL Query Registry callback
675//
676#ifdef NTOS_MODE_USER
677typedef NTSTATUS
685);
686#endif
687
688//
689// RTL Secure Memory callbacks
690//
691#ifdef NTOS_MODE_USER
692typedef NTSTATUS
693(NTAPI *PRTL_SECURE_MEMORY_CACHE_CALLBACK)(
696);
697#endif
698
699//
700// RTL Range List callbacks
701//
702typedef BOOLEAN
705 struct _RTL_RANGE *Range
706);
707
708//
709// Custom Heap Commit Routine for RtlCreateHeap
710//
711#ifdef NTOS_MODE_USER
712typedef NTSTATUS
717);
718
719//
720// Parameters for RtlCreateHeap
721//
722typedef struct _RTL_HEAP_PARAMETERS
723{
734 SIZE_T Reserved[2];
736
737//
738// RTL Bitmap structures
739//
740typedef struct _RTL_BITMAP
741{
745
746typedef struct _RTL_BITMAP_RUN
747{
751
752//
753// RtlGenerateXxxName context
754//
755typedef struct _GENERATE_NAME_CONTEXT
756{
759 UCHAR NameLength;
760 WCHAR NameBuffer[8];
761 ULONG ExtensionLength;
765
766//
767// RTL Splay and Balanced Links structures
768//
769typedef struct _RTL_SPLAY_LINKS
770{
771 struct _RTL_SPLAY_LINKS *Parent;
775
776typedef struct _RTL_BALANCED_LINKS
777{
782 UCHAR Reserved[3];
784
785//
786// RTL Avl/Generic Tables
787//
788#ifndef RTL_USE_AVL_TABLES
789typedef struct _RTL_GENERIC_TABLE
790{
801#endif /* !RTL_USE_AVL_TABLES */
802
803typedef struct _RTL_AVL_TABLE
804{
817
818#ifdef RTL_USE_AVL_TABLES
819#undef RTL_GENERIC_TABLE
820#undef PRTL_GENERIC_TABLE
821
822#define RTL_GENERIC_TABLE RTL_AVL_TABLE
823#define PRTL_GENERIC_TABLE PRTL_AVL_TABLE
824#endif /* RTL_USE_AVL_TABLES */
825
826//
827// RTL Compression Buffer
828//
829typedef struct _COMPRESSED_DATA_INFO {
838
839//
840// RtlQueryRegistry Data
841//
842typedef struct _RTL_QUERY_REGISTRY_TABLE
843{
845 ULONG Flags;
846 PCWSTR Name;
852
853//
854// RTL Unicode Table Structures
855//
856typedef struct _UNICODE_PREFIX_TABLE_ENTRY
857{
865
866typedef struct _UNICODE_PREFIX_TABLE
867{
873
874//
875// Pfx* routines' table structures
876//
877typedef struct _PREFIX_TABLE_ENTRY
878{
885
886typedef struct _PREFIX_TABLE
887{
892
893//
894// Time Structure for RTL Time calls
895//
896typedef struct _TIME_FIELDS
897{
898 CSHORT Year;
900 CSHORT Day;
901 CSHORT Hour;
907
908//
909// Activation Context Frame
910//
912{
915 ULONG Flags;
917
918typedef struct _RTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_BASIC
919{
920 SIZE_T Size;
923} RTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_BASIC, *PRTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_BASIC;
924
925typedef struct _RTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_EXTENDED
926{
927 SIZE_T Size;
930 PVOID Extra1;
931 PVOID Extra2;
932 PVOID Extra3;
933 PVOID Extra4;
934} RTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_EXTENDED, *PRTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_EXTENDED;
935
936typedef RTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_EXTENDED RTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME;
937typedef PRTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_EXTENDED PRTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME;
938
939typedef struct _RTL_HEAP_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME
940{
943 PVOID ActivationStackBackTrace[8];
944} RTL_HEAP_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME, *PRTL_HEAP_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME;
945
946typedef struct _ACTIVATION_CONTEXT_DATA
947{
948 ULONG Magic;
949 ULONG HeaderSize;
950 ULONG FormatVersion;
951 ULONG TotalSize;
952 ULONG DefaultTocOffset;
953 ULONG ExtendedTocOffset;
954 ULONG AssemblyRosterOffset;
955 ULONG Flags;
956} ACTIVATION_CONTEXT_DATA, *PACTIVATION_CONTEXT_DATA;
957
958typedef struct _ACTIVATION_CONTEXT_STACK_FRAMELIST
959{
960 ULONG Magic;
961 ULONG FramesInUse;
962 LIST_ENTRY Links;
963 ULONG Flags;
964 ULONG NotFramesInUse;
965 RTL_HEAP_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME Frames[32];
966} ACTIVATION_CONTEXT_STACK_FRAMELIST, *PACTIVATION_CONTEXT_STACK_FRAMELIST;
967
968#endif /* NTOS_MODE_USER */
969
970#if (NTDDI_VERSION >= NTDDI_WS03SP1)
972{
979#else
980typedef struct _ACTIVATION_CONTEXT_STACK
981{
982 ULONG Flags;
987#endif
988
989//
990// ACE Structure
991//
992typedef struct _ACE
993{
997
998//
999// Information Structures for RTL Debug Functions
1000//
1002{
1014
1016{
1020
1022{
1029
1031{
1036
1038{
1045
1046typedef struct _RTL_HEAP_USAGE
1047{
1058
1060{
1066 union
1067 {
1068 struct
1069 {
1075 struct
1076 {
1082 };
1084
1085typedef struct _RTL_HEAP_ENTRY
1086{
1090 union
1091 {
1092 struct
1093 {
1097 struct
1098 {
1102 } u;
1104
1105typedef struct _RTL_HEAP_TAG
1106{
1114
1116{
1131
1133{
1137
1139{
1151
1153{
1157
1159{
1166
1168{
1175
1177{
1181 //
1182 // Option array continues below
1183 //
1185
1187{
1200 union
1201 {
1204 };
1216
1217//
1218// Fiber local storage data
1219//
1220#define RTL_FLS_MAXIMUM_AVAILABLE 128
1221typedef struct _RTL_FLS_DATA
1222{
1226
1227
1228//
1229// Unload Event Trace Structure for RtlGetUnloadEventTrace
1230//
1231#define RTL_UNLOAD_EVENT_TRACE_NUMBER 16
1232
1234{
1242
1243//
1244// RTL Handle Structures
1245//
1247{
1248 union
1249 {
1252 };
1254
1255typedef struct _RTL_HANDLE_TABLE
1256{
1265
1266//
1267// RTL Boot Status Data Item
1268//
1269typedef struct _RTL_BSD_ITEM
1270{
1275
1276//
1277// Data Sub-Structures for "bootstat.dat" RTL Data File
1278//
1280{
1282 struct
1283 {
1298
1300{
1307
1309{
1314 struct
1315 {
1328
1329//
1330// Main Structure for "bootstat.dat" RTL Data File
1331//
1332typedef struct _RTL_BSD_DATA
1333{
1334 ULONG Version; // RtlBsdItemVersionNumber
1335 ULONG ProductType; // RtlBsdItemProductType
1336 BOOLEAN AabEnabled; // RtlBsdItemAabEnabled
1337 UCHAR AabTimeout; // RtlBsdItemAabTimeout
1338 BOOLEAN LastBootSucceeded; // RtlBsdItemBootGood
1339 BOOLEAN LastBootShutdown; // RtlBsdItemBootShutdown
1340 BOOLEAN SleepInProgress; // RtlBsdSleepInProgress
1342 UCHAR BootAttemptCount; // RtlBsdItemBootAttemptCount
1343 UCHAR LastBootCheckpoint; // RtlBsdItemBootCheckpoint
1344 UCHAR Checksum; // RtlBsdItemChecksum
1345 ULONG LastBootId; // RtlBsdItemBootId
1346 ULONG LastSuccessfulShutdownBootId; // RtlBsdItemShutdownBootId
1347 ULONG LastReportedAbnormalShutdownBootId; // RtlBsdItemReportedAbnormalShutdownBootId
1348 RTL_BSD_DATA_ERROR_INFO ErrorInfo; // RtlBsdItemErrorInfo
1351
1352#ifdef NTOS_MODE_USER
1353//
1354// Exception Record
1355//
1356typedef struct _EXCEPTION_REGISTRATION_RECORD
1357{
1361#endif /* NTOS_MODE_USER */
1362
1363//
1364// Current Directory Structures
1365//
1366typedef struct _CURDIR
1367{
1371
1372typedef struct _RTLP_CURDIR_REF
1373{
1377
1379{
1384
1386{
1392
1394{
1399
1400//
1401// Private State structure for RtlAcquirePrivilege/RtlReleasePrivilege
1402//
1404{
1412
1413#ifndef NTOS_MODE_USER
1414
1415//
1416// RTL Critical Section Structures
1417//
1419{
1428
1430{
1438
1439#endif /* !NTOS_MODE_USER */
1440
1441//
1442// RTL Private Heap Structures
1443//
1444typedef struct _HEAP_LOCK
1445{
1446 union
1447 {
1449#ifndef NTOS_MODE_USER
1451#endif
1452 UCHAR Padding[0x68]; /* Max ERESOURCE size for x64 build. Needed because RTL is built only once */
1453 };
1455
1456//
1457// RTL Range List Structures
1458//
1459typedef struct _RTL_RANGE_LIST
1460{
1466
1467typedef struct _RTL_RANGE
1468{
1476
1478{
1484
1486{
1489 union
1490 {
1491 struct
1492 {
1496 struct
1497 {
1500 };
1507
1508//
1509// RTL Resource
1510//
1511#define RTL_RESOURCE_FLAG_LONG_TERM ((ULONG)0x00000001)
1512
1513typedef struct _RTL_RESOURCE
1514{
1525
1526//
1527// Structures for RtlCreateUserProcess
1528//
1529typedef struct _RTL_USER_PROCESS_PARAMETERS
1530{
1559#if (NTDDI_VERSION >= NTDDI_LONGHORN)
1561#endif
1562#if (NTDDI_VERSION >= NTDDI_WIN7)
1564#endif
1566
1568{
1575
1576#if (NTDDI_VERSION >= NTDDI_WIN7)
1577
1579{
1584
1586{
1588#if (NTDDI_VERSION < NTDDI_WIN8)
1589 UMSCTX_HAS_QUANTUM_REQ_BIT,
1590 UMSCTX_HAS_AFFINITY_REQ_BIT,
1591 UMSCTX_HAS_PRIORITY_REQ_BIT,
1592#endif
1599
1601
1602#define UMSCTX_SCHEDULED_THREAD_MASK (1 << UMSCTX_SCHEDULED_THREAD_BIT)
1603#define UMSCTX_SUSPENDED_MASK (1 << UMSCTX_SUSPENDED_BIT)
1604#define UMSCTX_VOLATILE_CONTEXT_MASK (1 << UMSCTX_VOLATILE_CONTEXT_BIT)
1605#define UMSCTX_TERMINATED_MASK (1 << UMSCTX_TERMINATED_BIT)
1606#define UMSCTX_DEBUG_ACTIVE_MASK (1 << UMSCTX_DEBUG_ACTIVE_BIT)
1607#define UMSCTX_RUNNING_ON_SELF_THREAD_MASK (1 << UMSCTX_RUNNING_ON_SELF_THREAD_BIT)
1608#define UMSCTX_DENY_RUNNING_ON_SELF_THREAD_MASK (1 << UMSCTX_DENY_RUNNING_ON_SELF_THREAD_BIT)
1609
1610//
1611// UMS Context
1612//
1613typedef struct DECLSPEC_ALIGN(16) _RTL_UMS_CONTEXT
1614{
1617 PVOID Teb;
1618 PVOID UserContext;
1619 union
1620 {
1621 struct
1622 {
1623 ULONG ScheduledThread : 1;
1624#if (NTDDI_VERSION < NTDDI_WIN8)
1625 ULONG HasQuantumReq : 1;
1626 ULONG HasAffinityReq : 1;
1627 ULONG HasPriorityReq : 1;
1628#endif
1629 ULONG Suspended : 1;
1630 ULONG VolatileContext : 1;
1631 ULONG Terminated : 1;
1632 ULONG DebugActive : 1;
1633 ULONG RunningOnSelfThread : 1;
1634 ULONG DenyRunningOnSelfThread : 1;
1635#if (NTDDI_VERSION < NTDDI_WIN8)
1636 ULONG ReservedFlags : 22;
1637#endif
1638 };
1639 LONG Flags;
1640 };
1641 union
1642 {
1643 struct
1644 {
1645#if (NTDDI_VERSION >= NTDDI_WIN8)
1646 ULONG64 KernelUpdateLock : 2;
1647#else
1648 ULONG64 KernelUpdateLock : 1;
1649 ULONG64 Reserved : 1;
1650#endif
1651 ULONG64 PrimaryClientID : 62;
1652 };
1653 ULONG64 ContextLock;
1654 };
1655#if (NTDDI_VERSION < NTDDI_WIN8)
1656 ULONG64 QuantumValue;
1657 GROUP_AFFINITY AffinityMask;
1658 LONG Priority;
1659#endif
1660 struct _RTL_UMS_CONTEXT* PrimaryUmsContext;
1661 ULONG SwitchCount;
1662 ULONG KernelYieldCount;
1663 ULONG MixedYieldCount;
1664 ULONG YieldCount;
1666#endif // #if (NTDDI_VERSION >= NTDDI_WIN7)
1667
1668//
1669// RTL Atom Table Structures
1670//
1672{
1681
1682typedef struct _RTL_ATOM_TABLE
1683{
1685 union
1686 {
1687#ifdef NTOS_MODE_USER
1689#else
1691#endif
1692 };
1693 union
1694 {
1695#ifdef NTOS_MODE_USER
1696 RTL_HANDLE_TABLE RtlHandleTable;
1697#else
1699#endif
1700 };
1704
1705//
1706// Timezone Information
1707//
1709{
1718
1719//
1720// Hotpatch Header
1721//
1722typedef struct _RTL_PATCH_HEADER
1723{
1729 struct _HOTPATCH_HEADER *HotpatchHeader;
1736
1737//
1738// Header for NLS Files
1739//
1740typedef struct _NLS_FILE_HEADER
1741{
1751
1752//
1753// Stack Traces
1754//
1756{
1763
1764
1766{
1767 union
1768 {
1770
1771 /* Padding for ERESOURCE */
1772#if defined(_M_AMD64)
1773 UCHAR Padding[0x68];
1774#else
1776#endif
1778
1780
1784
1787
1791
1795
1796// Validate that our padding is big enough:
1797#ifndef NTOS_MODE_USER
1798#if defined(_M_AMD64)
1799C_ASSERT(sizeof(ERESOURCE) <= 0x68);
1800#elif defined(_M_ARM64)
1801C_ASSERT(sizeof(ERESOURCE) <= 0x68);
1802#else
1803C_ASSERT(sizeof(ERESOURCE) <= 56);
1804#endif
1805#endif
1806
1807
1808//
1809// Trace Database
1810//
1811
1813
1814typedef struct _RTL_TRACE_BLOCK
1815{
1825
1827{
1835#ifdef NTOS_MODE_USER
1837#else
1838 union
1839 {
1842 } u;
1843#endif
1851
1853{
1862
1864{
1869
1870//
1871// Auto-Managed Rtl* String Buffer
1872//
1873typedef struct _RTL_BUFFER
1874{
1882
1884{
1889
1890#ifndef NTOS_MODE_USER
1891
1892//
1893// Message Resource Entry, Block and Data
1894//
1896{
1901
1903{
1908
1910{
1914
1915#ifdef _M_AMD64
1916
1917typedef struct _KNONVOLATILE_CONTEXT_POINTERS {
1918 union {
1919 PM128A FloatingContext[16];
1920 struct {
1921 PM128A Xmm0;
1922 PM128A Xmm1;
1923 PM128A Xmm2;
1924 PM128A Xmm3;
1925 PM128A Xmm4;
1926 PM128A Xmm5;
1927 PM128A Xmm6;
1928 PM128A Xmm7;
1929 PM128A Xmm8;
1930 PM128A Xmm9;
1931 PM128A Xmm10;
1932 PM128A Xmm11;
1933 PM128A Xmm12;
1934 PM128A Xmm13;
1935 PM128A Xmm14;
1936 PM128A Xmm15;
1939
1940 union {
1941 PULONG64 IntegerContext[16];
1942 struct {
1943 PULONG64 Rax;
1944 PULONG64 Rcx;
1945 PULONG64 Rdx;
1946 PULONG64 Rbx;
1947 PULONG64 Rsp;
1948 PULONG64 Rbp;
1949 PULONG64 Rsi;
1950 PULONG64 Rdi;
1951 PULONG64 R8;
1952 PULONG64 R9;
1953 PULONG64 R10;
1954 PULONG64 R11;
1955 PULONG64 R12;
1956 PULONG64 R13;
1957 PULONG64 R14;
1958 PULONG64 R15;
1961} KNONVOLATILE_CONTEXT_POINTERS, *PKNONVOLATILE_CONTEXT_POINTERS;
1962
1963#define UNW_FLAG_NHANDLER 0x0
1964#define UNW_FLAG_EHANDLER 0x1
1965#define UNW_FLAG_UHANDLER 0x2
1966#define UNW_FLAG_CHAININFO 0x4
1967#define UNW_FLAG_NO_EPILOGUE 0x80000000UL
1968
1969#define RUNTIME_FUNCTION_INDIRECT 0x1
1970
1971typedef struct _RUNTIME_FUNCTION {
1972 ULONG BeginAddress;
1973 ULONG EndAddress;
1974 ULONG UnwindData;
1976
1977#define UNWIND_HISTORY_TABLE_SIZE 12
1978
1979typedef struct _UNWIND_HISTORY_TABLE_ENTRY
1980{
1981 ULONG64 ImageBase;
1982 PRUNTIME_FUNCTION FunctionEntry;
1983} UNWIND_HISTORY_TABLE_ENTRY, *PUNWIND_HISTORY_TABLE_ENTRY;
1984
1985typedef struct _UNWIND_HISTORY_TABLE
1986{
1987 ULONG Count;
1988 UCHAR LocalHint;
1989 UCHAR GlobalHint;
1990 UCHAR Search;
1991 UCHAR Once;
1992 ULONG64 LowAddress;
1994 UNWIND_HISTORY_TABLE_ENTRY Entry[UNWIND_HISTORY_TABLE_SIZE];
1995} UNWIND_HISTORY_TABLE, *PUNWIND_HISTORY_TABLE;
1996
1997#endif /* _M_AMD64 */
1998
1999#endif /* !NTOS_MODE_USER */
2000
2001#ifdef NTOS_MODE_USER
2002
2003//
2004// Memory Stream
2005//
2006#ifndef CONST_VTBL
2007#ifdef CONST_VTABLE
2008#define CONST_VTBL const
2009#else
2010#define CONST_VTBL
2011#endif
2012#endif
2013
2014struct IStreamVtbl;
2015struct IStream;
2016struct tagSTATSTG;
2017
2018typedef struct _RTL_MEMORY_STREAM RTL_MEMORY_STREAM, *PRTL_MEMORY_STREAM;
2019
2020typedef VOID
2021(NTAPI *PRTL_MEMORY_STREAM_FINAL_RELEASE_ROUTINE)(
2022 _In_ PRTL_MEMORY_STREAM Stream
2023);
2024
2025struct _RTL_MEMORY_STREAM
2026{
2027 CONST_VTBL struct IStreamVtbl *Vtbl;
2028 LONG RefCount;
2029 ULONG Unk1;
2030 PVOID Current;
2031 PVOID Start;
2032 PVOID End;
2033 PRTL_MEMORY_STREAM_FINAL_RELEASE_ROUTINE FinalRelease;
2035};
2036
2037#endif /* NTOS_MODE_USER */
2038
2039#ifdef __cplusplus
2040}
2041#endif
2042
2043#endif /* !_RTLTYPES_H */
unsigned char BOOLEAN
#define VOID
Definition: acefi.h:82
@ R15
Definition: amd64_sup.c:13
@ R13
Definition: amd64_sup.c:13
@ R12
Definition: amd64_sup.c:13
@ R9
Definition: amd64_sup.c:13
@ R14
Definition: amd64_sup.c:13
@ R8
Definition: amd64_sup.c:13
@ R11
Definition: amd64_sup.c:13
@ R10
Definition: amd64_sup.c:13
LONG NTSTATUS
Definition: precomp.h:26
#define NTSYSAPI
Definition: ntoskrnl.h:12
_In_ CDROM_SCAN_FOR_SPECIAL_INFO _In_ PCDROM_SCAN_FOR_SPECIAL_HANDLER Function
Definition: cdrom.h:1156
Definition: bufpool.h:45
#define NTSTATUS
Definition: precomp.h:21
EXCEPTION_ROUTINE * PEXCEPTION_ROUTINE
Definition: compat.h:709
struct _EXCEPTION_REGISTRATION_RECORD * PEXCEPTION_REGISTRATION_RECORD
struct _EXCEPTION_REGISTRATION_RECORD EXCEPTION_REGISTRATION_RECORD
#define Trace(x)
Definition: inflate.c:42
struct _TIME_FIELDS TIME_FIELDS
TIME_FIELDS * PTIME_FIELDS
Definition: env_spec_w32.h:720
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
ULONG ERESOURCE
Definition: env_spec_w32.h:594
ASMGENDATA Table[]
Definition: genincdata.c:61
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
Definition: glfuncs.h:240
_In_ GUID _In_ PVOID ValueData
Definition: hubbusif.h:312
struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME RTL_ACTIVATION_CONTEXT_STACK_FRAME
struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME * PRTL_ACTIVATION_CONTEXT_STACK_FRAME
#define C_ASSERT(e)
Definition: intsafe.h:73
CRITICAL_SECTION CriticalSection
Definition: iprtprio.c:40
static IN LPSTR Unk1
Definition: ldrinit.c:47
#define PRTL_AVL_TABLE
Definition: miavl.h:27
#define PRTL_BALANCED_LINKS
Definition: miavl.h:28
unsigned __int64 * PULONG64
Definition: imports.h:198
unsigned __int64 ULONG64
Definition: imports.h:198
struct tagUserData UserData
static IStream Stream
Definition: htmldoc.c:1115
#define _Inout_
Definition: ms_sal.h:378
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
@ Terminated
Definition: ketypes.h:392
_In_ HANDLE ProcessHandle
Definition: mmfuncs.h:403
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID _In_ ULONG_PTR _In_ SIZE_T CommitSize
Definition: mmfuncs.h:406
_In_ NTSTATUS ExitStatus
Definition: psfuncs.h:867
_In_ PCWSTR _Inout_ _At_ QueryTable EntryContext
Definition: rtlfuncs.h:4207
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2439
struct _RTL_RESOURCE RTL_RESOURCE
struct _RTLP_CURDIR_REF * PRTLP_CURDIR_REF
struct _MESSAGE_RESOURCE_DATA * PMESSAGE_RESOURCE_DATA
struct _RTL_ATOM_TABLE_ENTRY RTL_ATOM_TABLE_ENTRY
NTSTATUS(NTAPI * PRTL_START_POOL_THREAD)(_In_ PTHREAD_START_ROUTINE Function, _In_ PVOID Parameter, _Out_ PHANDLE ThreadHandle)
Definition: rtltypes.h:580
struct _RTL_CRITICAL_SECTION_DEBUG RTL_RESOURCE_DEBUG
struct _ACE * PACE
struct _RTL_BSD_ITEM RTL_BSD_ITEM
struct _RTL_RELATIVE_NAME_U RTL_RELATIVE_NAME_U
_HEAP_INFORMATION_CLASS
Definition: rtltypes.h:487
@ HeapEnableTerminationOnCorruption
Definition: rtltypes.h:489
@ HeapCompatibilityInformation
Definition: rtltypes.h:488
struct _ACE ACE
struct _RTL_USER_PROCESS_INFORMATION * PRTL_USER_PROCESS_INFORMATION
struct _RTL_PROCESS_BACKTRACES RTL_PROCESS_BACKTRACES
struct _RTL_HEAP_WALK_ENTRY RTL_HEAP_WALK_ENTRY
struct _RTL_HEAP_USAGE_ENTRY RTL_HEAP_USAGE_ENTRY
struct _RTL_BSD_DATA_ERROR_INFO RTL_BSD_DATA_ERROR_INFO
struct _RTL_CRITICAL_SECTION * PRTL_CRITICAL_SECTION
struct _CURDIR * PCURDIR
struct _RTL_HANDLE_TABLE_ENTRY * PRTL_HANDLE_TABLE_ENTRY
struct _STACK_TRACE_DATABASE STACK_TRACE_DATABASE
NTSTATUS(NTAPI * PHEAP_ENUMERATION_ROUTINE)(_In_ PVOID HeapHandle, _In_ PVOID UserParam)
Definition: rtltypes.h:558
* PRTL_UMS_CONTEXT
Definition: rtltypes.h:1665
VOID(NTAPI * PRTL_BASE_PROCESS_START_ROUTINE)(PTHREAD_START_ROUTINE StartAddress, PVOID Parameter)
Definition: rtltypes.h:571
struct _RTL_TRACE_SEGMENT RTL_TRACE_SEGMENT
struct _RTL_PROCESS_MODULES RTL_PROCESS_MODULES
struct _RTL_PATCH_HEADER * PRTL_PATCH_HEADER
enum _RTL_UMS_SCHEDULER_REASON RTL_UMS_SCHEDULER_REASON
struct _RTL_BSD_ITEM * PRTL_BSD_ITEM
struct _RTL_BSD_DATA RTL_BSD_DATA
struct _RTL_TRACE_BLOCK * PRTL_TRACE_BLOCK
struct _RTL_DRIVE_LETTER_CURDIR RTL_DRIVE_LETTER_CURDIR
struct _RTL_HANDLE_TABLE * PRTL_HANDLE_TABLE
#define MAXIMUM_LEADBYTES
Definition: rtltypes.h:361
struct _RTL_STACK_TRACE_ENTRY RTL_STACK_TRACE_ENTRY
struct _RTL_CRITICAL_SECTION_DEBUG * PRTL_CRITICAL_SECTION_DEBUG
struct _RTL_HEAP_INFORMATION * PRTL_HEAP_INFORMATION
struct _RTL_HEAP_WALK_ENTRY * PRTL_HEAP_WALK_ENTRY
struct _RTL_PROCESS_MODULE_INFORMATION_EX * PRTL_PROCESS_MODULE_INFORMATION_EX
struct _RTL_RANGE * PRTL_RANGE
enum _RTL_BSD_ITEM_TYPE RTL_BSD_ITEM_TYPE
struct _RTL_USER_PROCESS_PARAMETERS RTL_USER_PROCESS_PARAMETERS
struct _RTL_HANDLE_TABLE RTL_HANDLE_TABLE
struct _RTL_RESOURCE * PRTL_RESOURCE
struct _RTL_UNLOAD_EVENT_TRACE * PRTL_UNLOAD_EVENT_TRACE
struct _RTL_PROCESS_BACKTRACE_INFORMATION * PRTL_PROCESS_BACKTRACE_INFORMATION
struct _MESSAGE_RESOURCE_DATA MESSAGE_RESOURCE_DATA
struct _ACTIVATION_CONTEXT_STACK ACTIVATION_CONTEXT_STACK
struct _RTL_CRITICAL_SECTION_DEBUG * PRTL_RESOURCE_DEBUG
struct _RTL_PROCESS_VERIFIER_OPTIONS * PRTL_PROCESS_VERIFIER_OPTIONS
struct _RTL_UNICODE_STRING_BUFFER RTL_UNICODE_STRING_BUFFER
struct _MESSAGE_RESOURCE_ENTRY MESSAGE_RESOURCE_ENTRY
struct _RTL_PROCESS_MODULES * PRTL_PROCESS_MODULES
struct _RTL_FLS_DATA RTL_FLS_DATA
enum _RTL_BSD_ITEM_TYPE * PRTL_BSD_ITEM_TYPE
NTSTATUS(NTAPI * PRTL_EXIT_POOL_THREAD)(_In_ NTSTATUS ExitStatus)
Definition: rtltypes.h:587
struct _RTL_PROCESS_MODULE_INFORMATION RTL_PROCESS_MODULE_INFORMATION
struct _RTL_PROCESS_VERIFIER_OPTIONS RTL_PROCESS_VERIFIER_OPTIONS
struct _RANGE_LIST_ITERATOR RTL_RANGE_LIST_ITERATOR
struct _NLS_FILE_HEADER * PNLS_FILE_HEADER
ULONG(NTAPI * PTHREAD_START_ROUTINE)(PVOID Parameter)
Definition: rtltypes.h:566
struct _RTL_HEAP_INFORMATION RTL_HEAP_INFORMATION
struct _RTL_CRITICAL_SECTION RTL_CRITICAL_SECTION
struct _RTL_BSD_POWER_BUTTON_PRESS_INFO * PRTL_BSD_POWER_BUTTON_PRESS_INFO
struct _RTL_USER_PROCESS_INFORMATION RTL_USER_PROCESS_INFORMATION
struct _RTL_HEAP_USAGE_ENTRY * PRTL_HEAP_USAGE_ENTRY
struct _RTL_HEAP_TAG_INFO * PRTL_HEAP_TAG_INFO
struct _HEAP_LOCK * PHEAP_LOCK
struct _RTL_TIME_ZONE_INFORMATION RTL_TIME_ZONE_INFORMATION
ULONG(NTAPI * RTL_TRACE_HASH_FUNCTION)(ULONG Count, PVOID *Trace)
Definition: rtltypes.h:1812
struct _RTL_PROCESS_LOCKS * PRTL_PROCESS_LOCKS
struct _RTL_RANGE RTL_RANGE
struct _RTL_PROCESS_HEAPS RTL_PROCESS_HEAPS
struct _RTL_PROCESS_MODULE_INFORMATION_EX RTL_PROCESS_MODULE_INFORMATION_EX
RTL_UMS_CONTEXT
Definition: rtltypes.h:1665
VOID(NTAPI * WAITORTIMERCALLBACKFUNC)(PVOID pvContext, BOOLEAN fTimerOrWaitFired)
Definition: rtltypes.h:496
struct _RTLP_RANGE_LIST_ENTRY * PRTLP_RANGE_LIST_ENTRY
LONG(NTAPI * PVECTORED_EXCEPTION_HANDLER)(PEXCEPTION_POINTERS ExceptionPointers)
Definition: rtltypes.h:505
#define RTL_FLS_MAXIMUM_AVAILABLE
Definition: rtltypes.h:1220
struct _RTL_TRACE_ENUMERATE RTL_TRACE_ENUMERATE
struct _RTL_DEBUG_INFORMATION RTL_DEBUG_INFORMATION
struct _MESSAGE_RESOURCE_BLOCK MESSAGE_RESOURCE_BLOCK
struct _RTL_BUFFER * PRTL_BUFFER
struct _RTL_TRACE_SEGMENT * PRTL_TRACE_SEGMENT
struct _RTL_TRACE_BLOCK RTL_TRACE_BLOCK
struct _STACK_TRACE_DATABASE * PSTACK_TRACE_DATABASE
struct _RTL_PROCESS_HEAPS * PRTL_PROCESS_HEAPS
BOOLEAN(NTAPI * PRTL_CONFLICT_RANGE_CALLBACK)(PVOID Context, struct _RTL_RANGE *Range)
Definition: rtltypes.h:703
struct _RTL_BUFFER RTL_BUFFER
struct _RTL_PERTHREAD_CURDIR * PRTL_PERTHREAD_CURDIR
struct _RTL_BSD_DATA_POWER_TRANSITION * PRTL_BSD_DATA_POWER_TRANSITION
struct _RTL_PROCESS_LOCKS RTL_PROCESS_LOCKS
struct _MESSAGE_RESOURCE_ENTRY * PMESSAGE_RESOURCE_ENTRY
struct _RTL_HEAP_ENTRY RTL_HEAP_ENTRY
enum _RTL_UMSCTX_FLAGS * PRTL_UMSCTX_FLAGS
enum _RTL_UMS_SCHEDULER_REASON * PRTL_UMS_SCHEDULER_REASON
struct _RTL_ACQUIRE_STATE * PRTL_ACQUIRE_STATE
struct _RTL_HEAP_USAGE RTL_HEAP_USAGE
struct _RTL_PERTHREAD_CURDIR RTL_PERTHREAD_CURDIR
struct _RTL_ACQUIRE_STATE RTL_ACQUIRE_STATE
struct _RTL_RANGE_LIST * PRTL_RANGE_LIST
struct _RTL_DEBUG_INFORMATION * PRTL_DEBUG_INFORMATION
struct _RTL_UNICODE_STRING_BUFFER * PRTL_UNICODE_STRING_BUFFER
struct _RTLP_CURDIR_REF RTLP_CURDIR_REF
RTLP_UNHANDLED_EXCEPTION_FILTER * PRTLP_UNHANDLED_EXCEPTION_FILTER
Definition: rtltypes.h:552
_RTL_UMSCTX_FLAGS
Definition: rtltypes.h:1586
@ UMSCTX_SUSPENDED_BIT
Definition: rtltypes.h:1593
@ UMSCTX_TERMINATED_BIT
Definition: rtltypes.h:1595
@ UMSCTX_VOLATILE_CONTEXT_BIT
Definition: rtltypes.h:1594
@ UMSCTX_RUNNING_ON_SELF_THREAD_BIT
Definition: rtltypes.h:1597
@ UMSCTX_SCHEDULED_THREAD_BIT
Definition: rtltypes.h:1587
@ UMSCTX_DEBUG_ACTIVE_BIT
Definition: rtltypes.h:1596
@ UMSCTX_DENY_RUNNING_ON_SELF_THREAD_BIT
Definition: rtltypes.h:1598
struct _RTL_USER_PROCESS_PARAMETERS * PRTL_USER_PROCESS_PARAMETERS
struct _RTL_HEAP_TAG_INFO RTL_HEAP_TAG_INFO
struct _RTL_BSD_POWER_BUTTON_PRESS_INFO RTL_BSD_POWER_BUTTON_PRESS_INFO
struct _RTL_PROCESS_LOCK_INFORMATION * PRTL_PROCESS_LOCK_INFORMATION
enum _RTL_UMSCTX_FLAGS RTL_UMSCTX_FLAGS
struct _RTL_FLS_DATA * PRTL_FLS_DATA
struct _RTL_HEAP_TAG RTL_HEAP_TAG
struct _RTL_HEAP_USAGE * PRTL_HEAP_USAGE
struct _RTL_HANDLE_TABLE_ENTRY RTL_HANDLE_TABLE_ENTRY
struct _MESSAGE_RESOURCE_BLOCK * PMESSAGE_RESOURCE_BLOCK
_RTL_PATH_TYPE
Definition: rtltypes.h:470
@ RtlPathTypeRootLocalDevice
Definition: rtltypes.h:478
@ RtlPathTypeDriveRelative
Definition: rtltypes.h:474
@ RtlPathTypeRelative
Definition: rtltypes.h:476
@ RtlPathTypeUncAbsolute
Definition: rtltypes.h:472
@ RtlPathTypeRooted
Definition: rtltypes.h:475
@ RtlPathTypeLocalDevice
Definition: rtltypes.h:477
@ RtlPathTypeDriveAbsolute
Definition: rtltypes.h:473
@ RtlPathTypeUnknown
Definition: rtltypes.h:471
struct _RTLP_RANGE_LIST_ENTRY RTLP_RANGE_LIST_ENTRY
struct _RTL_TRACE_DATABASE * PRTL_TRACE_DATABASE
struct _RTL_STACK_TRACE_ENTRY * PRTL_STACK_TRACE_ENTRY
#define HEAP_CREATE_VALID_MASK
Definition: rtltypes.h:173
struct _RTL_PROCESS_MODULE_INFORMATION * PRTL_PROCESS_MODULE_INFORMATION
struct _ACTIVATION_CONTEXT_STACK * PACTIVATION_CONTEXT_STACK
struct _RTL_PROCESS_BACKTRACE_INFORMATION RTL_PROCESS_BACKTRACE_INFORMATION
struct _CURDIR CURDIR
struct _RTL_ATOM_TABLE_ENTRY * PRTL_ATOM_TABLE_ENTRY
_RTL_BSD_ITEM_TYPE
Definition: rtltypes.h:425
@ RtlBsdItemProductType
Definition: rtltypes.h:427
@ RtlBsdItemVersionNumber
Definition: rtltypes.h:426
@ RtlBsdItemReportedAbnormalShutdownBootId
Definition: rtltypes.h:438
@ RtlBsdItemAabTimeout
Definition: rtltypes.h:429
@ RtlBsdItemErrorInfo
Definition: rtltypes.h:439
@ RtlBsdItemAabEnabled
Definition: rtltypes.h:428
@ RtlBsdItemBootCheckpoint
Definition: rtltypes.h:435
@ RtlBsdPowerTransition
Definition: rtltypes.h:433
@ RtlBsdItemChecksum
Definition: rtltypes.h:441
@ RtlBsdSleepInProgress
Definition: rtltypes.h:432
@ RtlBsdItemMax
Definition: rtltypes.h:442
@ RtlBsdItemBootShutdown
Definition: rtltypes.h:431
@ RtlBsdItemShutdownBootId
Definition: rtltypes.h:437
@ RtlBsdItemBootAttemptCount
Definition: rtltypes.h:434
@ RtlBsdItemBootGood
Definition: rtltypes.h:430
@ RtlBsdItemPowerButtonPressInfo
Definition: rtltypes.h:440
@ RtlBsdItemBootId
Definition: rtltypes.h:436
struct _RTL_ATOM_TABLE RTL_ATOM_TABLE
struct _RTL_HEAP_ENTRY * PRTL_HEAP_ENTRY
struct _RTL_UNLOAD_EVENT_TRACE RTL_UNLOAD_EVENT_TRACE
struct _RTL_PATCH_HEADER RTL_PATCH_HEADER
struct _RTL_RANGE_LIST RTL_RANGE_LIST
struct _RTL_HEAP_TAG * PRTL_HEAP_TAG
struct _HEAP_LOCK HEAP_LOCK
struct _RTL_ATOM_TABLE * PRTL_ATOM_TABLE
struct _RTL_TIME_ZONE_INFORMATION * PRTL_TIME_ZONE_INFORMATION
struct _RTL_RELATIVE_NAME_U * PRTL_RELATIVE_NAME_U
struct _NLS_FILE_HEADER NLS_FILE_HEADER
struct _RTL_DRIVE_LETTER_CURDIR * PRTL_DRIVE_LETTER_CURDIR
struct _RANGE_LIST_ITERATOR * PRTL_RANGE_LIST_ITERATOR
struct _RTL_BSD_DATA_ERROR_INFO * PRTL_BSD_DATA_ERROR_INFO
#define RTL_MAX_DRIVE_LETTERS
Definition: rtltypes.h:57
enum _RTL_PATH_TYPE RTL_PATH_TYPE
_RTL_UMS_SCHEDULER_REASON
Definition: rtltypes.h:1579
@ UmsSchedulerThreadBlocked
Definition: rtltypes.h:1581
@ UmsSchedulerThreadYield
Definition: rtltypes.h:1582
@ UmsSchedulerStartup
Definition: rtltypes.h:1580
enum _HEAP_INFORMATION_CLASS HEAP_INFORMATION_CLASS
struct _RTL_PROCESS_LOCK_INFORMATION RTL_PROCESS_LOCK_INFORMATION
struct _RTL_BSD_DATA_POWER_TRANSITION RTL_BSD_DATA_POWER_TRANSITION
struct _RTL_BSD_DATA * PRTL_BSD_DATA
struct _RTL_TRACE_ENUMERATE * PRTL_TRACE_ENUMERATE
VOID(NTAPI * WORKERCALLBACKFUNC)(_In_ PVOID Context)
Definition: rtltypes.h:513
ULONG(NTAPI * RTLP_UNHANDLED_EXCEPTION_FILTER)(_In_ struct _EXCEPTION_POINTERS *ExceptionInfo)
Definition: rtltypes.h:549
struct _RTL_PROCESS_BACKTRACES * PRTL_PROCESS_BACKTRACES
struct _RTL_CRITICAL_SECTION_DEBUG RTL_CRITICAL_SECTION_DEBUG
struct _RTL_TRACE_DATABASE RTL_TRACE_DATABASE
int Count
Definition: noreturn.cpp:7
#define NLS_MB_OEM_CODE_PAGE_TAG
Definition: nt_native.h:213
ULONG ACCESS_MASK
Definition: nt_native.h:40
struct _RTL_QUERY_REGISTRY_TABLE * PRTL_QUERY_REGISTRY_TABLE
Definition: reg.c:122
struct _RTL_HEAP_PARAMETERS * PRTL_HEAP_PARAMETERS
struct _RTL_QUERY_REGISTRY_TABLE RTL_QUERY_REGISTRY_TABLE
NTSTATUS(* PRTL_HEAP_COMMIT_ROUTINE)(IN PVOID Base, IN OUT PVOID *CommitAddress, IN OUT PULONG CommitSize)
Definition: nt_native.h:1660
#define NLS_MB_CODE_PAGE_TAG
Definition: nt_native.h:212
struct _RTL_HEAP_PARAMETERS RTL_HEAP_PARAMETERS
#define DECLSPEC_ALIGN(x)
Definition: ntbasedef.h:251
#define DUMMYUNIONNAME2
Definition: ntbasedef.h:34
#define RTL_SIZEOF_THROUGH_FIELD(type, field)
Definition: ntbasedef.h:672
#define DUMMYUNIONNAME
Definition: ntbasedef.h:32
#define DUMMYSTRUCTNAME
Definition: ntbasedef.h:58
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
#define CONST_VTBL
Definition: objbase.h:222
#define BOOLEAN
Definition: pedump.c:73
long LONG
Definition: pedump.c:60
unsigned short USHORT
Definition: pedump.c:61
static WCHAR Address[46]
Definition: ping.c:68
struct tagRange Range
struct _RUNTIME_FUNCTION * PRUNTIME_FUNCTION
struct _RUNTIME_FUNCTION RUNTIME_FUNCTION
base of all file and directory entries
Definition: entries.h:83
Definition: rtltypes.h:993
ACE_HEADER Header
Definition: rtltypes.h:994
ACCESS_MASK AccessMask
Definition: rtltypes.h:995
LIST_ENTRY FrameListCache
Definition: rtltypes.h:974
struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME * ActiveFrame
Definition: rtltypes.h:973
UCHAR CompressionUnitShift
Definition: rtltypes.h:648
USHORT CompressionFormatAndEngine
Definition: rtltypes.h:647
ULONG CompressedChunkSizes[ANYSIZE_ARRAY]
Definition: rtltypes.h:653
UNICODE_STRING DosPath
Definition: rtltypes.h:1368
HANDLE Handle
Definition: rtltypes.h:1369
struct _EXCEPTION_REGISTRATION_RECORD * Next
Definition: compat.h:726
PEXCEPTION_ROUTINE Handler
Definition: compat.h:727
BOOLEAN CheckSumInserted
Definition: rtltypes.h:605
WCHAR ExtensionBuffer[4]
Definition: rtltypes.h:609
UCHAR Padding[0x68]
Definition: rtltypes.h:1452
RTL_CRITICAL_SECTION CriticalSection
Definition: rtltypes.h:1448
ERESOURCE Resource
Definition: rtltypes.h:1450
Definition: btrfs_drv.h:1876
Definition: typedefs.h:120
MESSAGE_RESOURCE_BLOCK Blocks[ANYSIZE_ARRAY]
Definition: rtltypes.h:1912
Definition: rtltypes.h:1896
UCHAR Text[ANYSIZE_ARRAY]
Definition: rtltypes.h:1899
USHORT Flags
Definition: rtltypes.h:1898
USHORT Length
Definition: rtltypes.h:1897
USHORT MaximumCharacterSize
Definition: precomp.h:22
UCHAR LeadByte[MAXIMUM_LEADBYTES]
Definition: precomp.h:27
USHORT TransDefaultChar
Definition: precomp.h:25
USHORT HeaderSize
Definition: precomp.h:20
USHORT CodePage
Definition: precomp.h:21
USHORT TransUniDefaultChar
Definition: precomp.h:26
USHORT DefaultChar
Definition: precomp.h:23
USHORT UniDefaultChar
Definition: precomp.h:24
Definition: rtltypes.h:613
CSHORT NodeTypeCode
Definition: rtltypes.h:614
RTL_SPLAY_LINKS Links
Definition: rtltypes.h:617
PSTRING Prefix
Definition: rtltypes.h:618
struct _PREFIX_TABLE_ENTRY * NextPrefixTree
Definition: rtltypes.h:616
CSHORT NameLength
Definition: rtltypes.h:615
PPREFIX_TABLE_ENTRY NextPrefixTree
Definition: rtltypes.h:624
CSHORT NodeTypeCode
Definition: rtltypes.h:622
CSHORT NameLength
Definition: rtltypes.h:623
PLIST_ENTRY RangeListHead
Definition: rtltypes.h:1479
PLIST_ENTRY MergedHead
Definition: rtltypes.h:1480
Definition: rtltypes.h:1486
UCHAR PublicFlags
Definition: rtltypes.h:1502
PVOID Owner
Definition: rtltypes.h:1494
ULONGLONG End
Definition: rtltypes.h:1488
UCHAR Attributes
Definition: rtltypes.h:1501
LIST_ENTRY ListEntry
Definition: rtltypes.h:1504
USHORT PrivateFlags
Definition: rtltypes.h:1503
struct _RTLP_RANGE_LIST_ENTRY::@2701::@2703 Allocated
PVOID UserData
Definition: rtltypes.h:1493
ULONGLONG Start
Definition: rtltypes.h:1487
struct _RTLP_RANGE_LIST_ENTRY::@2701::@2704 Merged
LIST_ENTRY ListHead
Definition: rtltypes.h:1498
HANDLE OldImpersonationToken
Definition: rtltypes.h:1406
UCHAR OldPrivBuffer[1024]
Definition: rtltypes.h:1410
PTOKEN_PRIVILEGES NewPrivileges
Definition: rtltypes.h:1408
PTOKEN_PRIVILEGES OldPrivileges
Definition: rtltypes.h:1407
struct _ACTIVATION_CONTEXT * ActivationContext
Definition: winternl.h:250
struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME * Previous
Definition: winternl.h:249
Definition: rtltypes.h:1672
UCHAR NameLength
Definition: rtltypes.h:1678
USHORT Atom
Definition: rtltypes.h:1675
UCHAR Flags
Definition: rtltypes.h:1677
USHORT ReferenceCount
Definition: rtltypes.h:1676
USHORT HandleIndex
Definition: rtltypes.h:1674
struct _RTL_ATOM_TABLE_ENTRY * HashLink
Definition: rtltypes.h:1673
PRTL_ATOM_TABLE_ENTRY Buckets[1]
Definition: rtltypes.h:1702
FAST_MUTEX FastMutex
Definition: rtltypes.h:1690
PHANDLE_TABLE ExHandleTable
Definition: rtltypes.h:1698
ULONG NumberOfBuckets
Definition: rtltypes.h:1701
ULONG DeleteCount
Definition: rtltypes.h:434
PRTL_AVL_ALLOCATE_ROUTINE AllocateRoutine
Definition: rtltypes.h:436
ULONG DepthOfTree
Definition: rtltypes.h:432
ULONG NumberGenericTableElements
Definition: rtltypes.h:431
RTL_BALANCED_LINKS BalancedRoot
Definition: rtltypes.h:428
PRTL_AVL_COMPARE_ROUTINE CompareRoutine
Definition: rtltypes.h:435
ULONG WhichOrderedElement
Definition: rtltypes.h:430
PRTL_AVL_FREE_ROUTINE FreeRoutine
Definition: rtltypes.h:437
PVOID OrderedPointer
Definition: rtltypes.h:429
PVOID TableContext
Definition: rtltypes.h:438
PRTL_BALANCED_LINKS RestartKey
Definition: rtltypes.h:433
ULONG NumberOfBits
Definition: typedefs.h:97
ULONG StartingIndex
Definition: typedefs.h:96
ULONG SizeOfBitMap
Definition: typedefs.h:90
PULONG Buffer
Definition: typedefs.h:91
LARGE_INTEGER LastReferenceTime
Definition: rtltypes.h:1294
struct _RTL_BSD_DATA_POWER_TRANSITION::@2697 Flags
LARGE_INTEGER PowerButtonTimestamp
Definition: rtltypes.h:1281
UCHAR AabTimeout
Definition: rtltypes.h:1337
RTL_BSD_POWER_BUTTON_PRESS_INFO PowerButtonPressInfo
Definition: rtltypes.h:1349
ULONG ProductType
Definition: rtltypes.h:1335
BOOLEAN LastBootShutdown
Definition: rtltypes.h:1339
ULONG LastSuccessfulShutdownBootId
Definition: rtltypes.h:1346
RTL_BSD_DATA_ERROR_INFO ErrorInfo
Definition: rtltypes.h:1348
UCHAR BootAttemptCount
Definition: rtltypes.h:1342
UCHAR LastBootCheckpoint
Definition: rtltypes.h:1343
BOOLEAN SleepInProgress
Definition: rtltypes.h:1340
ULONG LastBootId
Definition: rtltypes.h:1345
BOOLEAN LastBootSucceeded
Definition: rtltypes.h:1338
ULONG LastReportedAbnormalShutdownBootId
Definition: rtltypes.h:1347
BOOLEAN AabEnabled
Definition: rtltypes.h:1336
UCHAR Checksum
Definition: rtltypes.h:1344
ULONG Version
Definition: rtltypes.h:1334
RTL_BSD_DATA_POWER_TRANSITION PowerTransition
Definition: rtltypes.h:1341
ULONG DataLength
Definition: rtltypes.h:1273
RTL_BSD_ITEM_TYPE Type
Definition: rtltypes.h:1271
PVOID DataBuffer
Definition: rtltypes.h:1272
struct _RTL_BSD_POWER_BUTTON_PRESS_INFO::@2698 Flags
SIZE_T StaticSize
Definition: rtltypes.h:1878
PUCHAR StaticBuffer
Definition: rtltypes.h:1876
PVOID ReservedForIMalloc
Definition: rtltypes.h:1880
SIZE_T ReservedForAllocatedSize
Definition: rtltypes.h:1879
PUCHAR Buffer
Definition: rtltypes.h:1875
SIZE_T Size
Definition: rtltypes.h:1877
struct _RTL_CRITICAL_SECTION * CriticalSection
Definition: rtltypes.h:1422
PRTL_CRITICAL_SECTION_DEBUG DebugInfo
Definition: rtltypes.h:1431
PRTL_PROCESS_VERIFIER_OPTIONS VerifierOptions
Definition: rtltypes.h:1210
PRTL_PROCESS_LOCKS Locks
Definition: rtltypes.h:1207
HANDLE CriticalSectionHandle
Definition: rtltypes.h:1212
PRTL_PROCESS_HEAPS Heaps
Definition: rtltypes.h:1206
PRTL_PROCESS_BACKTRACES BackTraces
Definition: rtltypes.h:1205
PRTL_PROCESS_MODULES Modules
Definition: rtltypes.h:1202
PRTL_PROCESS_MODULE_INFORMATION_EX ModulesEx
Definition: rtltypes.h:1203
HANDLE CriticalSectionOwnerThread
Definition: rtltypes.h:1213
UNICODE_STRING DosPath
Definition: rtltypes.h:1390
LIST_ENTRY ListEntry
Definition: rtltypes.h:1223
ULONG WhichOrderedElement
Definition: rtltypes.h:481
PLIST_ENTRY OrderedPointer
Definition: rtltypes.h:480
PRTL_GENERIC_FREE_ROUTINE FreeRoutine
Definition: rtltypes.h:485
LIST_ENTRY InsertOrderList
Definition: rtltypes.h:479
PRTL_GENERIC_ALLOCATE_ROUTINE AllocateRoutine
Definition: rtltypes.h:484
PRTL_GENERIC_COMPARE_ROUTINE CompareRoutine
Definition: rtltypes.h:483
PRTL_SPLAY_LINKS TableRoot
Definition: rtltypes.h:478
ULONG NumberGenericTableElements
Definition: rtltypes.h:482
Definition: rtltypes.h:1247
ULONG Flags
Definition: rtltypes.h:1250
struct _RTL_HANDLE_TABLE_ENTRY * NextFree
Definition: rtltypes.h:1251
PRTL_HANDLE_TABLE_ENTRY UnCommittedHandles
Definition: rtltypes.h:1262
PRTL_HANDLE_TABLE_ENTRY FreeHandles
Definition: rtltypes.h:1260
PRTL_HANDLE_TABLE_ENTRY CommittedHandles
Definition: rtltypes.h:1261
ULONG MaximumNumberOfHandles
Definition: rtltypes.h:1257
PRTL_HANDLE_TABLE_ENTRY MaxReservedHandles
Definition: rtltypes.h:1263
ULONG SizeOfHandleTableEntry
Definition: rtltypes.h:1258
Definition: rtltypes.h:1086
USHORT AllocatorBackTraceIndex
Definition: rtltypes.h:1089
ULONG Tag
Definition: rtltypes.h:1095
PVOID FirstBlock
Definition: rtltypes.h:1100
union _RTL_HEAP_ENTRY::@2690 u
struct _RTL_HEAP_ENTRY::@2690::@2691 s1
struct _RTL_HEAP_ENTRY::@2690::@2692 s2
SIZE_T Settable
Definition: rtltypes.h:1094
SIZE_T CommittedSize
Definition: rtltypes.h:1099
SIZE_T Size
Definition: rtltypes.h:1087
USHORT Flags
Definition: rtltypes.h:1088
USHORT CreatorBackTraceIndex
Definition: rtltypes.h:1120
PRTL_HEAP_TAG Tags
Definition: rtltypes.h:1128
PRTL_HEAP_ENTRY Entries
Definition: rtltypes.h:1129
ULONG DeCommitFreeBlockThreshold
Definition: nt_native.h:1670
PRTL_HEAP_COMMIT_ROUTINE CommitRoutine
Definition: nt_native.h:1676
ULONG VirtualMemoryThreshold
Definition: nt_native.h:1673
ULONG DeCommitTotalFreeThreshold
Definition: nt_native.h:1671
ULONG NumberOfAllocations
Definition: rtltypes.h:1032
SIZE_T BytesAllocated
Definition: rtltypes.h:1034
USHORT TagIndex
Definition: rtltypes.h:1110
SIZE_T BytesAllocated
Definition: rtltypes.h:1109
USHORT CreatorBackTraceIndex
Definition: rtltypes.h:1111
ULONG NumberOfFrees
Definition: rtltypes.h:1108
WCHAR TagName[24]
Definition: rtltypes.h:1112
ULONG NumberOfAllocations
Definition: rtltypes.h:1107
Definition: rtltypes.h:1038
PVOID Address
Definition: rtltypes.h:1040
USHORT AllocatorBackTraceIndex
Definition: rtltypes.h:1042
USHORT TagIndex
Definition: rtltypes.h:1043
struct _RTL_HEAP_USAGE_ENTRY * Next
Definition: rtltypes.h:1039
SIZE_T Size
Definition: rtltypes.h:1041
SIZE_T BytesAllocated
Definition: rtltypes.h:1049
SIZE_T BytesReserved
Definition: rtltypes.h:1051
PRTL_HEAP_USAGE_ENTRY Entries
Definition: rtltypes.h:1053
PRTL_HEAP_USAGE_ENTRY AddedEntries
Definition: rtltypes.h:1054
SIZE_T BytesReservedMaximum
Definition: rtltypes.h:1052
SIZE_T BytesCommitted
Definition: rtltypes.h:1050
PRTL_HEAP_USAGE_ENTRY RemovedEntries
Definition: rtltypes.h:1055
Definition: rtltypes.h:1060
SIZE_T Settable
Definition: rtltypes.h:1070
PVOID LastEntry
Definition: rtltypes.h:1080
PVOID FirstEntry
Definition: rtltypes.h:1079
struct _RTL_HEAP_WALK_ENTRY::@2686::@2688 Block
ULONG_PTR CommittedSize
Definition: rtltypes.h:1077
PVOID DataAddress
Definition: rtltypes.h:1061
UCHAR SegmentIndex
Definition: rtltypes.h:1064
USHORT AllocatorBackTraceIndex
Definition: rtltypes.h:1072
USHORT TagIndex
Definition: rtltypes.h:1071
struct _RTL_HEAP_WALK_ENTRY::@2686::@2689 Segment
UCHAR OverheadBytes
Definition: rtltypes.h:1063
ULONG_PTR UnCommittedSize
Definition: rtltypes.h:1078
USHORT Flags
Definition: rtltypes.h:1065
SIZE_T DataSize
Definition: rtltypes.h:1062
struct _HOTPATCH_HEADER * HotpatchHeader
Definition: rtltypes.h:1729
struct _RTL_PATCH_HEADER * NextPath
Definition: rtltypes.h:1726
PLDR_DATA_TABLE_ENTRY TargetLdrDataTableEntry
Definition: rtltypes.h:1732
PVOID PatchImageBase
Definition: rtltypes.h:1725
PLDR_DATA_TABLE_ENTRY PatchLdrDataTableEntry
Definition: rtltypes.h:1733
LIST_ENTRY PatchList
Definition: rtltypes.h:1724
struct _SYSTEM_HOTPATCH_CODE_INFORMATION * CodeInfo
Definition: rtltypes.h:1734
UNICODE_STRING TargetDllName
Definition: rtltypes.h:1730
PUNICODE_STRING ImageName
Definition: rtltypes.h:1396
PRTL_DRIVE_LETTER_CURDIR CurrentDirectories
Definition: rtltypes.h:1395
RTL_PROCESS_BACKTRACE_INFORMATION BackTraces[1]
Definition: rtltypes.h:1173
RTL_HEAP_INFORMATION Heaps[1]
Definition: rtltypes.h:1135
RTL_PROCESS_LOCK_INFORMATION Locks[1]
Definition: rtltypes.h:1155
RTL_PROCESS_MODULE_INFORMATION Modules[1]
Definition: rtltypes.h:1018
RTL_PROCESS_MODULE_INFORMATION BaseInfo
Definition: rtltypes.h:1024
PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine
Definition: nt_native.h:109
LIST_ENTRY ListHead
Definition: rtltypes.h:1461
ULONGLONG End
Definition: rtltypes.h:1470
ULONGLONG Start
Definition: rtltypes.h:1469
UCHAR Attributes
Definition: rtltypes.h:1473
PVOID UserData
Definition: rtltypes.h:1471
PVOID Owner
Definition: rtltypes.h:1472
UCHAR Flags
Definition: rtltypes.h:1474
UNICODE_STRING RelativeName
Definition: rtltypes.h:1380
HANDLE ContainingDirectory
Definition: rtltypes.h:1381
PRTLP_CURDIR_REF CurDirRef
Definition: rtltypes.h:1382
LONG NumberActive
Definition: rtltypes.h:1520
HANDLE SharedSemaphore
Definition: rtltypes.h:1516
ULONG ExclusiveWaiters
Definition: rtltypes.h:1519
PVOID DebugInfo
Definition: rtltypes.h:1523
HANDLE OwningThread
Definition: rtltypes.h:1521
ULONG TimeoutBoost
Definition: rtltypes.h:1522
ULONG SharedWaiters
Definition: rtltypes.h:1517
HANDLE ExclusiveSemaphore
Definition: rtltypes.h:1518
RTL_CRITICAL_SECTION Lock
Definition: rtltypes.h:1515
Definition: rtltypes.h:1756
PVOID BackTrace[32]
Definition: rtltypes.h:1761
ULONG TraceCount
Definition: rtltypes.h:1758
USHORT Index
Definition: rtltypes.h:1759
USHORT Depth
Definition: rtltypes.h:1760
struct _RTL_STACK_TRACE_ENTRY * HashChain
Definition: rtltypes.h:1757
struct _RTL_TRACE_BLOCK * Next
Definition: rtltypes.h:1822
struct _RTL_TRACE_BLOCK ** Buckets
Definition: rtltypes.h:1845
struct _RTL_TRACE_SEGMENT * SegmentList
Definition: rtltypes.h:1831
ULONG HashCounter[16]
Definition: rtltypes.h:1849
union _RTL_TRACE_DATABASE::@2710 u
RTL_TRACE_HASH_FUNCTION HashFunction
Definition: rtltypes.h:1846
KSPIN_LOCK SpinLock
Definition: rtltypes.h:1840
FAST_MUTEX FastMutex
Definition: rtltypes.h:1841
struct _RTL_TRACE_DATABASE * Database
Definition: rtltypes.h:1865
struct _RTL_TRACE_BLOCK * Block
Definition: rtltypes.h:1867
struct _RTL_TRACE_DATABASE * Database
Definition: rtltypes.h:1855
struct _RTL_TRACE_SEGMENT * NextSegment
Definition: rtltypes.h:1856
WCHAR MinimumStaticBufferForTerminalNul
Definition: rtltypes.h:1887
UNICODE_STRING String
Definition: rtltypes.h:1885
SECTION_IMAGE_INFORMATION ImageInformation
Definition: rtltypes.h:1573
UNICODE_STRING RuntimeData
Definition: rtltypes.h:1557
UNICODE_STRING CommandLine
Definition: btrfs_drv.h:1902
RTL_DRIVE_LETTER_CURDIR CurrentDirectories[RTL_MAX_DRIVE_LETTERS]
Definition: rtltypes.h:1558
UNICODE_STRING ImagePathName
Definition: btrfs_drv.h:1901
UNICODE_STRING WindowTitle
Definition: rtltypes.h:1554
UNICODE_STRING ShellInfo
Definition: rtltypes.h:1556
UNICODE_STRING DesktopInfo
Definition: rtltypes.h:1555
Definition: ntbasedef.h:628
PVOID CurrentUpperCommitLimit
Definition: rtltypes.h:1783
PRTL_STACK_TRACE_ENTRY * EntryIndexArray
Definition: rtltypes.h:1790
PRTL_STACK_TRACE_ENTRY Buckets[ANYSIZE_ARRAY]
Definition: rtltypes.h:1793
PVOID CurrentLowerCommitLimit
Definition: rtltypes.h:1782
ULONG NumberOfAllocationFailures
Definition: rtltypes.h:1789
USHORT Milliseconds
Definition: env_spec_w32.h:717
USHORT Weekday
Definition: env_spec_w32.h:718
Definition: rtltypes.h:627
struct _UNICODE_PREFIX_TABLE_ENTRY * CaseMatch
Definition: rtltypes.h:631
PUNICODE_STRING Prefix
Definition: rtltypes.h:633
struct _UNICODE_PREFIX_TABLE_ENTRY * NextPrefixTree
Definition: rtltypes.h:630
CSHORT NameLength
Definition: rtltypes.h:629
RTL_SPLAY_LINKS Links
Definition: rtltypes.h:632
CSHORT NodeTypeCode
Definition: rtltypes.h:628
PUNICODE_PREFIX_TABLE_ENTRY LastNextEntry
Definition: rtltypes.h:640
PUNICODE_PREFIX_TABLE_ENTRY NextPrefixTree
Definition: rtltypes.h:639
ULONG_PTR * PSIZE_T
Definition: typedefs.h:80
uint16_t * PWSTR
Definition: typedefs.h:56
struct _RTL_BITMAP * PRTL_BITMAP
uint32_t * PULONG
Definition: typedefs.h:59
const uint16_t * PCWSTR
Definition: typedefs.h:57
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:255
#define ANYSIZE_ARRAY
Definition: typedefs.h:46
#define NTAPI
Definition: typedefs.h:36
void * PVOID
Definition: typedefs.h:50
ULONG_PTR SIZE_T
Definition: typedefs.h:80
struct _RTL_BITMAP_RUN RTL_BITMAP_RUN
struct _RTL_BITMAP_RUN * PRTL_BITMAP_RUN
uint32_t ULONG_PTR
Definition: typedefs.h:65
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
struct _RTL_BITMAP RTL_BITMAP
char * PCHAR
Definition: typedefs.h:51
ULONG CLONG
Definition: umtypes.h:126
short CSHORT
Definition: umtypes.h:127
@ Start
Definition: partlist.h:33
static int Link(const char **args)
Definition: vfdcmd.c:2414
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY _In_ WDF_INTERRUPT_PRIORITY Priority
Definition: wdfinterrupt.h:655
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_ ULONG _Out_opt_ PULONG _Out_opt_ PULONG ValueType
Definition: wdfregistry.h:282
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
Definition: wdfregistry.h:243
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_ ULONG ValueLength
Definition: wdfregistry.h:275
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
Definition: wdfsync.h:127
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
_In_opt_ PVOID _Out_ PLARGE_INTEGER Cookie
Definition: cmfuncs.h:14
FAST_MUTEX
Definition: extypes.h:17
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _Inout_ PLARGE_INTEGER NumberOfBytes
Definition: iotypes.h:1036
@ Suspended
Definition: ketypes.h:420
* PM128A
Definition: ketypes.h:937
_Must_inspect_result_ _In_ PHYSICAL_ADDRESS HighAddress
Definition: mmfuncs.h:226
struct _UNICODE_PREFIX_TABLE_ENTRY UNICODE_PREFIX_TABLE_ENTRY
RTL_AVL_FREE_ROUTINE * PRTL_AVL_FREE_ROUTINE
Definition: rtltypes.h:408
TABLE_SEARCH_RESULT
Definition: rtltypes.h:373
struct _PREFIX_TABLE * PPREFIX_TABLE
struct _COMPRESSED_DATA_INFO COMPRESSED_DATA_INFO
struct _PREFIX_TABLE PREFIX_TABLE
struct _GENERATE_NAME_CONTEXT * PGENERATE_NAME_CONTEXT
_IRQL_requires_same_ _In_ PVOID _In_ PVOID MatchData
Definition: rtltypes.h:416
struct _UNICODE_PREFIX_TABLE_ENTRY * PUNICODE_PREFIX_TABLE_ENTRY
struct _RTL_AVL_TABLE RTL_AVL_TABLE
RTL_QUERY_REGISTRY_ROUTINE * PRTL_QUERY_REGISTRY_ROUTINE
Definition: rtltypes.h:53
NTKERNELAPI const PRTL_ALLOCATE_STRING_ROUTINE RtlAllocateStringRoutine
struct _GENERATE_NAME_CONTEXT GENERATE_NAME_CONTEXT
RTL_GENERIC_FREE_ROUTINE * PRTL_GENERIC_FREE_ROUTINE
Definition: rtltypes.h:475
RTL_AVL_MATCH_FUNCTION * PRTL_AVL_MATCH_FUNCTION
Definition: rtltypes.h:417
_Inout_opt_ PVOID Parameter
Definition: rtltypes.h:323
struct _RTL_GENERIC_TABLE RTL_GENERIC_TABLE
struct _RTL_BALANCED_LINKS RTL_BALANCED_LINKS
struct _COMPRESSED_DATA_INFO * PCOMPRESSED_DATA_INFO
NTKERNELAPI const PRTL_FREE_STRING_ROUTINE RtlFreeStringRoutine
_IRQL_requires_same_ _In_ PVOID _In_ PVOID SecondStruct
Definition: rtltypes.h:390
struct _RTL_SPLAY_LINKS * PRTL_SPLAY_LINKS
RTL_AVL_ALLOCATE_ROUTINE * PRTL_AVL_ALLOCATE_ROUTINE
Definition: rtltypes.h:400
RTL_GENERIC_COMPARE_ROUTINE * PRTL_GENERIC_COMPARE_ROUTINE
Definition: rtltypes.h:458
VOID(NTAPI * PRTL_FREE_STRING_ROUTINE)(_In_ __drv_freesMem(Mem) _Post_invalid_ PVOID Buffer)
Definition: rtltypes.h:569
struct _RTL_GENERIC_TABLE * PRTL_GENERIC_TABLE
_IRQL_requires_same_ _In_ CLONG ByteSize
Definition: rtltypes.h:399
struct _PREFIX_TABLE_ENTRY PREFIX_TABLE_ENTRY
struct _UNICODE_PREFIX_TABLE * PUNICODE_PREFIX_TABLE
struct _UNICODE_PREFIX_TABLE UNICODE_PREFIX_TABLE
struct _RTL_SPLAY_LINKS RTL_SPLAY_LINKS
_Inout_opt_ PVOID _Inout_opt_ PVOID * Context
Definition: rtltypes.h:324
_IRQL_requires_same_ _In_ PVOID FirstStruct
Definition: rtltypes.h:389
RTL_GENERIC_ALLOCATE_ROUTINE * PRTL_GENERIC_ALLOCATE_ROUTINE
Definition: rtltypes.h:467
_RTL_GENERIC_COMPARE_RESULTS
Definition: rtltypes.h:375
@ GenericLessThan
Definition: rtltypes.h:376
@ GenericEqual
Definition: rtltypes.h:378
@ GenericGreaterThan
Definition: rtltypes.h:377
struct _PREFIX_TABLE_ENTRY * PPREFIX_TABLE_ENTRY
RTL_AVL_COMPARE_ROUTINE * PRTL_AVL_COMPARE_ROUTINE
Definition: rtltypes.h:391
_Inout_ PVOID * CommitAddress
Definition: rtltypes.h:584
enum _RTL_GENERIC_COMPARE_RESULTS RTL_GENERIC_COMPARE_RESULTS
unsigned char UCHAR
Definition: xmlstorage.h:181
__wchar_t WCHAR
Definition: xmlstorage.h:180
char CHAR
Definition: xmlstorage.h:175