GetSource
Get a source from the configuration.
The required source is identified by its Source Id. If the Source Id is not known, you can enumate all sources in the configuration by using the GetFistSource and GetNextSource methods.
HRESULT GetSource([in] long nId,
[out,retval] IEvtCfgSource** ppSource);
Parameters
nId
[in] Id of the Source to be retreived.
ppSource
[out, retval] pointer to a pointer to store the returned Source.
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_ACCESSDENIED
The object is locked due to an asynchronous operation