WriteMsr function (wdbgexts.h)

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

Syntax

void WriteMsr(
  [in] ULONG     MsrReg,
  [in] ULONGLONG MsrValue
);

Parameters

[in] MsrReg

Specifies the ID number of the MSR.

[in] 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

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