// wdbgexts.h
VOID WriteMsr(
[in] ULONG MsrReg,
[in] ULONGLONG MsrValue
);
View the official Windows Driver Kit DDI referenceNo description available.
The WriteMsr function writes to a Model-Specific Register (MSR).
MsrReg [in]Specifies the ID number of the MSR.
MsrValue [in]Specifies the new value of the MSR.
For a WdbgExts extension, include wdbgexts.h. For a DbgEng extension, include wdbgexts.h before dbgeng.h. See Writing DbgEng Extension Code for details.