minhook 0.9.0

A Rust wrapper for MinHook, a minimalistic x86/x64 API hooking library for Windows.
1
2
3
4
5
6
7
8
9
use minhook::MinHook;

#[test]
fn test_hook() {
    // Minhook will automatically be initialized, so there is no need to ever call initialize().
    // However, we can call uninitialize() when we are done with MinHook.
    // It is not unsafe to call uninitialize(), even multiple times, but it will only uninitialize MinHook once.
    MinHook::uninitialize();
}