ioctl succeeds for the devices created by the class drivers. so u need to translate volume to physical disks and then get the scsi address for each associated disks. for this, u could use anoher ioctl provided on windows 2000 onwards, IOCTL_VOLUME_GET_DISK_EXTENTS
----- Original Message -----
From: Mark Twain
To: NT Developers Interest List
Sent: Saturday, September 15, 2001 3:00 AM
Subject: [ntdev] IOCTL_SCSI_GET_ADDRESS
Hi folks,
I have a big problem, please help.
I’m using the DeviceIoControl IOCTL_SCSI_GET_ADDRESS to retrieve the TID, LUN and ScsiBus at wich a given drive letter is attached. Everything works fine, except with Win2k and stripe sets and volume sets. The DeviceIoControl returns Invalid Function error.
Any suggestions greately appreciated!
You are currently subscribed to ntdev as: xxxxx@Legato.COM
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com