F
Frank
Hello,
how to get information about all serial ports in the PC?
I use the following code, but i got only the data of the FIRST serial port.
All other serial port information are not available with this code sample:
ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select *
from WIN32_SerialPort");
foreach(ManagementObject Port in searcher.Get()) {
string a = (string) Port.GetPropertyValue("Name");
}
Does anybody knows how to get informations about ALL serial ports?
Thanks
Frank
how to get information about all serial ports in the PC?
I use the following code, but i got only the data of the FIRST serial port.
All other serial port information are not available with this code sample:
ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select *
from WIN32_SerialPort");
foreach(ManagementObject Port in searcher.Get()) {
string a = (string) Port.GetPropertyValue("Name");
}
Does anybody knows how to get informations about ALL serial ports?
Thanks
Frank