none
Hooks and the Hook Chain RRS feed

  • 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
    Wednesday, April 9, 2008 12:00 AM

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.

    Wednesday, April 9, 2008 1:40 AM

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.

    Wednesday, April 9, 2008 1:40 AM
  • Thanks,
    Have reposted on Visual C++ Language - hope that was the right thing to do.

    George
    Wednesday, April 9, 2008 1:53 AM
  • George,

     

    I'm sure that you'll get a better response there.

     

    Good luck!

     

    Martin.

     

    Wednesday, April 9, 2008 2:53 AM
  • hello
    Friday, June 15, 2012 11:26 PM
  • ok do it
    Friday, June 15, 2012 11:27 PM