IOfflineFilesCache::GetDiskSpaceInformation method

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(
  ULONGLONG *pcbVolumeTotal,
  ULONGLONG *pcbLimit,
  ULONGLONG *pcbUsed,
  ULONGLONG *pcbUnpinnedLimit,
  ULONGLONG *pcbUnpinnedUsed
);

Parameters

pcbVolumeTotal

Receives the size, in bytes, of the volume hosting the Offline Files cache.

pcbLimit

Receives the limit on the maximum amount of bytes that can be stored in the Offline Files cache.

pcbUsed

Receives the current number of bytes used by all files that are pinned and automatically cached in the Offline Files cache.

pcbUnpinnedLimit

Receives the limit on the maximum amount of bytes that can be stored in the Offline Files cache for automatically cached files.

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

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header cscobj.h
DLL CscSvc.dll; CscObj.dll

See Also

IOfflineFilesCache