How do I detect calls made to the USER32.dll by other applications but my own
Posted on 2003-10-30
If I wanted to detect calls made to the User32.dll by another application, how would I do this?
Lets say I am waiting for a specific call to the dll but do not know from where it would come.
If this API call is directed at this dll I want to be able to listen for calls like the CallNextHookEx or the FindWindow call.
If this call is made I want to be able to catch it before the dll reacts to it. If I catch it I want to be able to kill this call and not allow it to go through.
I know that I have to create a hook but I there is anyone out there that can use an example of how this is to be done I would be ever so happy!!