DHookCreate

Last Updated2021-11-17
Created At2021-11-17

Creates a hook

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

Parameters

int offset
vtable offset of function to hook
HookType hooktype
Type of hook
ReturnType returntype
Type of return value
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

DynamicHook Returns setup handle for the hook.

Error

Failed to create hook setup handle or invalid callback function.