These are chat archives for EasyHook/EasyHook

25th
Nov 2016
Idan Freiberg
@speidy
Nov 25 2016 15:36
Hello,
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.");