Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
polyhook2/Detour/x64Detour.hpp
✓ #include <polyhook2/Detour/x64Detour.hpp>
Hook a function and redirect it to a detour.
#include <polyhook2/Detour/x64Detour.hpp>
#include <cstdio>
int target() { return 42; }
int detour() { return 0; }
int main() {
PLH::x64Detour detour((uint64_t)&target, (uint64_t)&detour);
detour.hook();
printf("%d\n", target()); // prints 0
detour.unHook();
return 0;
}
Upgrade
Version history
2025-06-21latest on vcpkg
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.