12 ianalyzer::getrecordingoptions, Ianalyzer::getrecordingoptions, Catc ver. 1.40 – Teledyne LeCroy Automation API for Bluetooth Analyzers User Manual
Page 28

22
Automation API for CATC Bluetooth Analyzers
CATC
Ver. 1.40
2.3.12 IAnalyzer::GetRecordingOptions
Retrieves primary interface for access to recording options
Parameters
recording_options
-
address of a pointer to the
BTRecOptions
object primary
interface
Return values
Remarks
BTRecOptions
object is created via this method call, if call was successful.
Example
WSH:
Set Analyzer = WScript.CreateObject("CATC.Merlin")
Set RecOptions = Analyzer.GetRecordingOptions
C++:
HRESULT hr;
IBTAnalyzer* poBTAnalyzer;
// create BTAnalyzer object
if ( FAILED( CoCreateInstance(
CLSID_BTAnalyzer,
NULL, CLSCTX_SERVER,
IID_IBTAnalyzer,
LPVOID *)&poBTAnalyzer ) )
return;
// open trace file
IDispatch* rec_opt;
try
{
rec_opt = poBTAnalyzer->GetRecordingOptions();
}
catch ( _com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("BTAnalyzer client"),
MB_OK );
else
::MessageBox( NULL, er.ErrorMessage(), _T("BTAnalyzer client"),
MB_OK );
return 1;
}
// query for VTBL interface
IBTRecOptions* ib_rec_opt;
hr = rec_opt->QueryInterface( IID_IBTRecOptions, (LPVOID
*)&ib_rec_opt );
rec_opt->Release();
if( FAILED(hr) )
return;
HRESULT GetRecordingOptions (
[out, retval] IDispatch** recording_options );