target process crashing at easyhook32.dll!LhBarrierGetCallback

Nov 5, 2012 at 6:21 PM
Edited Nov 5, 2012 at 6:21 PM


First I wanted to say thanks for the project. This is my first foray into Windows programming and this project has made it an easier transition.

I am  currently hooking another process that calls into shell32.dll Shell_NotifyIcon. The hook seems to be working properly in that my c# method is called.

In the method I return true without passing the call to the actual shell32 library. However, after 2 calls ( First the app sets the version, then it calls to set the icon ), the target process crashes.

Looking at windbg, the last thread in the stack is easyhook32.dll!LhBarrierGetCallback . Any ideas what could be causing the crash?


Nov 12, 2012 at 11:42 PM

You want to be calling the original API (the actual shell32 library) instead of just returning true.