231{
236 PTR(
PVOID) ThreadLocalStoragePointer;
238 ULONG LastErrorValue;
239 ULONG CountOfOwnedCriticalSections;
242 ULONG User32Reserved[26];
243 ULONG UserReserved[5];
246 ULONG FpSoftwareStatusRegister;
247
248#if (NTDDI_VERSION >= NTDDI_WIN10)
249 PTR(
PVOID) ReservedForDebuggerInstrumentation[16];
251#else
253#endif
255#ifdef _STRUCT64
257#endif
258
259#if (NTDDI_VERSION >= NTDDI_WS03SP1)
261#else
263#endif
264
265#if (NTDDI_VERSION >= NTDDI_WIN10)
269 #ifdef _STRUCT64
271 UCHAR InstrumentationCallbackDisabled;
273 #else
274 UCHAR InstrumentationCallbackDisabled;
275 UCHAR SpareBytes[23];
277 #endif
278#elif (NTDDI_VERSION >= NTDDI_WIN7)
281#elif (NTDDI_VERSION >= NTDDI_VISTA)
284#elif (NTDDI_VERSION >= NTDDI_WS03SP1)
286#else
288#endif
289
305 ULONG LastStatusValue;
306#ifdef _STRUCT64
308#endif
310 WCHAR StaticUnicodeBuffer[261];
311#ifdef _STRUCT64
313#endif
320#if (NTDDI_VERSION >= NTDDI_WS03)
322#else
323 ULONG HardErrorsAreDisabled;
324#endif
325#ifdef _STRUCT64
327#endif
328#if (NTDDI_VERSION >= NTDDI_LONGHORN)
332#if (NTDDI_VERSION >= NTDDI_WIN8)
334#else
336#endif
338#elif (NTDDI_VERSION >= NTDDI_WS03)
342#else
344#endif
347#if (NTDDI_VERSION >= NTDDI_WIN7)
348 union
349 {
352 struct
353 {
357 UCHAR IdealProcessor;
358 };
359 };
360#elif (NTDDI_VERSION >= NTDDI_LONGHORN)
364 UCHAR IdealProcessor;
365#else
367 BOOLEAN FreeStackOnTermination;
369 UCHAR IdealProcessor;
370#endif
371#if (NTDDI_VERSION >= NTDDI_WS03)
372 ULONG GuaranteedStackBytes;
373#else
375#endif
376#ifdef _STRUCT64
378#endif
381 ULONG WaitingOnLoaderLock;
382#ifdef _STRUCT64
384#endif
385#if (NTDDI_VERSION >= NTDDI_LONGHORN)
387#if (NTDDI_VERSION >= NTDDI_WIN8)
389#else
391#endif
393#elif (NTDDI_VERSION >= NTDDI_WS03)
397#else
398 Wx86ThreadState Wx86Thread;
399#endif
401#ifdef _STRUCT64
404#endif
405#if (NTDDI_VERSION >= NTDDI_WIN10)
407#else
408 ULONG ImpersonationLocale;
409#endif
410 ULONG IsImpersonating;
413#if (NTDDI_VERSION >= NTDDI_WIN8)
414 USHORT HeapVirtualAffinity;
415 USHORT LowFragHeapDataSlot;
416#else
417 ULONG HeapVirtualAffinity;
418#endif
419#ifdef _STRUCT64
421#endif
424#if (NTDDI_VERSION >= NTDDI_WS03)
426#endif
427
428#if (NTDDI_VERSION >= NTDDI_LONGHORN)
432 ULONG MuiImpersonation;
433 union
434 {
436 struct
437 {
438 USHORT SpareCrossTebBits:16;
439 };
440 };
441 union
442 {
444 struct
445 {
446 USHORT DbgSafeThunkCall:1;
449 USHORT DbgSkipThreadAttach:1;
450 USHORT DbgWerInShipAssertCode:1;
451 USHORT DbgIssuedInitialBp:1;
453 USHORT SpareSameTebBits:9;
454 };
455 };
460#else
463#endif
464
465#if (NTDDI_VERSION >= NTDDI_WIN10)
467#elif (NTDDI_VERSION >= NTDDI_WIN7)
469#elif (NTDDI_VERSION >= NTDDI_LONGHORN)
470 ULONG ProcessRundown;
471#endif
472
473#if (NTDDI_VERSION >= NTDDI_WIN7)
475#elif (NTDDI_VERSION >= NTDDI_LONGHORN)
479#endif
480
481#if (NTDDI_VERSION >= NTDDI_WIN8)
483#endif
484
485#if (NTDDI_VERSION >= NTDDI_WIN10)
487 GUID EffectiveContainerId;
488#endif
489
_Inout_ PIRP _In_ NTSTATUS ExceptionCode
#define _SELECT3264(x32, x64)
_In_ PCEVENT_DESCRIPTOR _In_opt_ LPCGUID ActivityId
_Out_ PCLIENT_ID ClientId