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. Windows API
  4. Unique identifier (other than Vid/Pid) for an USB device that can be retrieved using SetupDixxx() APIs

Unique identifier (other than Vid/Pid) for an USB device that can be retrieved using SetupDixxx() APIs

Scheduled Pinned Locked Moved Windows API
helptutorialworkspace
5 Posts 2 Posters 5 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.
  • S Offline
    S Offline
    Sharath C V
    wrote on last edited by
    #1

    In my application I need to have the ability to uniquely identify an USB device that is inserted. For example: Example 1) If an USB mouse is inserted, I should be able to figure out that it is a particular mouse from a particular manufacturer and it is of particular model. Example 2) If an USB stick is inserted, I should be able to figure out that it is a particular USB stick from a particular manufacturer and it is of particular model.
    These needs to be achieved without taking into vid/pid since I am looking into a case of shared. I dont mind using Vid/Pid also provided I get another unique identifier which I can couple with Vid/Pid as an identifying key. I can add this key to a configuration file in my application to figure out whether it is a device for which I would want the application to take some action on. Any help/direction/suggestion is highly appreciated.

    L 1 Reply Last reply
    0
    • S Sharath C V

      In my application I need to have the ability to uniquely identify an USB device that is inserted. For example: Example 1) If an USB mouse is inserted, I should be able to figure out that it is a particular mouse from a particular manufacturer and it is of particular model. Example 2) If an USB stick is inserted, I should be able to figure out that it is a particular USB stick from a particular manufacturer and it is of particular model.
      These needs to be achieved without taking into vid/pid since I am looking into a case of shared. I dont mind using Vid/Pid also provided I get another unique identifier which I can couple with Vid/Pid as an identifying key. I can add this key to a configuration file in my application to figure out whether it is a device for which I would want the application to take some action on. Any help/direction/suggestion is highly appreciated.

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

      USB knows about vendor ID and product ID, and it allows for unique numbers (serialnumber). IIRC vid and pid are mandatory, however I'm sure a serial number is not, it is just an optional string. I do know most if not all USB stick vendors provide one. When no serial number is present, there's nothing you can do about it. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

      S 1 Reply Last reply
      0
      • L Luc Pattyn

        USB knows about vendor ID and product ID, and it allows for unique numbers (serialnumber). IIRC vid and pid are mandatory, however I'm sure a serial number is not, it is just an optional string. I do know most if not all USB stick vendors provide one. When no serial number is present, there's nothing you can do about it. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        S Offline
        S Offline
        Sharath C V
        wrote on last edited by
        #3

        Thanks very much Luc. Curious to know what IIRC stands for? Could please let me know the expansion for the same? Thanks, Sharath

        L S 2 Replies Last reply
        0
        • S Sharath C V

          Thanks very much Luc. Curious to know what IIRC stands for? Could please let me know the expansion for the same? Thanks, Sharath

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

          you want the fish? or the fishing rod? Google: acronym IIRC :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

          1 Reply Last reply
          0
          • S Sharath C V

            Thanks very much Luc. Curious to know what IIRC stands for? Could please let me know the expansion for the same? Thanks, Sharath

            S Offline
            S Offline
            Sharath C V
            wrote on last edited by
            #5

            IIRC = If I Recall/Remember Correctly ?? I thought it could be some standard/specification related term :) Thanks, Sharath

            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