beckhoff — 6.7.1.6 GetFirstSource

Event Configuration Return Values S_OK ppEnum contains a valid pointer to an IDispatch pointer, on wich you may query for the IEvtCfgEnumParser interface. E_ACCESSDENIED The object is locked due to an asynchronous operation 6.7.1.5 GetConfigSize Retrieve the size of the whole configuration (all Sources, Events, DocLinks) HRESULT GetConfigSize([out] long* nSources, [out] long* nEvents, [out] long* nDocLinks); Parameters nSources [out] Pointer to a variable to store the number of sources. If null, the source count is not returned nEvents [out] Pointer to a variable to store the number of events.

If null, the event count is not returned nDocLinks [out] Pointer to a variable to store the number of links. If null, the link count is not returned Return Values S_OK The function completed successfully. E_ACCESSDENIED The object is locked due to an asynchronous operation 6.7.1.6 GetFirstSource Get the first source in the configuration. This method resets the internal iterator and calls GetNextSource [ } 30] To continue enumation call GetNextSource [ } 30] HRESULT GetFirstSource([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 TcEventLogger 29 Version: 1.1