GetEvent
Get an event which is child of this source.
The event is identified by its Event Id. If the Event Id is not known, you can enumate all children of this source through the GetFistEvent and GetNextEvent methods.
HRESULT GetEvent([in] long nId,
[out,retval] IEvtCfgEvent** ppEvent);
Parameters
nId
[in] Id of the event to be retreived.
ppSource
[out, retval] pointer to a pointer to store the returned event object.
Return Values
S_OK
ppSource contains a valid pointer to an IEvtCfgSource object.
E_INVALIDARG
No source with the specified Id exists in the configuration
E_POINTER
ppEvent was no valid pointer.
E_ACCESSDENIED
The object is locked due to an asynchronous operation