by josh » Fri Apr 04, 2008 12:02 am
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
-Josh