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 eventEvent to wait on (LIKE match)
FUNCTION PTR callbackCallback to call when the event arrives. Signature: MACRO callback(STRING event, RECORD msg)
Return value
INTEGERRegistration id, for use with UnregisterEventCallback