Solved

SCSI ID strings

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now