AddSource

Add a new Source to the configuration.
Sources are identified by their IDs- Duplicate IDs are not allowed.

 

HRESULT AddSource([in]
IEvtCfgSource* pSource);

Parameters

pSource

[in] pointer to the new source object to be added.

Return Values

S_OK

The new source was successfully added to the configuration. The OnNewSource Event is fired.

E_FAIL

pSource could not be added to the configuration. This can happen if either the configuration does already contain a source with the same Id or the Source is already child of another configuration

E_POINTER

pSource was no valid pointer

E_ACCESSDENIED

The object is locked due to an asynchronous operation