Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 166
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Infusion API 166
TRACE0("No items were selected!\n");
return
;
}
// Iterate through all selected entries in the list.
CIBApiDeviceCollection * DevCollection =
m_pDeviceManager-
>GetDeviceCollection();
DevCollection->ResetIterator();
while
(pos)
{
int
Item = m_listDevices.GetNextSelectedItem(pos);
CIBApiDevice* pDevice = GetDevice(Item);
CString strDeviceID;
INFDeviceID DeviceID = pDevice->GetDeviceInfo()->GetID();
strDeviceID.Format("%s", DeviceID.GetText());
strDeviceID.Remove(':');
EINFRC eRC = -1;
if
(pDevice->GetDeviceInfo()->GetGeneralInfo()-
>GetConnectionType() ==
EINFCONNECTION_ETHERNET)
{
m_yPortType = CEI_CONNECTION_TCP;
strDeviceID = "0400" + strDeviceID;
}
else
if
(pDevice->GetDeviceInfo()->GetGeneralInfo()
->GetConnectionType() ==
EINFCONNECTION_USB)
{
m_yPortType = CEI_CONNECTION_USB;
strDeviceID = "0200" + strDeviceID;
}
COleVariant
vDeviceId;
CStringArray astrDeviceId;