RegisterEventCallback (open)
Registers an callback function capable of handling a single event to be called when a certain event is dispatched. Only supported in the following contexts: tollium, appserver and porthandler.
Syntax
LOADLIB "wh::ipc.whlib";
INTEGER FUNCTION RegisterEventCallback(STRING event, FUNCTION PTR callback)
Parameters
STRING event
Event to wait on (LIKE match)
FUNCTION PTR callback
Callback to call when the event arrives. Signature: MACRO callback(STRING event, RECORD msg)
Return value
INTEGER
Registration id, for use with UnregisterEventCallback