EventRegisterCallbackFunction2
(FUN)
FUNCTION EventRegisterCallbackFunction2 : RTS_IEC_RESULT
Register a callback function to an event. Callback is the address of an Iec function: ADR(function)
- InOut:
Scope
Name
Type
Comment
Return
EventRegisterCallbackFunction2
RTS_IEC_RESULT
Input
hEvent
RTS_IEC_HANDLE
Handle to event
pfCallbackFunction
POINTER TO BYTE
- Address of callback function. Prototype: same as ICmpEventCallback::EventCallback method
Function pointer is retrieved by the ADR operator: ADR(function)
pUserParameter
POINTER TO BYTE
Pointer to user parameter, that is transmitted optional to the callback (see EventParam)