|
|
|
@ -15,4 +15,15 @@ Hook::Install(
|
|
|
|
|
Disabling the hook so you can call the original function.
|
|
|
|
|
```cpp
|
|
|
|
|
Hook::Disable((uintptr_t)&WriteFile);
|
|
|
|
|
```
|
|
|
|
|
WriteFile.....
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Enabling the hook.
|
|
|
|
|
```
|
|
|
|
|
Hook::Enable((uintptr_t)&WriteFile);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# info
|
|
|
|
|
|
|
|
|
|
All hooks are stored inside of a `std::map<uintptr_t, std::unique_ptr<Detour>>` 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!
|