Can EasyHook be statically linked in.

May 24, 2012 at 12:30 AM

I'd like to statically link in EasyHook to avoid having to install EasyHook32.dll and EasyHook64.dll into the System32/ folder.  I noticed that there is an EasyHook32.Lib and an EasyHook64.lib, but i tried linking to it but I still get the error that I need to install EasyHook.dll because it could not be found.  Taking a look at the easyhook.h header file i can see that the DRIVER_SHARED_API macro is basically forcing the methods to be linked at run time.  Is there another header file that has these methods running in a static fashion?

May 24, 2012 at 7:02 PM

I guess I should search these forums instead of relying on stackoverflow forums so much :D.  I found a post or two dealing with my problem.

May 25, 2012 at 11:03 AM
Edited May 25, 2012 at 11:04 AM

If you need to make any changes to get it to work could you post a patch or list your changes?

Otherwise perhaps writing about the steps you had to take would be a great help so we can include it in the doco's when they get updated?