29 #include "../../idlib/precompiled.h"
40 #define DLLEXPORT __declspec(dllexport)
48 #pragma data_seg (".mydata")
52 #pragma comment(linker, "/SECTION:.mydata,RWS") // tell linker: make it shared
63 KBDLLHOOKSTRUCT *pkh = (KBDLLHOOKSTRUCT *) lp;
65 if ( nCode == HC_ACTION ) {
66 BOOL bCtrlKeyDown = GetAsyncKeyState( VK_CONTROL)>>((
sizeof(SHORT) * 8) - 1 );
68 if ( ( pkh->vkCode == VK_ESCAPE && bCtrlKeyDown )
69 || ( pkh->vkCode == VK_TAB && pkh->flags & LLKHF_ALTDOWN )
70 || ( pkh->vkCode == VK_ESCAPE && pkh->flags & LLKHF_ALTDOWN )
71 || ( pkh->vkCode == VK_LWIN || pkh->vkCode == VK_RWIN )
74 if (
g_bBeep && ( wp == WM_SYSKEYDOWN || wp == WM_KEYDOWN ) ) {
LPCTSTR KEY_DisableTaskMgr
LPCTSTR VAL_DisableTaskMgr
BOOL AreTaskKeysDisabled()
LRESULT CALLBACK MyTaskKeyHookLL(int nCode, WPARAM wp, LPARAM lp)
void DisableTaskKeys(BOOL bDisable, BOOL bBeep, BOOL bTaskMgr)