列出我的计算机上安装的物理驱动器
可能的重复:
如何列出物理磁盘?
什么是“最佳方法”(最快)C++方法列出我的计算机上安装的物理驱动器?有没有一个boost库可以做到这一点?
Possible Duplicate:
How to list physical disks?
What is the "best way" (fastest) C++ way to List physical drives installed on my computer? Is there a boost library to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
GetLogicalDriveStrings()
检索所有可用的逻辑驱动器。或使用
GetLogicalDrives()
use
GetLogicalDriveStrings()
to retrieve all the available logical drives.or use
GetLogicalDrives()
一种可能性是使用 WMI 枚举 Win32_DiskDrive。
One possibility is to use WMI to enumerate the instances of Win32_DiskDrive.