7 ianalyzer::stoprecording, Ianalyzer::stoprecording – Teledyne LeCroy USB Analyzer Automation Manual User Manual
Page 17

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
17
2.1.7 IAnalyzer::StopRecording
HRESULT StopRecording (
[in] BOOL abort_upload );
Stops a recording started by the StartRecording
method.
Parameters
abort_upload
TRUE, if caller wants to abort upload,
no trace file is created.
FALSE, if you want to upload the recorded trace
Return values
ANALYZERCOMERROR_EVENTSINKNOTINSTANTIATED
Event sink was not instantiated.
ANALYZERCOMERROR_UNABLESTOPRECORDING
Error stopping recording
Remarks
Stops recording started by the
StartRecording
method. The event is issued when recording is
interface), if the parameter of method call was FALSE.
Example
VBScript:
C++:
IUsbAnalyzer* usb_analyzer;
. . .
try
{
usb_analyzer->StopRecording( FALSE )
}
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;
}