There is much easier way doing this. Simply use ZwCreateFile to open the
volume, which is partition, you want to prevent write with SHARE_READ flag
in a boot driver will do it. I onced done this and it seemed to work.
However, it was sometime ago. You definitely should give it a try.
Cheers.
Bi
-----Original Message-----
From: Jamey Kirby [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, October 09, 2002 8:10 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Read-only Win2k disk with FAT32
Yu can do it two ways: 10 disk filter and 2) SCI filter.
In a disk filter, catch the query calls and or in the removable media
bit. In a SCSI filter, do the same in the inquiry data.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@e-market.co.il
Sent: Wednesday, October 09, 2002 4:43 AM
To: NT Developers Interest List
Subject: [ntdev] Read-only Win2k disk with FAT32
I have a disk with multiple FAT32 partitions (basic)
I need to make it read only.
For that i modified the MBR so that windows can’t recognize it.
(changed the signature from 55AA to my own)
I’m running a disk filter to “cheat” windows about the MBR.
My driver takes care of reads/writes, and
IOCTL_DISK_GET_DRIVE_LAYOUT/IOCTL_DISK_SET_DRIVE_LAYOUT.
When I start faking after the partitions were mounted - everything works
fine.
The problem is that when booting with the modified MBR - the partition
isn’t mounted, even though my filter loads on boot (disk upper filter)
so I see the right disk layout in disk manager but without drive letter.
Any ideas ?
Regards,
Dror.
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%