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
Value
Meaning
S_OK
Event registered successfully
E_POINTER
Either the name or id pointers are
NULL
Remarks
If successful, the NewEvent event is triggered