ReadMsr function (wdbgexts.h)
The ReadMsr function reads the contents of a Model-Specific Register (MSR).
Syntax
void ReadMsr(
ULONG MsrReg,
ULONGLONG *MsrValue
);
Parameters
MsrReg
Specifies the ID number of the MSR.
MsrValue
Receives the value of the MSR.
Return value
None
Remarks
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).
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | wdbgexts.h (include Wdbgexts.h, Dbgeng.h) |