how many usb ports are available in my pc how to know this detail about usb ports in vb.net?
Usb Port Detail In vb.net
Page 1 of 13 Replies - 589 Views - Last Post: 07 December 2012 - 09:59 PM
Replies To: Usb Port Detail In vb.net
#2
Re: Usb Port Detail In vb.net
Posted 07 December 2012 - 08:34 AM
I believe that's System.IO.Ports.SerialPort.GetPortNames .
#3
Re: Usb Port Detail In vb.net
Posted 07 December 2012 - 10:15 AM
modi123_1, on 07 December 2012 - 09:34 AM, said:
I believe that's System.IO.Ports.SerialPort.GetPortNames .
Unfortunately, that only covers COM ports, either real or virtual (implemented on USB). It will not find USB ports that do not have virtual COM ports.
I'm digging through some old VB and C++ code to see if I can find some work I did in that regard about 10 years ago.
#4
Re: Usb Port Detail In vb.net
Posted 07 December 2012 - 09:59 PM
I haven't been able to locate the USB enumeration code we used, so I can't help you more.
I can tell you that the USB port stuff is contained in the Registry at:
I can tell you that the USB port stuff is contained in the Registry at:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\USB
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote







|