Data Sheet
Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
22
2.1.10 IAnalyzer::GetRecordingOptions
HRESULT GetRecordingOptions (
[out, retval] IDispatch** recording_options );
Retrieves the primary interface for access to recording options.
Parameters
recording_options Address of a pointer to the UsbRecOptions object
primary interface
Return values
Remarks
UsbRecOptions object is created via this method call, if call was successful.
Example
WSH:
Set Analyzer = WScript.CreateObject("CATC.USBTracer")
Set RecOptions = Analyzer.GetRecordingOptions
C++:
IUsbAnalyzerPtr poUsbAnalyzer;
// Create UsbAnalyzer object.
if( FAILED( poUsbAnalyzer.CreateInstance( CLSID_UsbAdvisor ) ) )
return;
// Get recording options
IDispatchPtr rec_opt;
IUsbRecOptions Ptr usb_rec_opt;
try
{
rec_opt = poUsbAnalyzer->GetRecordingOptions();
usb_rec_opt = rec_opt; // Query for IUsbRecOptions interface
// Use IUsbRecOptions methods
...
}
catch (_com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("UsbAnalyzer client"), MB_OK );
else
::MessageBox( NULL, er.ErrorMessage(), _T("UsbAnalyzer client"), MB_OK );
return 1;
}