Frame Grabber SDK (Windows-C) Developer Guide
case MV_FG_CAMERALINK_INTERFACE:
{
printf("[CML]No.%d Interface:
\n\tDisplayName: %s\n\tInterfaceID: %s\n\tSerialNumber:%s\n", i,
stInterfaceInfo.IfaceInfo.stCMLIfaceInfo.chDisplayName,
stInterfaceInfo.IfaceInfo.stCMLIfaceInfo.chInterfaceID,
stInterfaceInfo.IfaceInfo.stCMLIfaceInfo.chSerialNumber);
break;
}
default:
{
printf("Unknown interface type.\n");
return false;
}
}
}
return true;
}
// Print device information.
bool PrintDeviceInfo(IFHANDLE hInterface, unsigned int nDeviceNum)
{
int nRet = 0;
for (unsigned int i = 0; i < nDeviceNum; i++)
{
MV_FG_DEVICE_INFO stDeviceInfo = { 0 };
nRet = MV_FG_GetDeviceInfo(hInterface, i, &stDeviceInfo);
if (MV_FG_SUCCESS != nRet)
{
printf("Get info of No.%d device failed! %#x\n", i, nRet);
return false;
}
switch (stDeviceInfo.nDevType)
{
case MV_FG_CXP_DEVICE:
{
printf("[CXP]No.%d Device:
\n\tUserDefinedName: %s\n\tModelName: %s\n\tSerialNumber: %s\n", i,
stDeviceInfo.DevInfo.stCXPDevInfo.chUserDefinedName,
stDeviceInfo.DevInfo.stCXPDevInfo.chModelName,
stDeviceInfo.DevInfo.stCXPDevInfo.chSerialNumber);
break;
}
case MV_FG_GEV_DEVICE:
{
printf("[GEV]No.%d Device:
\n\tUserDefinedName: %s\n\tModelName: %s\n\tSerialNumber: %s\n", i,
69
    "