Solved

SCSI ID strings

Posted on 1999-01-28
3
548 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.

821 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