I always used this following custom code to api hook (inline hook method), and is working fine in pratically all Windows versions x64, except in newest Windows 10 versions like build 18362 and highter. What’s necessary to fix it? void* DetourFunction64(void* pSource, void* pDestination, int dwLen) { DWORD MinLen = 14; if (dwLen < MinLen) ..
Category : api-hook
Windows API hooking using Detours Can someone please provide me a C++ code that uses MS Detours to hook a CreateProcess() function only when it is called with a CREATE_SUSPENDED flag. CreateProcess(NULL, // No module name (use command line) argv[1], // Command line NULL, // Process handle not inheritable NULL, // Thread handle not inheritable ..
Recent Comments