IRobot::RegisterEvent

Adds a custom event

HRESULT IRobot::RegisterEvent (
     LPCTSTR name,
     PEventID id,
     PEventID antiID
)

Parameters
name
Name of the event
id
Returns the event ID of the newly registered event
antiID
Returns the event ID of the anti-event. If NULL, no anti-event is created

Return Values
ValueMeaning
S_OKEvent registered successfully
E_POINTEREither the name or id pointers are NULL

Remarks
If successful, the NewEvent event is triggered