DHookCreateDetour Function

Creates a detour

DynamicDetour DHookCreateDetour(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)

Return Value

Setup handle for the detour.

Errors

Failed to create detour setup handle.