Answered by:
Hooks and the Hook Chain

Question
-
Hi,
First off apologies if this is in the wrong forum - moderators feel free to move it if it is, or ask me to repost somewhere else.
Now, my actual question is as follows.
If I understand correctly by initiating a hook using SetWindowsHookEx then my hook will be added to the start of the hook chain? And it follows that if another application initiated it's own hook it would be added above me in the hook chain? What I want to know is if it is possible to ensure that my hook is always highest (i.e. always has to pass the data down the chain using CallNextHookEx) in the hook chain.
Hope this makes sense.
Thanks
George
Answers
-
George,
You would probably get better answers from a Win32 forum, or possibly a C++ forum, this is about architecture, and so there are probably very few who would still work on that sort of code.
I did that sort ofthing in the past, but I could only say that it sounds right, I couldn't say for sure, so best ask the experts!
Cheers,
Martin.
All replies
-
George,
You would probably get better answers from a Win32 forum, or possibly a C++ forum, this is about architecture, and so there are probably very few who would still work on that sort of code.
I did that sort ofthing in the past, but I could only say that it sounds right, I couldn't say for sure, so best ask the experts!
Cheers,
Martin.
-
-
-
-