For example, I'm hooking two functions (funcA and funcB) in two different modules. Originally, funcA internally calls funcB. Will be my hook for funcB called when I'm in the hook for funcA and executing nextFuncA?
Hope, my description is clear
Nested calls
Re: Nested calls
Yes, it will work just fine. madCodeHook has a fully automatic hook queue. Calling "nextFuncA" always automatically calls the next hook in the chain. Only the last call to "nextFuncA" in the hook chain will call the original function.
Re: Nested calls
I'm monitoring API calls with "API monitor". I shows that funcA calls funcB. This is ok and expected. When I close "API monitor" and start my application and funcA calls funcB, then my hook is executed for funcA only.
If funcB will be called outside funcA, then a hook for funcB will be executed without any problems.
If funcB will be called outside funcA, then a hook for funcB will be executed without any problems.
Re: Nested calls
Show me your code, please.
Re: Nested calls
Sorry, this is my mistake. Two modules export identical function. I've got mixed up with it.