当前位置:首页 科普知识 SHGetDiskFreeSpace

SHGetDiskFreeSpace

发布时间:2023-09-14 00:50:57

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

SHGetDiskFreeSpace介绍

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

SHGetDiskFreeSpace

算法举例

BOOL SHGetDiskFreeSpace(

LPCTSTR pszVolume,

ULARGE_INTEGER *pqwFreeCaller,

ULARGE_INTEGER *pqwTot,

ULARGE_INTEGER *pqwFree

SHGetDiskFreeSpace

);

//获取磁盘的空间信息

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.

SHGetDiskFreeSpace

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.

温馨提示:
本文【SHGetDiskFreeSpace】由作者 爱百科 转载提供。 该文观点仅代表作者本人, 自学教育网 信息发布平台,仅提供信息存储空间服务, 若存在侵权问题,请及时联系管理员或作者进行删除。
(c)2008-2025 自学教育网 All Rights Reserved 汕头市灵创科技有限公司
粤ICP备2024240640号-6