From fe559131a9a80608635f8e2a3dc96966fe8f0481 Mon Sep 17 00:00:00 2001 From: xerox Date: Thu, 26 Dec 2019 17:12:23 -0800 Subject: [PATCH] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index de8528a..ed25571 100644 --- a/README.md +++ b/README.md @@ -6,24 +6,24 @@ An inline hooking library for windows. I had issues with other public hooking li Installing the hook/Init. ```cpp -Hook::Install( - (uintptr_t) &WriteFile, //address to put inline hook at. - (uintptr_t) &HookWriteFile //address to jmp too. +hook::install( + &WriteFile, //address to put inline hook at. + &HookWriteFile //address to jmp too. ); ``` Disabling the hook so you can call the original function. ```cpp - Hook::Disable((uintptr_t)&WriteFile); + hook::disable(&WriteFile); WriteFile(.....) ``` Enabling the hook. ``` -Hook::Enable((uintptr_t)&WriteFile); +hook::enable(&WriteFile); ``` # info -All hooks are stored inside of a `std::map>` for quick and easy access to each object. All functions +All hooks are stored inside of a `std::map>` for quick and easy access to each object. All functions interacting with this vector will use the address of the inline hook as the key so mak sure the address is easy to access in your code! \ No newline at end of file