|
| enum | eHookType { int3 = 0,
hwbp
} |
| |
| enum | eHookFlags { none = 0,
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 NTSTATUS | Apply (eHookType type, uint64_t ptr, fnCallback newFn, Thread *pThread=nullptr) |
| | Hook specified address More...
|
| |
| BLACKBONE_API NTSTATUS | 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 NTSTATUS 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 NTSTATUS 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