Solved

SCSI ID strings

Posted on 1999-01-28
3
550 Views
Last Modified: 2013-11-20
I would like to be able to obtain the ID strings of SCSI devices attached to an NT 4.0 machine. (eg "Pinnacle Apex").

I have seen code like
DeviceIoControl(deviceHandle,IOCTL_SCSI_GET_ADDRESS, .....
and it seems that this is getting close to what I need.

I think IOCTL_SCSI_GET_ADDRESS is defined in the DDK as I can find no reference to it.

Can anyone help with the specifics to solve my problem. An MFC class that does the SCSI stuff would be ideal.
0
Comment
Question by:pwasser
3 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1328457
There is a sample.

SAMPLE: GetAddr.exe Demonstrates IOCTL_SCSI_GET_ADDRESS
http://support.microsoft.com/support/kb/articles/q182/1/48.asp

But I am not sure if it returns the info you want. If not, reject my answer.
0
 

Author Comment

by:pwasser
ID: 1328458
The answer refers to the location from which I partly derived the question. The code snippet I used came from this page. I need the next step.
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1328459
You can look under HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi

Under Scsi, there are two ports Scsi Port 0 and Scsi Port 1. Each for a possible adapter. Then under each Port, there are possible buses. Usually on most desktop systems, there is only Scsi Bus 0. Underneath this key is where the Target IDs are. Underneath this key are the Logical Unit Ids, where an Identifier string and type string are located.


0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 106
repeateFront java challenge 31 95
ffmpeg - "rtsp://...... Operation not permitted" 4 89
Thin secure Windows 10 5 107
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question