BlackBone
Windows memory hacking library
 All Classes Functions
blackbone::RemoteHook Class Reference

Classes

struct  HookData
 Hook descriptor More...
 

Public Types

enum  eHookType { ht_int3 = 0, ht_hwbp }
 
enum  eHookFlags { hf_none = 0, hf_returnHook = 1 }
 
typedef void(* fnCallback )(RemoteContext &context)
 
typedef RemoteContextcontext
 
typedef std::map< ptr_t, HookDatamapHook
 
typedef std::map< ptr_t, ptr_t > mapAddress
 
typedef std::map< ptr_t, bool > setAddresses
 

Public Member Functions

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...
 

Member Function Documentation

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
ptrHooked function address
newFnCallback
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
typeHook type
ptrAddress
newFnCallback
pThreadThread to hook. Valid only for HWBP
Returns
true on success
void blackbone::RemoteHook::Remove ( uint64_t  ptr)

Remove existing hook

Parameters
ptrHooked address
void blackbone::RemoteHook::reset ( )

Stop debug and remove all hooks


The documentation for this class was generated from the following files: