Exemplo n.º 1
0
HAPIHook::~HAPIHook()
{
	DeleteCriticalSection(&m_cs);
	if(g_hKBHook)
		StopHook();
	if(g_hMSHook)
		StopHook();
}
Exemplo n.º 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;
}
Exemplo n.º 3
0
int CClientFiveChessApp::ExitInstance() 
{

	StopHook();		
	return CWinApp::ExitInstance();
}