BlackBone
Windows memory hacking library
 All Classes Functions
blackbone::HookHandler< R(*)(Args...), C > Struct Template Reference
Inheritance diagram for blackbone::HookHandler< R(*)(Args...), C >:
blackbone::DetourBase

Public Types

typedef std::conditional
< std::is_same< R, void >
::value, int, R >::type 
ReturnType
 
typedef R(C::* hktypeC )(Args &...)
 
typedef ReturnType(C::* hktypeCR )(Args &...)
 

Public Member Functions

typedef R (__cdecl *type)(Args...)
 
typedef R (__cdecl *hktype)(Args &...)
 
typedef ReturnType (__cdecl *typeR)(Args...)
 
typedef ReturnType (__cdecl *hktypeR)(Args &...)
 
ReturnType HandlerP (Args &&...args)
 
ReturnType CallOriginal (Args &&...args)
 
ReturnType CallCallback (Args &&...args)
 

Static Public Member Functions

static __declspec (noinline) ReturnType __cdecl Handler(Args...args)
 

Additional Inherited Members

- Protected Member Functions inherited from blackbone::DetourBase
BLACKBONE_API bool AllocateBuffer (uint8_t *nearest)
 Allocate detour buffer as close to target as possible More...
 
BLACKBONE_API bool DisableHook ()
 Temporarily disable hook More...
 
BLACKBONE_API bool EnableHook ()
 Enable disabled hook More...
 
BLACKBONE_API bool ToggleHBP (int index, bool enable)
 Toggle hardware breakpoint for current thread More...
 
BLACKBONE_API void CopyOldCode (uint8_t *Ptr)
 Copy original function bytes More...
 
- Static Protected Member Functions inherited from blackbone::DetourBase
static BLACKBONE_API LONG NTAPI VectoredHandler (PEXCEPTION_POINTERS excpt)
 Exception handlers More...
 
static BLACKBONE_API LONG NTAPI Int3Handler (PEXCEPTION_POINTERS excpt)
 Int3 exception handler More...
 
static BLACKBONE_API LONG NTAPI AVHandler (PEXCEPTION_POINTERS excpt)
 Access violation handler More...
 
static BLACKBONE_API LONG NTAPI StepHandler (PEXCEPTION_POINTERS excpt)
 Single step exception handler More...
 
- Protected Attributes inherited from blackbone::DetourBase
bool _hooked = false
 
void * _callback = nullptr
 
void * _callbackClass = nullptr
 
void * _original = nullptr
 
void * _internalHandler = nullptr
 
void * _callOriginal = nullptr
 
mapIdx _hwbpIdx
 
size_t _origSize = 0
 
uint8_t * _buf = nullptr
 
uint8_t * _origCode = nullptr
 
uint8_t * _newCode = nullptr
 
HookType::e _type = HookType::Inline
 
CallOrder::e _order = CallOrder::HookFirst
 
ReturnMethod::e _retType = ReturnMethod::UseOriginal
 
- Static Protected Attributes inherited from blackbone::DetourBase
static BLACKBONE_API
std::unordered_map< void
*, DetourBase * > 
_breakpoints
 
static BLACKBONE_API void * _vecHandler = nullptr
 

The documentation for this struct was generated from the following file: