Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Re: How to determine adapter driver name from disk handle?

Reply
Thread Tools Display Modes

Re: How to determine adapter driver name from disk handle?

 
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      08-10-2010
> Is there any way to correlate the drives and adapter-drivers list so
> that I can say drive #2 is attached to the msahci.sys driver (for
> example?)


Storage device numbers are not persistent across boots. If you will boot with another set of disks plugged - then the SDNs for old disks will change too.

So, "drive 2" is not of much use.

But, to corellate, use SetupDi APIs to find all storage controllers, then - for each one - add all its children of the Disk class, then get the SDNs for these disks.

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the different for PNPDTest between WLK 1.5 and WLK 1.2 Wayne Windows Vista Drivers 2 01-18-2010 08:32 PM
Game Compatibility BCurrey Windows Vista Games 6 11-29-2007 08:11 PM
Going Golfing but not with Vista markbyrn Windows Vista Games 15 03-08-2007 10:59 AM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM
problem in dxdiag Peewee64 Windows Vista Games 0 02-14-2007 09:49 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59