#include <Spore ModAPI/Spore/CppRevEng.h>
template<typename DetourClass, typename BaseClass, typename VirtualClass, typename Result, typename ... Arguments>
member_detour_<DetourClass, BaseClass, VirtualClass, Result(Arguments...)> struct
Template parameters | |
---|---|
BaseClass | The name of the class this object is simulating, must contain the method (or any of its superclasses must) |
Arguments |
Public types
-
using detour_pointer = Result(_
_ thiscall*)(VirtualClass*, Arguments...) - The type of function pointer used to keep track of the original function.
-
using detour_object = member_
detour_ <DetourClass, BaseClass, VirtualClass, Result(Arguments...)>
Public static variables
-
static detour_
pointer original_function - The pointer to the original function, you can call this with the same parameters as the function.
Public static functions
-
static auto detoured_function(VirtualClass* object,
int edx,
Arguments... args) -> Result _
_ fastcall - static auto attach(UINT function_address) -> LONG
- static auto detach() -> LONG