Processor Counter Monitor
Public Member Functions | Static Public Member Functions | List of all members
pcm::Driver Class Reference

Manage custom Windows MSR (Model Specific Register) Driver The driver is required to access hardware Model Specific Registers (MSRs) under Windows. Currently only 64-bit Windows 7 has been tested. More...

#include <windriver.h>

Public Member Functions

 Driver (const tstring &driverPath)
 
 Driver (const tstring &driverPath, const tstring &driverName, const tstring &driverDescription)
 
const tstring & driverPath () const
 
bool start ()
 Installs and loads the driver. More...
 
void stop ()
 Stop and unload the driver.
 
void uninstall ()
 Uninstall the driver. More...
 

Static Public Member Functions

static tstring msrLocalPath ()
 

Detailed Description

Manage custom Windows MSR (Model Specific Register) Driver The driver is required to access hardware Model Specific Registers (MSRs) under Windows. Currently only 64-bit Windows 7 has been tested.

Member Function Documentation

◆ start()

bool pcm::Driver::start ( void  )
inline

Installs and loads the driver.

Installs the driver if not installed and then loads it.

Parameters
driverPathfull path to the driver
Returns
true iff driver start up was successful

References pcm::PCM::initWinRing0Lib().

◆ uninstall()

void pcm::Driver::uninstall ( )
inline

Uninstall the driver.

Uninstalls the driver. For successeful uninstallation you need to reboot the system after calling this method.


The documentation for this class was generated from the following file: