PolyHook
PolyHook copied to clipboard
x86/x64 C++ Hooking Library
Hi, I am wondering how to hook variadic function. For example `int printf(char const* const format, ...)` in the standard library or `VALUE rb_funcall(VALUE, ID, int, ...)` in the ruby...
Multiple detour hooks on the same function will crash, this may be fixed in a future update
Because of the 0x1000 minimal page size the PAGE_GUARD flag will silently fall off if anything near the hook gets touched and the lib doesn't do anything to stop it....
Would be good to have a DLL to be able to pinvoke it from c# or better a nuget with a c# wrapper in place
Are there any plans for other cpu types, specifically Intel 960 MPC 8245 (PowerPC) P2041 (PowerPC) Regards, Even
if code is relocated greater than the max displacement size of the operand then relocation will fail, this case is currently not handled. Ex: if relocation is >2GB 32bit instructions...