IRobot::UnregisterEvent

Removes a custom event

HRESULT IRobot::UnregisterEvent (
     EventID id
)

Parameters
id
ID of the event to remove

Return Values
ValueMeaning
S_OKEvent removed successfully
E_FAILCannot remove event

Remarks
If the ID specifies an event, the corresponding anti-event is removed as well. If the ID specifies an anti-event, the corresponding event is removed.
If successful, the RemoveEvent event is triggered