Add

ITcEnumEvents

Add one event to the collection.

HRESULT Add([out] ITcEvent* pEvent);

Parameter

[out] Pointer of an ITcEvent to be added to the collection.

Return Value

S_OK

The method was successfully called

Remarks

Do not manually add events to the enumerator. Instead use ITcEventLog::EnumActiveEventsEx or  ITcEventLog::EnumLoggedEventsEx which return a completely constructed enum object.