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. USB Drives Enable/Disable

USB Drives Enable/Disable

Scheduled Pinned Locked Moved Hardware & Devices
helpc++windows-adminquestion
4 Posts 3 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.
  • K Offline
    K Offline
    kulkarniquiet
    wrote on last edited by
    #1

    Hi There, Myself Abhijit and need some input from your side about DEVCON. I hope you will help me in this regard. I am working on module in which USB drive needs to be ENABLED or DIABLED through command line argument ON or OFF. Initially I achieved it by changing registry values for USBSTOR and imagepath location. But as REBOOTING of system is required, I used devcon.exe to enable or disable USB drive. I used command Devcon disable USBSTOR\DISK* to Disable USB and devcon enable USBSTOR\DISK* to enable USB. Devcon.exe was placed in my code folder. Now problem is I want to remove devcon dependency and use devcon's code in my application for enabling or disabling USB drive. I am not getting which functions to used for the same and how? Do you have any idea or sample code in this regard with you so that i can proceed further. I am getting lot of compilations errors when I include devcon.h and use functions from devcon.cpp like enumeratedevices and so on. Can you please help me in this regard as this is very urgent for me? I do not have any prior knowledge about devcon. Hoping a positive reply from your side. Best Regards, Abhijit Kulkarni,

    realJSOPR 1 Reply Last reply
    0
    • K kulkarniquiet

      Hi There, Myself Abhijit and need some input from your side about DEVCON. I hope you will help me in this regard. I am working on module in which USB drive needs to be ENABLED or DIABLED through command line argument ON or OFF. Initially I achieved it by changing registry values for USBSTOR and imagepath location. But as REBOOTING of system is required, I used devcon.exe to enable or disable USB drive. I used command Devcon disable USBSTOR\DISK* to Disable USB and devcon enable USBSTOR\DISK* to enable USB. Devcon.exe was placed in my code folder. Now problem is I want to remove devcon dependency and use devcon's code in my application for enabling or disabling USB drive. I am not getting which functions to used for the same and how? Do you have any idea or sample code in this regard with you so that i can proceed further. I am getting lot of compilations errors when I include devcon.h and use functions from devcon.cpp like enumeratedevices and so on. Can you please help me in this regard as this is very urgent for me? I do not have any prior knowledge about devcon. Hoping a positive reply from your side. Best Regards, Abhijit Kulkarni,

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      George weighs 245 pounds and drinks two triple lattes every morning. If each shot of espresso contains 490mg of caffeine, what is George's average caffeine density in mg/pound?

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      K G 2 Replies Last reply
      0
      • realJSOPR realJSOP

        George weighs 245 pounds and drinks two triple lattes every morning. If each shot of espresso contains 490mg of caffeine, what is George's average caffeine density in mg/pound?

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        K Offline
        K Offline
        kulkarniquiet
        wrote on last edited by
        #3

        ??

        1 Reply Last reply
        0
        • realJSOPR realJSOP

          George weighs 245 pounds and drinks two triple lattes every morning. If each shot of espresso contains 490mg of caffeine, what is George's average caffeine density in mg/pound?

          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          G Offline
          G Offline
          GuyThiebaut
          wrote on last edited by
          #4

          I know the answer, I know the answer! 12mg per pound. Do I get a chocolate biscuit for being correct?:-D

          You always pass failure on the way to success.

          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