status = STATUS_MEDIA_WRITE_PROTECTED;
break;
}
to
case IOCTL_DISK_IS_WRITABLE: {
status = STATUS_SUCESS;
break;
}
------------------------------------------------------------------------------
So i want to force disk.sys ( IOCTL_DISK_IS_WRITABLE ) to return
STATUS_SUCESS every time my application want to write on disk using filter
driver.
So, i need help to know that i am going in right direction or not . If i am
in right direction how can i do this modification.
Thanks a lot
May I know why you thought Vista didn't allow you to write to the disk
directly? Could you show your code snippet regarding the writing
logic, thanks.
IOCTL_DISK_IS_WRITABLE is only for FSD use, for FSD to know whether to
mount itself read-only or writable.
Vista fails the writes only to physical disk LUN device
(\\.\PhysicalDisk%d), and only if the range touched by the write is covered by
a defined partition.
Writes to volumes (\\.\D: or such) are fine in Vista, provided you are
"administrator enough" for this.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
ma...@storagecraft.com
http://www.storagecraft.com
"Nidhi Malik" <nidhi...@stellarinfo.com> wrote in message
news:OQ5aCOA1...@TK2MSFTNGP03.phx.gbl...
--
The personal opinion of
Gary G. Little
"Nidhi Malik" <nidhi...@stellarinfo.com> wrote in message
news:OQ5aCOA1...@TK2MSFTNGP03.phx.gbl...
Wating for reply
Nidhi Malik
"Maxim S. Shatskih" <ma...@storagecraft.com> wrote in message
news:OGD5cfB...@TK2MSFTNGP06.phx.gbl...
--
David J. Craig
Engineer, Sr. Staff Software Systems
Broadcom Corporation
"Nidhi Malik" <nidhi...@stellarinfo.com> wrote in message
news:ueF3VlM1...@TK2MSFTNGP02.phx.gbl...
You do NOT need a filter driver You do NOT need to modify disk.sys. Disk.sys
is fragile enough without the inexperienced tramping though it.
You need to look at IOCTL_SCSI_PASS_THROUGH and IOCTL_ATA_PASS_THROUGH, and
understand what an LBA is, and how it is used in a TFR (which you have to
know) and CDB (something else you have to know). Before it is over you
should be intimate with the SetupDiXxxx API.
--
The personal opinion of
Gary G. Little
"Nidhi Malik" <nidhi...@stellarinfo.com> wrote in message
news:ueF3VlM1...@TK2MSFTNGP02.phx.gbl...