Getting STATUS_NOT_SUPPORTED from LhInstallHook

Sep 23, 2009 at 9:44 AM

I have a project that uses unmanaged easyhook APIs to intercept WinINet API calls.  In most of my test environments it works, but in a few I am getting STATUS_NOT_SUPPORTED errors from LhInstallHook().  I was wondering if you can shed a little more light on what the error means?  Is it because of the memory address of where my hooked functions (wininet.dll) are loaded?  Is there anything I can do to try and force the DLL to be loaded into a memory address that would be accessible?

I am using  version 2.6 of the EasyHook library with Visual Studio 2008 on Windows XP and Windows Vista.

Thanks

Coordinator
Sep 24, 2009 at 3:46 PM

STATUS_NOT_SUPPORTED usually indicates that the target machine code is simply not hookable with EasyHook. This may happen if it is not relocatable.

Dec 19, 2011 at 6:47 AM

I met the same question, when I hook GetProAddress in 64 bit win7, but call LhInstallHook in 32 bit win7 is ok. Can you tell me how do you soulve this problem, finally. thanks!