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

  • 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 84
AutomationAPIforTeledyneLeCroySAS/SATAProtocolSuite 79
SASTraceObject
TeledyneLeCroy
ISASTrace::GetBusPacket
HRESULT GetBusPacket (
[in] long packet_number,
[out, retval] IDispatch** packet )
Retrievestheinterfaceforapacketwithinatrace.
Parameters
packet_number Zerobasednumberofpackettoretrieve
packet AddressofapointertotheSASPacketObjectinterface
ReturnValue
Remarks
TheSASPack etobjectiscrea t edbythismethodcall,ifthecallwassuccessful.
Example
WSH:
C++:
ISASTrace* sas_trace;
. . .
IDispatch* packet;
try
{
packet =
sas_trace->GetBusPacket(
GetDlgItemInt(IDC_PACKET_NUMBER) ).Detach();
}
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;
}
ISASPacket* custom_packet;
HRESULT hr =
packet->QueryInterface(IID_ISASPacket,
(void**)&custom_packet);
packet->Release();
Zobrazit stránku 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 149 150

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

Žádné komentáře