#include <IHooks.h>
Definition at line 8 of file IHooks.h.
◆ ~IHooks()
virtual AsaApi::IHooks::~IHooks |
( |
| ) |
|
|
virtualdefault |
◆ DisableHook()
virtual bool AsaApi::IHooks::DisableHook |
( |
const std::string & | func_name, |
|
|
LPVOID | detour ) |
|
pure virtual |
Removes a hook from a function.
- Parameters
-
func_name | Function full name |
detour | A pointer to the detour function |
- Returns
- true if success, false otherwise
Implemented in API::Hooks.
◆ SetHook()
bool AsaApi::IHooks::SetHook |
( |
const std::string & | func_name, |
|
|
LPVOID | detour, |
|
|
T ** | original ) |
|
inline |
Hooks a function. Hooks are called in the reverse order.
- Parameters
-
func_name | Function full name |
detour | A pointer to the detour function, which will override the target function |
original | A pointer to the trampoline function, which will be used to call the original target function |
- Returns
- true if success, false otherwise
Definition at line 21 of file IHooks.h.
◆ SetHookInternal()
virtual bool AsaApi::IHooks::SetHookInternal |
( |
const std::string & | func_name, |
|
|
LPVOID | detour, |
|
|
LPVOID * | original ) |
|
privatepure virtual |
The documentation for this class was generated from the following file:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASA/AsaApi/AsaApi/Core/Public/IHooks.h