Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

hooking to flashwindow in vb.net

I just started messing around with API's yesterday. So far things have come easy, well until trying to learn hooking. I have a pretty good grasp on it, I just need to know which hook to use to find when a flashwindow msg is sent to a window.

For my expiremental app I am making a msn mesenger notifier. The app scans for open messages ands makes a list of hwnd's for each of the conversations, now how can I place a hook on them to intercept the flashwindow command that is sent to them when a conversation receives a new message? I'm thinking something like this, only probably more complicated

if hookWH_CALLWNDPROC.message = FlashWindow then
'do stuff
endif

I just need to know which hook type, like WH_CALLWNDPROC, will pop when the flashwindow api is used and can somehow identify the hwnd of the receiving window so I may check to see if it is one of the monitored conversations.

Josh K
[956 byte] By [JoshK] at [2007-11-11 8:48:15]