Shoutbox

ollydbg hooking window messages - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: ollydbg hooking window messages (/showthread.php?tid=75571)

ollydbg hooking window messages by effection on 06-24-2007 at 12:17 AM

I would like to be able to see/set break points on certain conditions for wlm but i'm not sure how with olly although i've herd you can. I know i can view them with Spy++ but i'd like to trace them.


RE: ollydbg hooking window messages by deAd on 06-24-2007 at 01:37 AM

You can set a conditional breakpoint (Shift+F2). A quick google search should give you some information about the conditions :)


RE: ollydbg hooking window messages by effection on 06-24-2007 at 11:20 AM

what should i set it on though? SendMessageW and PostMessage? or is there any way i can set it on the message handler?


RE: ollydbg hooking window messages by deAd on 06-24-2007 at 03:13 PM

You can either set it on SendMessage/PostMessage (which will filter the message for all windows) or set it on the message handler (which will filter for only specific windows).

To find the message handler for a window, open Spy++ (not at the same time as OllyDbg or you'll get a system hang :p) and locate the window you'd like to watch. Then look in the properties, and the address of the message handler function will be shown. The condition will be something like:

code:
[EBP+8] == ___
(I'm not sure that it's +8, and the message number needs to be in hex)
RE: ollydbg hooking window messages by effection on 06-25-2007 at 12:18 PM

thank you :)