ReactOS 0.4.15-dev-8235-gcd88a97
ksx.template.h
Go to the documentation of this file.
1
2
3HEADER("Pointer size"),
4SIZE(SizeofPointer, PVOID),
5
6HEADER("Bug Check Codes"),
7CONSTANT(APC_INDEX_MISMATCH),
8CONSTANT(INVALID_AFFINITY_SET),
9CONSTANT(INVALID_DATA_ACCESS_TRAP),
10CONSTANT(IRQL_NOT_GREATER_OR_EQUAL),
11CONSTANT(IRQL_NOT_LESS_OR_EQUAL), // 0x0a
12CONSTANT(NO_USER_MODE_CONTEXT), // 0x0e
13CONSTANT(SPIN_LOCK_ALREADY_OWNED), // 0x0f
14CONSTANT(SPIN_LOCK_NOT_OWNED), // 0x10
15CONSTANT(THREAD_NOT_MUTEX_OWNER), // 0x11
16CONSTANT(TRAP_CAUSE_UNKNOWN), // 0x12
17CONSTANT(KMODE_EXCEPTION_NOT_HANDLED), // 0x1e
18CONSTANT(KERNEL_APC_PENDING_DURING_EXIT), // 0x20
19CONSTANT(PANIC_STACK_SWITCH), // 0x2b
20CONSTANT(DATA_BUS_ERROR), // 0x2e
21CONSTANT(INSTRUCTION_BUS_ERROR), // 0x2f
22CONSTANT(SYSTEM_EXIT_OWNED_MUTEX), // 0x39
23//CONSTANT(SYSTEM_UNWIND_PREVIOUS_USER), // 0x3a
24//CONSTANT(SYSTEM_SERVICE_EXCEPTION), // 0x3b
25//CONSTANT(INTERRUPT_UNWIND_ATTEMPTED), // 0x3c
26//CONSTANT(INTERRUPT_EXCEPTION_NOT_HANDLED), // 0x3d
27CONSTANT(PAGE_FAULT_WITH_INTERRUPTS_OFF), // 0x49
28CONSTANT(IRQL_GT_ZERO_AT_SYSTEM_SERVICE), // 0x4a
29CONSTANT(DATA_COHERENCY_EXCEPTION), // 0x55
30CONSTANT(INSTRUCTION_COHERENCY_EXCEPTION), // 0x56
31CONSTANT(HAL1_INITIALIZATION_FAILED), // 0x61
32CONSTANT(UNEXPECTED_KERNEL_MODE_TRAP), // 0x7f
33CONSTANT(NMI_HARDWARE_FAILURE), // 0x80
34CONSTANT(SPIN_LOCK_INIT_FAILURE), // 0x81
35CONSTANT(ATTEMPTED_SWITCH_FROM_DPC), // 0xb8
36//CONSTANT(MUTEX_ALREADY_OWNED), // 0xbf
37//CONSTANT(HARDWARE_INTERRUPT_STORM), // 0xf2
38//CONSTANT(RECURSIVE_MACHINE_CHECK), // 0xfb
39//CONSTANT(RECURSIVE_NMI), // 0x111
40CONSTANT(KERNEL_SECURITY_CHECK_FAILURE), // 0x139
41//CONSTANT(UNSUPPORTED_INSTRUCTION_MODE), // 0x151
42//CONSTANT(BUGCHECK_CONTEXT_MODIFIER), // 0x80000000
43//CONSTANT(INVALID_CALLBACK_STACK_ADDRESS),
44//CONSTANT(INVALID_KERNEL_STACK_ADDRESS),
45
46HEADER("Breakpoints"),
53
54HEADER("Context Frame Flags"),
60#if defined(_M_IX86) || defined(_M_AMD64)
62#endif
63
64HEADER("Exception flags"),
76#ifdef _X86_
78//CONSTANT(FIXED_NTVDMSTATE_LINEAR), /// FIXME ???
79#endif
80
81HEADER("Exception types"),
86
87HEADER("Fast Fail Constants"),
89//CONSTANT(FAST_FAIL_INVALID_BUFFER_ACCESS),
90#ifdef _M_ASM64
93#endif // _M_ASM64
94//CONSTANT(FAST_FAIL_INVALID_NEXT_THREAD),
95//CONSTANT(FAST_FAIL_INVALID_CONTROL_STACK),
96//CONSTANT(FAST_FAIL_SET_CONTEXT_DENIED),
97//CONSTANT(FAST_FAIL_ENCLAVE_CALL_FAILURE),
98//CONSTANT(FAST_FAIL_GUARD_SS_FAILURE),
99
100HEADER("Interrupt object types"),
101CONSTANTX(InLevelSensitive, LevelSensitive),
102CONSTANTX(InLatched, Latched),
103
104HEADER("IPI"),
105#ifndef _M_AMD64
110#endif // _M_AMD64
111#ifdef _M_IX86
113#endif // _M_IX86
114
115HEADER("IRQL"),
119#ifdef _M_AMD64
121#elif defined(_M_IX86)
124#endif
129
130RAW("#ifndef CONFIG_SMP"),
132RAW("#else"),
133#if defined(_M_IX86) && (NTDDI_VERSION < NTDDI_WS03)
135#else
137#endif
138RAW("#endif"),
139
140#if (NTDDI_VERSION >= NTDDI_WIN8)
141HEADER("Entropy Timing Constants"),
145#endif
146
147HEADER("Lock Queue"),
151
152//HEADER("Performance Definitions"),
153//CONSTANT(PERF_CONTEXTSWAP_OFFSET),
154//CONSTANT(PERF_CONTEXTSWAP_FLAG),
155//CONSTANT(PERF_INTERRUPT_OFFSET),
156//CONSTANT(PERF_INTERRUPT_FLAG),
157//CONSTANT(PERF_SYSCALL_OFFSET),
158//CONSTANT(PERF_SYSCALL_FLAG),
159#ifndef _M_ARM
160//CONSTANT(PERF_PROFILE_OFFSET), /// FIXE: obsolete
161//CONSTANT(PERF_PROFILE_FLAG), /// FIXE: obsolete
162//CONSTANT(PERF_SPINLOCK_OFFSET), /// FIXE: obsolete
163//CONSTANT(PERF_SPINLOCK_FLAG), /// FIXE: obsolete
164#endif
165#ifdef _M_IX86
166//CONSTANT(PERF_IPI_OFFSET), // 00008H
167//CONSTANT(PERF_IPI_FLAG), // 0400000H
168//CONSTANT(PERF_IPI), // 040400000H
169#endif
170//CONSTANT(PERF_INTERRUPT), // 020004000H//CONSTANT(NTOS_YIELD_MACRO),
171
172HEADER("Process states"),
176
177HEADER("Processor mode"),
180
181HEADER("Service Table Constants"),
187
188HEADER("Status codes"),
215//CONSTANT(STATUS_INVALID_THREAD),
222#ifndef _M_ARM
224#endif
237//CONSTANT(STATUS_SET_CONTEXT_DENIED),
238
239//HEADER("Thread flags"),
240//CONSTANT(THREAD_FLAGS_CYCLE_PROFILING),
241//CONSTANT(THREAD_FLAGS_CYCLE_PROFILING_LOCK_BIT),
242//CONSTANT(THREAD_FLAGS_CYCLE_PROFILING_LOCK),
243//CONSTANT(THREAD_FLAGS_COUNTER_PROFILING),
244//CONSTANT(THREAD_FLAGS_COUNTER_PROFILING_LOCK_BIT),
245//CONSTANT(THREAD_FLAGS_COUNTER_PROFILING_LOCK),
246//CONSTANT(THREAD_FLAGS_CPU_THROTTLED), /// FIXME: obsolete
247//CONSTANT(THREAD_FLAGS_CPU_THROTTLED_BIT), /// FIXME: obsolete
248//CONSTANT(THREAD_FLAGS_ACCOUNTING_CSWITCH),
249//CONSTANT(THREAD_FLAGS_ACCOUNTING_INTERRUPT),
250//CONSTANT(THREAD_FLAGS_ACCOUNTING_ANY),
251//CONSTANT(THREAD_FLAGS_GROUP_SCHEDULING),
252//CONSTANT(THREAD_FLAGS_AFFINITY_SET),
253#ifdef _M_IX86
254//CONSTANT(THREAD_FLAGS_INSTRUMENTED), // 0x0040
255//CONSTANT(THREAD_FLAGS_INSTRUMENTED_PROFILING), // 0x0041
256#endif // _M_IX86
257
258HEADER("TLS defines"),
261
262HEADER("Thread states"),
269#ifdef _M_ARM
272//CONSTANT(GateWaitObsolete),
273#endif // _M_ARM
274
275HEADER("Wait type / reason"),
283
284HEADER("Stack sizes"),
289#ifdef _M_AMD64
293#endif
294
295//CONSTANT(KTHREAD_AUTO_ALIGNMENT_BIT),
296//CONSTANT(KTHREAD_GUI_THREAD_MASK),
297//CONSTANT(KTHREAD_SYSTEM_THREAD_BIT),
298//CONSTANT(KTHREAD_QUEUE_DEFER_PREEMPTION_BIT),
299//CONSTANT(KTHREAD_RESTRICTED_GUI_THREAD_MASK),
300//CONSTANT(KTHREAD_BAM_QOS_LEVEL_MASK),
301
302HEADER("Miscellaneous Definitions"),
307//CONSTANT(BASE_PRIORITY_THRESHOLD),
308//CONSTANT(EVENT_PAIR_INCREMENT), /// FIXME: obsolete
311//CONSTANT(READY_SKIP_QUANTUM),
312//CONSTANT(THREAD_QUANTUM),
314//CONSTANT(ROUND_TRIP_DECREMENT_COUNT),
317//CONSTANT(EXCEPTION_EXECUTE_FAULT), // amd64
318//CONSTANT(KCACHE_ERRATA_MONITOR_FLAGS), // not arm
319//CONSTANT(KI_DPC_ALL_FLAGS),
320//CONSTANT(KI_DPC_ANY_DPC_ACTIVE),
321//CONSTANT(KI_DPC_INTERRUPT_FLAGS), // 0x2f arm and x64
322//CONSTANT(KI_EXCEPTION_GP_FAULT), // not i386
323//CONSTANT(KI_EXCEPTION_INVALID_OP), // not i386
324//CONSTANT(KI_EXCEPTION_INTEGER_DIVIDE_BY_ZERO), // amd64
326//CONSTANT(KI_EXCEPTION_SECURE_FAULT),
327//CONSTANT(KI_EXCEPTION_SEGMENT_NOT_PRESENT),
328//CONSTANT(KINTERRUPT_STATE_DISABLED_BIT),
329//CONSTANT(KINTERRUPT_STATE_DISABLED),
330//CONSTANT(TARGET_FREEZE), // amd64
331//CONSTANT(BlackHole), // FIXME: obsolete
333//CONSTANTPTR(USER_SHARED_DATA), // FIXME: we need the kernel mode address here!
334//CONSTANT(MM_SHARED_USER_DATA_VA),
335//CONSTANT(KERNEL_STACK_CONTROL_LARGE_STACK), // FIXME: obsolete
336//CONSTANT(DISPATCH_LENGTH), // FIXME: obsolete
337//CONSTANT(KI_SLIST_FAULT_COUNT_MAXIMUM), // i386
338//CONSTANTUSER_CALLBACK_FILTER),
339
340#if !defined(_M_ARM) && !defined(_M_ARM64)
342//CONSTANT(MAXIMUM_PRIMARY_VECTOR),
346//MODE_BIT equ 00000H amd64
347//LDT_MASK equ 00004H amd64
348#endif
349
350
351/* STRUCTURE OFFSETS *********************************************************/
352
353//HEADER("KAFFINITY_EX"),
354//OFFSET(AfCount, KAFFINITY_EX, Count),
355//OFFSET(AfBitmap, KAFFINITY_EX, Bitmap),
356//SIZE(AffinityExLength, KAFFINITY_EX),
357
358//HEADER("Aligned Affinity"),
359//OFFSET(AfsCpuSet, ???, CpuSet), // FIXME: obsolete
360
361HEADER("KAPC"),
362OFFSET(ApType, KAPC, Type),
363OFFSET(ApSize, KAPC, Size),
364OFFSET(ApThread, KAPC, Thread),
365OFFSET(ApApcListEntry, KAPC, ApcListEntry),
366OFFSET(ApKernelRoutine, KAPC, KernelRoutine),
367OFFSET(ApRundownRoutine, KAPC, RundownRoutine),
368OFFSET(ApNormalRoutine, KAPC, NormalRoutine),
369OFFSET(ApNormalContext, KAPC, NormalContext),
370OFFSET(ApSystemArgument1, KAPC, SystemArgument1),
371OFFSET(ApSystemArgument2, KAPC, SystemArgument2),
372OFFSET(ApApcStateIndex, KAPC, ApcStateIndex),
373OFFSET(ApApcMode, KAPC, ApcMode),
374OFFSET(ApInserted, KAPC, Inserted),
375SIZE(ApcObjectLength, KAPC),
376
377HEADER("KAPC offsets (relative to NormalRoutine)"),
378RELOFFSET(ArNormalRoutine, KAPC, NormalRoutine, NormalRoutine),
379RELOFFSET(ArNormalContext, KAPC, NormalContext, NormalRoutine),
380RELOFFSET(ArSystemArgument1, KAPC, SystemArgument1, NormalRoutine),
381RELOFFSET(ArSystemArgument2, KAPC, SystemArgument2, NormalRoutine),
382CONSTANTX(ApcRecordLength, 4 * sizeof(PVOID)),
383
384HEADER("KAPC_STATE"),
385OFFSET(AsApcListHead, KAPC_STATE, ApcListHead),
387OFFSET(AsKernelApcInProgress, KAPC_STATE, KernelApcInProgress), // FIXME: obsolete
388OFFSET(AsKernelApcPending, KAPC_STATE, KernelApcPending),
389OFFSET(AsUserApcPending, KAPC_STATE, UserApcPending),
390
391HEADER("CLIENT_ID"),
392OFFSET(CidUniqueProcess, CLIENT_ID, UniqueProcess),
393OFFSET(CidUniqueThread, CLIENT_ID, UniqueThread),
394
395HEADER("RTL_CRITICAL_SECTION"), // No longer in Win 10 amd64
396OFFSET(CsDebugInfo, RTL_CRITICAL_SECTION, DebugInfo),
398OFFSET(CsRecursionCount, RTL_CRITICAL_SECTION, RecursionCount),
400OFFSET(CsLockSemaphore, RTL_CRITICAL_SECTION, LockSemaphore),
401OFFSET(CsSpinCount, RTL_CRITICAL_SECTION, SpinCount),
402
403HEADER("RTL_CRITICAL_SECTION_DEBUG"), // No longer in Win 10 amd64
405OFFSET(CsCreatorBackTraceIndex, RTL_CRITICAL_SECTION_DEBUG, CreatorBackTraceIndex),
407OFFSET(CsProcessLocksList, RTL_CRITICAL_SECTION_DEBUG, ProcessLocksList),
408OFFSET(CsEntryCount, RTL_CRITICAL_SECTION_DEBUG, EntryCount),
409OFFSET(CsContentionCount, RTL_CRITICAL_SECTION_DEBUG, ContentionCount),
410
411HEADER("KDEVICE_QUEUE_ENTRY"),
412OFFSET(DeDeviceListEntry, KDEVICE_QUEUE_ENTRY, DeviceListEntry),
414OFFSET(DeInserted, KDEVICE_QUEUE_ENTRY, Inserted),
415SIZE(DeviceQueueEntryLength, KDEVICE_QUEUE_ENTRY),
416
417HEADER("KDPC"),
418OFFSET(DpType, KDPC, Type),
419OFFSET(DpImportance, KDPC, Importance),
420OFFSET(DpNumber, KDPC, Number),
421OFFSET(DpDpcListEntry, KDPC, DpcListEntry),
422OFFSET(DpDeferredRoutine, KDPC, DeferredRoutine),
423OFFSET(DpDeferredContext, KDPC, DeferredContext),
424OFFSET(DpSystemArgument1, KDPC, SystemArgument1),
425OFFSET(DpSystemArgument2, KDPC, SystemArgument2),
426OFFSET(DpDpcData, KDPC, DpcData),
427SIZE(DpcObjectLength, KDPC),
428
429HEADER("KDEVICE_QUEUE"),
434OFFSET(DvBusy, KDEVICE_QUEUE, Busy),
435SIZE(DeviceQueueObjectLength, KDEVICE_QUEUE),
436
437HEADER("EXCEPTION_RECORD"),
439OFFSET(ErExceptionFlags, EXCEPTION_RECORD, ExceptionFlags),
440OFFSET(ErExceptionRecord, EXCEPTION_RECORD, ExceptionRecord),
441OFFSET(ErExceptionAddress, EXCEPTION_RECORD, ExceptionAddress),
442OFFSET(ErNumberParameters, EXCEPTION_RECORD, NumberParameters),
443OFFSET(ErExceptionInformation, EXCEPTION_RECORD, ExceptionInformation),
444SIZE(ExceptionRecordLength, EXCEPTION_RECORD),
446
447HEADER("EPROCESS"),
448OFFSET(EpDebugPort, EPROCESS, DebugPort),
449#if defined(_M_IX86)
450OFFSET(EpVdmObjects, EPROCESS, VdmObjects),
451#elif defined(_M_AMD64)
452OFFSET(EpWow64Process, EPROCESS, Wow64Process),
453#endif
454SIZE(ExecutiveProcessObjectLength, EPROCESS),
455
456HEADER("ETHREAD offsets"),
457OFFSET(EtCid, ETHREAD, Cid), // 0x364
458//OFFSET(EtPicoContext, ETHREAD, PicoContext),
459SIZE(ExecutiveThreadObjectLength, ETHREAD), // 0x418
460
461HEADER("KEVENT"),
462OFFSET(EvType, KEVENT, Header.Type),
463OFFSET(EvSize, KEVENT, Header.Size),
464OFFSET(EvSignalState, KEVENT, Header.SignalState),
465OFFSET(EvWaitListHead, KEVENT, Header.WaitListHead),
466SIZE(EventObjectLength, KEVENT),
467
468HEADER("FIBER"),
469OFFSET(FbFiberData, FIBER, FiberData),
470OFFSET(FbExceptionList, FIBER, ExceptionList),
471OFFSET(FbStackBase, FIBER, StackBase),
472OFFSET(FbStackLimit, FIBER, StackLimit),
473OFFSET(FbDeallocationStack, FIBER, DeallocationStack),
474OFFSET(FbFiberContext, FIBER, FiberContext),
475//OFFSET(FbWx86Tib, FIBER, Wx86Tib),
476//OFFSET(FbActivationContextStackPointer, FIBER, ActivationContextStackPointer),
477OFFSET(FbFlsData, FIBER, FlsData),
478OFFSET(FbGuaranteedStackBytes, FIBER, GuaranteedStackBytes),
479//OFFSET(FbTebFlags, FIBER, TebFlags),
480
481HEADER("FAST_MUTEX"),
484OFFSET(FmContention, FAST_MUTEX, Contention),
485//OFFSET(FmGate, FAST_MUTEX, Gate), // obsolete
487
488#ifndef _M_ARM
489HEADER("GETSETCONTEXT offsets"), // GET_SET_CTX_CONTEXT
490OFFSET(GetSetCtxContextPtr, GETSETCONTEXT, Context),
491#endif // _M_ARM
492
493HEADER("KINTERRUPT"),
496OFFSET(InInterruptListEntry, KINTERRUPT, InterruptListEntry),
497OFFSET(InServiceRoutine, KINTERRUPT, ServiceRoutine),
498OFFSET(InServiceContext, KINTERRUPT, ServiceContext),
500OFFSET(InTickCount, KINTERRUPT, TickCount),
501OFFSET(InActualLock, KINTERRUPT, ActualLock),
502OFFSET(InDispatchAddress, KINTERRUPT, DispatchAddress),
505OFFSET(InSynchronizeIrql, KINTERRUPT, SynchronizeIrql),
507OFFSET(InConnected, KINTERRUPT, Connected),
510//OFFSET(InInternalState, KINTERRUPT, InternalState),
513OFFSET(InDispatchCount, KINTERRUPT, DispatchCount),
514//OFFSET(InTrapFrame, KINTERRUPT, TrapFrame), // amd64
515OFFSET(InDispatchCode, KINTERRUPT, DispatchCode), // obsolete
516SIZE(InterruptObjectLength, KINTERRUPT),
517
518#ifdef _M_AMD64
519HEADER("IO_STATUS_BLOCK"),
521OFFSET(IoPointer, IO_STATUS_BLOCK, Pointer),
522OFFSET(IoInformation, IO_STATUS_BLOCK, Information),
523#endif /* _M_AMD64 */
524
525#if (NTDDI_VERSION >= NTDDI_WIN8)
526HEADER("KSTACK_CONTROL"),
527OFFSET(KcCurrentBase, KSTACK_CONTROL, StackBase),
528OFFSET(KcActualLimit, KSTACK_CONTROL, ActualLimit),
529OFFSET(KcPreviousBase, KSTACK_CONTROL, Previous.StackBase),
530OFFSET(KcPreviousLimit, KSTACK_CONTROL, Previous.StackLimit),
531OFFSET(KcPreviousKernel, KSTACK_CONTROL, Previous.KernelStack),
532OFFSET(KcPreviousInitial, KSTACK_CONTROL, Previous.InitialStack),
533#ifdef _IX86
534OFFSET(KcTrapFrame, KSTACK_CONTROL, PreviousTrapFrame),
535OFFSET(KcExceptionList, KSTACK_CONTROL, PreviousExceptionList),
536#endif // _IX86
537SIZE(KSTACK_CONTROL_LENGTH, KSTACK_CONTROL),
538CONSTANT(KSTACK_ACTUAL_LIMIT_EXPANDED), // move somewhere else?
539#else
540//HEADER("KERNEL_STACK_CONTROL"), // obsolete
541#endif
542
543#if 0 // no longer in win 10, different struct
544HEADER("KNODE"),
545//OFFSET(KnRight, KNODE, Right),
546//OFFSET(KnLeft, KNODE, Left),
547OFFSET(KnPfnDereferenceSListHead, KNODE, PfnDereferenceSListHead),
548OFFSET(KnProcessorMask, KNODE, ProcessorMask),
549OFFSET(KnColor, KNODE, Color),
550OFFSET(KnSeed, KNODE, Seed),
551OFFSET(KnNodeNumber, KNODE, NodeNumber),
552OFFSET(KnFlags, KNODE, Flags),
553OFFSET(KnMmShiftedColor, KNODE, MmShiftedColor),
554OFFSET(KnFreeCount, KNODE, FreeCount),
555OFFSET(KnPfnDeferredList, KNODE, PfnDeferredList),
556SIZE(KNODE_SIZE, KNODE),
557#endif
558
559HEADER("KSPIN_LOCK_QUEUE"),
562SIZE(LOCK_QUEUE_HEADER_SIZE, KSPIN_LOCK_QUEUE),
563
564HEADER("KLOCK_QUEUE_HANDLE"),
565OFFSET(LqhLockQueue, KLOCK_QUEUE_HANDLE, LockQueue),
566OFFSET(LqhNext, KLOCK_QUEUE_HANDLE, LockQueue.Next),
567OFFSET(LqhLock, KLOCK_QUEUE_HANDLE, LockQueue.Lock),
569
570HEADER("LARGE_INTEGER"),
571OFFSET(LiLowPart, LARGE_INTEGER, LowPart),
572OFFSET(LiHighPart, LARGE_INTEGER, HighPart),
573
574HEADER("LOADER_PARAMETER_BLOCK (rel. to LoadOrderListHead)"),
575RELOFFSET(LpbKernelStack, LOADER_PARAMETER_BLOCK, KernelStack, LoadOrderListHead),
576RELOFFSET(LpbPrcb, LOADER_PARAMETER_BLOCK, Prcb, LoadOrderListHead),
577RELOFFSET(LpbProcess, LOADER_PARAMETER_BLOCK, Process, LoadOrderListHead),
578RELOFFSET(LpbThread, LOADER_PARAMETER_BLOCK, Thread, LoadOrderListHead),
579
580HEADER("LIST_ENTRY"),
581OFFSET(LsFlink, LIST_ENTRY, Flink),
582OFFSET(LsBlink, LIST_ENTRY, Blink),
583
584HEADER("PEB"),
585OFFSET(PeBeingDebugged, PEB, BeingDebugged),
586OFFSET(PeProcessParameters, PEB, ProcessParameters),
587OFFSET(PeKernelCallbackTable, PEB, KernelCallbackTable),
588SIZE(ProcessEnvironmentBlockLength, PEB),
589
590HEADER("KPROFILE"),
593OFFSET(PfProfileListEntry, KPROFILE, ProfileListEntry),
595OFFSET(PfRangeBase, KPROFILE, RangeBase),
596OFFSET(PfRangeLimit, KPROFILE, RangeLimit),
597OFFSET(PfBucketShift, KPROFILE, BucketShift),
603SIZE(ProfileObjectLength, KPROFILE),
604
605HEADER("PORT_MESSAGE"), // whole thing obsolete in win10
606OFFSET(PmLength, PORT_MESSAGE, u1.Length),
607OFFSET(PmZeroInit, PORT_MESSAGE, u2.ZeroInit),
611OFFSET(PmMessageId, PORT_MESSAGE, MessageId),
612OFFSET(PmClientViewSize, PORT_MESSAGE, ClientViewSize),
613SIZE(PortMessageLength, PORT_MESSAGE),
614
615HEADER("KPROCESS"),
616OFFSET(PrType, KPROCESS, Header.Type),
617OFFSET(PrSize, KPROCESS, Header.Size),
618OFFSET(PrSignalState, KPROCESS, Header.SignalState),
619OFFSET(PrProfileListHead, KPROCESS, ProfileListHead),
620OFFSET(PrDirectoryTableBase, KPROCESS, DirectoryTableBase),
621#ifdef _M_ARM
622//OFFSET(PrPageDirectory, KPROCESS, PageDirectory),
623#elif defined(_M_IX86)
624OFFSET(PrLdtDescriptor, KPROCESS, LdtDescriptor),
625OFFSET(PrInt21Descriptor, KPROCESS, Int21Descriptor),
626#endif
627OFFSET(PrThreadListHead, KPROCESS, ThreadListHead),
629OFFSET(PrReadyListHead, KPROCESS, ReadyListHead),
630OFFSET(PrSwapListEntry, KPROCESS, SwapListEntry),
631OFFSET(PrActiveProcessors, KPROCESS, ActiveProcessors),
632OFFSET(PrProcessFlags, KPROCESS, ProcessFlags),
633OFFSET(PrBasePriority, KPROCESS, BasePriority),
634OFFSET(PrQuantumReset, KPROCESS, QuantumReset),
635#if defined(_M_IX86)
636OFFSET(PrIopmOffset, KPROCESS, IopmOffset),
637#endif
638#if (NTDDI_VERSION >= NTDDI_LONGHORN)
639OFFSET(PrCycleTime, KPROCESS, CycleTime),
640#endif
641OFFSET(PrKernelTime, KPROCESS, KernelTime),
643#if defined(_M_AMD64) || defined(_M_ARM)
644//OFFSET(PrInstrumentationCallback, KPROCESS, InstrumentationCallback),
645#elif defined(_M_IX86)
646OFFSET(PrVdmTrapcHandler, KPROCESS, VdmTrapcHandler),
647//OFFSET(PrVdmObjects, KPROCESS, VdmObjects),
648OFFSET(PrFlags, KPROCESS, Flags),
649#endif
650SIZE(KernelProcessObjectLength, KPROCESS),
651
652HEADER("KQUEUE"),
653OFFSET(QuType, KQUEUE, Header.Type), // not in win10
654OFFSET(QuSize, KQUEUE, Header.Size), // not in win10
655OFFSET(QuSignalState, KQUEUE, Header.SignalState),
656OFFSET(QuEntryListHead, KQUEUE, EntryListHead),
657OFFSET(QuCurrentCount, KQUEUE, CurrentCount),
658OFFSET(QuMaximumCount, KQUEUE, MaximumCount),
659OFFSET(QuThreadListHead, KQUEUE, ThreadListHead),
660SIZE(QueueObjectLength, KQUEUE),
661
662HEADER("KSERVICE_TABLE_DESCRIPTOR offsets"),
664OFFSET(SdCount, KSERVICE_TABLE_DESCRIPTOR, Count), // not in win10
668
669HEADER("STRING"),
670OFFSET(StrLength, STRING, Length),
671OFFSET(StrMaximumLength, STRING, MaximumLength),
672OFFSET(StrBuffer, STRING, Buffer),
673
674HEADER("TEB"),
675#if defined(_M_IX86)
676OFFSET(TeExceptionList, TEB, NtTib.ExceptionList),
677#elif defined(_M_AMD64)
678OFFSET(TeCmTeb, TEB, NtTib),
679#endif
680OFFSET(TeStackBase, TEB, NtTib.StackBase),
681OFFSET(TeStackLimit, TEB, NtTib.StackLimit),
682OFFSET(TeFiberData, TEB, NtTib.FiberData),
683OFFSET(TeSelf, TEB, NtTib.Self),
684OFFSET(TeEnvironmentPointer, TEB, EnvironmentPointer),
685OFFSET(TeClientId, TEB, ClientId),
686OFFSET(TeActiveRpcHandle, TEB, ActiveRpcHandle),
687OFFSET(TeThreadLocalStoragePointer, TEB, ThreadLocalStoragePointer),
688OFFSET(TePeb, TEB, ProcessEnvironmentBlock),
689OFFSET(TeLastErrorValue, TEB, LastErrorValue),
690OFFSET(TeCountOfOwnedCriticalSections, TEB, CountOfOwnedCriticalSections),
691OFFSET(TeCsrClientThread, TEB, CsrClientThread),
692OFFSET(TeWOW32Reserved, TEB, WOW32Reserved),
693//OFFSET(TeSoftFpcr, TEB, SoftFpcr),
694OFFSET(TeExceptionCode, TEB, ExceptionCode),
695OFFSET(TeActivationContextStackPointer, TEB, ActivationContextStackPointer),
696//#if (NTDDI_VERSION >= NTDDI_WIN10)
697//OFFSET(TeInstrumentationCallbackSp, TEB, InstrumentationCallbackSp),
698//OFFSET(TeInstrumentationCallbackPreviousPc, TEB, InstrumentationCallbackPreviousPc),
699//OFFSET(TeInstrumentationCallbackPreviousSp, TEB, InstrumentationCallbackPreviousSp),
700//#endif
701OFFSET(TeGdiClientPID, TEB, GdiClientPID),
702OFFSET(TeGdiClientTID, TEB, GdiClientTID),
703OFFSET(TeGdiThreadLocalInfo, TEB, GdiThreadLocalInfo),
704OFFSET(TeglDispatchTable, TEB, glDispatchTable),
705OFFSET(TeglReserved1, TEB, glReserved1),
706OFFSET(TeglReserved2, TEB, glReserved2),
707OFFSET(TeglSectionInfo, TEB, glSectionInfo),
708OFFSET(TeglSection, TEB, glSection),
709OFFSET(TeglTable, TEB, glTable),
710OFFSET(TeglCurrentRC, TEB, glCurrentRC),
711OFFSET(TeglContext, TEB, glContext),
712OFFSET(TeDeallocationStack, TEB, DeallocationStack),
713OFFSET(TeTlsSlots, TEB, TlsSlots),
714OFFSET(TeVdm, TEB, Vdm),
715OFFSET(TeInstrumentation, TEB, Instrumentation),
716OFFSET(TeGdiBatchCount, TEB, GdiBatchCount),
717OFFSET(TeGuaranteedStackBytes, TEB, GuaranteedStackBytes),
718OFFSET(TeTlsExpansionSlots, TEB, TlsExpansionSlots),
719OFFSET(TeFlsData, TEB, FlsData),
720SIZE(ThreadEnvironmentBlockLength, TEB),
721
722HEADER("TIME_FIELDS"),
723OFFSET(TfYear, TIME_FIELDS, Year),
724OFFSET(TfMonth, TIME_FIELDS, Month),
725OFFSET(TfDay, TIME_FIELDS, Day),
726OFFSET(TfHour, TIME_FIELDS, Hour),
727OFFSET(TfMinute, TIME_FIELDS, Minute),
729OFFSET(TfMilliseconds, TIME_FIELDS, Milliseconds),
730OFFSET(TfWeekday, TIME_FIELDS, Weekday),
731
732HEADER("KTHREAD"),
733OFFSET(ThType, KTHREAD, Header.Type),
734OFFSET(ThLock, KTHREAD, Header.Lock),
735OFFSET(ThSize, KTHREAD, Header.Size),
736OFFSET(ThThreadControlFlags, KTHREAD, Header.ThreadControlFlags),
737OFFSET(ThDebugActive, KTHREAD, Header.DebugActive),
738OFFSET(ThSignalState, KTHREAD, Header.SignalState),
739OFFSET(ThInitialStack, KTHREAD, InitialStack),
740OFFSET(ThStackLimit, KTHREAD, StackLimit),
741OFFSET(ThStackBase, KTHREAD, StackBase),
742OFFSET(ThThreadLock, KTHREAD, ThreadLock),
743#if (NTDDI_VERSION >= NTDDI_LONGHORN)
744OFFSET(ThCycleTime, KTHREAD, CycleTime),
745#if defined(_M_IX86)
746OFFSET(ThHighCycleTime, KTHREAD, HighCycleTime),
747#endif
748#endif /* (NTDDI_VERSION >= NTDDI_LONGHORN) */
749#if defined(_M_IX86)
750OFFSET(ThServiceTable, KTHREAD, ServiceTable),
751#endif
752//OFFSET(ThCurrentRunTime, KTHREAD, CurrentRunTime),
753//OFFSET(ThStateSaveArea, KTHREAD, StateSaveArea), // 0x3C not arm
754OFFSET(ThKernelStack, KTHREAD, KernelStack),
755#if (NTDDI_VERSION >= NTDDI_WIN7)
756OFFSET(ThRunning, KTHREAD, Running),
757#endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
758OFFSET(ThAlerted, KTHREAD, Alerted),
759#if (NTDDI_VERSION >= NTDDI_WIN7)
760OFFSET(ThMiscFlags, KTHREAD, MiscFlags),
761#endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
762OFFSET(ThThreadFlags, KTHREAD, ThreadFlags),
763#if (NTDDI_VERSION >= NTDDI_LONGHORN)
764OFFSET(ThSystemCallNumber, KTHREAD, SystemCallNumber),
765#endif /* (NTDDI_VERSION >= NTDDI_LONGHORN) */
766//OFFSET(ThFirstArgument, KTHREAD, FirstArgument),
767OFFSET(ThTrapFrame, KTHREAD, TrapFrame),
768OFFSET(ThApcState, KTHREAD, ApcState),
769OFFSET(ThPriority, KTHREAD, Priority), // obsolete
770OFFSET(ThSwapBusy, KTHREAD, SwapBusy),
771OFFSET(ThContextSwitches, KTHREAD, ContextSwitches),
773OFFSET(ThProcess, KTHREAD, Process), // thProcess in native headers
774OFFSET(ThNpxState, KTHREAD, NpxState),
775OFFSET(ThWaitIrql, KTHREAD, WaitIrql),
776OFFSET(ThWaitMode, KTHREAD, WaitMode), // obsolete
777OFFSET(ThTeb, KTHREAD, Teb),
779OFFSET(ThWin32Thread, KTHREAD, Win32Thread),
780OFFSET(ThWaitTime, KTHREAD, WaitTime),
781OFFSET(ThCombinedApcDisable, KTHREAD, CombinedApcDisable),
782OFFSET(ThKernelApcDisable, KTHREAD, KernelApcDisable),
783OFFSET(ThSpecialApcDisable, KTHREAD, SpecialApcDisable),
784#if defined(_M_ARM)
785//OFFSET(ThVfpState, KTHREAD, VfpState),
786#endif
787OFFSET(ThNextProcessor, KTHREAD, NextProcessor),
788//OFFSET(ThProcess, KTHREAD, Process),
789OFFSET(ThPreviousMode, KTHREAD, PreviousMode),
790OFFSET(ThPriorityDecrement, KTHREAD, PriorityDecrement), // obsolete
791OFFSET(ThAdjustReason, KTHREAD, AdjustReason),
792OFFSET(ThAdjustIncrement, KTHREAD, AdjustIncrement),
793OFFSET(ThAffinity, KTHREAD, Affinity), // obsolete
794OFFSET(ThApcStateIndex, KTHREAD, ApcStateIndex),
795OFFSET(ThIdealProcessor, KTHREAD, IdealProcessor), // obsolete
796OFFSET(ThApcStatePointer, KTHREAD, ApcStatePointer), // obsolete
797OFFSET(ThSavedApcState, KTHREAD, SavedApcState), // obsolete
798OFFSET(ThWaitReason, KTHREAD, WaitReason),
799OFFSET(ThSaturation, KTHREAD, Saturation), // obsolete
800OFFSET(ThLegoData, KTHREAD, LegoData),
801//#if defined(_M_ARM) && (NTDDI_VERSION >= NTDDI_WIN10)
802//OFFSET(ThUserRoBase, KTHREAD, UserRoBase),
803//OFFSET(ThUserRwBase, KTHREAD, UserRwBase),
804//#endif
805#ifdef _M_IX86
806//OFFSET(ThSListFaultCount, KTHREAD, SListFaultCount), // 0x18E
807//OFFSET(ThSListFaultAddress, KTHREAD, ListFaultAddress), // 0x10
808#endif // _M_IX86
809#if defined(_M_IX86) || defined(_M_AMD64)
810//OFFSET(ThUserFsBase, KTHREAD, UserFsBase), // 0x434
811//OFFSET(ThUserGsBase, KTHREAD, GsBase), // 0x438
812#endif // defined
813SIZE(KernelThreadObjectLength, KTHREAD),
814
815HEADER("ETHREAD"),
816//OFFSET(ThSetContextState, ETHREAD, SetContextState),
817
818HEADER("KTIMER"),
819OFFSET(TiType, KTIMER, Header.Type),
820OFFSET(TiSize, KTIMER, Header.Size),
821#if (NTDDI_VERSION < NTDDI_WIN7)
822OFFSET(TiInserted, KTIMER, Header.Inserted),
823#endif
824OFFSET(TiSignalState, KTIMER, Header.SignalState),
825OFFSET(TiDueTime, KTIMER, DueTime),
826OFFSET(TiTimerListEntry, KTIMER, TimerListEntry),
828OFFSET(TiPeriod, KTIMER, Period),
829SIZE(TimerObjectLength, KTIMER),
830
831HEADER("TIME"),
832OFFSET(TmLowTime, TIME, LowTime),
833OFFSET(TmHighTime, TIME, HighTime),
834
835HEADER("SYSTEM_CONTEXT_SWITCH_INFORMATION (relative to FindAny)"),
836RELOFFSET(TwFindAny, SYSTEM_CONTEXT_SWITCH_INFORMATION, FindAny, FindAny),
837RELOFFSET(TwFindIdeal, SYSTEM_CONTEXT_SWITCH_INFORMATION, FindIdeal, FindAny),
838RELOFFSET(TwFindLast, SYSTEM_CONTEXT_SWITCH_INFORMATION, FindLast, FindAny),
839RELOFFSET(TwIdleAny, SYSTEM_CONTEXT_SWITCH_INFORMATION, IdleAny, FindAny),
840RELOFFSET(TwIdleCurrent, SYSTEM_CONTEXT_SWITCH_INFORMATION, IdleCurrent, FindAny),
841RELOFFSET(TwIdleIdeal, SYSTEM_CONTEXT_SWITCH_INFORMATION, IdleIdeal, FindAny),
842RELOFFSET(TwIdleLast, SYSTEM_CONTEXT_SWITCH_INFORMATION, IdleLast, FindAny),
843RELOFFSET(TwPreemptAny, SYSTEM_CONTEXT_SWITCH_INFORMATION, PreemptAny, FindAny),
844RELOFFSET(TwPreemptCurrent, SYSTEM_CONTEXT_SWITCH_INFORMATION, PreemptCurrent, FindAny),
845RELOFFSET(TwPreemptLast, SYSTEM_CONTEXT_SWITCH_INFORMATION, PreemptLast, FindAny),
846RELOFFSET(TwSwitchToIdle, SYSTEM_CONTEXT_SWITCH_INFORMATION, SwitchToIdle, FindAny),
847
848HEADER("KUSER_SHARED_DATA"),
849OFFSET(UsTickCountMultiplier, KUSER_SHARED_DATA, TickCountMultiplier), // 0x4
850OFFSET(UsInterruptTime, KUSER_SHARED_DATA, InterruptTime), // 0x8
851OFFSET(UsSystemTime, KUSER_SHARED_DATA, SystemTime), // 0x14
852OFFSET(UsTimeZoneBias, KUSER_SHARED_DATA, TimeZoneBias), // 0x20
853OFFSET(UsImageNumberLow, KUSER_SHARED_DATA, ImageNumberLow),
854OFFSET(UsImageNumberHigh, KUSER_SHARED_DATA, ImageNumberHigh),
856OFFSET(UsMaxStackTraceDepth, KUSER_SHARED_DATA, MaxStackTraceDepth),
857OFFSET(UsCryptoExponent, KUSER_SHARED_DATA, CryptoExponent),
858OFFSET(UsTimeZoneId, KUSER_SHARED_DATA, TimeZoneId),
859OFFSET(UsLargePageMinimum, KUSER_SHARED_DATA, LargePageMinimum),
860//#if (NTDDI_VERSION >= NTDDI_WIN10)
861//OFFSET(UsNtBuildNumber, KUSER_SHARED_DATA, NtBuildNumber),
862//#else
864//#endif
865OFFSET(UsNtProductType, KUSER_SHARED_DATA, NtProductType),
866OFFSET(UsProductTypeIsValid, KUSER_SHARED_DATA, ProductTypeIsValid),
869OFFSET(UsProcessorFeatures, KUSER_SHARED_DATA, ProcessorFeatures),
872OFFSET(UsTimeSlip, KUSER_SHARED_DATA, TimeSlip),
873OFFSET(UsAlternativeArchitecture, KUSER_SHARED_DATA, AlternativeArchitecture),
874OFFSET(UsSystemExpirationDate, KUSER_SHARED_DATA, SystemExpirationDate), // not arm
875OFFSET(UsSuiteMask, KUSER_SHARED_DATA, SuiteMask),
877OFFSET(UsActiveConsoleId, KUSER_SHARED_DATA, ActiveConsoleId),
878OFFSET(UsDismountCount, KUSER_SHARED_DATA, DismountCount),
879OFFSET(UsComPlusPackage, KUSER_SHARED_DATA, ComPlusPackage),
880OFFSET(UsLastSystemRITEventTickCount, KUSER_SHARED_DATA, LastSystemRITEventTickCount),
881OFFSET(UsNumberOfPhysicalPages, KUSER_SHARED_DATA, NumberOfPhysicalPages),
882OFFSET(UsSafeBootMode, KUSER_SHARED_DATA, SafeBootMode),
883OFFSET(UsTestRetInstruction, KUSER_SHARED_DATA, TestRetInstruction),
884OFFSET(UsSystemCall, KUSER_SHARED_DATA, SystemCall), // not in win10
885OFFSET(UsSystemCallReturn, KUSER_SHARED_DATA, SystemCallReturn), // not in win10
886OFFSET(UsSystemCallPad, KUSER_SHARED_DATA, SystemCallPad),
887OFFSET(UsTickCount, KUSER_SHARED_DATA, TickCount),
888OFFSET(UsTickCountQuad, KUSER_SHARED_DATA, TickCountQuad),
889OFFSET(UsWow64SharedInformation, KUSER_SHARED_DATA, Wow64SharedInformation), // not in win10
890//OFFSET(UsXState, KUSER_SHARED_DATA, XState), // win 10
891
892HEADER("KWAIT_BLOCK offsets"),
893OFFSET(WbWaitListEntry, KWAIT_BLOCK, WaitListEntry),
896OFFSET(WbNextWaitBlock, KWAIT_BLOCK, NextWaitBlock), // not in win10
897OFFSET(WbWaitKey, KWAIT_BLOCK, WaitKey),
899
900#ifdef _M_AMD64
901SIZE(KSTART_FRAME_LENGTH, KSTART_FRAME),
902#endif
903
904#if 0
905
906CONSTANT(CFlushSize),
907CONSTANT(Win32BatchFlushCallout),
908CONSTANT(ServiceCpupReturnFromSimulatedCode),
909CONSTANT(X86AMD64_R3_LONG_MODE_CODE),
910CONSTANT(USER_CALLBACK_FILTER),
911CONSTANT(SYSTEM_CALL_INT_2E),
912
913HEADER("Process mitigation option flags"),
914CONSTANT(PS_MITIGATION_OPTION_BITS_PER_OPTION),
915CONSTANT(PS_MITIGATION_OPTION_ALWAYS_ON),
916CONSTANT(PS_MITIGATION_OPTION_ALWAYS_OFF),
917CONSTANT(PS_MITIGATION_OPTION_MASK),
918CONSTANT(PS_MITIGATION_OPTION_RETURN_FLOW_GUARD),
919CONSTANT(PS_MITIGATION_OPTION_RESTRICT_SET_THREAD_CONTEXT),
920
921#ifndef _M_ARM
922HEADER("Bounds Callback Status Codes"),
923CONSTANT(BoundExceptionContinueSearch),
924CONSTANT(BoundExceptionHandled),
925CONSTANT(BoundExceptionError),
926#endif
927
928HEADER("PS_SYSTEM_DLL_INIT_BLOCK"),
929OFFSET(IbCfgBitMap, PS_SYSTEM_DLL_INIT_BLOCK, CfgBitMap),
930OFFSET(IbWow64CfgBitMap, PS_SYSTEM_DLL_INIT_BLOCK, Wow64CfgBitMap),
931OFFSET(IbMitigationOptionsMap, PS_SYSTEM_DLL_INIT_BLOCK, MitigationOptionsMap),
932
933HEADER("Extended context"),
934OFFSET(CxxLegacyOffset 0x8),
935OFFSET(CxxLegacyLength 0xc),
936OFFSET(CxxXStateOffset 0x10),
937OFFSET(CxxXStateLength 0x14),
938
939HEADER("Enclave call dispatch frame"),
940OFFSET(EcEnclaveNumber, ???, EnclaveNumber),
941OFFSET(EcParameterAddress, ???, ParameterAddress),
942OFFSET(EcParameterValue, ???, ParameterValue),
943OFFSET(EcOriginalReturn, ???, OriginalReturn),
944OFFSET(EcFramePointer, ???, FramePointer),
945OFFSET(EcReturnAddress, ???, ReturnAddress),
946
947#ifndef _M_ARM
948HEADER("Enlightenment"),
949OFFSET(HeEnlightenments, ???, Enlightenments),
950OFFSET(HeHypervisorConnected, ???, HypervisorConnected),
951OFFSET(HeEndOfInterrupt, ???, EndOfInterrupt),
952OFFSET(HeApicWriteIcr, ???, ApicWriteIcr),
953OFFSET(HeSpinCountMask, ???, SpinCountMask),
954OFFSET(HeLongSpinWait, ???, LongSpinWait),
955#endif
956
957HEADER("Processor Descriptor Area"),
958OFFSET(PdaGdt, ????, ),
959OFFSET(PdaKernelGsBase, ????, ),
960
961OFFSET(PpFlags, ????, Flags),
962OFFSET(EtwTSLength, ????, ),
963OFFSET(CmThreadEnvironmentBlockOffset, ????, ),
964OFFSET(PbEntropyCount, ????, ),
965OFFSET(PbEntropyBuffer, ????, ),
966
967#endif
WCHAR Second[]
Definition: FormatMessage.c:12
Type
Definition: Type.h:7
@ Started
Definition: acpisys.h:14
#define MODE_MASK
Definition: orders.h:326
static SERVICE_TABLE_ENTRYW ServiceTable[2]
Definition: eventlog.c:24
@ Reserved2
Definition: bcd.h:202
@ Reserved1
Definition: bcd.h:201
static LIST_ENTRY DeviceListHead
Definition: fs.c:52
_Inout_ PIRP _In_ NTSTATUS ExceptionCode
Definition: cdprocs.h:1774
_In_opt_ PWSTR _In_ PWSTR _Inout_ PULONG ParameterValue
Definition: cdrom.h:963
Definition: bufpool.h:45
Definition: Header.h:9
LONG LockCount
Definition: comsup.c:6
#define SIZE
Definition: consume.c:5
_Out_ PKIRQL Irql
Definition: csq.h:179
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
@ ExceptionContinueSearch
Definition: compat.h:91
@ ExceptionCollidedUnwind
Definition: compat.h:93
@ ExceptionNestedException
Definition: compat.h:92
@ ExceptionContinueExecution
Definition: compat.h:90
#define CLOCK2_LEVEL
Definition: env_spec_w32.h:700
#define SYNCH_LEVEL
Definition: env_spec_w32.h:704
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
#define IPI_LEVEL
Definition: env_spec_w32.h:701
#define PROFILE_LEVEL
Definition: env_spec_w32.h:698
#define HIGH_LEVEL
Definition: env_spec_w32.h:703
#define CLOCK1_LEVEL
Definition: env_spec_w32.h:699
#define APC_LEVEL
Definition: env_spec_w32.h:695
#define PAGE_SIZE
Definition: env_spec_w32.h:49
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
#define POWER_LEVEL
Definition: env_spec_w32.h:702
#define MAXIMUM_PROCESSORS
Definition: rwlock.h:5
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
std::wstring STRING
Definition: fontsub.cpp:33
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:223
Status
Definition: gdiplustypes.h:25
#define CONSTANTX(name, value)
Definition: genincdata.c:46
#define HEADER(x)
Definition: genincdata.c:50
#define RAW(x)
Definition: genincdata.c:42
#define CONSTANT(name)
Definition: genincdata.c:43
#define RELOFFSET(name, struct, member, to)
Definition: genincdata.c:48
GLdouble GLdouble u2
Definition: glext.h:8308
GLdouble u1
Definition: glext.h:8308
#define PRIMARY_VECTOR_BASE
Definition: halp.h:16
_In_ ULONG Mode
Definition: hubbusif.h:303
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
#define EXCEPTION_CONTINUE_SEARCH
Definition: excpt.h:86
#define EXCEPTION_CONTINUE_EXECUTION
Definition: excpt.h:87
#define TLS_EXPANSION_SLOTS
Definition: pstypes.h:310
#define LOW_REALTIME_PRIORITY
CRITICAL_SECTION CriticalSection
Definition: iprtprio.c:40
BOOLEAN KdDebuggerEnabled
Definition: kddata.c:82
__int64 TIME
Definition: ms-dtyp.idl:32
__in UCHAR __in POWER_STATE __in_opt PVOID __in PIO_STATUS_BLOCK IoStatus
Definition: mxum.h:159
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3169
#define KernelMode
Definition: asm.h:34
#define UserMode
Definition: asm.h:35
#define MAXIMUM_IDTVECTOR
Definition: asm.h:280
#define ISR_STACK_SIZE
Definition: ketypes.h:357
#define NMI_STACK_SIZE
Definition: ketypes.h:356
#define IPI_FREEZE
Definition: ketypes.h:299
#define DOUBLE_FAULT_STACK_SIZE
Definition: ketypes.h:97
#define IPI_PACKET_READY
Definition: ketypes.h:300
#define INITIAL_STALL_COUNT
Definition: ketypes.h:336
#define IPI_SYNCH_REQUEST
Definition: ketypes.h:301
#define IPI_DPC
Definition: ketypes.h:298
#define RPL_MASK
Definition: ketypes.h:130
#define IPI_APC
Definition: ketypes.h:297
#define CLOCK_LEVEL
Definition: ketypes.h:16
#define EXCEPTION_RECORD_LENGTH
Definition: asm.h:389
#define BREAKPOINT_PRINT
Definition: kdtypes.h:51
#define BREAKPOINT_COMMAND_STRING
Definition: kdtypes.h:55
#define BREAKPOINT_LOAD_SYMBOLS
Definition: kdtypes.h:53
#define BREAKPOINT_BREAK
Definition: kdtypes.h:50
#define BREAKPOINT_UNLOAD_SYMBOLS
Definition: kdtypes.h:54
#define BREAKPOINT_PROMPT
Definition: kdtypes.h:52
#define DBG_STATUS_CONTROL_C
Definition: kdtypes.h:39
#define SERVICE_TABLE_SHIFT
Definition: ketypes.h:71
#define SERVICE_TABLE_MASK
Definition: ketypes.h:78
#define KENTROPY_TIMING_ANALYSIS
Definition: ketypes.h:2175
@ ProcessOutOfMemory
Definition: ketypes.h:461
@ ProcessInMemory
Definition: ketypes.h:460
@ ProcessInTransition
Definition: ketypes.h:462
#define KI_EXCEPTION_ACCESS_VIOLATION
Definition: ketypes.h:144
#define NUMBER_SERVICE_TABLES
Definition: ketypes.h:47
#define SERVICE_NUMBER_MASK
Definition: ketypes.h:83
@ Terminated
Definition: ketypes.h:392
@ Ready
Definition: ketypes.h:389
@ Running
Definition: ketypes.h:390
@ Standby
Definition: ketypes.h:391
@ DeferredReady
Definition: ketypes.h:395
@ Waiting
Definition: ketypes.h:393
@ Transition
Definition: ketypes.h:394
@ Initialized
Definition: ketypes.h:388
#define WAIT_QUANTUM_DECREMENT
Definition: ketypes.h:137
#define CLOCK_QUANTUM_DECREMENT
Definition: ketypes.h:138
#define SERVICE_TABLE_TEST
Definition: ketypes.h:90
#define KENTROPY_TIMING_BUFFER_MASK
Definition: ketypes.h:2174
#define KENTROPY_TIMING_INTERRUPTS_PER_BUFFER
Definition: ketypes.h:2173
_Out_writes_bytes_to_opt_ AbsoluteSecurityDescriptorSize PSECURITY_DESCRIPTOR _Inout_ PULONG _Out_writes_bytes_to_opt_ DaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ SaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ OwnerSize PSID Owner
Definition: rtlfuncs.h:1597
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2439
#define EXCEPTION_CHAIN_END
Definition: rtltypes.h:63
int Count
Definition: noreturn.cpp:7
#define CONTEXT_DEBUG_REGISTERS
Definition: nt_native.h:1373
#define CONTEXT_CONTROL
Definition: nt_native.h:1369
#define CONTEXT_INTEGER
Definition: nt_native.h:1370
#define CONTEXT_FLOATING_POINT
Definition: nt_native.h:1372
#define CONTEXT_SEGMENTS
Definition: nt_native.h:1371
#define CONTEXT_FULL
Definition: nt_native.h:1375
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
#define HighTime
@ WaitAll
@ WaitAny
#define LowTime
UNICODE_STRING NtSystemRoot
Definition: init.c:76
ULONG NtMajorVersion
Definition: init.c:45
ULONG NtMinorVersion
Definition: init.c:46
_Out_ PKAPC_STATE ApcState
Definition: mm.h:1765
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
Definition: ntpoapi.h:207
#define STATUS_FLOAT_UNDERFLOW
Definition: ntstatus.h:383
#define STATUS_TIMEOUT
Definition: ntstatus.h:81
#define STATUS_ILLEGAL_INSTRUCTION
Definition: ntstatus.h:266
#define STATUS_INVALID_HANDLE
Definition: ntstatus.h:245
#define STATUS_NO_EVENT_PAIR
Definition: ntstatus.h:570
#define STATUS_USER_APC
Definition: ntstatus.h:78
#define STATUS_ILLEGAL_FLOAT_CONTEXT
Definition: ntstatus.h:566
#define STATUS_FLOAT_OVERFLOW
Definition: ntstatus.h:381
#define STATUS_BAD_COMPRESSION_BUFFER
Definition: ntstatus.h:710
#define STATUS_FLOAT_STACK_CHECK
Definition: ntstatus.h:382
#define STATUS_THREAD_IS_TERMINATING
Definition: ntstatus.h:311
#define STATUS_INSTRUCTION_MISALIGNMENT
Definition: ntstatus.h:406
#define STATUS_LONGJUMP
Definition: ntstatus.h:217
#define STATUS_ARRAY_BOUNDS_EXCEEDED
Definition: ntstatus.h:376
#define STATUS_ASSERTION_FAILURE
Definition: ntstatus.h:960
#define STATUS_CALLBACK_POP_STACK
Definition: ntstatus.h:961
#define STATUS_KERNEL_APC
Definition: ntstatus.h:79
#define STATUS_STACK_OVERFLOW
Definition: ntstatus.h:489
#define STATUS_UNWIND
Definition: ntstatus.h:276
#define STATUS_NO_CALLBACK_ACTIVE
Definition: ntstatus.h:726
#define STATUS_SINGLE_STEP
Definition: ntstatus.h:185
#define STATUS_UNWIND_CONSOLIDATE
Definition: ntstatus.h:220
#define STATUS_FLOAT_DIVIDE_BY_ZERO
Definition: ntstatus.h:378
#define STATUS_FLOAT_MULTIPLE_FAULTS
Definition: ntstatus.h:807
#define STATUS_PRIVILEGED_INSTRUCTION
Definition: ntstatus.h:386
#define STATUS_WAKE_SYSTEM
Definition: ntstatus.h:170
#define STATUS_BREAKPOINT
Definition: ntstatus.h:184
#define STATUS_FLOAT_MULTIPLE_TRAPS
Definition: ntstatus.h:808
#define STATUS_ACCESS_VIOLATION
Definition: ntstatus.h:242
#define STATUS_INVALID_SYSTEM_SERVICE
Definition: ntstatus.h:265
#define STATUS_FLOAT_INVALID_OPERATION
Definition: ntstatus.h:380
#define STATUS_IN_PAGE_ERROR
Definition: ntstatus.h:243
#define STATUS_FLOAT_INEXACT_RESULT
Definition: ntstatus.h:379
#define STATUS_FLOAT_DENORMAL_OPERAND
Definition: ntstatus.h:377
#define STATUS_DATATYPE_MISALIGNMENT
Definition: ntstatus.h:183
#define STATUS_STACK_BUFFER_OVERRUN
Definition: ntstatus.h:946
#define STATUS_GUARD_PAGE_VIOLATION
Definition: ntstatus.h:182
#define STATUS_INVALID_PARAMETER_1
Definition: ntstatus.h:475
#define STATUS_INTEGER_OVERFLOW
Definition: ntstatus.h:385
#define STATUS_INTEGER_DIVIDE_BY_ZERO
Definition: ntstatus.h:384
#define STATUS_WAKE_SYSTEM_DEBUGGER
Definition: ntstatus.h:188
#define STATUS_INVALID_LOCK_SEQUENCE
Definition: ntstatus.h:267
#define STATUS_INVALID_OWNER
Definition: ntstatus.h:326
@ Reserved3
Definition: sacdrv.h:1471
@ Latched
Definition: miniport.h:81
@ LevelSensitive
Definition: miniport.h:80
#define KERNEL_LARGE_STACK_SIZE
#define KERNEL_MCA_EXCEPTION_STACK_SIZE
#define KERNEL_STACK_SIZE
#define KERNEL_LARGE_STACK_COMMIT
#define STATUS_SUCCESS
Definition: shellext.h:65
WaitType
Definition: shlextdbg.cpp:386
#define TLS_MINIMUM_AVAILABLE
Definition: ntddk_ex.h:236
HANDLE UniqueThread
Definition: compat.h:826
HANDLE UniqueProcess
Definition: compat.h:825
Definition: ketypes.h:547
Definition: ketypes.h:578
Definition: ketypes.h:699
Definition: typedefs.h:120
Definition: compat.h:836
#define EXCEPTION_NONCONTINUABLE
Definition: stubs.h:23
DWORD ServiceCount
Definition: svchost.c:19
static LIST_ENTRY ThreadListHead
Definition: sys_arch.c:6
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
#define OFFSET
Definition: vbltest.c:24
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
_In_ WDFDMATRANSACTION _In_ size_t MaximumLength
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
Definition: wdfdpc.h:112
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY _In_ WDF_INTERRUPT_PRIORITY Priority
Definition: wdfinterrupt.h:655
_In_ WDFREQUEST _In_ NTSTATUS _In_ ULONG_PTR Information
Definition: wdfrequest.h:1049
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFSPINLOCK * SpinLock
Definition: wdfsync.h:228
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
Definition: wdfsync.h:127
_In_ WDFTIMER _In_ LONGLONG DueTime
Definition: wdftimer.h:190
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD OwningThread
Definition: wsk.h:190
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
_Inout_ PVOID Segment
Definition: exfuncs.h:1101
FAST_MUTEX
Definition: extypes.h:17
_In_ ULONG _In_ ULONG _In_ ULONG _Out_ PKIRQL _Out_ PKAFFINITY Affinity
Definition: halfuncs.h:174
_In_ PKSERVICE_ROUTINE ServiceRoutine
Definition: iofuncs.h:800
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG _In_ KIRQL _In_ KIRQL SynchronizeIrql
Definition: iofuncs.h:805
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG _In_ KIRQL _In_ KIRQL _In_ KINTERRUPT_MODE _In_ BOOLEAN _In_ KAFFINITY _In_ BOOLEAN FloatingSave
Definition: iofuncs.h:809
_Out_ PUSHORT NodeNumber
Definition: iofuncs.h:2574
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG _In_ KIRQL _In_ KIRQL _In_ KINTERRUPT_MODE _In_ BOOLEAN ShareVector
Definition: iofuncs.h:807
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID ServiceContext
Definition: iofuncs.h:801
_Out_ PULONG UserTime
Definition: kefuncs.h:759
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Definition: kefuncs.h:778
_In_ KDPC_IMPORTANCE Importance
Definition: kefuncs.h:82
_In_ LARGE_INTEGER _In_ ULONG Period
Definition: kefuncs.h:1313
_Inout_ PKDEVICE_QUEUE_ENTRY _In_ ULONG SortKey
Definition: kefuncs.h:328
*Count PHARDWARE_COUNTER _In_ ULONG MaximumCount
Definition: kefuncs.h:1369
_In_ LONG _In_ LONG Limit
Definition: kefuncs.h:304
_Out_ PCLIENT_ID ClientId
Definition: kefuncs.h:1151
@ WrDispatchInt
Definition: ketypes.h:446
@ WrMutex
Definition: ketypes.h:444
@ WrExecutive
Definition: ketypes.h:422
@ WrQuantumEnd
Definition: ketypes.h:445
@ WrEventPair
Definition: ketypes.h:429
@ Executive
Definition: ketypes.h:415
_In_opt_ PVOID _In_opt_ PVOID SystemArgument1
Definition: ketypes.h:688
#define LOCK_QUEUE_OWNER
_In_opt_ PVOID DeferredContext
Definition: ketypes.h:687
@ LockQueueDispatcherLock
Definition: ketypes.h:658
_In_opt_ PVOID _In_opt_ PVOID _In_opt_ PVOID SystemArgument2
Definition: ketypes.h:689
#define LOCK_QUEUE_WAIT
KAPC_STATE
Definition: ketypes.h:1409
#define FAST_FAIL_GUARD_ICALL_CHECK_FAILURE
#define FAST_FAIL_INVALID_JUMP_BUFFER
#define FAST_FAIL_INVALID_SET_OF_CONTEXT
#define EXCEPTION_EXIT_UNWIND
Definition: rtltypes.h:156
#define EXCEPTION_NESTED_CALL
Definition: rtltypes.h:158
#define EXCEPTION_STACK_INVALID
Definition: rtltypes.h:157
#define EXCEPTION_UNWINDING
Definition: rtltypes.h:155
#define EXCEPTION_TARGET_UNWIND
Definition: rtltypes.h:159
#define EXCEPTION_UNWIND
Definition: rtltypes.h:161
#define EXCEPTION_COLLIDED_UNWIND
Definition: rtltypes.h:160
_In_ KPROCESSOR_MODE PreviousMode
Definition: sefuncs.h:103