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. Hardware & Devices
  4. Enabling/disabling a device

Enabling/disabling a device

Scheduled Pinned Locked Moved Hardware & Devices
comjsonhelpquestionannouncement
5 Posts 3 Posters 2 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
    Shivian
    wrote on last edited by
    #1

    Hi, I have a problem with a USB device in that it frequently fails when I try to connect to it to update its application. The manufacturer points out that this is a known problem and the solution is to disable and re-enable the device in Device Manager but this is, when I update the application to test something sometimes once a few minutes, a rather tedious and slow task. The two devices, as listed in Device Manager are "Communications cable between two computers" in "Modem" and "SAGEM MONETEL EFT30 USB PORT (COM5) in "Ports (COM & LPT)". Does anyone know how I can do this or what API I can use to do it? Thanks in advance :cool:

    M L 2 Replies Last reply
    0
    • S Shivian

      Hi, I have a problem with a USB device in that it frequently fails when I try to connect to it to update its application. The manufacturer points out that this is a known problem and the solution is to disable and re-enable the device in Device Manager but this is, when I update the application to test something sometimes once a few minutes, a rather tedious and slow task. The two devices, as listed in Device Manager are "Communications cable between two computers" in "Modem" and "SAGEM MONETEL EFT30 USB PORT (COM5) in "Ports (COM & LPT)". Does anyone know how I can do this or what API I can use to do it? Thanks in advance :cool:

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

      Each time when I plug in USB memory stick to the pc, there is a window pops out. I have application to indicate whether a USB memory stick presents.I don't want this auto window to pop out. How shall I resolve it??:confused:

      L 1 Reply Last reply
      0
      • S Shivian

        Hi, I have a problem with a USB device in that it frequently fails when I try to connect to it to update its application. The manufacturer points out that this is a known problem and the solution is to disable and re-enable the device in Device Manager but this is, when I update the application to test something sometimes once a few minutes, a rather tedious and slow task. The two devices, as listed in Device Manager are "Communications cable between two computers" in "Modem" and "SAGEM MONETEL EFT30 USB PORT (COM5) in "Ports (COM & LPT)". Does anyone know how I can do this or what API I can use to do it? Thanks in advance :cool:

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        look at the setupdixxx functions, you can enable and disable a device programaticaly.

        Truth is the subjection of reality to an individuals perception

        S 1 Reply Last reply
        0
        • M mmhu

          Each time when I plug in USB memory stick to the pc, there is a window pops out. I have application to indicate whether a USB memory stick presents.I don't want this auto window to pop out. How shall I resolve it??:confused:

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          this is a known windows 2000 bug. to fix it you need to put a filter driver over usbstor.sys that mods the response to IRP_MJ_QUERY_CAPABILITIES.

          Truth is the subjection of reality to an individuals perception

          1 Reply Last reply
          0
          • L Lost User

            look at the setupdixxx functions, you can enable and disable a device programaticaly.

            Truth is the subjection of reality to an individuals perception

            S Offline
            S Offline
            Shivian
            wrote on last edited by
            #5

            Thanks I'll look into it.

            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