How to get the SCSI address (ACSL) for a scsi disc?

Hi all,

What is the correct way to retrieve the scsi address of a given scsi disc?
I’m looking for a way to find a scsi disc at a specific scsi address. I was
enumerating all the scsi devices then retrieve and parse their location
string. However, I found the location of the device is not always the same
as scsi address. So, can any one tell me, what is the exactly way to trieve
the scsi address? If use IOCTL, which IOCTL exactly? Thanks in adavance.

IOCTL_SCSI_GET_ADDRESS on the disk handle.

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Luc Hunt
Sent: Friday, May 26, 2006 4:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to get the SCSI address (ACSL) for a scsi disc?

Hi all,

What is the correct way to retrieve the scsi address of a given scsi disc?
I’m looking for a way to find a scsi disc at a specific scsi address. I was
enumerating all the scsi devices then retrieve and parse their location
string. However, I found the location of the device is not always the same
as scsi address. So, can any one tell me, what is the exactly way to trieve
the scsi address? If use IOCTL, which IOCTL exactly? Thanks in adavance.

— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thanks$B!*(B

On 5/26/06, Mark Roddy wrote:
>
> IOCTL_SCSI_GET_ADDRESS on the disk handle.
>
> =====================
> Mark Roddy DDK MVP
> Windows 2003/XP/2000 Consulting
> Hollis Technology Solutions 603-321-1032
> www.hollistech.com
>
>
> ------------------------------
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Luc Hunt
> Sent: Friday, May 26, 2006 4:52 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] How to get the SCSI address (ACSL) for a scsi disc?
>
> Hi all,
>
> What is the correct way to retrieve the scsi address of a given scsi disc?
> I’m looking for a way to find a scsi disc at a specific scsi address. I was
> enumerating all the scsi devices then retrieve and parse their location
> string. However, I found the location of the device is not always the same
> as scsi address. So, can any one tell me, what is the exactly way to trieve
> the scsi address? If use IOCTL, which IOCTL exactly? Thanks in adavance.
>
> — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

IOCTL_SCSI_GET_ADDRESS to \.\PhysicalDrive%d

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Luc Hunt”
To: “Windows System Software Devs Interest List”
Sent: Saturday, May 27, 2006 12:51 AM
Subject: [ntdev] How to get the SCSI address (ACSL) for a scsi disc?

Hi all,

What is the correct way to retrieve the scsi address of a given scsi disc?
I’m looking for a way to find a scsi disc at a specific scsi address. I was
enumerating all the scsi devices then retrieve and parse their location
string. However, I found the location of the device is not always the same
as scsi address. So, can any one tell me, what is the exactly way to trieve
the scsi address? If use IOCTL, which IOCTL exactly? Thanks in adavance.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer