MinHook Library
In comparison to other hooking libraries, MinHook is simpler and offers lightweight APIs, making it easier to work with.
Last updated
In comparison to other hooking libraries, MinHook is simpler and offers lightweight APIs, making it easier to work with.
Last updated
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.
Similarly to the Detours library, the Minhook library requires the static .lib
file and the header file to be included in the Visual Studio project.
- Initializes the HOOK_ENTRY structure.
- Create the hooks.
- Enables the created hooks.
- Remove the hooks.
- Cleanup the initialized structure.