Circle...

P

pigeonrandle

....as in i seem to be going round in one. It's frustratingly small
aswell!

All i want to do is create a message hook (like the one SPY++ uses) so
i can watch a window (for which i already have the handle) for certain
messages. All the examples i have looked at seem only interested in
hooking mouse and keyboard events (when i want to capture window
messages like WM_MOVE and alike). WH_CBT looks like a good option but i
cannot find any examples ... just like this poor chap ...
http://www.mcse.ms/archive103-2006-2-2136142.html !

If anyone has created something like this in the past then their input
will be held in extremely high regard!

One thousand and twenty four thankyous
James Randle.
 
C

Chris Dunaway

pigeonrandle said:
All i want to do is create a message hook (like the one SPY++ uses) so
i can watch a window (for which i already have the handle) for certain
messages. All the examples i have looked at seem only interested in

Try this link:

http://www.codeproject.com/csharp/GlobalSystemHook.asp

Here's another link. There is a section on message hooks. It should
give you some ideas.

http://msdn.microsoft.com/msdnmag/issues/06/04/ManagedSpy/

And finally the docs for SetWindowsHookEx:

http://tinyurl.com/ojqhf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top