WriteMsr function

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

Syntax

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

Remarks

For a WdbgExts extension, include wdbgexts.h. For a DbgEng extension, include wdbgexts.h before dbgeng.h. See Writing DbgEng Extension Code for details.

Requirements

   
Target Platform Desktop
Header wdbgexts.h (include Wdbgexts.h, Dbgeng.h)