Detours is a software package for monitoring and instrumenting API calls on Windows. It is distributed in source code form.
Run the following Vcpkg command to install the port.
vcpkg install detours
detours can be used from CMake via:
find_path(DETOURS_INCLUDE_DIRS "detours/detours.h") find_library(DETOURS_LIBRARY detours REQUIRED) target_include_directories(main PRIVATE ${DETOURS_INCLUDE_DIRS}) target_link_libraries(main PRIVATE ${DETOURS_LIBRARY})
v2025-06-20#0
Mar 18, 2026
windows & !uwp
microsoft/Detours6.3K
github.com/microsoft/Detours
5becb67cb8
MIT
Manifest