I'm trying to write a simple dll with easy hook linked as a static lib.
I want my dll to set a hook on some API functions (imported from wstsapi32.dll) using AppInit_Dll mechanism in Windows 10 1607. Now I get an error "cannot hook far proc" from easy hook , after calling LhInstallHook.
Can anyone help me understand if this is actually doable?
I know that appinit_dlls loaded very early on process start (along with user32.dll)