Original post
Windows API Hooking — Source Codes
[ Archive ]
contains EAT hook + IAT hook + VTable Hook + x86 Detour + x64 Detour + Runtime NAT Detour.Paid contentLog in and pay 50 coins to unlock it.
Log in to unlockWhat's Windows API Hooking?
Windows API hooking is a technique where you intercept a call to a Windows API function (like CreateFileW, MessageBoxW, or connect) before it executes its original code—allowing you to inspect arguments, modify return values, block/redirect behaviour, or run your own logic first.How It Can Destroy Things (Short)
Process crashes: Bad jumps, wrong calling conventions, stack corruption, or unhooked DLL unloading crash the target process (0xC0000005 access violations).
Security bypass: Hooked security/auth/integrity checks can be faked or skipped, letting unauthorized code or tampering pass.
Data/state corruption: Altered buffers, pointers, or return codes can silently corrupt files, memory, or app state.
System instability: Bad kernel-mode hooks or patched system code can trigger BSODs or violate OS protections (like PatchGuard).
EAT Hook: Swaps a function's address in a DLL's export table so future dynamic lookups hit your hook.
IAT Hook: Swaps an imported function's pointer in a module's import table to intercept calls from that module.
Runtime NAT Detour: Patches a native function's start at runtime to jump to custom code (often via a trampoline).
Virtual Table Hook: Replaces a pointer in a C++ vtable to intercept virtual method calls on an object or class.
x64 Detour: Overwrites a 64-bit function's start with a jump to hook code, accounting for 64-bit addressing/trampolines.
x86 Detour: Overwrites a 32-bit function's start with a relative jump (0xE9) to hook code using a trampoline.
