LoggedEvents

ITcEventLog

This property returns the number of logged events.

HRESULT LoggedEvents([out, retval] long *pVal);

Parameters

pVal

[out, retval] A pointer to a long value that returns the current number of logged events.

Return Values

S_OK

Function was successfully called

E_POINTER

pVal was no valid pointer.

 

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