FW: Drive letter mapping for ATA device in 95

i posted this question to many 95 newsgroups, but no response, just trying
my luck here.

context: developing utilities for high capacity removable storage ATA
device for 95/98.

requirement: We need to know the drive letters assigned to an ATA(IDE)
drive and the mapping to Primary/Secondary Master/Slave.

We get int13 physical drive number using VWIN32_DOD_IOCTL with logical
drive number ( c=3, D=4,…) as input. Also using SCSI command
SC_GET_DISK_INFO we get the physical drive number directly from SCSI drive
with SCSI bus ID, device as input. This way we do the mapping for SCSI.
But for ATA(IDE) we could not find a similar mechanism. Anybody know?

For IDE what we have observed is we have found a registry key unique to
our device. Its HKLM\Enum\ESDI_GENERIC_IDE_DISK_TYPEXX_ . This contains
all ( not all) the device enumeration information. It contains the drive
letter assignment also. But how do we know differentiate between
Primary/Seconday Master/Slave? Any idea?

Any suggestions?

thank you,

You can enumerate all block devices and get a DCB structure for each of them. Search DDK95 for DCB, DCB_COMMON, DCB_BLOCKDEV. DCB contains a system defined drive letter and other useful information.

Regards,
Max Lyadvinsky


??: ANOOP.G[SMTP:xxxxx@nestec.net]
???: NT Developers Interest List
???: 18 ??? 2000 ?. 20:57
???: NT Developers Interest List
???: [ntdev] FW: Drive letter mapping for ATA device in 95

i posted this question to many 95 newsgroups, but no response, just trying
my luck here.

context: developing utilities for high capacity removable storage ATA
device for 95/98.

requirement: We need to know the drive letters assigned to an ATA(IDE)
drive and the mapping to Primary/Secondary Master/Slave.

We get int13 physical drive number using VWIN32_DOD_IOCTL with logical
drive number ( c=3, D=4,…) as input. Also using SCSI command
SC_GET_DISK_INFO we get the physical drive number directly from SCSI drive
with SCSI bus ID, device as input. This way we do the mapping for SCSI.
But for ATA(IDE) we could not find a similar mechanism. Anybody know?

For IDE what we have observed is we have found a registry key unique to
our device. Its HKLM\Enum\ESDI_GENERIC_IDE_DISK_TYPEXX_ . This contains
all ( not all) the device enumeration information. It contains the drive
letter assignment also. But how do we know differentiate between
Primary/Seconday Master/Slave? Any idea?

Any suggestions?

thank you,


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

Is there any way to find out Primary/Secondary Master/Slave information for
ATA device from DCB structure I see that there is enough information about
SCSI drive in that structure.

I searched the web but found very little information on it other than 95ddk.
Any help would be highly appreciated.

best regards,
Anoop

-----Original Message-----
From: ANOOP.G
Sent: Thursday, May 18, 2000 10:26 PM
To: ‘xxxxx@lists.osr.com’
Subject: FW: Drive letter mapping for ATA device in 95

i posted this question to many 95 newsgroups, but no response, just trying
my luck here.

context: developing utilities for high capacity removable storage ATA
device for 95/98.

requirement: We need to know the drive letters assigned to an ATA(IDE)
drive and the mapping to Primary/Secondary Master/Slave.

We get int13 physical drive number using VWIN32_DOD_IOCTL with logical
drive number ( c=3, D=4,…) as input. Also using SCSI command
SC_GET_DISK_INFO we get the physical drive number directly from SCSI drive
with SCSI bus ID, device as input. This way we do the mapping for SCSI.
But for ATA(IDE) we could not find a similar mechanism. Anybody know?

For IDE what we have observed is we have found a registry key unique to
our device. Its HKLM\Enum\ESDI_GENERIC_IDE_DISK_TYPEXX_ . This contains
all ( not all) the device enumeration information. It contains the drive
letter assignment also. But how do we know differentiate between
Primary/Seconday Master/Slave? Any idea?

Any suggestions?

thank you,