#include <IHooks.h>
|
virtual | ~IHooks ()=default |
|
template<typename T > |
bool | SetHook (const std::string &func_name, LPVOID detour, T **original) |
| Hooks a function. Hooks are called in the reverse order.
|
|
virtual bool | DisableHook (const std::string &func_name, LPVOID detour)=0 |
| Removes a hook from a function.
|
|
|
virtual bool | SetHookInternal (const std::string &func_name, LPVOID detour, LPVOID *original)=0 |
|
Definition at line 7 of file IHooks.h.
◆ ~IHooks()
virtual ArkApi::IHooks::~IHooks |
( |
| ) |
|
|
virtualdefault |
◆ DisableHook()
virtual bool ArkApi::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()
template<typename T >
bool ArkApi::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 20 of file IHooks.h.
◆ SetHookInternal()
virtual bool ArkApi::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/ASE/AseApi-main/version/Core/Public/IHooks.h