Teledyne-lecroy SAS_SATA Automation API manual Uživatelský manuál Strana 30

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 150
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 29
TeledyneLeCroy SASAnalyzerObject
24 AutomationAPIforTeledyneLeCroySAS/SATAProtocolSuite
ISASAnalyzer::GetRecordingOptions
HRESULT GetRecordingOptions (
[out, retval] IDispatch** recording_options );
Retrievestheinterfaceforaccesstotherecordingoptions.
Parameters
recording_options AddressofapointertotheSASRecOptionsObjectinterface
ReturnValues
Remarks
TheSASRecOptionsobjectiscreatedviathismethodcall,ifthecallwassuccessful.
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;
}
Zobrazit stránku 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 149 150

Komentáře k této Příručce

Žádné komentáře