Nested LoadLibrary calls

Sep 25, 2009 at 12:09 PM

Hello All,

I've successfully intercepted LoadLibrary but facing a problem with nested LoadLibrary calls.

When loaded DLL(through intercepted hook) tries to load any dependent DLLs, LoadLibrary calls do not get intercepted by my hook and LoadLibrary call is called directly.

Can anybody instruct me how to accomplish this?

Thanks. Any help is highly appreciated.

Sep 25, 2009 at 2:44 PM

It is a hard one.  The "Thread Deadlock Barrier" technique regards any nested call as original API call.  I guess some modifications of the easyhook.dll is required to achieve.  I am not sure.  Chris, what do you think?