Re: Need scsi address assigned by port driver in SPTI

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Mark, thanks for replying.

The targets all have scsi addresses. They are DVD & CD
devices. I need the scsi address to run a console program,
from a GUI, and to display it to the user.

Some of these devices are on a USB or Firewire bus so
IOCTL_SCSI_GET_ADDRESS doesn't seem to be an
option. Is there another IOCTL that works for USB & Firewire ?

Is getting the path, target ID, and LUN the port driver fills in
after sending a command with IOCTL_SCSI_PASS_THROUGH
not possible ?

Regards,

Bill Mudd

"Mark Roddy" <markr@xxxxxxxxxxxxxx> wrote in message
news:%23C33coKWFHA.3572@xxxxxxxxxxxxxxxxxxxxxxx
bill wrote:
Hi,

MSDN says re: SCSI PASS THROUGH/IOCTL_SCSI_PASS_THROUGH
"This structure includes a SCSI CDB, which must be initialized by
the caller except for the path, target ID, and LUN, which are filled
in by the port driver. "

This works fine to send a scsi command to the device but for another
purpose I need the path, target ID, and LUN values the port driver
assigns to the device.

How do I get them ?

Thanks,

Bill Mudd
Well you aren't supposed to need them. IOCTL_SCSI_GET_ADDRESS works on
targets that actually have scsi addresses.

--

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


.


Quantcast