What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Global hooks

Global hooks
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
O.P. Global hooks
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.

This post was edited on 07-15-2004 at 09:44 PM by RaceProUK.
[Image: spartaafk.png]
07-15-2004 09:43 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
O.P. RE: Global hooks
No-one can help then?
[Image: spartaafk.png]
07-18-2004 12:51 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On