API return Values S_OK Function was successfully called. Remarks Depending on the programming language you are using, you might rather want to use the objects standard enumerator instead of its interface methods. 9.3.8 ITcEvent The interface ITcEvent gives access to the properties of one alarm. The interface derives from IDispatch so that it could be used by all languages that support COM automation interfaces. IDispatch itself derives from IUnknown. Table 22: Methods and Properties in Vtable Order TcEventLogger 157 Version:
1.1 IUnknown Methods Description QueryInterface returns a pointer to the interface you query for AddRef Increments the reference counter Release Decrements the reference counter IDispatch Methods Description GetIDsOfNames Maps a single member name and an optional set of parameter names to a corresponding set of integer dispatch identifiers (DISPIDs), which can then be used on subsequent calls to IDispatch::Invoke. GetTypeInfo Retrieves the type information for an object. GetTypeInfoCount Retrieves the number of type information interfaces that an object provides, either 0 or 1. Invoke Provides access to properties and methods exposed by an object.
ITcEvent Methods and Properties Description GetMsgString [} 158] returns the formatted message string for the requested language Id [} 159] returns the event id. SrcId [} 159] returns the id of the event source InvokeId [} 160] returns the invoke id Class [} 161] returns the event class Priority [} 161] returns the event priority Flags [} 162] returns the event flags Ms [} 162] returns the millisecond part of the event date SourceName [} 163] returns the name of the event source for the requested language FmtProgId [} 164] returns the ProgId of the event formatter.
Date [} 165] returns the event date and time GetData [} 165] returns the event data parameters GetHeader [} 166] returns the event header as safearray Confirm [} 167] confirms the alarm Reset [} 168] resets the alarm