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 networkquotas,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的替代方案
发布评论