Shoutbox

Global hooks - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Global hooks (/showthread.php?tid=28728)

Global hooks by RaceProUK on 07-15-2004 at 09:43 PM

I'm trying to set up a global hook for a plugin. I am using the following call:

code:
HMODULE handle = (HMODULE)GetModuleHandle("QuickAway.dll");
retVal = SetWindowsHookEx(WH_KEYBOARD, SetStatus, handle, 0);
All the code, including the hook installation and callback function, are in QuickAway.dll.

So far, I have got the hook working, just so long as the Messenger window doesn't lose the focus. Once it does that, the plugin stops working, even when the focus returns to the Messenger window.

Is there something I'm doing wrong? If so, how do I correct it?
The rest of the code works as intended: it's just this hook.
RE: Global hooks by RaceProUK on 07-18-2004 at 12:51 PM

No-one can help then?