Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATHOOK_EPILOGUE_RAW
#define CATHOOK_EPILOGUE_RAW ( numParams   ) 

Value:

}                                      \
    __asm {add     esp,(numParams+1)*4}    \
    __asm {add     esp,__LOCAL_SIZE}       \
    __asm {popad}                          \
    __asm {popfd}                          \
    __asm {pop     eax}                    \
    __asm {mov     esp,ebp}                \
    __asm {pop     ebp}                    \
    __asm {xchg    eax,[esp+4]}            \
    __asm {pop     eax}                    \
    __asm {xchg    eax,[esp]}
The epilogue restore all the registers saved by CATHOOK_PROLOGUE and sets the stack up to return properly to the original caller. Note that numParams refers to the number of parameters in the *original* function, not the hook function.

Definition at line 83 of file CATIntercept.h.


Generated on Mon Feb 11 04:10:00 2008 for Game Accessibility Suite by doxygen 1.5.4