分享好友 天南地北首页 网站导航

什么是SHGetDiskFreeSpace

网友 2023-09-16 12:46 · 头闻号教育培训

最佳答案:

SHGetDiskFreeSpace是一个计算机函数,用于获取磁盘的空闲空间。

详情介绍

SHGetDiskFreeSpace是一个计算机函数,用于获取磁盘的空闲空间。

中文名
SHGetDiskFreeSpace
pszVolume
磁盘的地址如D,表示D盘
pqwFree
磁盘的剩余空间
pqwTot
磁盘的总大小

算法举例

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.

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.

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

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

免责声明:本平台仅供信息发布交流之途,请谨慎判断信息真伪。如遇虚假诈骗信息,请立即举报

举报
反对 0
打赏 0
更多相关文章

收藏

点赞