3 Replies - 2087 Views - Last Post: 07 December 2012 - 09:59 PM Rate Topic: -----

#1 biren1212  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 07-December 12

Usb Port Detail In vb.net

Posted 07 December 2012 - 04:35 AM

how many usb ports are available in my pc how to know this detail about usb ports in vb.net?
Is This A Good Question/Topic? 0
  • +

Replies To: Usb Port Detail In vb.net

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9418
  • View blog
  • Posts: 35,396
  • Joined: 12-June 08

Re: Usb Port Detail In vb.net

Posted 07 December 2012 - 08:34 AM

I believe that's System.IO.Ports.SerialPort.GetPortNames .
Was This Post Helpful? 0
  • +
  • -

#3 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: Usb Port Detail In vb.net

Posted 07 December 2012 - 10:15 AM

View Postmodi123_1, on 07 December 2012 - 09:34 AM, said:


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.
Was This Post Helpful? 0
  • +
  • -

#4 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

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:

    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\USB

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1