[英]How get list of physical and logical disks?
How i can get list of physical disks with list logical disks for each of physical disk with WinApi and C++.我如何使用 WinApi 和 C++ 获取物理磁盘列表,其中包含每个物理磁盘的逻辑磁盘列表。 Main goal determine link between physical and logical disks.主要目标确定物理和逻辑磁盘之间的链接。 Thanks!谢谢!
Easier solution than avakar's idea: QueryDosDevice
.比 avakar 的想法更简单的解决方案: QueryDosDevice
。 You'll need to pass drive letters, which you can get from GetLogicalDriveStrings
, and you get the physical name back.您需要传递可以从GetLogicalDriveStrings
获取的驱动器GetLogicalDriveStrings
,然后您将获得物理名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.