Hacker GitHub

← All repos

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

Mentions per year 20 mentions · busiest year 2018 (4)
20082026
  1. …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...
  2. …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...
  3. …DLLs as plugins, see, e.g., Microsoft's (unsupported) toolkit for runtime API interception: https://github.com/microsoft/Detours
  4. …tradition calls this “detoured”, from the quite popular Microsoft hack[1] that does it). [1] https://github.com/microsoft/Detours
  5. 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…
  6. Oh yeah, sophisticated: https://github.com/microsoft/Detours/wiki/OverviewIntercepti...
    comment by abainbridge · 2022-10-24 · in Debugging C with Cosmopolitan Libc
  7. …[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
  8. …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
  9. …[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
  10. …and start blocking hook DLLs with permission barriers, make this API patcher a kernel module. [1]: https://github.com/microsoft/detours
  11. 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
  12. 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
  13. …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
  14. 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
  15. …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