Like CallHookA(), CallHook() invoke a hook on the supplied hook-specific data (an "object") and a parameter packet ("message"). However, CallHook() allows you to build the message on your stack.
INPUTS
hookPtr
A system-standard hook
obj
hook-specific data object
var_args
The hook-specific message you wish to send. The hook is expecting a pointer to the message, so a pointer into your stack will be sent.
RESULT
result
a hook-specific result.
NOTES
This function first appeared in the V37 release of amiga.lib. However, it does not depend on any particular version of the OS, and works fine even in V34.