Skip to content

Latest commit

 

History

History
60 lines (51 loc) · 2.14 KB

nf-winbase-getthreadenabledxstatefeatures.md

File metadata and controls

60 lines (51 loc) · 2.14 KB
UID tech.root title description ms.date targetos req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NF:winbase.GetThreadEnabledXStateFeatures
GetThreadEnabledXStateFeatures
The GetThreadEnabledXStateFeatures function returns the set of XState features that are currently enabled for the current thread.
08/04/2022
Windows
function
winbase.h
Windows 11
Windows Server 2022
apiref
HeaderDef
winbase.h
GetThreadEnabledXStateFeatures
GetThreadEnabledXStateFeatures
winbase/GetThreadEnabledXStateFeatures
c++

-description

This function returns the set of XState features that are currently enabled for the current thread.

-returns

The return value is a bitmask in which each bit represents an XState feature that is currently enabled for the current thread.

-remarks

This function is related to GetEnabledXStateFeatures, which returns the set of XState features enabled in the system. Prior to the introduction of optional XState features, the set of enabled XState features is the same for every thread in the system because all supported features are always enabled, thus the result returned from GetEnabledXStateFeatures and this function are identical. With optional XState features, it is possible for optional XState features to be disabled by default for newly created threads and enabled on demand later. Optional XState features that are currently disabled for the current thread will not be returned by this function, but will still be returned by GetEnabledXStateFeatures.

-see-also

GetEnabledXStateFeatures

EnableProcessOptionalXStateFeatures