Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FTID_GetNumDevices
Return to Introduction  Previous page  Next page
Returns the number of available FT232R and FT245R devices connected to a system.

FTID_STATUS
FTID_GetNumDevices
(lpdwNumDevices)




Parameters
lpdwNumDevices
Pointer to a variable of type DWORD which receives the actual number of available FT232R and FT245R devices connected to a system




Return Value
FTID_SUCCESS if successful, otherwise the return value is one of the following FTID error codes:

   FTID_IO_ERROR



Remarks
This function can be used to provide the maximum index for using with
FTID_GetDeviceSerialNumber, FTID_GetDeviceDescription, FTID_GetDeviceLocationID and FTID_GetDeviceChipID.


Example

FTID_STATUS Status = FTID_SUCCESS;
DWORD NumDevices = 0;

Status = FTID_GetNumDevices(&NumDevices);