问题描述
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++? 查看GetDiskFreeSpaceEx是否有帮助。 See if GetDiskFreeSpaceEx helps. 这篇关于GetDiskFreeSpace的替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
,具体取决于网络 配额等等。推荐答案