A CMake template for projects using MS Detours.
Contains demo projects and helpers.
- libdetours - a CMake wrapper for MS Detours
- Sample projects using Detours:
- project_tpl - a project demonstrating how the API interception works. Hooks and unhooks itself (function
MessageBoxA
). - hooking_dll_tpl - a Hooking DLL: performs hooking of the process where it was injected
- project_tpl - a project demonstrating how the API interception works. Hooks and unhooks itself (function
- Helpers:
- test_app - a sample app to be hooked by the Hooking DLL (for test purposes)
A DLL injector useful for testing is available here
Use recursive clone to get the repo together with the Detours submodule:
git clone --recursive https://github.com/hasherezade/detours_cmake_tpl.git