?
Solved

SCSI ID strings

Posted on 1999-01-28
3
Medium Priority
?
561 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 600 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

801 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