获取属于特定硬盘的列表卷 [英] Getting List Volumes which belong to a Particular hdd

查看:80
本文介绍了获取属于特定硬盘的列表卷的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有2个HDD,我想检索属于第二个HDD的卷的列表.可以帮我吗.
提前感谢..

Hi,
I have 2 HDD's i want to retrieve the list of volumes which belong to the second HDD. Can one please help me with this.
Thanx in advance..

推荐答案

首先使用以下命令获取系统上所有逻辑卷的列表 GetLogicalDrives .
First get a list of all logical volumes on the system using GetLogicalDrives.
使用 CreateFile 打开每个卷,并将名称指定为\\.\ C:用于C驱动器,\\.\ D:用于D驱动器等.
Open each of the volume using CreateFile by specifying the name as \\.\C: for C drive, \\.\D: for D drive etc.


这篇关于获取属于特定硬盘的列表卷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆