This function executes "RDMSR" (Opcode : 0F 32) instruction with process affinity mask.
"RDMSR" : Loads the contents of a 64-bit model specific register (MSR) specified in an index register into registers EDX:EAX.
BOOL RdmsrPx(
DWORD index,
PDWORD eax,
PDWORD edx,
DWORD_PTR processAffinityMask
);
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.