Itrace::reportfileinfo – Teledyne LeCroy SAS_SATA Automation API manual User Manual
Page 72

Teledyne LeCroy
SASTrace Object
66
Automation API for Teledyne LeCroy SAS/SATA Protocol Suite
ITrace::ReportFileInfo
HRESULT ReportFileInfo (
[in] BSTR file_name )
Saves trace information into a specified text file.
Parameters
file_name
String providing the full pathname to file where the trace information
report is stored
Return Value
ANALYZERCOMERROR_UNABLESAVE
Unable to create trace information report
Remarks
Creates a new trace information file if the file specified in the file_name parameter does
not exist.
Example
WSH:
Set Analyzer =
WScript.CreateObject("LeCroy.SASAnalyzer")
CurrentDir = Left(WScript.ScriptFullName,
InstrRev(WScript.ScriptFullName, "\"))
Set Trace = Analyzer.MakeRecording (CurrentDir &
"Input\test_ro.sac")
Trace.ReportFileInfo CurrentDir &
"Output\file_info.txt"
C++:
ISASTrace* sas_trace;
TCHAR file_name[_MAX_PATH];
. . .
try
{
sas_trace->ReportFileInfo( file_name );
}
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;
}