1

I write some application, in form it has three combobox with serial ports names(com1, com3, com5). In device manager i see: silicon labs cp210x(com5), moxa uport 1130(com3), serial port(com1). How i can get these names from my application?

k_zaur_k
  • 400
  • 1
  • 6
  • 16

1 Answers1

0

Windows Management Infrastructure (WMI) is probably the easiest way: the WMI type Win32_SerialPort.

Make use of the System.Management namespace types to access WMI from .NET applications.

Richard
  • 106,783
  • 21
  • 203
  • 265