microsoft/Detours
View on GitHub ↗ ★ 6,417 C++
Detours is a software package for monitoring and instrumenting API calls on Windows. It is distributed in source code form.
20 mentions on Hacker News by 19 people: 5 stories, 15 comments · first 2018-08-10 · latest 2026-08-30
20082026
-
…to a job object[2] set up to make Windows automatically kill them when the application closes. [1] https://github.com/microsoft/detours [2] https://learn.microsoft.com/en-us/windows/win32/procthread/j...
comment by jasomill · 2026-08-30 · in Indirect Calling of Nested Functions on GCC Without Executable Stack -
…for the accusation. Maybe I'm wrong and maybe that's why I'm getting the downvotes, so my bad. [1] https://github.com/microsoft/detours [2] https://learn.microsoft.com/en-us/windows/win32/api/debugapi...
comment by dvt · 2026-05-04 · in Microsoft Edge stores all passwords in memory in clear text, even when unused -
…DLLs as plugins, see, e.g., Microsoft's (unsupported) toolkit for runtime API interception: https://github.com/microsoft/Detours
comment by jasomill · 2024-11-10 · in Multiple new macOS sandbox escape vulnerabilities -
…tradition calls this “detoured”, from the quite popular Microsoft hack[1] that does it). [1] https://github.com/microsoft/Detours
comment by mananaysiempre · 2023-10-17 · in AMD's Anti-Lag feature is getting gamers banned from Counter-Strike 2 -
You essentially replace a function with your own. The project is at https://github.com/microsoft/Detours . I’ve created a PowerShell module that wraps this library to make it easier to hook functions on the fly for testing…
comment by jborean93 · 2023-09-13 · in Any sufficiently advanced uninstaller is indistinguishable from malware -
Oh yeah, sophisticated: https://github.com/microsoft/Detours/wiki/OverviewIntercepti...
comment by abainbridge · 2022-10-24 · in Debugging C with Cosmopolitan Libc -
…[2] https://github.com/microsoft/BuildXL/blob/master/Documentati... [3] https://github.com/microsoft/Detours/wiki [4] https://nixos.wiki/wiki/Nix_package_manager#Sandboxing
comment by colatkinson · 2022-08-07 · in Using Landlock to Sandbox GNU Make -
…no evidence of someone having invented it before. It sounds a little like they re-invented Detours. https://github.com/microsoft/Detours
comment by tptacek · 2022-05-20 · in Logging C Functions -
…[2] which I use as a template for my other projects. Maybe you will find it useful as well. [1] https://github.com/microsoft/Detours [2] https://github.com/lowleveldesign/takedetour
comment by lowleveldesign · 2022-04-20 · in Implementing Global Injection and Hooking in Windows -
…and start blocking hook DLLs with permission barriers, make this API patcher a kernel module. [1]: https://github.com/microsoft/detours
comment by drdaeman · 2021-12-16 · in Windows 11 Officially Shuts Down Firefox’s Default Browser Workaround -
Here is how to do it in Windows. https://www.microsoft.com/en-us/research/project/detours/ https://github.com/microsoft/Detours
comment by pjmlp · 2021-01-24 · in Brad Cox has died -
This is only tangentially related to your post, but it appears as though Detours is open-source! https://github.com/microsoft/detours
comment by DHowett · 2020-05-21 · in Ray tracing in notepad.exe at 30 FPS -
…be written specifically with Detours in mind Does it? I've almost (ie: haven't :P) used Detours but https://github.com/Microsoft/Detours/wiki/OverviewIntercepti... reads like it can rewrite standard function prologues.
comment by andrewf · 2019-02-19 · in LD_PRELOAD: The Hero We Need and Deserve -
For a Windows equivalent: https://github.com/Microsoft/Detours/wiki It's a bit more unwieldy to use, because it doesn't just replace all matching symbols (it's not how symbol lookup works for DLLs in Win32) - the injected DLL has to be…
comment by int_19h · 2019-02-18 · in LD_PRELOAD: The Hero We Need and Deserve -
…can find out which API calls it makes and can even use detours/trampolines to redirect such calls: https://github.com/Microsoft/Detours/wiki/Using-Detours At one point I wrote a little piece of software as a proof of concept that used…
comment by TimJYoung · 2018-11-20 · in The fundamentalist FOSS mentality