This function executes "RDMSR" (Opcode : 0F 32) instruction with thread affinity mask.
"RDMSR" : Loads the contents of a 64-bit model specific register (MSR) specified in an index register into registers EDX:EAX.
BOOL RdmsrTx(
DWORD index,
PDWORD eax,
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 "RDMSR" instruction is supported on your system with IsMsr.