Wrmsr

This function executes "WRMSR" (Opcode : 0F 30) instruction.

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

Syntax

BOOL Wrmsr(
    DWORD index,
    DWORD eax,
    DWORD edx
);

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