API Visual Basic sample code ' get the one and only event logger Dim evtLogger As TCEVENTLOGGERLib.TcEventLog Set evtLogger = New TCEVENTLOGGERLib.TcEventLog ' get the number of logged events Dim countLogged As Long countLogged = evtLogger.LoggedEvents 9.3.1.11 ClearLoggedEvents ITcEventLog [ } 129] This method is used to reset all logged events.
HRESULT ClearLoggedEvents(); Parameters Return Values S_OK Function was successfully called Visual Basic sample code ' get the one and only event logger Dim evtLogger As TCEVENTLOGGERLib.TcEventLog Set evtLogger = New TCEVENTLOGGERLib.TcEventLog ' clear all logged alarms evtLogger.ClearLoggedEvents Remarks After this method call the Event Logger will raise the event OnLoggedEventsCleared [ } 148] on all client that implements the event interface _ITcEventLogEvents [ } 144] (VB: Dim WithEvents). 9.3.2 ITcEventLogC The ITcEventLogC is an interface of the main class of the TcEventLogger [ } 127] . The interface provides the features add new alarms.
The interface derives from IUnknown so that it could be used by all languages that support COM custom interfaces. Table 16: Methods in Vtable Order TcEventLogger 137 Version: 1.1 IUnknown Methods Description QueryInterface returns a pointer to the interface you query for AddRef Increment the reference counter Release Decrements the reference counter ITcEventLogC Methods Description ReportEvent [} 129] This method is used to issue a new event from the client. EnumEventSources Deprecated. Was used on the deprecated structured storage based formatter to loop through the list of event source storages. OpenEventSource Deprecated.
Was used on the deprecated structured storage-based formatter to return one particular event source storages.