// Read a model specific register // Returns: the register value. if this function fails, // an exception with the error code is raised // Note: this function works only in the kernel mode
int64 read_msr(long reg_id);
// Write a model specific register // Returns: windows error code (0-ok) // Note: this function works only in the kernel mode