SHGetDiskFreeSpace

王朝百科·作者佚名  2010-02-20
窄屏简体版  字體: |||超大  

SHGetDiskFreeSpace

作用:获取磁盘的空闲空间

BOOL SHGetDiskFreeSpace(

LPCTSTR pszVolume,

ULARGE_INTEGER *pqwFreeCaller,

ULARGE_INTEGER *pqwTot,

ULARGE_INTEGER *pqwFree

);

//获取磁盘的空间信息

Retrieves disk space information for a disk volume.

//如果成功返回值非0

Returns non-zero if successful or zero otherwise.

pszVolume//磁盘的地址如D,表示D盘

A NULL-terminated string that specifies the volume for which size information will be retrieved. This can be a drive letter, UNC name or the path of a folder.

pqwFreeCaller//用户在此盘上的空闲空间的返回地址,可能小于磁盘空闲空间

Address of a ULARGE_INTEGER value that receives the number of bytes available to the caller on the volume. If the operating system implements per-user quotas, this value may be less than the total number of free bytes on the volume.

pqwTot//磁盘的总大小

Address of a ULARGE_INTEGER value that receives the total size of the volume, in bytes.

pqwFree//磁盘的剩余空间

Address of a ULARGE_INTEGER value that receives the number of bytes of free space on the volume.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航