DynamicDetour.Disable Method

Disable the detour of the function described in this detour setup.

bool Disable(HookMode mode, DHookCallback callback)

Parameters

HookMode mode

The hook mode to disable - pre or post.

DHookCallback callback

Callback function.

Return Value

true if detour was disabled, false otherwise.

Errors

Hook handle is not setup for a detour or function is not detoured.