beautypg.com

9 itrace::getpacket, Itrace::getpacket – Teledyne LeCroy FireInspector Automation Application Programming Interface User Manual

Page 45

background image

41

FireInspector Automation User’s Manual

CATC

Version 1.0

2.4.9

ITrace::GetPacket

Retrieves raw packet representation.

Syntax

HRESULT GetPacket (

[in] long packet_number,

[in, out] VARIANT* packet,

[out, retval] long* number_of_bits );

Parameters

packet_number

number of packet to retrieve

packet

raw packet representation

number_of_bits

number of bits in raw packet representation

Return values

ANALYZERCOMERROR_INVALIDPACKETNUMBER

specified packet number is

invalid

Remarks

packet

parameter has

VT_ARRAY | VT_VARIANT

actual automation type. Each ele-

ment of this array has

VT_UI1

automation type. Since the last element of the array may

contain extra data, you need to use

number_of_bits

parameter to determine actual

packet data.

Example

VBScript:

ID = Analyzer

CLASSID = "clsid:0B179BC1-DC61-11D4-9B71-000102566088" >