Get correct driver name from "Device management" associated with a COM PORT.
-
Hi All, sorry for my bad english. I need your help for reading a driver name available in the "Device management" of O.S. Example, I install an USB driver associated with an internal COM PORT assigned from O.S., and I need to find this COM PORT associated at this driver. I reading all com port of O.S., but what's the right one? Thanks a lot for any suggestion.
Alex
-
Hi All, sorry for my bad english. I need your help for reading a driver name available in the "Device management" of O.S. Example, I install an USB driver associated with an internal COM PORT assigned from O.S., and I need to find this COM PORT associated at this driver. I reading all com port of O.S., but what's the right one? Thanks a lot for any suggestion.
Alex
I don't know about getting the driver name, however using WMI class Win32_SerialPort one can obtain a lot of information, e.g. there are strings such as Caption, Description, DeviceID, Name. Not all of them are always present, however they should suffice to recognize the port you're looking for. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.
-
I don't know about getting the driver name, however using WMI class Win32_SerialPort one can obtain a lot of information, e.g. there are strings such as Caption, Description, DeviceID, Name. Not all of them are always present, however they should suffice to recognize the port you're looking for. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.
-
You're welcome. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.