how to use FT_CreateDeviceInfoList?

Supported Operating Systems of FT_CreateDeviceInfoList

Linux
Mac OS X (10.4 and later)
Windows (2000 and later)
Windows CE (4.2 and later)

FT GUOGE无袖连衣裙2021夏季新款圆领法式收腰显瘦气质女神范长裙
| 月销量1578件
优惠价195元
原价¥390

淘口令:

¥9D9FXPX6qF4¥
 

Summary of  FT_CreateDeviceInfoList

This function builds a device information list and returns the number of D2XX devices connected to the
system. The list contains information about both unopen and open devices.

Definition of FT_CreateDeviceInfoList

FT_STATUS FT_CreateDeviceInfoList (LPDWORD lpdwNumDevs)

Parameters of  FT_CreateDeviceInfoList

lpdwNumDevs      Pointer to unsigned long to store the number of devices
connected.

Return Value of  FT_CreateDeviceInfoList

FT_OK if successful, otherwise the return value is an FT error code.

Remarks  about FT_CreateDeviceInfoList

An application can use this function to get the number of devices attached to the system. It can then
allocate space for the device information list and retrieve the list using FT_GetDeviceInfoList or
FT_GetDeviceInfoDetailFT_GetDeviceInfoDetail.
If the devices connected to the system change, the device info list will not be updated until
FT_CreateDeviceInfoList is called again.

Example of  FT_CreateDeviceInfoList

FT_STATUS ftStatus;
DWORD numDevs;
// create the device information list
ftStatus = FT_CreateDeviceInfoList(&numDevs);
if (ftStatus == FT_OK) {
printf(“Number of devices is %d\n”,numDevs);
}
else {
// FT_CreateDeviceInfoList failed
}

© 版权声明
THE END
喜欢就支持一下吧,技术咨询可以联系QQ407933975
点赞0
分享
评论 抢沙发