|
enum | eHookType { ht_int3 = 0,
ht_hwbp
} |
|
enum | eHookFlags { hf_none = 0,
hf_returnHook = 1
} |
|
typedef void(* | fnCallback )(RemoteContext &context) |
|
typedef RemoteContext & | context |
|
typedef std::map< ptr_t, HookData > | mapHook |
|
typedef std::map< ptr_t, ptr_t > | mapAddress |
|
typedef std::map< ptr_t, bool > | setAddresses |
|
|
typedef | void (__thiscall *fnClassCallback)(const void *__this |
|
BLACKBONE_API | RemoteHook (class ProcessMemory &memory) |
|
BLACKBONE_API bool | Apply (eHookType type, uint64_t ptr, fnCallback newFn, Thread *pThread=nullptr) |
| Hook specified address More...
|
|
BLACKBONE_API bool | AddReturnHook (uint64_t ptr, fnCallback newFn) |
| Hook function return This hook will only work if function is hooked normally More...
|
|
BLACKBONE_API void | Remove (uint64_t ptr) |
| Remove existing hook More...
|
|
BLACKBONE_API void | reset () |
| Stop debug and remove all hooks More...
|
|
BLACKBONE_API bool blackbone::RemoteHook::AddReturnHook |
( |
uint64_t |
ptr, |
|
|
fnCallback |
newFn |
|
) |
| |
|
inline |
Hook function return This hook will only work if function is hooked normally
- Parameters
-
ptr | Hooked function address |
newFn | Callback |
- Returns
- true on success
BLACKBONE_API bool blackbone::RemoteHook::Apply |
( |
eHookType |
type, |
|
|
uint64_t |
ptr, |
|
|
fnCallback |
newFn, |
|
|
Thread * |
pThread = nullptr |
|
) |
| |
|
inline |
Hook specified address
- Parameters
-
type | Hook type |
ptr | Address |
newFn | Callback |
pThread | Thread to hook. Valid only for HWBP |
- Returns
- true on success
void blackbone::RemoteHook::Remove |
( |
uint64_t |
ptr | ) |
|
Remove existing hook
- Parameters
-
void blackbone::RemoteHook::reset |
( |
| ) |
|
Stop debug and remove all hooks
The documentation for this class was generated from the following files:
- C:/Users/Ton/Documents/Visual Studio 2013/Projects/BlackBone/src/BlackBone/Process/RPC/RemoteHook.h
- C:/Users/Ton/Documents/Visual Studio 2013/Projects/BlackBone/src/BlackBone/Process/RPC/RemoteHook.cpp