First of all, i’m sorry for my very bad english.
I never wrote drivers, only win-apps.
My task is to insure the read-only access to (for ex.) usb storage device (make device something like STATUS_MEDIA_WRITE_PROTECTED).
How can it be done?
Thank you all very much.
Create a small filter driver, that determines this is a USB drive of
interest, then on IOCTL_DISK_IS_WRITABLE return
STATUS_MEDIA_WRITE_PROTECTED. Look at the KMDF toater filter sample as a
place to start.
–
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…
> First of all, i’m sorry for my very bad english.
> I never wrote drivers, only win-apps.
> My task is to insure the read-only access to (for ex.) usb storage device
> (make device something like STATUS_MEDIA_WRITE_PROTECTED).
> How can it be done?
>
> Thank you all very much.
>
Thank you for the advice!
For USB disks no driver is needed - see MS KB 555443
Regards,
–PA
wrote in message news:xxxxx@ntdev…
> First of all, i’m sorry for my very bad english.
> I never wrote drivers, only win-apps.
> My task is to insure the read-only access to (for ex.) usb storage device (make device something like
> STATUS_MEDIA_WRITE_PROTECTED).
> How can it be done?
>
> Thank you all very much.
>
Yes, i saw it. But ALL the devices are set to one mode (read-only) in that method.
This is not what i need (specific device by ID).
Thank you anyway 