NKrdmsr (Windows CE 5.0)
This function puts the CPU into ring 0 if it is already there. It is a C wrapper function for the x86 RDMSR instruction.
This function is specific to x86 only.
BOOL NKrdmsr(DWORDdwAddr,DWORD*lpdwValHigh,DWORD*lpdwValLow);
Parameters
dwAddr
[in] Address of the MSR being read.lpdwValHigh
[in] Receives the upper 32 bits of value being read.This parameter can be NULL.
lpdwValLow
[in] Receives the lower 32 bits of value being read.This parameter can be NULL.
Return Values
Returns TRUE if the function succeeded, and FALSE if it failed.
Remarks
An MSR is a model-specific register.
All MSR-related information is specific to x86 only. MSRs are not supported on all x86 CPUs.
Note NKrdmsr does not check if the CPU supports MSRs and it does not check if the CPU supports the particular MSR address being read. The caller is responsible for checking if MSRs are supported using the x86 CPUID instruction to query CPU features. For information about MSR addresses, see the documentation for your particular CPU.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Msr.h.
Link Library: Coredll.lib.
See Also
Send Feedback on this topic to the authors