Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting SCSI media

Status
Not open for further replies.

sroohani

Programmer
Jan 18, 2003
11
ES
Hi all,

I have retrieved a list of all hard drives in my system through GetLogicalDrives and GetDriveType. Now, the problem is that I don't know how to detect which one is IDE and which one is SCSI. Any idea?

Regards,
Shahram
 
You can use Windows Management Instrumentation (WMI).
Look for DeviceID in Win32_DiskDrive for Harddisk, Win32_CDROMDrive for CD.

Here is the link:




You can also use ASPI programming if you want. But it is more complicated. Go to adaptec site for ASPI programming reference

Good luck

-- AirCon --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top