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?
Asked
Active
Viewed 793 times
1
-
1This is an solved question: http://stackoverflow.com/questions/2837985/getting-serial-port-information – Mehmet Salih Yildirim Jul 14 '14 at 06:36
-
Note: Should be a duplicate of the above, but it has a link only answer. – Sayse Jul 14 '14 at 06:38
-
@Sayse Look at the second answer: shows exactly how to do it. – Richard Jul 14 '14 at 06:42
-
@Richard - I didn't get any further than the first answer since it kind of raised the valid point of should you really ever need to know this information – Sayse Jul 14 '14 at 06:43
1 Answers
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