IOfflineFilesCache::SetDiskSpaceLimits method

Sets disk space usage limits on the Offline Files cache.

Syntax

HRESULT SetDiskSpaceLimits(
  ULONGLONG cbLimit,
  ULONGLONG cbUnpinnedLimit
);

Parameters

cbLimit

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

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

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

See Also

IOfflineFilesCache