Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the amount of disk space used by the Offline Files cache as well as the space limits applied to cache usage.
Syntax
HRESULT GetDiskSpaceInformation(
[out] ULONGLONG *pcbVolumeTotal,
[out] ULONGLONG *pcbLimit,
[out] ULONGLONG *pcbUsed,
[out] ULONGLONG *pcbUnpinnedLimit,
[out] ULONGLONG *pcbUnpinnedUsed
);
Parameters
[out] pcbVolumeTotal
Receives the size, in bytes, of the volume hosting the Offline Files cache.
[out] pcbLimit
Receives the limit on the maximum amount of bytes that can be stored in the Offline Files cache.
[out] pcbUsed
Receives the current number of bytes used by all files that are pinned and automatically cached in the Offline Files cache.
[out] pcbUnpinnedLimit
Receives the limit on the maximum amount of bytes that can be stored in the Offline Files cache for automatically cached files.
[out] pcbUnpinnedUsed
Receives the current number of bytes used by all automatically cached files in the Offline Files cache.
Return value
Returns S_OK if successful, or an error value otherwise.
Remarks
The cache space limits may be adjusted by an administrator using IOfflineFilesCache::SetDiskSpaceLimits.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | cscobj.h |
DLL | CscSvc.dll; CscObj.dll |