Frame Grabber SDK (Windows-C) Developer Guide
nRet = DLLGetInterfaceInfo(i, &stInterfaceInfo);
if (MV_FG_SUCCESS != nRet)
{
printf("Get info of No.%d interface failed! %#x\n", i, nRet);
return false;
}
switch (stInterfaceInfo.nTLayerType)
{
case MV_FG_CXP_INTERFACE:
{
printf("[CXP]No.%d Interface:
\n\tDisplayName: %s\n\tInterfaceID: %s\n\tSerialNumber:%s\n", i,
stInterfaceInfo.IfaceInfo.stCXPIfaceInfo.chDisplayName,
stInterfaceInfo.IfaceInfo.stCXPIfaceInfo.chInterfaceID,
stInterfaceInfo.IfaceInfo.stCXPIfaceInfo.chSerialNumber);
break;
}
case MV_FG_GEV_INTERFACE:
{
printf("[GEV]No.%d Interface:
\n\tDisplayName: %s\n\tInterfaceID: %s\n\tSerialNumber:%s\n", i,
stInterfaceInfo.IfaceInfo.stGEVIfaceInfo.chDisplayName,
stInterfaceInfo.IfaceInfo.stGEVIfaceInfo.chInterfaceID,
stInterfaceInfo.IfaceInfo.stGEVIfaceInfo.chSerialNumber);
break;
}
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(HINSTANCE hDll, IFHANDLE hInterface, unsigned int nDeviceNum)
{
int nRet = 0;
123
    "