Debugging Tools for Windows

WriteMsr

The WriteMsr method writes a value to the specified Model-Specific Register (MSR).

HRESULT
  IDebugDataSpaces::WriteMsr(
    IN ULONG  Msr,
    IN ULONG64  Value
    );

Parameters

Msr
Specifies the MSR address.
Value
Specifies the value to write to the MSR.

Return Value

S_OK
The method was successful.

This method can also return error values. See Return Values for more details.

Interface Version

WriteMsr is available in all versions of IDebugDataSpaces.

Comments

This method is only available in kernel-mode debugging.

For details on the addresses and values of MSRs, see the processor documentation.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

Build machine: CAPEBUILD