EventRegisterCallbackFunction (FUN)

FUNCTION EventRegisterCallbackFunction : 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

EventRegisterCallbackFunction

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)