PDA

Click to See Complete Forum and Search --> : Custom Event?


Thalgor
Nov 14th, 2001, 02:18 PM
I'm trying to figure out how to hook to a window's message queue and capture (or be called back by) the LVM_INSERTITEM message. I would like to make this an event (install hook, go on with the app's life, and come back when this is called to this particular app I'm monitoring), but as it is, I'm a hooks newbie and just don't seem to be able to capture ANY messages off this app. Any good tutorials, or has anyone done this before?

mlewis
Nov 14th, 2001, 06:09 PM
msdn.microsoft.com

Search for Hook, learn what you can.

Megatron
Nov 14th, 2001, 06:56 PM
If you want to capture the message before it's sent to the window's queue, I would suggest you use WH_CALLWNDPROC, otherwise, use WH_GETMESSAGE to catch it when it enters the queue.