DynamicDetour.DynamicDetour Method

Creates a detour.

DynamicDetour DynamicDetour(Address funcaddr, CallingConvention callConv, ReturnType returntype, ThisPointerType thisType)

Parameters

Address funcaddr

The address of the function to detour. Can be Address_Null if you want to load the address from gamedata using DHookSetFromConf.

CallingConvention callConv

Calling convention of the function.

ReturnType returntype
No description.
ThisPointerType thisType

Type of this pointer or ignore (ignore can be used if not needed). Only used for thiscall detours.

Return Value

No description.

Errors

Failed to create detour setup handle.