TL;DR: I've shipped hooks with different libs before. I even
wrote own hooks in assembly, expected the usual C++ headache, and instead found neohook (v0.11.0) a Rust crate that does inline hooks, trampolines, mid-function hooks and more,
I disassembled what it produces to make sure it wasn't cheating. It wasn't. It's now the only hooking library I reach for and because it ships a C ABI, I use it from C, C++ and Python too.
How I got here
I wanted to intercept a function call inside a running Windows process, run my own code, and still let the original do its thing. The textbook answer is function hooking, and the textbook tools are C++. I've shipped all common libs. They work, but the "just overwrite the first bytes with a jump" idea hides a surprising amount of sharp edges, and each one solves a different subset of them.






