Removed junk files. Updated safetyhook library version. Added library MinHook. Reviewed comments.
This commit is contained in:
14
external/Hooking/InjectHook.h
vendored
Normal file
14
external/Hooking/InjectHook.h
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
namespace HookLib {
|
||||
// Enum for different jump types. Additional jump types can be added as needed by the user.
|
||||
enum HookType {
|
||||
JMP_LONG
|
||||
};
|
||||
|
||||
// Installs a hook on a specific function.
|
||||
bool InstallHook(void* targetFunction, void* hookAddress, HookType type);
|
||||
|
||||
// Removes the hook.
|
||||
bool RemoveHook(void* targetFunction);
|
||||
}
|
||||
Reference in New Issue
Block a user