Id
The property returns the event id. Together with the source id the event id describes one event.
HRESULT Id([out, retval] long *pVal);
Parameters
pVal
[out, retval] Pointer to a long value that receives the event id.
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 most rescnt active event
Dim evt As TcEvent
Set evt = evtLogger.GetLastEvent
' get the event id
Dim id As Long
id = evt.id
Debug.Print id