FTID_STATUS
|
FTID_GetDeviceLocationID
|
(DWORD dwDeviceIndex, LPDWORD lpdwLocationIDBuffer)
|
Parameters
dwDeviceIndex
|
Index of the FT232R or FT245R device.
|
lpdwLocationIDBuffer
|
Pointer to buffer that receives the location ID for the FT232R or FT245R device.
|
Return Value
FTID_SUCCESS if successful, otherwise the return value is one of the following FTID error codes:
FTID_DEVICE_NOT_FOUND
FTID_INVALID_DEVICE_NAME_INDEX
FTID_IO_ERROR
Remarks
The FTID_GetNumDevices function can be used to obtain the number of available FT232R and FT245R devices connected to a system. The device index is 0 based. Please note that Linux does not support location IDs.
Example
FTID_STATUS Status = FTID_SUCCESS;
DWORD LocID = 0;
Status = FTID_GetDeviceLocationID(0, &LocID);