
Machine Vision Camera SDK (C) Developer Guide
}
bDevConnected = false;
// Destroy handle and release resources
nRet = MV_CC_DestroyHandle(handle);
if (MV_OK != nRet)
{
printf("Destroy Handle fail! nRet [0x%x]\n", nRet);
break;
}
printf("Device successfully closed.\n");
} while (0);
// Make sure the device is shutted down
if (nRet != MV_OK)
{
if ( bDevConnected )
{
MV_CC_CloseDevice(handle);
bDevConnected = false;
}
if (handle != NULL)
{
MV_CC_DestroyHandle(handle);
handle = NULL;
}
}
printf("Press a key to exit.\n");
WaitForKeyPress();
return 0;
}
4.3.4 GenTL APIs
MV_CC_CreateHandleByGenTL
Create a device handle via GenTL device information.
API Definition
int MV_CC_CreateHandleByGenTL(
void
**handle,
const MV_GENTL_DEV_INFO *pDevInfo
);
Parameters
handle
86



































































































































































































































































































































































































