检查硬盘状态(故障) [英] Check Hard disk status (faulty)

查看:58
本文介绍了检查硬盘状态(故障)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何在c#中检查硬盘状态(工作或损坏)?我需要在c#(vs 2008)中开发一个应用程序,当硬盘出现问题或无法正常工作时会发出警报.

谢谢.

Hi all,

How to check the hard disk status (working or damaged) in c#? I need to develop an application in c# (vs 2008) which will send alarm when hard disk has any problem or not working.

Thanks.

推荐答案

hello
据我所知,您只能使用 GetDiskFreeSpaceEx API获得可用空间.但是要检查磁盘状态,我还没有找到更好的方法.
感谢
Chao
hello
As far as I know you could only get the volume information by using GetVolumeInformation API. And you could gain the free space by GetDiskFreeSpaceEx API. But for check the disk status, I have not found a better way yet.
Thanks
Chao


这篇关于检查硬盘状态(故障)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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