获取磁盘样品code的转速 [英] Get Rotation Speed of Disk Sample Code

查看:131
本文介绍了获取磁盘样品code的转速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是在VC真的好++,但没有任何人有一个样本code来获得磁盘的转速在计算机中。我一直在检测SSD驱动器,并从整天研究一个解决方案是让转速和自SSD有0转,这可能是检测到SSD驱动器的唯一途径。

Im not really good at VC++ but does anyone have a sample code to get the rotation speed of disk in a computer. I have been working on detecting SSD drives and one solution from researching all day was to get the rotation speed and since SSD have 0 rpm this might be the only way to detect SSD drive.

推荐答案

从<一个href=\"http://www.google.com/search?client=opera&rls=en&q=wmi+ssd+detect&sourceid=opera&ie=utf-8&oe=utf-8&channel=suggest\">google WMI SSD检测

有是用于ReadyDrive的接口>这是一个新的Vista操作系统。我认为,它正在测试NV_FEATURE_PARAMETER的NVReadSpeed​​和NVWrtSpeed​​值。

There is an NV cache manager interface used for ReadyDrive which is new to Vista. I think it is testing NV_FEATURE_PARAMETER's NVReadSpeed and NVWrtSpeed values.

Windows 7的检测使用ATA8-ACS识别字217固态硬盘:标称媒体旋转速度,以价值为0001H非旋转状固态设备的媒体。但是,并非所有的SSD坚持ATA8-ACS1规范部分7.16.7.77,有些人可能需要的固件更新。

Windows 7 detects SSDs by using ATA8-ACS identify word 217: Nominal media rotation rate, with value 0001h as Non-rotating media like solid state devices. But not all SSDs adhere to the ATA8-ACS1 spec section 7.16.7.77, some may need firmware updates.

如果您想更多了解在Windows发送ATA命令,我建议你到风靡存储平台ATA论坛挖。这个论坛被存档,以便迅速采取行动。

If you want to lean more about sending ATA commands in Windows, I suggest you to dig aound the Storage Platform ATA forum. This forum is being archived so act quickly.

也很有启发性:

<一个href=\"http://blogs.msdn.com/b/e7/archive/2009/05/05/support-and-q-a-for-solid-state-drives-and.aspx\">http://blogs.msdn.com/b/e7/archive/2009/05/05/support-and-q-a-for-solid-state-drives-and.aspx

威尔磁盘碎片整理被默认SSD上禁用?

是的。碎片整理的自动调度将排除上宣布自己的SSD设备上的分区。此外,如果系统盘具有高于8兆字节/秒的阈值随机读取性能特征,那么它也将被排除。阈值是由内部分析测定

Yes. The automatic scheduling of defragmentation will exclude partitions on devices that declare themselves as SSDs. Additionally, if the system disk has random read performance characteristics above the threshold of 8 MB/sec, then it too will be excluded. The threshold was determined by internal analysis.

这篇关于获取磁盘样品code的转速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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