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. usb device (not the storage volume type)

usb device (not the storage volume type)

Scheduled Pinned Locked Moved C#
question
3 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.
  • B Offline
    B Offline
    Blubbo
    wrote on last edited by
    #1

    This is for generic usb devices (3 of same usb devices) I'm not sure if it is possible to do this scenario... With all 3 usb devices are on and loaded in the application... When device B is disconnected, the device B handle/instance is disposed. When device B comes back on (reconnected), the system detects device B (using the wndproc messaging), the handle/instance) is being established, without changing the intptr handle of the device A & C. Is this possible? Right now, when the application detects Device B is reconnected and powered up, the application re-scan all of usb devices (and filters out specific Product ID & Vendor ID), all of 3 devices gets new handle/instance.

    M 1 Reply Last reply
    0
    • B Blubbo

      This is for generic usb devices (3 of same usb devices) I'm not sure if it is possible to do this scenario... With all 3 usb devices are on and loaded in the application... When device B is disconnected, the device B handle/instance is disposed. When device B comes back on (reconnected), the system detects device B (using the wndproc messaging), the handle/instance) is being established, without changing the intptr handle of the device A & C. Is this possible? Right now, when the application detects Device B is reconnected and powered up, the application re-scan all of usb devices (and filters out specific Product ID & Vendor ID), all of 3 devices gets new handle/instance.

      M Offline
      M Offline
      Michael9000
      wrote on last edited by
      #2

      I'd guess (a wild guess) that the handle for A and C wouldn't change if it's being used when B is disconnected/reconnected. (maybe google how multiple USB TV-tuners keep using the ones that arent dis-/re-connected)

      B 1 Reply Last reply
      0
      • M Michael9000

        I'd guess (a wild guess) that the handle for A and C wouldn't change if it's being used when B is disconnected/reconnected. (maybe google how multiple USB TV-tuners keep using the ones that arent dis-/re-connected)

        B Offline
        B Offline
        Blubbo
        wrote on last edited by
        #3

        no other suggestion?

        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