SHGetDiskFreeSpace

SHGetDiskFreeSpace

SHGetDiskFreeSpace是一個計算機函式,用於獲取磁碟的空閒空間。

基本介紹

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.

相關詞條

相關搜尋

熱門詞條

聯絡我們