Example #1
0
CHardwareMonitor::~CHardwareMonitor(void)
{
#ifdef WIN32
	ExitWMI();
#endif
	StopHardwareMonitor();
}
Example #2
0
bool CHardwareMonitor::StopHardware()
{
	if (m_thread!=NULL)
	{
		m_stoprequested = true;
		m_thread->join();
		m_thread.reset();
	}
#ifdef WIN32
	ExitWMI();
#endif
	m_bIsStarted = false;
	return true;
}