This function executes "CPUID" (Opcode : 0F A2) instruction with thread affinity mask.
"CPUID" : Returns processor identification and feature information in the EAX, EBX, ECX, and EDX registers.
BOOL CpuidTx(
DWORD indexEax,
DWORD indexEcx,
PDWORD eax,
PDWORD ebx,
PDWORD ecx,
PDWORD edx,
DWORD_PTR threadAffinityMask
);
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.
You can check whether "CPUID" instruction is supported on your system with IsCpuid.