1 /* Version definitions */
3 #define NTDDI_VERSION NTDDI_WIN10
5 #define _WIN32_WINNT _WIN32_WINNT_WIN10
10 #define C_ASSERT_FIELD(Type, Offset, MemberType, MemberName) \
11 C_ASSERT(FIELD_OFFSET(Type, MemberName) == Offset); \
12 C_ASSERT(FIELD_SIZE(Type, MemberName) == sizeof(MemberType));
15 C_ASSERT_FIELD(KTHREAD
, 0x000, DISPATCHER_HEADER
, Header
)
16 C_ASSERT_FIELD(KTHREAD
, 0x018, PVOID
, SListFaultAddress
)
17 C_ASSERT_FIELD(KTHREAD
, 0x020, ULONG64
, QuantumTarget
)
18 C_ASSERT_FIELD(KTHREAD
, 0x028, PVOID
, InitialStack
)
19 C_ASSERT_FIELD(KTHREAD
, 0x030, PVOID
, StackLimit
)
20 C_ASSERT_FIELD(KTHREAD
, 0x038, PVOID
, StackBase
)
21 C_ASSERT_FIELD(KTHREAD
, 0x040, ULONG64
, ThreadLock
)
22 C_ASSERT_FIELD(KTHREAD
, 0x048, ULONG64
, CycleTime
)
23 C_ASSERT_FIELD(KTHREAD
, 0x050, ULONG
, CurrentRunTime
)
24 C_ASSERT_FIELD(KTHREAD
, 0x054, ULONG
, ExpectedRunTime
)
25 C_ASSERT_FIELD(KTHREAD
, 0x058, PVOID
, KernelStack
)
26 C_ASSERT_FIELD(KTHREAD
, 0x060, PXSAVE_FORMAT
, StateSaveArea
)
27 C_ASSERT_FIELD(KTHREAD
, 0x068, struct _KSCHEDULING_GROUP
*, SchedulingGroup
)
28 C_ASSERT_FIELD(KTHREAD
, 0x070, KWAIT_STATUS_REGISTER
, WaitRegister
)
29 C_ASSERT_FIELD(KTHREAD
, 0x071, UCHAR
, Running
)
30 C_ASSERT_FIELD(KTHREAD
, 0x072, UCHAR
[2], Alerted
)
31 C_ASSERT_FIELD(KTHREAD
, 0x074, LONG
, MiscFlags
)
32 C_ASSERT_FIELD(KTHREAD
, 0x078, LONG
, ThreadFlags
)
33 C_ASSERT_FIELD(KTHREAD
, 0x07C, UCHAR
, Tag
)
34 C_ASSERT_FIELD(KTHREAD
, 0x07D, UCHAR
, SystemHeteroCpuPolicy
)
35 C_ASSERT_FIELD(KTHREAD
, 0x080, ULONG
, SystemCallNumber
)
36 C_ASSERT_FIELD(KTHREAD
, 0x084, ULONG
, Spare1
)
37 C_ASSERT_FIELD(KTHREAD
, 0x088, PVOID
, FirstArgument
)
38 C_ASSERT_FIELD(KTHREAD
, 0x090, PKTRAP_FRAME
, TrapFrame
)
39 C_ASSERT_FIELD(KTHREAD
, 0x098, KAPC_STATE
, ApcState
)
40 C_ASSERT_FIELD(KTHREAD
, 0x0C3, CHAR
, Priority
)
41 C_ASSERT_FIELD(KTHREAD
, 0x0C4, ULONG
, UserIdealProcessor
)
42 C_ASSERT_FIELD(KTHREAD
, 0x0C8, LONG64
, WaitStatus
)
43 C_ASSERT_FIELD(KTHREAD
, 0x0D0, PKWAIT_BLOCK
, WaitBlockList
)
44 C_ASSERT_FIELD(KTHREAD
, 0x0D8, LIST_ENTRY
, WaitListEntry
)
45 C_ASSERT_FIELD(KTHREAD
, 0x0D8, SINGLE_LIST_ENTRY
, SwapListEntry
)
46 C_ASSERT_FIELD(KTHREAD
, 0x0E8, PDISPATCHER_HEADER
, Queue
)
47 C_ASSERT_FIELD(KTHREAD
, 0x0F0, PVOID
, Teb
)
48 C_ASSERT_FIELD(KTHREAD
, 0x0F8, ULONG64
, RelativeTimerBias
)
49 C_ASSERT_FIELD(KTHREAD
, 0x100, KTIMER
, Timer
)
50 C_ASSERT_FIELD(KTHREAD
, 0x140, KWAIT_BLOCK
[4], WaitBlock
)
51 C_ASSERT_FIELD(KTHREAD
, 0x154, ULONG
, ContextSwitches
)
52 C_ASSERT_FIELD(KTHREAD
, 0x184, UCHAR
, State
)
53 C_ASSERT_FIELD(KTHREAD
, 0x185, CHAR
, Spare13
)
54 C_ASSERT_FIELD(KTHREAD
, 0x186, UCHAR
, WaitIrql
)
55 C_ASSERT_FIELD(KTHREAD
, 0x187, CHAR
, WaitMode
)
56 C_ASSERT_FIELD(KTHREAD
, 0x1B4, ULONG
, WaitTime
)
57 C_ASSERT_FIELD(KTHREAD
, 0x1E4, SHORT
, KernelApcDisable
)
58 C_ASSERT_FIELD(KTHREAD
, 0x1E6, SHORT
, SpecialApcDisable
)
59 C_ASSERT_FIELD(KTHREAD
, 0x1E4, ULONG
, CombinedApcDisable
)
60 C_ASSERT_FIELD(KTHREAD
, 0x168, PKTHREAD_COUNTERS
, ThreadCounters
)
61 C_ASSERT_FIELD(KTHREAD
, 0x198, PXSTATE_SAVE
, XStateSave
)
62 C_ASSERT_FIELD(KTHREAD
, 0x1C8, PVOID
, Win32Thread
)
63 C_ASSERT_FIELD(KTHREAD
, 0x1F0, struct _UMS_CONTROL_BLOCK
*, Ucb
)
64 C_ASSERT_FIELD(KTHREAD
, 0x1F8, struct _KUMS_CONTEXT_HEADER
*, Uch
)
65 C_ASSERT_FIELD(KTHREAD
, 0x200, PVOID
, TebMappedLowVa
)
66 C_ASSERT_FIELD(KTHREAD
, 0x208, LIST_ENTRY
, QueueListEntry
)
67 C_ASSERT_FIELD(KTHREAD
, 0x218, ULONG
, NextProcessor
)
68 C_ASSERT_FIELD(KTHREAD
, 0x21C, LONG
, QueuePriority
)
69 C_ASSERT_FIELD(KTHREAD
, 0x220, PKPROCESS
, Process
)
70 C_ASSERT_FIELD(KTHREAD
, 0x228, GROUP_AFFINITY
, UserAffinity
)
71 C_ASSERT_FIELD(KTHREAD
, 0x232, CHAR
, PreviousMode
)
72 C_ASSERT_FIELD(KTHREAD
, 0x233, CHAR
, BasePriority
)
73 C_ASSERT_FIELD(KTHREAD
, 0x234, CHAR
, PriorityDecrement
)
74 C_ASSERT_FIELD(KTHREAD
, 0x235, UCHAR
, Preempted
)
75 C_ASSERT_FIELD(KTHREAD
, 0x236, UCHAR
, AdjustReason
)
76 C_ASSERT_FIELD(KTHREAD
, 0x237, CHAR
, AdjustIncrement
)
77 C_ASSERT_FIELD(KTHREAD
, 0x238, ULONG64
, AffinityVersion
)
78 C_ASSERT_FIELD(KTHREAD
, 0x240, GROUP_AFFINITY
, Affinity
)
79 C_ASSERT_FIELD(KTHREAD
, 0x24A, UCHAR
, ApcStateIndex
)
80 C_ASSERT_FIELD(KTHREAD
, 0x24B, UCHAR
, WaitBlockCount
)
81 C_ASSERT_FIELD(KTHREAD
, 0x24C, ULONG
, IdealProcessor
)
82 C_ASSERT_FIELD(KTHREAD
, 0x250, ULONG64
, NpxState
)
83 C_ASSERT_FIELD(KTHREAD
, 0x258, KAPC_STATE
, SavedApcState
)
84 C_ASSERT_FIELD(KTHREAD
, 0x283, UCHAR
, WaitReason
)
85 C_ASSERT_FIELD(KTHREAD
, 0x284, CHAR
, SuspendCount
)
86 C_ASSERT_FIELD(KTHREAD
, 0x285, CHAR
, Saturation
)
87 C_ASSERT_FIELD(KTHREAD
, 0x286, USHORT
, SListFaultCount
)
88 C_ASSERT_FIELD(KTHREAD
, 0x288, KAPC
, SchedulerApc
)
89 C_ASSERT_FIELD(KTHREAD
, 0x289, UCHAR
, ResourceIndex
)
90 C_ASSERT_FIELD(KTHREAD
, 0x28B, UCHAR
, QuantumReset
)
91 C_ASSERT_FIELD(KTHREAD
, 0x28C, ULONG
, KernelTime
)
92 C_ASSERT_FIELD(KTHREAD
, 0x2C8, PKPRCB
, WaitPrcb
)
93 C_ASSERT_FIELD(KTHREAD
, 0x2D0, PVOID
, LegoData
)
94 C_ASSERT_FIELD(KTHREAD
, 0x2DB, UCHAR
, CallbackNestingLevel
)
95 C_ASSERT_FIELD(KTHREAD
, 0x2DC, ULONG
, UserTime
)
96 C_ASSERT_FIELD(KTHREAD
, 0x2E0, KEVENT
, SuspendEvent
)
97 C_ASSERT_FIELD(KTHREAD
, 0x2F8, LIST_ENTRY
, ThreadListEntry
)
98 C_ASSERT_FIELD(KTHREAD
, 0x308, LIST_ENTRY
, MutantListHead
)
99 C_ASSERT_FIELD(KTHREAD
, 0x318, UCHAR
, AbEntrySummary
)
100 C_ASSERT_FIELD(KTHREAD
, 0x319, UCHAR
, AbWaitEntryCount
)
101 C_ASSERT_FIELD(KTHREAD
, 0x31A, USHORT
, Spare20
)
102 C_ASSERT_FIELD(KTHREAD
, 0x31C, ULONG
, SecureThreadCookie
)
103 C_ASSERT_FIELD(KTHREAD
, 0x320, KLOCK_ENTRY
[6], LockEntries
)
104 C_ASSERT_FIELD(KTHREAD
, 0x560, SINGLE_LIST_ENTRY
, PropagateBoostsEntry
)
105 C_ASSERT_FIELD(KTHREAD
, 0x568, SINGLE_LIST_ENTRY
, IoSelfBoostsEntry
)
106 C_ASSERT_FIELD(KTHREAD
, 0x570, UCHAR
[16], PriorityFloorCounts
)
107 C_ASSERT_FIELD(KTHREAD
, 0x580, ULONG
, PriorityFloorSummary
)
108 C_ASSERT_FIELD(KTHREAD
, 0x584, LONG
, AbCompletedIoBoostCount
)
109 C_ASSERT_FIELD(KTHREAD
, 0x588, SHORT
, KeReferenceCount
)
110 C_ASSERT_FIELD(KTHREAD
, 0x58A, UCHAR
, AbOrphanedEntrySummary
)
111 C_ASSERT_FIELD(KTHREAD
, 0x58B, UCHAR
, AbOwnedEntryCount
)
112 C_ASSERT_FIELD(KTHREAD
, 0x58C, ULONG
, ForegroundLossTime
)
113 C_ASSERT_FIELD(KTHREAD
, 0x590, LIST_ENTRY
, GlobalForegroundListEntry
)
114 C_ASSERT_FIELD(KTHREAD
, 0x590, SINGLE_LIST_ENTRY
, ForegroundDpcStackListEntry
)
115 C_ASSERT_FIELD(KTHREAD
, 0x598, ULONG64
, InGlobalForegroundList
)
116 C_ASSERT_FIELD(KTHREAD
, 0x5A0, LONG64
, ReadOperationCount
)
117 C_ASSERT_FIELD(KTHREAD
, 0x5A8, LONG64
, WriteOperationCount
)
118 C_ASSERT_FIELD(KTHREAD
, 0x5B0, LONG64
, OtherOperationCount
)
119 C_ASSERT_FIELD(KTHREAD
, 0x5B8, LONG64
, ReadTransferCount
)
120 C_ASSERT_FIELD(KTHREAD
, 0x5C0, LONG64
, WriteTransferCount
)
121 C_ASSERT_FIELD(KTHREAD
, 0x5C8, LONG64
, OtherTransferCount
)
122 C_ASSERT_FIELD(KTHREAD
, 0x5D0, struct _KSCB
*, QueuedScb
)
125 C_ASSERT_FIELD(TEB
, 0x000, NT_TIB
, NtTib
)
126 C_ASSERT_FIELD(TEB
, 0x038, PVOID
, EnvironmentPointer
)
127 C_ASSERT_FIELD(TEB
, 0x040, CLIENT_ID
, ClientId
)
128 C_ASSERT_FIELD(TEB
, 0x050, PVOID
, ActiveRpcHandle
)
129 C_ASSERT_FIELD(TEB
, 0x058, PVOID
, ThreadLocalStoragePointer
)
130 C_ASSERT_FIELD(TEB
, 0x060, PPEB
, ProcessEnvironmentBlock
)
131 C_ASSERT_FIELD(TEB
, 0x068, ULONG
, LastErrorValue
)
132 C_ASSERT_FIELD(TEB
, 0x06C, ULONG
, CountOfOwnedCriticalSections
)
133 C_ASSERT_FIELD(TEB
, 0x070, PVOID
, CsrClientThread
)
134 C_ASSERT_FIELD(TEB
, 0x078, PVOID
, Win32ThreadInfo
)
135 C_ASSERT_FIELD(TEB
, 0x080, ULONG
[26], User32Reserved
)
136 C_ASSERT_FIELD(TEB
, 0x0E8, ULONG
[5], UserReserved
)
137 C_ASSERT_FIELD(TEB
, 0x100, PVOID
, WOW32Reserved
)
138 C_ASSERT_FIELD(TEB
, 0x108, ULONG
, CurrentLocale
)
139 C_ASSERT_FIELD(TEB
, 0x10C, ULONG
, FpSoftwareStatusRegister
)
140 C_ASSERT_FIELD(TEB
, 0x110, PVOID
[16], ReservedForDebuggerInstrumentation
)
141 //C_ASSERT_FIELD(TEB, 0x190, PVOID[32], SystemReserved1)
142 //C_ASSERT_FIELD(TEB, 0x290, ACTIVATION_CONTEXT_STACK, _ActivationStack)
143 //C_ASSERT_FIELD(TEB, 0x2B8, UCHAR[8], WorkingOnBehalfTicket)
144 C_ASSERT_FIELD(TEB
, 0x2C0, LONG
, ExceptionCode
)
145 C_ASSERT_FIELD(TEB
, 0x2C4, UCHAR
[4], Padding0
)
146 C_ASSERT_FIELD(TEB
, 0x2C8, PACTIVATION_CONTEXT_STACK
, ActivationContextStackPointer
)
147 C_ASSERT_FIELD(TEB
, 0x2D0, ULONG64
, InstrumentationCallbackSp
)
148 C_ASSERT_FIELD(TEB
, 0x2D8, ULONG64
, InstrumentationCallbackPreviousPc
)
149 C_ASSERT_FIELD(TEB
, 0x2E0, ULONG64
, InstrumentationCallbackPreviousSp
)
150 C_ASSERT_FIELD(TEB
, 0x2E8, ULONG
, TxFsContext
)
151 C_ASSERT_FIELD(TEB
, 0x2EC, UCHAR
, InstrumentationCallbackDisabled
)
152 C_ASSERT_FIELD(TEB
, 0x2ED, UCHAR
[3], Padding1
)
153 C_ASSERT_FIELD(TEB
, 0x2F0, GDI_TEB_BATCH
, GdiTebBatch
)
154 C_ASSERT_FIELD(TEB
, 0x7D8, CLIENT_ID
, RealClientId
)
155 C_ASSERT_FIELD(TEB
, 0x7E8, PVOID
, GdiCachedProcessHandle
)
156 C_ASSERT_FIELD(TEB
, 0x7F0, ULONG
, GdiClientPID
)
157 C_ASSERT_FIELD(TEB
, 0x7F4, ULONG
, GdiClientTID
)
158 C_ASSERT_FIELD(TEB
, 0x7F8, PVOID
, GdiThreadLocalInfo
)
159 C_ASSERT_FIELD(TEB
, 0x800, ULONG64
[62], Win32ClientInfo
)
160 C_ASSERT_FIELD(TEB
, 0x9F0, PVOID
[233], glDispatchTable
)
161 C_ASSERT_FIELD(TEB
, 0x1138, ULONG64
[29], glReserved1
)
162 C_ASSERT_FIELD(TEB
, 0x1220, PVOID
, glReserved2
)
163 C_ASSERT_FIELD(TEB
, 0x1228, PVOID
, glSectionInfo
)
164 C_ASSERT_FIELD(TEB
, 0x1230, PVOID
, glSection
)
165 C_ASSERT_FIELD(TEB
, 0x1238, PVOID
, glTable
)
166 C_ASSERT_FIELD(TEB
, 0x1240, PVOID
, glCurrentRC
)
167 C_ASSERT_FIELD(TEB
, 0x1248, PVOID
, glContext
)
168 C_ASSERT_FIELD(TEB
, 0x1250, ULONG
, LastStatusValue
)
169 C_ASSERT_FIELD(TEB
, 0x1254, UCHAR
[4], Padding2
)
170 C_ASSERT_FIELD(TEB
, 0x1258, UNICODE_STRING
, StaticUnicodeString
)
171 C_ASSERT_FIELD(TEB
, 0x1268, WCHAR
[261], StaticUnicodeBuffer
)
172 C_ASSERT_FIELD(TEB
, 0x1472, UCHAR
[6], Padding3
)
173 C_ASSERT_FIELD(TEB
, 0x1478, PVOID
, DeallocationStack
)
174 C_ASSERT_FIELD(TEB
, 0x1480, PVOID
[64], TlsSlots
)
175 C_ASSERT_FIELD(TEB
, 0x1680, LIST_ENTRY
, TlsLinks
)
176 C_ASSERT_FIELD(TEB
, 0x1690, PVOID
, Vdm
)
177 C_ASSERT_FIELD(TEB
, 0x1698, PVOID
, ReservedForNtRpc
)
178 C_ASSERT_FIELD(TEB
, 0x16A0, PVOID
[2], DbgSsReserved
)
179 C_ASSERT_FIELD(TEB
, 0x16B0, ULONG
, HardErrorMode
)
180 C_ASSERT_FIELD(TEB
, 0x16B4, UCHAR
[4], Padding4
)
181 C_ASSERT_FIELD(TEB
, 0x16B8, PVOID
[11], Instrumentation
)
182 C_ASSERT_FIELD(TEB
, 0x1710, GUID
, ActivityId
)
183 C_ASSERT_FIELD(TEB
, 0x1720, PVOID
, SubProcessTag
)
184 C_ASSERT_FIELD(TEB
, 0x1728, PVOID
, PerflibData
)
185 C_ASSERT_FIELD(TEB
, 0x1730, PVOID
, EtwTraceData
)
186 C_ASSERT_FIELD(TEB
, 0x1738, PVOID
, WinSockData
)
187 C_ASSERT_FIELD(TEB
, 0x1740, ULONG
, GdiBatchCount
)
188 C_ASSERT_FIELD(TEB
, 0x1744, PROCESSOR_NUMBER
, CurrentIdealProcessor
)
189 C_ASSERT_FIELD(TEB
, 0x1744, ULONG
, IdealProcessorValue
)
190 C_ASSERT_FIELD(TEB
, 0x1744, UCHAR
, ReservedPad0
)
191 C_ASSERT_FIELD(TEB
, 0x1745, UCHAR
, ReservedPad1
)
192 C_ASSERT_FIELD(TEB
, 0x1746, UCHAR
, ReservedPad2
)
193 C_ASSERT_FIELD(TEB
, 0x1747, UCHAR
, IdealProcessor
)
194 C_ASSERT_FIELD(TEB
, 0x1748, ULONG
, GuaranteedStackBytes
)
195 C_ASSERT_FIELD(TEB
, 0x174C, UCHAR
[4], Padding5
)
196 C_ASSERT_FIELD(TEB
, 0x1750, PVOID
, ReservedForPerf
)
197 C_ASSERT_FIELD(TEB
, 0x1758, PVOID
, ReservedForOle
)
198 C_ASSERT_FIELD(TEB
, 0x1760, ULONG
, WaitingOnLoaderLock
)
199 C_ASSERT_FIELD(TEB
, 0x1764, UCHAR
[4], Padding6
)
200 C_ASSERT_FIELD(TEB
, 0x1768, PVOID
, SavedPriorityState
)
201 C_ASSERT_FIELD(TEB
, 0x1770, ULONG64
, ReservedForCodeCoverage
)
202 C_ASSERT_FIELD(TEB
, 0x1778, PVOID
, ThreadPoolData
)
203 C_ASSERT_FIELD(TEB
, 0x1780, PVOID
*, TlsExpansionSlots
)
204 C_ASSERT_FIELD(TEB
, 0x1788, PVOID
, DeallocationBStore
)
205 C_ASSERT_FIELD(TEB
, 0x1790, PVOID
, BStoreLimit
)
206 C_ASSERT_FIELD(TEB
, 0x1798, ULONG
, MuiGeneration
)
207 C_ASSERT_FIELD(TEB
, 0x179C, ULONG
, IsImpersonating
)
208 C_ASSERT_FIELD(TEB
, 0x17A0, PVOID
, NlsCache
)
209 C_ASSERT_FIELD(TEB
, 0x17A8, PVOID
, pShimData
)
210 C_ASSERT_FIELD(TEB
, 0x17B0, USHORT
, HeapVirtualAffinity
)
211 C_ASSERT_FIELD(TEB
, 0x17B2, USHORT
, LowFragHeapDataSlot
)
212 C_ASSERT_FIELD(TEB
, 0x17B4, UCHAR
[4], Padding7
)
213 C_ASSERT_FIELD(TEB
, 0x17B8, PVOID
, CurrentTransactionHandle
)
214 C_ASSERT_FIELD(TEB
, 0x17C0, PTEB_ACTIVE_FRAME
, ActiveFrame
)
215 C_ASSERT_FIELD(TEB
, 0x17C8, PVOID
, FlsData
)
216 C_ASSERT_FIELD(TEB
, 0x17D0, PVOID
, PreferredLanguages
)
217 C_ASSERT_FIELD(TEB
, 0x17D8, PVOID
, UserPrefLanguages
)
218 C_ASSERT_FIELD(TEB
, 0x17E0, PVOID
, MergedPrefLanguages
)
219 C_ASSERT_FIELD(TEB
, 0x17E8, ULONG
, MuiImpersonation
)
220 C_ASSERT_FIELD(TEB
, 0x17EC, USHORT
, CrossTebFlags
)
221 C_ASSERT_FIELD(TEB
, 0x17EE, USHORT
, SameTebFlags
)
222 C_ASSERT_FIELD(TEB
, 0x17F0, PVOID
, TxnScopeEnterCallback
)
223 C_ASSERT_FIELD(TEB
, 0x17F8, PVOID
, TxnScopeExitCallback
)
224 C_ASSERT_FIELD(TEB
, 0x1800, PVOID
, TxnScopeContext
)
225 C_ASSERT_FIELD(TEB
, 0x1808, ULONG
, LockCount
)
226 C_ASSERT_FIELD(TEB
, 0x180C, LONG
, WowTebOffset
)
227 C_ASSERT_FIELD(TEB
, 0x1810, PVOID
, ResourceRetValue
)
228 C_ASSERT_FIELD(TEB
, 0x1818, PVOID
, ReservedForWdf
)
229 C_ASSERT_FIELD(TEB
, 0x1820, ULONG64
, ReservedForCrt
)
230 C_ASSERT_FIELD(TEB
, 0x1828, GUID
, EffectiveContainerId
)
233 C_ASSERT_FIELD(TEB32
, 0x000, NT_TIB32
, NtTib
)
234 C_ASSERT_FIELD(TEB32
, 0x01c, ULONG
, EnvironmentPointer
)
235 C_ASSERT_FIELD(TEB32
, 0x020, CLIENT_ID32
, ClientId
)
236 C_ASSERT_FIELD(TEB32
, 0x028, ULONG
, ActiveRpcHandle
)
237 C_ASSERT_FIELD(TEB32
, 0x02c, ULONG
, ThreadLocalStoragePointer
)
238 C_ASSERT_FIELD(TEB32
, 0x030, ULONG
, ProcessEnvironmentBlock
)
239 C_ASSERT_FIELD(TEB32
, 0x034, ULONG
, LastErrorValue
)
240 C_ASSERT_FIELD(TEB32
, 0x038, ULONG
, CountOfOwnedCriticalSections
)
241 C_ASSERT_FIELD(TEB32
, 0x03c, ULONG
, CsrClientThread
)
242 C_ASSERT_FIELD(TEB32
, 0x040, ULONG
, Win32ThreadInfo
)
243 C_ASSERT_FIELD(TEB32
, 0x044, ULONG
[26], User32Reserved
)
244 C_ASSERT_FIELD(TEB32
, 0x0ac, ULONG
[5], UserReserved
)
245 C_ASSERT_FIELD(TEB32
, 0x0c0, ULONG
, WOW32Reserved
)
246 C_ASSERT_FIELD(TEB32
, 0x0c4, ULONG
, CurrentLocale
)
247 C_ASSERT_FIELD(TEB32
, 0x0c8, ULONG
, FpSoftwareStatusRegister
)
248 C_ASSERT_FIELD(TEB32
, 0x0CC, ULONG
[16], ReservedForDebuggerInstrumentation
)
249 //C_ASSERT_FIELD(TEB32, 0x10c, ULONG[30], SystemReserved1)
250 //C_ASSERT_FIELD(TEB32, 0x184, ACTIVATION_CONTEXT_STACK32, _ActivationStack)
251 //C_ASSERT_FIELD(TEB32, 0x19C, UCHAR[8], WorkingOnBehalfTicket)
252 C_ASSERT_FIELD(TEB32
, 0x1a4, LONG
, ExceptionCode
)
253 C_ASSERT_FIELD(TEB32
, 0x1a8, ULONG
, ActivationContextStackPointer
)
254 C_ASSERT_FIELD(TEB32
, 0x1AC, ULONG
, InstrumentationCallbackSp
)
255 C_ASSERT_FIELD(TEB32
, 0x1B0, ULONG
, InstrumentationCallbackPreviousPc
)
256 C_ASSERT_FIELD(TEB32
, 0x1B4, ULONG
, InstrumentationCallbackPreviousSp
)
257 C_ASSERT_FIELD(TEB32
, 0x1B8, UCHAR
, InstrumentationCallbackDisabled
)
258 C_ASSERT_FIELD(TEB32
, 0x1b9, UCHAR
[23], SpareBytes
)
259 C_ASSERT_FIELD(TEB32
, 0x1d0, ULONG
, TxFsContext
)
260 C_ASSERT_FIELD(TEB32
, 0x1d4, GDI_TEB_BATCH32
, GdiTebBatch
)
261 C_ASSERT_FIELD(TEB32
, 0x6b4, CLIENT_ID32
, RealClientId
)
262 C_ASSERT_FIELD(TEB32
, 0x6bc, ULONG
, GdiCachedProcessHandle
)
263 C_ASSERT_FIELD(TEB32
, 0x6c0, ULONG
, GdiClientPID
)
264 C_ASSERT_FIELD(TEB32
, 0x6c4, ULONG
, GdiClientTID
)
265 C_ASSERT_FIELD(TEB32
, 0x6c8, ULONG
, GdiThreadLocalInfo
)
266 C_ASSERT_FIELD(TEB32
, 0x6cc, ULONG
[62], Win32ClientInfo
)
267 C_ASSERT_FIELD(TEB32
, 0x7c4, ULONG
[233], glDispatchTable
)
268 C_ASSERT_FIELD(TEB32
, 0xb68, ULONG
[29], glReserved1
)
269 C_ASSERT_FIELD(TEB32
, 0xbdc, ULONG
, glReserved2
)
270 C_ASSERT_FIELD(TEB32
, 0xbe0, ULONG
, glSectionInfo
)
271 C_ASSERT_FIELD(TEB32
, 0xbe4, ULONG
, glSection
)
272 C_ASSERT_FIELD(TEB32
, 0xbe8, ULONG
, glTable
)
273 C_ASSERT_FIELD(TEB32
, 0xbec, ULONG
, glCurrentRC
)
274 C_ASSERT_FIELD(TEB32
, 0xbf0, ULONG
, glContext
)
275 C_ASSERT_FIELD(TEB32
, 0xbf4, ULONG
, LastStatusValue
)
276 C_ASSERT_FIELD(TEB32
, 0xbf8, STRING32
, StaticUnicodeString
)
277 C_ASSERT_FIELD(TEB32
, 0xc00, WCHAR
[261], StaticUnicodeBuffer
)
278 C_ASSERT_FIELD(TEB32
, 0xe0c, ULONG
, DeallocationStack
)
279 C_ASSERT_FIELD(TEB32
, 0xe10, ULONG
[64], TlsSlots
)
280 C_ASSERT_FIELD(TEB32
, 0xf10, LIST_ENTRY32
, TlsLinks
)
281 C_ASSERT_FIELD(TEB32
, 0xf18, ULONG
, Vdm
)
282 C_ASSERT_FIELD(TEB32
, 0xf1c, ULONG
, ReservedForNtRpc
)
283 C_ASSERT_FIELD(TEB32
, 0xf20, ULONG
[2], DbgSsReserved
)
284 C_ASSERT_FIELD(TEB32
, 0xf28, ULONG
, HardErrorMode
)
285 C_ASSERT_FIELD(TEB32
, 0xf2c, ULONG
[9], Instrumentation
)
286 C_ASSERT_FIELD(TEB32
, 0xf50, GUID
, ActivityId
)
287 C_ASSERT_FIELD(TEB32
, 0xf60, ULONG
, SubProcessTag
)
288 C_ASSERT_FIELD(TEB32
, 0xf64, ULONG
, PerflibData
)
289 C_ASSERT_FIELD(TEB32
, 0xf68, ULONG
, EtwTraceData
)
290 C_ASSERT_FIELD(TEB32
, 0xf6c, ULONG
, WinSockData
)
291 C_ASSERT_FIELD(TEB32
, 0xf70, ULONG
, GdiBatchCount
)
292 C_ASSERT_FIELD(TEB32
, 0xf74, PROCESSOR_NUMBER
, CurrentIdealProcessor
)
293 C_ASSERT_FIELD(TEB32
, 0xf74, ULONG
, IdealProcessorValue
)
294 C_ASSERT_FIELD(TEB32
, 0xf74, UCHAR
, ReservedPad0
)
295 C_ASSERT_FIELD(TEB32
, 0xf75, UCHAR
, ReservedPad1
)
296 C_ASSERT_FIELD(TEB32
, 0xf76, UCHAR
, ReservedPad2
)
297 C_ASSERT_FIELD(TEB32
, 0xf77, UCHAR
, IdealProcessor
)
298 C_ASSERT_FIELD(TEB32
, 0xf78, ULONG
, GuaranteedStackBytes
)
299 C_ASSERT_FIELD(TEB32
, 0xf7c, ULONG
, ReservedForPerf
)
300 C_ASSERT_FIELD(TEB32
, 0xf80, ULONG
, ReservedForOle
)
301 C_ASSERT_FIELD(TEB32
, 0xf84, ULONG
, WaitingOnLoaderLock
)
302 C_ASSERT_FIELD(TEB32
, 0xf88, ULONG
, SavedPriorityState
)
303 C_ASSERT_FIELD(TEB32
, 0xf8c, ULONG
, ReservedForCodeCoverage
)
304 C_ASSERT_FIELD(TEB32
, 0xf90, ULONG
, ThreadPoolData
)
305 C_ASSERT_FIELD(TEB32
, 0xf94, ULONG
, TlsExpansionSlots
)
306 C_ASSERT_FIELD(TEB32
, 0xf98, ULONG
, MuiGeneration
)
307 C_ASSERT_FIELD(TEB32
, 0xf9c, ULONG
, IsImpersonating
)
308 C_ASSERT_FIELD(TEB32
, 0xfa0, ULONG
, NlsCache
)
309 C_ASSERT_FIELD(TEB32
, 0xfa4, ULONG
, pShimData
)
310 C_ASSERT_FIELD(TEB32
, 0xfa8, USHORT
, HeapVirtualAffinity
)
311 C_ASSERT_FIELD(TEB32
, 0xFAA, USHORT
, LowFragHeapDataSlot
)
312 C_ASSERT_FIELD(TEB32
, 0xfac, ULONG
, CurrentTransactionHandle
)
313 C_ASSERT_FIELD(TEB32
, 0xfb0, ULONG
, ActiveFrame
)
314 C_ASSERT_FIELD(TEB32
, 0xfb4, ULONG
, FlsData
)
315 C_ASSERT_FIELD(TEB32
, 0xfb8, ULONG
, PreferredLanguages
)
316 C_ASSERT_FIELD(TEB32
, 0xfbc, ULONG
, UserPrefLanguages
)
317 C_ASSERT_FIELD(TEB32
, 0xfc0, ULONG
, MergedPrefLanguages
)
318 C_ASSERT_FIELD(TEB32
, 0xfc4, ULONG
, MuiImpersonation
)
319 C_ASSERT_FIELD(TEB32
, 0xfc8, USHORT
, CrossTebFlags
)
320 C_ASSERT_FIELD(TEB32
, 0xfca, USHORT
, SameTebFlags
)
321 C_ASSERT_FIELD(TEB32
, 0xfcc, ULONG
, TxnScopeEnterCallback
)
322 C_ASSERT_FIELD(TEB32
, 0xfd0, ULONG
, TxnScopeExitCallback
)
323 C_ASSERT_FIELD(TEB32
, 0xfd4, ULONG
, TxnScopeContext
)
324 C_ASSERT_FIELD(TEB32
, 0xfd8, ULONG
, LockCount
)
325 C_ASSERT_FIELD(TEB32
, 0xfdc, ULONG
, WowTebOffset
)
326 C_ASSERT_FIELD(TEB32
, 0xfe0, ULONG
, ResourceRetValue
)
327 C_ASSERT_FIELD(TEB32
, 0xFE4, ULONG
, ReservedForWdf
)
328 C_ASSERT_FIELD(TEB32
, 0xFE8, ULONG64
, ReservedForCrt
)
329 C_ASSERT_FIELD(TEB32
, 0xFF0, GUID
, EffectiveContainerId
)