Originally posted by: Daniel Kumar
How can I hook an Interrupt systemwide? Whenever I hook an
Interrupt, it is limited to that program only. Is there any
way for hooking an Interrupt so that once it is hooked, all
programs should follow the new Interrupt Service Routine?
Please halp me in this.
Thanks,
Daniel
Originally posted by: harshal
how to know that ur keyboard is already hooked & to unhook that what to do
ReplyOriginally posted by: Vijay Kumar Taduri
hook.obj - 1 error(s), 0 warning(s)
Please send me Psapi.h and Psapi.lib!
i am getting complie error like this
----------
Compiling...
hook.cpp
C:\samples\HookDemo\hook\hookdll\hook.cpp(7) : fatal error C1083: Cannot open include file: 'Psapi.h': No such file or directory
Error executing cl.exe.
---------------
Thanks!
Vijay
Originally posted by: smilecat
I have invalidated the alt+esc and alt+tab hotkeys by WH_KEYBOARD_LL hook under windows 2000, but failed to invalidate the ctrl+alt+del hotkey. How can I do that?
Originally posted by: airman
i have looked up #pragma directive in msdn,i found it is not useful . please tell me its use and your idea.thanks
ReplyOriginally posted by: Mark Bidar
I noticed that if I click the remove button and then click
//
BOOL bRet = (true);
if(pData->g_hHook) // if the hook is defined
return bRet;
Thanks Volker Bartheld for the nice post.
the set again, I will get two characters in the log edit
box for every character I type. I further noticed that in
RemoveHook function, we are setting the hook handle to NULL
prior to calling UnhooWindowsHookEx. Any way, here is the
corrected version of RemoveHook:
// hook remove function
//
BOOL RemoveHook()
{
{
bRet = UnhookWindowsHookEx(pData->g_hHook);
pData->g_hWnd = NULL; // reset data
pData->g_hHook = NULL;
}
}
Originally posted by: Girish
Hello sir,
I am not getting psapi.h/.lib in my system and the program is showing the error regarding this.
Can you provide this?
Thanks
Girish
ReplyOriginally posted by: AQuan
Please send me Psapi.h and Psapi.lib!
complie error :LINK : fatal error LNK1104: cannot open file "Psapi.lib"!
Thanks!
AQuan!
Originally posted by: Kingwood Liu
hook.cpp
E:\Down Load\VC\HookDemo\hook\hookdll\hook.cpp(7) : fatal error C1083: Cannot open include file: 'Psapi.h': No such file or directory
Error executing cl.exe.
Originally posted by: Denis S.
Why file mapping? I think it would be easier to create shared data section to store g_hHook variable, etc using #pragma data_seg
Reply