如何获取系统磁盘分区的卷###信息 [英] How to get Volume ### information of Disk Partitions of a system

查看:262
本文介绍了如何获取系统磁盘分区的卷###信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何通过c#代码获取任何系统的所有磁盘分区的卷###信息.

How can we get Volume ### information through c# code for all Disk partitions of any system.

推荐答案

一种方法是:通过以下方式使用本机Windows API: P/调用.

在此处查找一组卷管理功能: http://msdn.microsoft .com/en-us/library/aa365730(v = vs.85).aspx [ http://msdn.microsoft.com/zh-CN/library/aa365728(v = VS.85).aspx [
One approach is this: use native Windows API through P/Invoke.

Look here for a set of volume management functions: http://msdn.microsoft.com/en-us/library/aa365730(v=vs.85).aspx[^], http://msdn.microsoft.com/en-us/library/aa365728(v=VS.85).aspx[^].

—SA


这篇关于如何获取系统磁盘分区的卷###信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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