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

Public Types

typedef std::map< uintptr_t,
HookContext > 
mapContext
 
typedef std::vector< std::pair
< uintptr_t, uintptr_t > > 
vecStackFrames
 

Public Member Functions

BLACKBONE_API bool ApplyHook (void *targetFunc, void *hookFunc, void *ptrAddress, const HookContext::vecState &tracePath=HookContext::vecState(), void *checkIP=0)
 Setup hook More...
 
BLACKBONE_API bool RemoveHook (void *targetFunc)
 Remove existing hook More...
 

Static Public Member Functions

static TraceHook & Instance ()
 

Member Function Documentation

bool blackbone::TraceHook::ApplyHook ( void *  targetFunc,
void *  hookFunc,
void *  ptrAddress,
const HookContext::vecState &  tracePath = HookContext::vecState(),
void *  chekcIP = 0 
)

Setup hook

Parameters
targetFuncTarget function to be hooked
hookFuncNew function
ptrAddressAddress of pointer to destroy
tracePathFunction tracing path
checkIPOptional. Address of instruction that checks target pointer
Returns
true on success, false if already hooked
bool blackbone::TraceHook::RemoveHook ( void *  targetFunc)

Remove existing hook

Parameters
targetFuncTarget function ptr
Returns
true on success, false if not found

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