TraceMgrPacketCreate (FUN)

FUNCTION TraceMgrPacketCreate : RTS_IEC_HANDLE

Creates a new trace packet. The returned handle must be deleted with TraceMgrPacketDelete when the packet is no longer needed.

InOut:

Scope

Name

Type

Comment

Return

TraceMgrPacketCreate

RTS_IEC_HANDLE

Returns the runtime system error code (see CmpErrors.library):
  • ERR_PARAMETER if pConfiguration.pszName is 0

  • ERR_DUPLICATE if a packet with the given name already exists

  • ERR_NOMEMORY if the available memory is not sufficient to create the packet

Inout

pConfiguration

TracePacketConfiguration

The trace packet configuration (in)

pResult

RTS_IEC_RESULT

The result code (out)