GetLastEvent
This method returns the most recent active event.
HRESULTGetLastEvent([out,retval] IDispatch** lastEvent);
Parameters
lastEvent |
[out, retval] pointer to an object of the interface type IDispatch that returns the most recent active event.
Return Values
S_OK Function was successfully called |
E_POINTER
the pointer assign to lastEvent was not valid
Visual Basic sample code
' get the one and only event logger
Dim evtLogger As TCEVENTLOGGERLib.TcEventLog
Set evtLogger = New TCEVENTLOGGERLib.TcEventLog
' get the most recent logged event
Dim resentEvt As TcEvent
Set resentEvt = evtLogger.GetLastEvent