IsProcessorFeaturePresent function (processthreadsapi.h)
Determines whether the specified processor feature is supported by the current computer.
Syntax
BOOL IsProcessorFeaturePresent(
[in] DWORD ProcessorFeature
);
Parameters
[in] ProcessorFeature
The processor feature to be tested. This parameter can be one of the following values.
Value | Meaning |
---|---|
|
The 64-bit load/store atomic instructions are available. |
|
The divide instructions are available. |
|
The external cache is available. |
|
The floating-point multiply-accumulate instruction is available. |
|
The VFP/Neon: 32 x 64bit register bank is present. This flag has the same meaning as PF_ARM_VFP_EXTENDED_REGISTERS. |
|
The 3D-Now instruction set is available. |
|
The processor channels are enabled. |
|
The atomic compare and exchange operation (cmpxchg) is available. |
|
The atomic compare and exchange 128-bit operation (cmpxchg16b) is available.
Windows Server 2003 and Windows XP/2000: This feature is not supported. |
|
The atomic compare 64 and exchange 128-bit operation (cmp8xchg16) is available.
Windows Server 2003 and Windows XP/2000: This feature is not supported. |
|
_fastfail() is available. |
|
Floating-point operations are emulated using a software emulator.
This function returns a nonzero value if floating-point operations are emulated; otherwise, it returns zero. |
|
On a Pentium, a floating-point precision error can occur in rare circumstances. |
|
The MMX instruction set is available. |
|
Data execution prevention is enabled. Windows XP/2000: This feature is not supported until Windows XP with SP2 and Windows Server 2003 with SP1. |
|
The processor is PAE-enabled. For more information, see
Physical Address Extension.
All x64 processors always return a nonzero value for this feature. |
|
The RDTSC instruction is available. |
|
RDFSBASE, RDGSBASE, WRFSBASE, and WRGSBASE instructions are available. |
|
Second Level Address Translation is supported by the hardware. |
|
The SSE3 instruction set is available.
Windows Server 2003 and Windows XP/2000: This feature is not supported. |
|
Virtualization is enabled in the firmware and made available by the operating system. |
|
The SSE instruction set is available. |
|
The SSE2 instruction set is available.
Windows 2000: This feature is not supported. |
|
The processor implements the XSAVE and XRSTOR instructions.
Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP/2000: This feature is not supported until Windows 7 and Windows Server 2008 R2. |
|
This ARM processor implements the ARM v8 instructions set. |
|
This ARM processor implements the ARM v8 extra cryptographic instructions (i.e. AES, SHA1 and SHA2). |
|
This ARM processor implements the ARM v8 extra CRC32 instructions. |
|
This ARM processor implements the ARM v8.1 atomic instructions (e.g. CAS, SWP). |
Return value
If the feature is supported, the return value is a nonzero value.
If the feature is not supported, the return value is zero.
If the HAL does not support detection of the feature, whether or not the hardware supports the feature, the return value is also zero.
Requirements
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | processthreadsapi.h (include Windows.h) |
Library | Kernel32.lib |
DLL | Kernel32.dll |