Expand Minimize

RtlGetEnabledExtendedFeatures routine

The RtlGetEnabledExtendedFeatures routine returns a mask of extended processor features that are enabled by the system.

Syntax


ULONG64 RtlGetEnabledExtendedFeatures(
  _In_  ULONG64 FeatureMask
);

Parameters

FeatureMask [in]

A 64-bit feature mask. This parameter indicates a set of extended processor features for which the caller requests information about whether the features are enabled. If a mask bit is one, the caller requests information about the feature that corresponds to this mask bit. The caller sets all other mask bits to zero. Set this parameter to (ULONG64)(-1) to get the mask of all enabled features. To determine whether a particular set of features is enabled, set this parameter to the bitwise OR of one or more of the following XSTATE_MASK_XXX flag bits:

  • XSTATE_MASK_LEGACY_FLOATING_POINT

  • XSTATE_MASK_LEGACY_SSE

  • XSTATE_MASK_GSSE

Return value

RtlGetEnabledExtendedFeatures returns a 64-bitmask of enabled extended processor features. The routine calculates this mask as the intersection (bitwise AND) between all enabled features and the value of the FeatureMask parameter. For more information about the features that are indicated by this return value, see XSTATE_MASK_XXX.

Remarks

Another routine, ExIsProcessorFeaturePresent, indicates whether an extended processor feature is available. Unlike RtlGetEnabledExtendedFeatures, however, it does not indicate whether the operating system has enabled the feature for use by kernel-mode drivers.

Requirements

Version

Available in Windows 7 and later versions of the Windows operating system.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL

See also

ExIsProcessorFeaturePresent
XSTATE_MASK_XXX

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft