Debugging Tools for Windows

WriteMsr

The WriteMsr function writes to a Model-Specific Register (MSR).

VOID 
  WriteMsr (
    ULONG MsrReg,
    ULONGLONG MsrValue
    );

Parameters

MsrReg
Specifies the ID number of the MSR.
MsrValue
Specifies the new value of the MSR.

Return Value

None

Requirements

Headers: Defined in wdbgexts.h. If you are writing a WdbgExts extension, include wdbgexts.h. If you are writing a DbgEng extension that calls this function, include wdbgexts.h before dbgeng.h (see Writing DbgEng Extension Code for details).

Build machine: CAPEBUILD