HAPIHook::~HAPIHook() { DeleteCriticalSection(&m_cs); if(g_hKBHook) StopHook(); if(g_hMSHook) StopHook(); }
/* * Stop the plugin. Calls stop_hook which can be over-ridden by the * derrived classes. * * @returns true if stopped sucessfully, false otherwise. */ bool Plugin::Stop() { if (!m_enabled) return false; bool ret = StopHook(); m_enabled = false; return ret; }
int CClientFiveChessApp::ExitInstance() { StopHook(); return CWinApp::ExitInstance(); }