如何检查c ++ vs 6中的当前磁盘长度并在Windows 7上运行 [英] How to check the current disk length in c++ vs 6 and running on windows 7

查看:45
本文介绍了如何检查c ++ vs 6中的当前磁盘长度并在Windows 7上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用Windows性能计数器来检查磁盘长度,我试图使用WMI,但它没有在vc ++ 6中编译,我没有在windows7中找到兼容的SDK。我也尝试了IOCTL_DISK_GET_LENGTH_INFO,但这也没有编译,它在Windows 7上不支持,请你告诉我如何在我当前的设置中继续编译IOCTL_DISK_GET_LENGTH_INFO。

解决方案

我认为问题可能是尝试使用这样一个旧的编译器和SDK。您应该升级到最新版本之一。请参见 https://www.visualstudio.com/products/visual-studio-express-vs [ ^ ]免费提供。

Hi, I need to use the windows performance counters to check the disk length, I tried to use WMI, but it was not compiling in vc++ 6 and I didn't find the compatible SDK in windows7. I also tried the IOCTL_DISK_GET_LENGTH_INFO, but this was also not compiling, it didn't support on windows 7, can you please tell me how can I proceed to compile IOCTL_DISK_GET_LENGTH_INFO in my current setup.

解决方案

I think the problem is probably trying to use such an old compiler and SDK. You should upgrade to one of the latest editions. See https://www.visualstudio.com/products/visual-studio-express-vs[^] for free ones.


这篇关于如何检查c ++ vs 6中的当前磁盘长度并在Windows 7上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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