IOfflineFilesCache::SetDiskSpaceLimits method (cscobj.h)

Sets disk space usage limits on the Offline Files cache.

Syntax

HRESULT SetDiskSpaceLimits(
  [in] ULONGLONG cbLimit,
  [in] ULONGLONG cbUnpinnedLimit
);

Parameters

[in] cbLimit

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

[in] cbUnpinnedLimit

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

Return value

Returns S_OK if successful, or an error value otherwise.

Remarks

The caller must be an administrator on the local machine.

The current disk space limits may be obtained by calling IOfflineFilesCache::GetDiskSpaceInformation.

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

See also

IOfflineFilesCache