Detours is a software package for monitoring and instrumenting API calls on Windows. It is distributed in source code form.
Detours is a software package for monitoring and instrumenting API calls on Windows. It is distributed in source code form.
Detours is a software package for monitoring and instrumenting API calls on Windows. Detours has been used by many ISVs and is also used by product teams at Microsoft. Detours is now available under a standard open source license (MIT). This simplifies licensing for programmers using Detours and allows the community to support Detours using open source tools and processes.
Detours is compatible with the Windows NT family of operating systems: Windows NT, Windows XP, Windows Server 2003, Windows 7, Windows 8, Windows 10, and Windows 11. It cannot be used by Windows Store apps because Detours requires APIs not available to those applications. This repo contains the source code for version 4.0.1 of Detours.
For technical documentation on Detours, see the Detours Wiki. For directions on how to build and run samples, see the samples README.txt file.
The Detours repository is where development is done.
Here are some ways you can participate in the project:
Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
The detours-announce mailing list is a low-traffic email list for important announcements about the project, such as the availability of new versions of Detours. To join it, send an email to [email protected] with a message body containing only the text SUBSCRIBE DETOURS-ANNOUNCE. To leave it, send an email to [email protected] with a message body containing only the text UNSUBSCRIBE DETOURS-ANNOUNCE.
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
`detour_skip_jmp` for x64 doesn't support `rex.w` prefix
Windows 11 ARM64 Processor x86, x64 COM API Hook Crash.
x64 process crashed when run on arm64 os.
Returns ERROR_INVALID_BLOCK on large functions with __chkstk on it.
Can I safely unload DLL after the detach hook?
Why not release a new version?
DetourCreateProcessWithDllExW failed to create a process
Improve failure mode if `DetourCreateProcessWithDllEx` is supplied with a DLL of wrong bitness
What is the future of Detours' versioning plans?
On WoA, x86 process failed to inject x64 libraries to x64 process