Exemple #1
0
HAPIHook::~HAPIHook()
{
	DeleteCriticalSection(&m_cs);
	if(g_hKBHook)
		StopHook();
	if(g_hMSHook)
		StopHook();
}
Exemple #2
0
/*
 * 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();
}