These are chat archives for EasyHook/EasyHook

Nov 2016
Idan Freiberg
Nov 25 2016 15:36
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)
The exact error throw is from reloc.c:
THROW(STATUS_NOT_SUPPORTED, L"Hooking near conditional jumps is not supported.");