DHookCreate Function

Creates a hook

DynamicHook DHookCreate(int offset, HookType hooktype, ReturnType returntype, ThisPointerType thistype, DHookCallback callback)


int offset

vtable offset of function to hook

HookType hooktype

Type of hook

ReturnType returntype

Type of return value

ThisPointerType thistype

Type of this pointer or ignore (ignore can be used if not needed)

DHookCallback callback

Optional callback function, if not set here must be set when hooking.

Return Value

Returns setup handle for the hook.


Failed to create hook setup handle or invalid callback function.