Unit 'utility' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

CallHookPkt

Invoke a Hook function callback.

Declaration

Source position: utility.pas line 224

function CallHookPkt(

  Hook: PHook;

  Object_: Pointer;

  ParamPaket: Pointer

):NativeUInt;

Arguments

Hook

  

Pointer to an initialized Hook structure.

Object_

  

The object that this Hook is to act upon.

ParamPaket

  

The arguments to this callback. This will depend entirely on the type of the object.

Function result

Depends upon the Hook itself.

Description

Call the callback hook defined by a Hook structure. This is effectively a long jump to the PHook^.h_Entry vector of the structure.

The Hook will be called with the same arguments as this function.

Errors

If your callback function does not have the correct register definitions, the result of this function is entirely unreliable.


Documentation generated on: 2021-07-30