Detours is a software package for monitoring and instrumenting API calls on Windows.
The tool intercepts function calls at runtime by patching executable code, allowing developers to observe, modify, or redirect API behavior without changing source code. This approach works by inserting detour code that redirects execution to user-defined handlers before the original function runs, enabling deep inspection and manipulation of Windows API interactions.
Detours suits scenarios where runtime API monitoring is needed without recompilation, such as debugging, profiling, security analysis, or adding instrumentation to existing binaries. It is particularly valuable for developers working with legacy code or third-party libraries where source modification is impractical. The tool operates at the binary level on Windows, making it applicable to any executable that uses standard Windows APIs.
Development activity shows consistent engagement with the codebase. The project accepts community contributions through established processes and maintains responsiveness to issues raised by users. Code changes are reviewed and integrated regularly, indicating active stewardship of the repository.