beautypg.com

6 isasanalyzer::stoprecording – Teledyne LeCroy SAS_SATA Tracer_Trainer Automation API Manual User Manual

Page 18

background image

LeCroy Corporation

Automation API for SAS/SATATracer/Trainer

Manual Version 1.11

18

3.1.6 ISASAnalyzer::StopRecording


HRESULT StopRecording (

[in] BOOL abort_upload );


Stops recording started by the

ISASAnalyzer::StartRecording

method.

Parameters

abort_upload

TRUE, if the caller wants to abort the upload. No trace file is created.
FALSE, if the caller want to upload the recorded trace.

Return values

ANALYZERCOMERROR_UNABLESTOPRECORDING -

error stopping recording

Remarks

Stops recording started by the StartRecording method. The event is issued when
recording is actually stopped (by the

ISASAnalyzer

interface), if the parameter of method

call was FALSE.

Example (for SASTracer)


VBScript:

RUNAT=Server
ID = Analyzer
CLASSID = "clsid: 0B179BB7-DC61-11d4-9B71-000102566088"

>




C++:

ISASAnalyzer* sas_analyzer;

. . .

try
{

sas_analyzer->StopRecording( FALSE )

}
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;

}