CreateMessage
Creates an instance that implements ITcMessage.
Syntax
virtual HRESULT TCOMAPI CreateMessage (GUID eventClass, UDINT eventId, GUID severit, ITcSourceInfo ipSourceInfo, ITcMessage pipMessage)
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. |
pipMessage | Pointer to an ITcMessage pointer. |
Return value
Type | Description |
---|---|
HRESULT | Returns S_OK if the method call was successful, otherwise an HRESULT as the error code. |