Improved Windows API hooking改进的 Windows API Hook 库

SlimDetours

Stable open-source API hooking library used by several well-known open-source projects.稳定的开源 API Hook 库,已被数个知名开源项目使用。

Repository仓库 NuGet

Stable稳定

Designed to reduce friction in practical hooking scenarios and improve behavior where the original flow can be awkward or fragile.面向真实 Hook 场景优化,降低使用阻力,改进原始流程中别扭或脆弱的部分。

Out of the box开箱即用

Straightforward to consume, with a simplified API that feels immediate instead of ceremonial.易于集成,API 更简洁,使用起来直接而不繁琐。

Continuously improved持续改进

Actively maintained and refined rather than left as a frozen fork.不是冻结不动的分叉版本,而是持续维护和打磨的项目。

Lean轻量

Keeps the focus on hooking without dragging in unnecessary surface area.专注 Hook 本身,不引入不必要的额外负担。

SlimDetoursInlineHook(TRUE, (PVOID*)&g_pfnXxx, Hooked_Xxx); // Hook ... SlimDetoursInlineHook(FALSE, (PVOID*)&g_pfnXxx, Hooked_Xxx); // Unhook
SlimDetours · stable open-source API hooking librarySlimDetours · 稳定的开源 API Hook 库