beckhoff — 6.7.2.1 AddEvent

Event Configuration pVal was no valid Pointer E_ACCESSDENIED The object is locked due to an asynchronous operation 6.7.2 IEvtCfgSource The ITcEvtCfgSource Interfaces provides access to objects representing one source in the event configuration. Each source is identified by its unique Id and may contain a Name, describing the source, in multiple languages. If part of an configuration, a source object has exactly one parent object of type IEvtConfiguration [ } 26] . One Source object can not be child of multiple configurations. A Source may -and mostly will- contain multiple children of type ITcEvtCfgEvent [ } 41] . Table 3:

Methods and Properties in Vtable Order 6.7.2.1 AddEvent Add a new event to this source. Events are identified by their Ids- Duplicate IDs are not allowed. Also events may only have one parent. If the event is already child of onother source, the function will fail. HRESULT AddEvent([in] IEvtCfgEvent* pEvent); Parameters pEvent [in] pointer to the new event object to be added. Return Values S_OK The new event was auccessfully added. The OnNewEvent event is fired. TcEventLogger 32 Version:

1.1 ITcEvtConfig Methods Description Name [} 39] Get/Set the source name in a specified language AddEvent [} 32] Add an Event to this source GetEvent [} 35] Get an Event with a certain Id RemoveEvent [} 40] Remove an event Id [} 37] Get/Set the Source Id GetFirstName [} 36] Start enumerating through source names GetNextName [} 37] Continue enumerating source names GetFirstEvent [} 35] Start enumerating children GetNextEvent [} 36] Continue enumerating children GetDefaultName [} 34] Get a default name according to the local machine language RemoveName [} 41] Remove a name with a certain language Parent [} 40] Get/Set the parent of this source IsParentOnlyReference [} 38] Check whether the object is only more referenced by its parent EventCount [} 33] Get the number of events which are children of this source CopyTo [} 33] Copy the source to another EvtCfgSource object