Takeshi Okamoto

Results 2 comments of Takeshi Okamoto

Yes, I know not only VirtualProtect but also VirtualProtectEx and NtProtectVirtualMemory cause stack overflow. My workaround is to use NtProtectVirtualMemory instead of VirtualProtect in Mhook_SetHook and Mhook_Unhook. And then, if...

I have tested hooking LdrLoadDll. But my code did not crash. My sample code is below. (Mhook is the original one: I don't modify anything.) ``` c #include #include "mhook-lib/mhook.h"...