Solved

SCSI ID strings

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

747 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

9 Experts available now in Live!

Get 1:1 Help Now