I have a File System MiniFilter driver that I can properly see when a device is removable (USB attached) and handle it accordingly. But some USB disks even though removable, report themselves as if it is a fixed one (you do not see Removable Media etc. on the Explorer). But Vista still able to place Safely Remove menu selection for such disks even though the disk is mountred as fixed disk. What additional attributes should I be checking to see if the attached disk is fixed-but-removable unlike the standard removable? Is there any sample code for this?
Thx
Are you checking for removable, or on the USB bus? You might add a check
for the device being on USB.
–
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
wrote in message news:xxxxx@ntfsd…
>I have a File System MiniFilter driver that I can properly see when a
>device is removable (USB attached) and handle it accordingly. But some USB
>disks even though removable, report themselves as if it is a fixed one (you
>do not see Removable Media etc. on the Explorer). But Vista still able to
>place Safely Remove menu selection for such disks even though the disk is
>mountred as fixed disk. What additional attributes should I be checking to
>see if the attached disk is fixed-but-removable unlike the standard
>removable? Is there any sample code for this?
>
> Thx
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 4355 (20090821)
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
Information from ESET NOD32 Antivirus, version of virus signature database 4355 (20090821)
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
Thanks for response. I am able to see if the device is removable media or not via FltGetVolumeProperties. But I am not sure how to obtain if the device is on USB or 1394 bus when FltGetVolumeProperties states as non-removable media. Do I have to use another DeviceIO for this (which I prefer not to to eliminate further complications during the instance setup) like IoBuildDeviceIoControlRequest( IOCTL_STORAGE_QUERY_PROPERTY,…)? Or could I simply rely on MiniFilter calls to see if the device is on USB or 1394?
Thx
You have to use another query. The cost is trivial to do, and yes as you
want make the filter smarted about what it filters your instance setup gets
more complex, this is a given.
–
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
wrote in message news:xxxxx@ntfsd…
> Thanks for response. I am able to see if the device is removable media or
> not via FltGetVolumeProperties. But I am not sure how to obtain if the
> device is on USB or 1394 bus when FltGetVolumeProperties states as
> non-removable media. Do I have to use another DeviceIO for this (which I
> prefer not to to eliminate further complications during the instance
> setup) like IoBuildDeviceIoControlRequest(
> IOCTL_STORAGE_QUERY_PROPERTY,…)? Or could I simply rely on MiniFilter
> calls to see if the device is on USB or 1394?
>
> Thx
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 4358 (20090822)
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
Information from ESET NOD32 Antivirus, version of virus signature database 4358 (20090822)
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com