Inline (Trampoline) Hooking: Idea
- Patch the target function itself, not a caller's table.
- Overwrite the first N bytes of the API with a
jmp detour. - Save the overwritten (original) bytes into a trampoline so you can still invoke the real function.
Why it wins on coverage
Every caller — static import, GetProcAddress, or ordinal —
ends up executing the same first bytes. Patch there once and you catch
them all.