GetDiskFreeSpace的替代方案 [英] Alternative to GetDiskFreeSpace

查看:193
本文介绍了GetDiskFreeSpace的替代方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


GetDiskFreeSpace方法根据"与调用线程相关联的用户可用"的内容返回NumberOfFreeClusters和TotalNumberOfClusters的值。  此限制意味着返回的值不同
,具体取决于网络 配额等等。

The GetDiskFreeSpace method returns values for NumberOfFreeClusters and TotalNumberOfClusters based on what is "available to the user who is associated with the calling thread".  This limitation means that the values returned are different depending on network quotas, etc..

我需要在C ++中替代没有此限制的GetDiskFreeSpace这将返回相同的值(在进行乘法后),就像Windows资源管理器属性对话框对已安装的驱动器一样。

I need an alternative in C++ to GetDiskFreeSpace that does not have this limitation and that will return the same values (after you do the multiplication) as the Windows Explorer properties dialog does for a mounted drive.

在C ++中是否有更准确的替代GetDiskFreeSpace?

Is there a more accurate alternative to GetDiskFreeSpace in C++?

推荐答案

On 1/6/2017 12:45 PM ,Ty Rasmussen写道:

On 1/6/2017 12:45 PM, Ty Rasmussen wrote:


在C ++中有更准确的替代GetDiskFreeSpace的方法吗?

Is there a more accurate alternative to GetDiskFreeSpace in C++?

查看GetDiskFreeSpaceEx是否有帮助。

See if GetDiskFreeSpaceEx helps.


这篇关于GetDiskFreeSpace的替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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