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. USB driver development for storage devices

USB driver development for storage devices

Scheduled Pinned Locked Moved Windows API
questionworkspace
2 Posts 2 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
    Sanoz0r
    wrote on last edited by
    #1

    I'm looking to change the way USB storage devices are currently handled in my Windows environment. Instead of mounting the device as a drive and having it accessible by the entire system, I want to have it only accessible by a custom application which would then handle the up/downloading of files between the system and the device's file system. I have done some reading, and it seems that the way to do this is to write your own kernel-mode driver for the USB mass storage class of devices. I also read about filter drivers (in the WDK documentation) which would sit on top of your current drivers (usbstor.sys in this case?). It seems like this can achieve the same result without having to program so much with the lower level stuff. Do I understand this correctly? Would it be possible to achieve this functionality easier using the KMDF? Although it does seem like the KMDF is limited to certain distributions of Windows. Sorry for all the questions! I have done as much reading as I can before posting without going bananas. Thank you! :)

    J 1 Reply Last reply
    0
    • S Sanoz0r

      I'm looking to change the way USB storage devices are currently handled in my Windows environment. Instead of mounting the device as a drive and having it accessible by the entire system, I want to have it only accessible by a custom application which would then handle the up/downloading of files between the system and the device's file system. I have done some reading, and it seems that the way to do this is to write your own kernel-mode driver for the USB mass storage class of devices. I also read about filter drivers (in the WDK documentation) which would sit on top of your current drivers (usbstor.sys in this case?). It seems like this can achieve the same result without having to program so much with the lower level stuff. Do I understand this correctly? Would it be possible to achieve this functionality easier using the KMDF? Although it does seem like the KMDF is limited to certain distributions of Windows. Sorry for all the questions! I have done as much reading as I can before posting without going bananas. Thank you! :)

      J Offline
      J Offline
      JudyL_MD
      wrote on last edited by
      #2

      KMDF is a driver. It's the MS-provided framework, so you are in effect writing a windows driver. Never having done a storage driver, I can't help with writing a storage driver with KMDF (yes, no, hard, easy ...). I don't have the framework on this machine, but I seem to recall that it contained some storage driver samples, along with some USB samples. KMDF does work on XP, so I can't see a problem with which version of Windows you're targetting. Judy

      Be wary of strong drink. It can make you shoot at tax collectors - and miss. Lazarus Long, "Time Enough For Love" by Robert A. Heinlein

      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