#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* Windows 11 24H2 shared-page XSTATE configuration, independent of the installed SDK.
* The 24H2 kernel and ntdll layout occupies 0x348 bytes. Newer SDKs
* enlarge XSTATE_CONFIGURATION, which must not shift the trailing KUSER fields
* when PHNT_VERSION explicitly targets PHNT_WINDOWS_11_24H2.
* Feature arrays are indexed by XSTATE feature number (64 entries).
*/
typedef struct _XSTATE_CONFIGURATION_24H2
{
ULONG64 EnabledFeatures;
ULONG64 EnabledVolatileFeatures;
ULONG Size;
union
{
ULONG ControlFlags;
struct
{
ULONG OptimizedSave : 1;
ULONG CompactionEnabled : 1;
ULONG ExtendedFeatureDisable : 1;
ULONG ReservedControlFlags : 29;
} DUMMYSTRUCTNAME;
} DUMMYUNIONNAME;
XSTATE_FEATURE Features[64];
ULONG64 EnabledSupervisorFeatures;
ULONG64 AlignedFeatures;
ULONG AllFeatureSize;
ULONG AllFeatures[64];
ULONG64 EnabledUserVisibleSupervisorFeatures;
ULONG64 ExtendedFeatureDisableFeatures;
ULONG AllNonLargeFeatureSize;
USHORT MaxSveVectorLength;
USHORT Spare1;
} XSTATE_CONFIGURATION_24H2, *PXSTATE_CONFIGURATION_24H2;
View code on GitHubNo description available.