Page 1 of 1

List of connected USB UIRT devices?

PostPosted: Tue Feb 12, 2008 7:24 pm
by avalanche333
Is it possible to retrieve a list of all connected USB-UIRT devices?

PostPosted: Fri Feb 15, 2008 2:07 pm
by avalanche333
I have got word from support that with the current API's there is no function to retrieve a list of connected devices.

PostPosted: Fri Apr 04, 2008 12:02 am
by josh
Assuming that the devices were named with the uurename utility, I was able to get the list by simply opening each possible name. See the VB code below:
For i = 0 To 9
'Build the name
If i = 0 Then
sUUIRTName = "USB-UIRT"
Else
sUUIRTName = "USB-UIRT-" & i
End If
'Try to open that device
hTempHandle = UUIRTOpenEx(sUUIRTName, 0, 0, 0)
If hTempHandle <> INVALID_HANDLE_VALUE Then
gUUIRTs(gNumUUIRTs).hDrvHandle = hTempHandle
gUUIRTs(gNumUUIRTs).sName = sUUIRTName
gNumUUIRTs = gNumUUIRTs + 1
End If
Next