How do I get a list of physical and logical drives?

How can I get a list of physical drives with a list of logical drives for each physical drive with WinApi and C ++. The primary purpose defines the relationship between physical and logical drives. Thank!

+3


source to share


1 answer


A simpler solution than the idea avakar: QueryDosDevice

. You will need to pass the drive letters that you can get from GetLogicalDriveStrings

and you will get a physical name.



+2


source







All Articles