MinHook Library

In comparison to other hooking libraries, MinHook is simpler and offers lightweight APIs, making it easier to work with.


Using the MinHook Library

Similarly to the Detours library, the Minhook library requires the static .lib file and the MinHook.h header file to be included in the Visual Studio project.

MinHook Functions

We can think of MinHook functions like we do with CRUD.

NOTE: MH_Initialize & MH_Unitialize should be called once, at the beginning of the program and at the end.

The Minhook APIs return a MH_STATUS value.MH_OK value, which is a 0, is returned if the function succeeds and a non-zero value is returned if an error occurs.

Last updated