beckhoff — 6.7.2.6 GetFirstEvent

Event Configuration 6.7.2.5 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 6.7.2.6 GetFirstEvent Get the first name of the source. This method resets the internal iterator and calls GetNextEvent [ } 36] To continue enumation call GetNextEvent [ } 36] . If the source is locked by an asyncroneous operation, this method will not return E_FAIL, but wait until the lock is released. HRESULT GetFirstEvent([out,retval] IEvtCfgEvent** ppEvent); Parameters ppEvent [out, retval] pointer to a IEvtCfgEvent interface pointer to store the first child of this source. Return Values S_OK name contains the first name of this source. S_FALSE The source does not have any childs. *ppEvent is set to NULL.

TcEventLogger 35 Version: 1.1