USB mass storage device driver

Hello guys.

I’m fairly new at USB driver development.
I do have some experience with Filter drivers though, so some things seem familiar.

I’m trying to demonstrate the possibility of identifying by a driver, the event of plugging in a USB storage device.

I’d like to be able to distinguish between storage devices and other types of usb devices (hubs,HID etc.)
How does the OS know which type of usb device was plugged in?

Any clue how to start?
I tried looking at the DDK’s filter in the Toaster example, but it won’t install itself properly.

Thanks a bunch,
Ariel.

Well I’ve never done it at the USB level, but it is fairly easy to have a
storage filter, and in AddDevice query if the bus is USB. In my case, I
did not attach the filter except for USB devices.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

wrote in message news:xxxxx@ntdev…
> Hello guys.
>
> I’m fairly new at USB driver development.
> I do have some experience with Filter drivers though, so some things seem
> familiar.
>
> I’m trying to demonstrate the possibility of identifying by a driver, the
> event of plugging in a USB storage device.
>
> I’d like to be able to distinguish between storage devices and other
> types of usb devices (hubs,HID etc.)
> How does the OS know which type of usb device was plugged in?
>
> Any clue how to start?
> I tried looking at the DDK’s filter in the Toaster example, but it won’t
> install itself properly.
>
> Thanks a bunch,
> Ariel.
>
>

Volume filter drivers are a good level for doing just this.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Monday, September 17, 2007 10:09 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] USB mass storage device driver

Well I’ve never done it at the USB level, but it is fairly easy to have
a
storage filter, and in AddDevice query if the bus is USB. In my case, I

did not attach the filter except for USB devices.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

wrote in message news:xxxxx@ntdev…
> Hello guys.
>
> I’m fairly new at USB driver development.
> I do have some experience with Filter drivers though, so some things
seem
> familiar.
>
> I’m trying to demonstrate the possibility of identifying by a driver,
the
> event of plugging in a USB storage device.
>
> I’d like to be able to distinguish between storage devices and other
> types of usb devices (hubs,HID etc.)
> How does the OS know which type of usb device was plugged in?
>
> Any clue how to start?
> I tried looking at the DDK’s filter in the Toaster example, but it
won’t
> install itself properly.
>
> Thanks a bunch,
> Ariel.
>
>


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer