send scsi command to usb device using DeviceIoControl method
-
HI i want to make the usb device read only i already opened the handle for the usb device now i need to send scsi command to usb device to make it read only aftert that i will appy dacl to that now i need to know which scsi command i need to pass to the usb device and how can i pass that command to usb device using DeviceIoControl i am using VC++ and visual studio 2005 thanks Anil Veeraghattapu.
-
HI i want to make the usb device read only i already opened the handle for the usb device now i need to send scsi command to usb device to make it read only aftert that i will appy dacl to that now i need to know which scsi command i need to pass to the usb device and how can i pass that command to usb device using DeviceIoControl i am using VC++ and visual studio 2005 thanks Anil Veeraghattapu.
As far as I know there is no standard IOCTL for making a USB removable disk/volume read-only. You can lock a volume on the drive with the FSCTL_LOCK_VOLUME Control Code[^]. The following Microsoft help and support article will show you how to use the function. Have a look at the LockVolume() function. How To Ejecting Removable Media in Windows NT/Windows 2000/Windows XP[^] Best Wishes, -David Delaune