Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATHOOK Struct Reference

CATHOOK Struct Reference

#include <CATIntercept.h>

List of all members.


Detailed Description

The CATHOOK structure contains all the information about a hook, plus directly executable code to bootstrap our hook functions and help return to the original function from them.

Definition at line 28 of file CATIntercept.h.


Public Attributes

CATUInt8 PrePushHook
 First, we push the CATHOOK address onto the stack for the.
CATUInt32 PrePushHookAddress
 receiving hook function.
CATUInt32 StackSwap1 [2]
 Then, we swap the caller's return address with the CATHOOK.
CATUInt16 StackSwap2
 address, so the latter may be read as a parameter.
CATUInt8 HookJmp
 Finally, jump to the user-defined hook function.
CATUInt32 HookJmpLoc
CATUInt8 OrgInst [32]
CATUInt8 PostPatchJump
 This jump jumps back into the original target right *after*.
CATUInt32 PostPatchJumpLoc
 the jump patch we applied.
void * Target
 Start address of target function.
void * HookFunc
 Start address of hook function.
CATUInt32 OrgInstLen
 Number of bytes grabbed into OrgInst.
void * UserParam
 User-specified context.
CATInterceptInterceptObj
 Parent CATIntercept object.

The documentation for this struct was generated from the following file:
Generated on Mon Feb 11 04:10:32 2008 for Game Accessibility Suite by doxygen 1.5.4