DHookEnableDetour

Last Updated2022-02-01
Created At2021-11-17

Enable the detour of the function described in the hook setup handle.

native bool DHookEnableDetour(Handle setup, bool post, DHookCallback callback)

Parameters

Handle setup
Hook setup handle
bool post
true to make the hook a post hook. (If you need to change the return value or need the return value use a post hook! If you need to change params and return use a pre and post hook!)
DHookCallback callback
Callback function

Return Value

bool true if detour was enabled, false otherwise.

Error

Hook handle is not setup for a detour.