beckhoff — 9.3.8.4 InvokeId

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

HRESULT InvokeId([out, retval] long *pVal); Parameters pVal [out, retval] Pointer to a long value that receives the invoke 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 recent active event TcEventLogger 160 Version: 1.1