www.pudn.com > FileGuard.zip > KHotKey.cpp


// KHotKey.cpp: implementation of the KHotKey class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#include "stdafx.h" 
#include "KHotKey.h" 
 
////////////////////////////////////////////////////////////////////// 
// Construction/Destruction 
////////////////////////////////////////////////////////////////////// 
 
//Receive hot key Ctrl+Alt+P 
KHotKey::KHotKey() : VHotKey(P_SCAN, SCAN_NORMAL, HKSS_CtrlAlt, CallOnPress) 
{ 
} 
 
KHotKey::~KHotKey() 
{ 
 
} 
 
void KHotKey::handler(BYTE scan, keyAction_t keyEvent, DWORD shift, PVOID refData, DWORD elapased) 
{ 
	if(!hAppWnd) 
		return; 
 
	SHELL_PostMessage(hAppWnd, SM_SHOW_WINDOW, 0, 0, 0, 0); 
 
	reflectToVM(Get_Cur_VM_Handle(), shift); 
}