Microsoft Internet Security and Acceleration Server 2004 SDK

CacheLimitInMegs Property of IFPCCacheDrive[C++]

FPCCacheDrive.CacheLimitInMegs [Visual Basic]

[C++]

The CacheLimitInMegs property gets or sets the disk size allocated to the cache.

HRESULT get_CacheLimitInMegs(
  long* plLimit
);

HRESULT put_CacheLimitInMegs(
  long lLimit
);

Parameters

plLimit
Pointer to a variable that on return receives a 32-bit integer that specifies the disk size allocated to the cache, in megabytes.
lLimit
A 32-bit integer that specifies the disk size allocated to the cache, in megabytes.

Return Values

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Remarks

This property is read/write. Its default value is 0.

Settng this property to a nonzero value for any drive automatically enables the cache. To disable the cache, the CacheLimitInMegs property must be set to 0 for all drives.

When you change the cache allocation, and have saved changes by using the Save method, the Microsoft Firewall service must be restarted for your change to take effect. To stop and restart the Firewall service, use the RestartServices method of the IFPCArray interface.

[Visual Basic]

The CacheLimitInMegs property gets or sets the disk size allocated to the cache.

Property CacheLimitInMegs As Long

Property Value

A 32-bit integer that specifies the disk size allocated to the cache, in megabytes.

Remarks

This property is read/write. Its default value is 0.

Settng this property to a nonzero value for any drive automatically enables the cache. To disable the cache, the CacheLimitInMegs property must be set to 0 for all drives.

When you change the cache allocation, and have saved changes by using the Save method, the Microsoft Firewall service must be restarted for your change to take effect. To stop and restart the Firewall service, use the RestartServices method of the FPCArray interface.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCCacheDrive