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. Database & SysAdmin
  3. System Admin
  4. Stopping a USB device

Stopping a USB device

Scheduled Pinned Locked Moved System Admin
tutorialquestion
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
    Brian van der Beek
    wrote on last edited by
    #1

    I need my application to stop a USB device, so I do not get the windows 'Unsafe Removal' message when the device is disconnected. Anyone know how to do this ?

    S 1 Reply Last reply
    0
    • B Brian van der Beek

      I need my application to stop a USB device, so I do not get the windows 'Unsafe Removal' message when the device is disconnected. Anyone know how to do this ?

      S Offline
      S Offline
      Shiva Prasad T S
      wrote on last edited by
      #2

      Not sure how it can be done from an appln, but if u writing the driver for your USB device, and in the IRP_MN_QUERY_CAPABILITIES handler, if u set the following flag, stack->Parameters.DeviceCapabilities.Capabilities->SurpriseRemovalOK = TRUE; U will not get the Unsafe removal dialog.. regds, Shiva P

      B 1 Reply Last reply
      0
      • S Shiva Prasad T S

        Not sure how it can be done from an appln, but if u writing the driver for your USB device, and in the IRP_MN_QUERY_CAPABILITIES handler, if u set the following flag, stack->Parameters.DeviceCapabilities.Capabilities->SurpriseRemovalOK = TRUE; U will not get the Unsafe removal dialog.. regds, Shiva P

        B Offline
        B Offline
        Brian van der Beek
        wrote on last edited by
        #3

        Thanks for your reply, but this will not help me because I have not written my own driver. My device is using some default driver. (The device I'm using is a ide dvd-rom).

        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