RdmsrTx

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.

Syntax

BOOL RdmsrTx(
    DWORD index,
    PDWORD eax,
    PDWORD edx,
    DWORD_PTR threadAffinityMask
);

Parameters

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

Remarks

You can check whether "RDMSR" instruction is supported on your system with IsMsr.

Requirements