devoured_elysium
August 26th, 2008, 10:06 AM
Hello
I'm using EasyHook ( http://www.codeproject.com/KB/dotnet/EasyHook64.aspx ) to do dll injection into wordpad. Everything with the dll injection seems working fine. Now, I'd like to monitor all the messages wordpad is receiving, just like Spy++ and WinSpy do, task for which I thought hooking GetMessage would be enough. To my surprise, instead of getting hundreds of messages as I move my mouse through wordpad, it just pops up 2 or 3 when I go to the File menu, and click Save As. What am I doing wrong here? The hooking procedure itself seems to be working ok, as I've tried hooking the Beep command in another program and it worked well and so! Instead of hooking GetMessage(), should I hook another method? Thanks!
I'm using EasyHook ( http://www.codeproject.com/KB/dotnet/EasyHook64.aspx ) to do dll injection into wordpad. Everything with the dll injection seems working fine. Now, I'd like to monitor all the messages wordpad is receiving, just like Spy++ and WinSpy do, task for which I thought hooking GetMessage would be enough. To my surprise, instead of getting hundreds of messages as I move my mouse through wordpad, it just pops up 2 or 3 when I go to the File menu, and click Save As. What am I doing wrong here? The hooking procedure itself seems to be working ok, as I've tried hooking the Beep command in another program and it worked well and so! Instead of hooking GetMessage(), should I hook another method? Thanks!