Debugging Tools for Windows

ReadMsr

The ReadMsr function reads the contents of a Model-Specific Register (MSR).

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

Requirements

Headers: Defined in wdbgexts.h. 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).

Build machine: CAPEBUILD