DHookEnableDetour Function

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

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


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

true if detour was enabled, false otherwise.


Hook handle is not setup for a detour.