WriteMsr - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdbgexts.h

VOID WriteMsr(
  [in] ULONG     MsrReg,
  [in] ULONGLONG MsrValue
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdbgexts-writemsr)

WriteMsr function

Description

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

Parameters

MsrReg [in]

Specifies the ID number of the MSR.

MsrValue [in]

Specifies the new value of the MSR.

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.