WrmsrTx

This function executes "WRMSR" (Opcode : 0F 30) instruction with thread affinity mask.

"WRMSR" : Writes the contents of registers EDX:EAX into the 64-bit model specific register (MSR) specified by the ECX register.

Syntax

BOOL WrmsrTx(
    DWORD index,
    DWORD eax,
    DWORD 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 "WRMSR" instruction is supported on your system with IsMsr.

Requirements