BoxedAppSDK_GetOriginalFunction

Description

The function returns the address of the original function that was hooked with BoxedAppSDK_HookFunction. This allows calling the original implementation directly, bypassing the installed hook.

For more information about hooks and their use, see Intercepting Functions.

Syntax

PVOID __stdcall BoxedAppSDK_GetOriginalFunction(HANDLE hHook);
function BoxedAppSDK_GetOriginalFunction(hHook: THandle): Pointer; stdcall;

Parameters

hHook
Handle of the hook, returned by BoxedAppSDK_HookFunction.

Remarks

The returned pointer can be used to call the unmodified original function. This is particularly useful when the hook needs to modify behavior but still invoke the original logic afterward.

If the hook is disabled or removed, the pointer remains valid only until the hook handle is released.

See Also