/detours_cmake_tpl

A CMake template for projects using MS Detours

Primary LanguageCMake

Detours CMake template

Build status

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
  • Helpers:

A DLL injector useful for testing is available here

Clone:

Use recursive clone to get the repo together with the Detours submodule:

git clone --recursive https://github.com/hasherezade/detours_cmake_tpl.git