IRobot::FireEvent

Triggers a specified event

HRESULT IRobot::FireEvent (
     EventID id,
     DWORD param
)

Parameters
id
ID of the event to trigger
param
Optional parameter to pass to the event handler

Return Values
ValueMeaning
S_OKAll event handlers notified
E_FAILCannot notify event handlers

Remarks
Event handlers are called synchronously, so the function will block until all event handlers have returned.