#include
為奉節(jié)等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計制作服務(wù),及奉節(jié)網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為做網(wǎng)站、網(wǎng)站設(shè)計、奉節(jié)網(wǎng)站設(shè)計,以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達到每一位用戶的要求,就會得到認可,從而選擇與我們長期合作。這樣,我們也可以走得更遠!
HHOOK g_hKeyBoard;
//底層鍵盤系統(tǒng)調(diào)用,過濾alt + tab
LRESULT CALLBACK KeyBoardProc(int code, WPARAM wParam, LPARAM lParam)
{
if (code == HC_ACTION)
{
PKBDLLHOOKSTRUCT p;
switch (wParam)
{
case WM_KEYDOWN:
case WM_SYSKEYDOWN:
case WM_KEYUP:
case WM_SYSKEYUP:
p = (PKBDLLHOOKSTRUCT)lParam;
if ((p->vkCode == VK_TAB) && ((p->flags & LLKHF_ALTDOWN) != 0) )
{
return 1;
}
break;
}
}
return ::CallNextHookEx(g_hKeyBoard, code, wParam, lParam);
}
//注冊全局hook
void SetHook()
{
g_hKeyBoard = SetWindowsHookEx(WH_KEYBOARD_LL, KeyBoardProc, GetModuleHandle(L"Hook"), 0);
}
//注銷全局hook
void UnSetHook()
{
if (g_hKeyBoard)
UnhookWindowsHookEx(g_hKeyBoard);
g_hKeyBoard = NULL;
}