RegisterCallback (FUN)

FUNCTION RegisterCallback : CAA.HANDLE

With this function a new callback can be activated. The function with index iPOUIndex is called due to event e of class c from source s, if

(eEvent = CB.ALL_EVENTS OR eEvent = e) AND
((eClass = CB.ALL_CLASSES) OR (eClass AND c) > 0) AND
(eSource = CB.ALL_SOURCES OR eSource = s)
InOut:

Scope

Name

Type

Comment

Return

RegisterCallback

CAA.HANDLE

Handle of the new callback; 0 if not successful

Input

cbNew

CB_CALLBACK

callback description

peError

POINTER TO ERROR

Pointer to an error ID