2010-03-26 42 views
1

我用鉤子過濾功能過濾HKEYS,我使用下面的代碼來禁用Alt + Tab鍵,Alt + Esc鍵,按Ctrl + Esc鍵,Windows鍵鉤過濾Keybords HKEYS問題在C

if (((lParam.vkCode == 9) && (lParam.flags == 32))|| 
    ((lParam.vkCode == 27) && (lParam.flags == 32))|| 
    ((lParam.vkCode == 27) && (lParam.flags == 0)) || 
    ((lParam.vkCode == 91) && (lParam.flags == 1)) || 
    ((lParam.vkCode == 92) && (lParam.flags == 1)) || 
    ((true) && (lParam.flags == 32))) 

    return 1; 

燦任何一個告訴我如何禁用Ctrl + Alt + Del?我已經嘗試了很多過濾器,但對我來說不成功。

+1

複製http://stackoverflow.com/questions/886076/how-can-i-intercept-all-key-events-including-ctrlaltdel-and-ctrltab – caf 2010-03-26 11:07:26

回答

1

我有我自己的問題,按CTRL + ALT + DEL不能從鉤過濾掉,只有這樣,才能禁用CTRL + ALT + DEL的答案是修改註冊表形成你的代碼..