SendTcMessage

Sends a message.

Syntax

virtual HRESULT TCOMAPI SendTcMessage (GUID eventClass, UDINT eventId, GUID severity, ITcSourceInfo ipSourceInfo, ULINT timeStamp, ITcArguments ipSerializedArguments)

Parameter

Name

Type

Description

eventClass

REFERENCE TO GUID

Reference to the GUID of the event class.

eventId

REFERENCE TO UDINT

Reference to the ID of the event.

severity

REFERENCE TO TcEventSeverity

Reference to the severity of an event.

ipSourceInfo

ITcSourceInfo

Pointer to the ITcSourceInfo interface.

timeStamp

ULINT

> 0: External time stamp in 100 nanoseconds since January 1st, 1601 (UTC).

ipSerializedArguments

ITcArguments

Pointer to the ITcArguments interface.

SendTcMessage 1: Return value

Type

Description

HRESULT

Returns S_OK if the method call was successful, otherwise an HRESULT as the error code.