> 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