Here's a very bare bone demonstration of detouring a function with the Rust programming language
Sample which demonstrate that a detour concept with Rust is feasible - wakfy/rust-detour
A cross-platform detour library written in Rust. Contribute to darfink/detour-rs development by creating an account on GitHub.
Detours is a software package for monitoring and instrumenting API calls on Windows. It is distributed in source code form. - microsoft/Detours