Isasanalyzer::getrecordingoptions – Teledyne LeCroy SAS_SATA Automation API manual User Manual

Page 30

Advertising
background image

Teledyne LeCroy

SASAnalyzer Object

24

Automation API for Teledyne LeCroy SAS/SATA Protocol Suite

ISASAnalyzer::GetRecordingOptions

HRESULT GetRecordingOptions (

[out, retval] IDispatch** recording_options );

Retrieves the interface for access to the recording options.

Parameters

recording_options

Address of a pointer to the 

SASRecOptions Object

 interface

Return Values

Remarks

The SASRecOptions object is created via this method call, if the call was successful.

Example

WSH:
Set Analyzer =

WScript.CreateObject("Lecroy.SASAnalyzer")

Set RecOptions = Analyzer.GetRecordingOptions

C++:
HRESULT hr;
ISASAnalyzer* poSASAnalyzer;
// Create SASAnalyzer object.
if ( FAILED( CoCreateInstance(
CLSID_SASAnalyzer,
NULL, CLSCTX_SERVER,
IID_ISASAnalyzer,
(LPVOID *)&poSASAnalyzer ) )
return;

// Open trace file.
IDispatch* rec_opt;
try
{
rec_opt = poSASAnalyzer->GetRecordingOptions();
}
catch (_com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("SASTracer

client"), MB_OK );

else
::MessageBox( NULL, er.ErrorMessage(), _T("SASTracer

client"), MB_OK );

return 1;
}

Advertising