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
EventRegisterCallbackFunction2RTS_IEC_RESULTInput
hEventRTS_IEC_HANDLEHandle to event
pfCallbackFunctionPOINTER TO BYTE
- Address of callback function. Prototype: same as ICmpEventCallback::EventCallback method
Function pointer is retrieved by the ADR operator: ADR(function)
pUserParameterPOINTER TO BYTE
Pointer to user parameter, that is transmitted optional to the callback (see EventParam)