Machine Vision Camera SDK (C) Developer Guide
[OUT] Device handle
pDevInfo
[IN] Device information structure pointer, see MV_GENTL_DEV_INFO for details.
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
Before calling this API, you should call API MV_CC_EnumDevicesByGenTL to get the device
information first.
Example
The following sample code is for reference only.
int nRet = MV_CC_CreateHandleByGenTL(&m_hDevHandle,
m_stDevList.pDeviceInfo[0]);
if (MV_OK != nRet)
{
return nRet;
}
MV_CC_EnumDevicesByGenTL
Enumerate devices via GenTL interface.
API Definition
int MV_CC_EnumDevicesByGenTL(
MV_GENTL_IF_INFO
*pstIFInfo,
MV_GENTL_DEV_INFO_LIST *pstDevList
);
Parameters
pstIFInfo
[IN] Interface information, see MV_GENTL_IF_INFO for details.
pstDevList
[IN] [OUT] Device list, see the structure MV_GENTL_DEV_INFO_LIST for details.
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
Before calling this API, you should call API MV_CC_EnumInterfacesByGenTL to enumerate the
interface first.
87
    "