CB.SendEvent (FUN)

This function of the CAA_Callback.Library serves to trigger an event in order to call one or multiple callbacks with this event. It is recommended that IEC programs using this function do set IECPROGRAM as event source and ALL_CLASSES as event class. If the function is used by drivers, it is advisable to use DRIVER as event source. The function will not return before all callbacks have been executed. Thus it is made sure, that all interested parties have terminated their respective reaction until the function returns.

Input:

eEvent 

CB.EVENT

event

eSource

CB.EventSource

event source

dwParam

DWORD

parameter for the receiver of the event

Output:

eError

CB.Error

error ID