beautypg.com

1 ianalyzeradapter::createobject, Ianalyzeradapter::createobject – Teledyne LeCroy USB Analyzer Automation Manual User Manual

Page 124

background image

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite

124

10.1.1 IAnalyzerAdapter::CreateObject


HRESULT CreateObject ([in] BSTR class_id,

[in, optional] BSTR host_name,

out, retval] IDispatch** ppNewObj );


This method instantiates a CATC Analyzer object on a local or remote machine and attaches it to the
adapter.

Parameters


class_id

String representation of classid, or ProgId
("clsid: 0B179BB3-DC61-11d4-9B71-000102566088" or
"CATC.USBTracer" for CATC USB Analyzer)


host_name

Name of the remote server where the Analyzer object should be instantiated.
Empty value means local host.

ppNewObj

Pointer to the created remote object
NULL if the object has not been instantiated or accessed

Return values


Remarks


Only CATC Analyzer COM servers can be instantiated through this method. The Detach method

(see below) should be called when work with the remote object is completed.

NOTE: The pointer returned in ppNewObj should be released separately.