Event Configuration The configuration does not contain any sources. *ppSource is set to NULL. E_POINTER ppSource was no valid pointer E_ACCESSDENIED The object is locked due to an asynchronous operation 6.7.1.7 GetNextSource Get the next source in the configuration according to the internal iterator. Before starting enumeration of sources call GetFirstSource [ } 29] After adding or removing Sources you must restart enumeration by calling GetFirstSource [ } 29] HRESULT GetNextSource([out, retval] IEvtCfgSource** ppSource); Parameters [out, retval] pointer to a pointer to store the returned Source. Return Values S_OK ppSource contains a valid pointer to an IEvtCfgSource object.
S_FALSE The configuration does not contain more sources. *ppSource is set to NULL. E_POINTER ppSource was no valid pointer E_ACCESSDENIED The object is locked due to an asynchronous operation 6.7.1.8 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 [ } 29] and GetNextSource [ } 30] 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. TcEventLogger 30 Version: 1.1