IOCTL_DISK_IS_WRITABLE

Dear All,

Is there any simple ways to findout the write protected\enabled status of a
drive?

In NT, the IOCTL_DISK_IS_WRITABLE can be used to determine the Write
Protected\Enable status of the drive, from the Application itself. Works
fine for SCSI drives (including Removable drives). But fails with Win32Err
code
1117 for the IDE drives.
{1117->The request could not be performed because of an I/O device error. }

In SCSI: the Mode Sense command is used by the driver to detect the sts.
In IDE : I couldn’t find the impln: for this IOCTL, in the driver code
(atdisk.c)
//MEDIA STATUS shall get me the needed info. Right?

Warm Regards
Anish

mailto:xxxxx@nestec.net

Look in ATAPI.SYS miniport driver. ATDISK is not used for IDE drives any
longer.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of ANISH NAIR
Sent: Monday, June 19, 2000 11:32 PM
To: File Systems Developers
Subject: [ntfsd] IOCTL_DISK_IS_WRITABLE

Dear All,

Is there any simple ways to findout the write protected\enabled
status of a
drive?

In NT, the IOCTL_DISK_IS_WRITABLE can be used to determine the Write
Protected\Enable status of the drive, from the Application itself. Works
fine for SCSI drives (including Removable drives). But fails with Win32Err
code
1117 for the IDE drives.
{1117->The request could not be performed because of an I/O
device error. }

In SCSI: the Mode Sense command is used by the driver to detect the sts.
In IDE : I couldn’t find the impln: for this IOCTL, in the driver code
(atdisk.c)
//MEDIA STATUS shall get me the needed info. Right?

Warm Regards
Anish

mailto:xxxxx@nestec.net


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)