IsProcessorFeaturePresent

The IsProcessorFeaturePresent function determines whether the specified processor feature is supported by at least one processor on the current machine.

BOOL IsProcessorFeaturePresent(
  DWORD ProcessorFeature  // specifies the processor feature
); 
 

Parameters

ProcessorFeature
Specifies the processor feature to be tested. This value can be one of the following:
Value Meaning
PF_FLOATING_POINT_PRECISION_
ERRATA
In rare circumstances, a floating-point precision error can occur (Pentium).
PF_FLOATING_POINT_EMULATED Floating-point operations are emulated using a software emulator.
PF_COMPARE_EXCHANGE_DOUBLE The compare and exchange double operation is available (Pentium, MIPS, and Alpha).
PF_MMX_INSTRUCTIONS_AVAILABLE The MMX instruction set is available.
PF_ALPHA_BYTE_INSTRUCTIONS Windows NT 5.0 and later: The Alpha byte load and byte store instructions are available.

Return Values

If at least one of the processors supports the feature, the return value is nonzero.

If no processor supports the feature, the return value is zero.

QuickInfo

  Windows NT: Requires version 4.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in winbase.h.
  Import Library: Use kernel32.lib.

See Also

System Information Overview, System Information Functions