BoxedAppSDK_UnhookFunction

Description

The function removes a previously installed hook and restores the original function behavior.

After calling BoxedAppSDK_UnhookFunction, all calls to the target function go directly to the original function, and the hook handle becomes invalid.

For more information about using hooks, see Intercepting Functions.

Syntax

BOOL __stdcall BoxedAppSDK_UnhookFunction(HANDLE hHook);
function BoxedAppSDK_UnhookFunction(hHook: THandle): BOOL; stdcall;

Parameters

hHook
Handle of the hook to remove.
This handle is returned by BoxedAppSDK_HookFunction when the hook was created.

Remarks

When a hook is unhooked, the interception is completely removed, and the memory allocated for the hook may be released. If you only want to disable a hook temporarily without removing it, use BoxedAppSDK_EnableHook instead.

Once a hook is unhooked, calling BoxedAppSDK_GetOriginalFunction with the same handle will no longer be valid.

See Also