8 itrace::getpacket – Teledyne LeCroy SierraFC Automation API User Manual
Page 33

LeCroy Corporation
SierraFC M8-4 API Reference Manual
Manual Version 1.00
33
4.1.8 ITrace::GetPacket
HRESULT GetPacket (
[in] long packet_number,
[in, out] VARIANT* packet,
[out, retval] long* number_of_bits );
Retrieves a raw packet representation in the PACKETFORMAT_BYTES format
(see
Parameters
packet_number
Zero based number of packet to retrieve
packet
Raw packet representation
number_of_bits
Number of bits in the raw packet representation
Return values
ANALYZERCOMERROR_INVALIDPACKETNUMBER -
specified packet number is invalid
Remarks
The packet parameter has
VT_ARRAY | VT_VARIANT
actual automation type. Each element of
this array has the
VT_UI1
automation type.
Example
VBScript: