Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Get correct driver name from "Device management" associated with a COM PORT.

Get correct driver name from "Device management" associated with a COM PORT.

Scheduled Pinned Locked Moved C#
comhelptutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AlexB47
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • A AlexB47

      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

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      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.

      A 1 Reply Last reply
      0
      • L Luc Pattyn

        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.

        A Offline
        A Offline
        AlexB47
        wrote on last edited by
        #3

        Thanks Luc, I try this solution. :)

        Alex

        L 1 Reply Last reply
        0
        • A AlexB47

          Thanks Luc, I try this solution. :)

          Alex

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups