SAMPLE: GetAddr.exe Demonstrates IOCTL_SCSI_GET_ADDRESS

ID: Q182148


The information in this article applies to:
  • Microsoft Win32 Device Driver Kit (DDK) for Windows NT, versions 3.51, 4.0


SUMMARY

GetAddr.exe is a sample Win32 console-mode application that demonstrates IOCTL_SCSI_GET_ADDRESS functionality.


MORE INFORMATION

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

GetAddr.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

This is a sample Win32 console mode application that demonstrates how to retrieve the SCSI address information (ScsiPort number, Path ID, Target ID, and LUN) for the specified device. You etrieve this information by calling DeviceIoControl with the IoControlCode parameter set to IOCTL_SCSI_GET_ADDRESS. See the sample for specific parameter issues.

To run the GetAddr.exe:
  1. Build the Win32 application. See the DDK documentation for details on creating Win32 applications from the DDK Build Environment.


  2. Copy the executable to a location that is in your path.

    When building in the Free Build Environment, the executable is created in \ddk\lib\i386\free.

    When building in the Checked Build Environment, the executable is created in \ddk\lib\i386\checked.


  3. From a command prompt, type "gettaddr X:", where X: is the SCSI device with the SCSI address information you want to display.


Additional query words:

Keywords : kbfile kbsample
Version : winnt:3.51,4.0
Platform : winnt
Issue type :


Last Reviewed: December 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.