Locating drive letter from physical drive

Oct 24, 2011 at 9:23am
I'm trying to locate all volumes or drive letters on a physical disk.
I've read the below article:
http://msdn.microsoft.com/en-us/library/cc542456%28VS.85%29.aspx
and this gives me the \Device\HarddiskVolumexxx which appears to relate to the number of the partition, however a physical disk may have multiple partitions
So if disk a has partions which relate to c d and e drives I would get:

\Device\HarddiskVolume1
Drive c:
\Device\HarddiskVolume2
Drive d:
\Device\HarddiskVolume3
Drive e:

However I want to get all drives for a physical disk i.e. //physicaldrivexxx
Any ideas?
Nov 16, 2011 at 6:58pm
Have you tried using GetLogicalDriveStrings
Topic archived. No new replies allowed.