Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCCacheDrives::Add[C++]

FPCCacheDrives.Add [Visual Basic]

[C++]

The Add method creates a new FPCCacheDrive object in the collection and returns a reference to it. The Save method must be called for the additional FPCCacheDrive object to be saved to persistent storage.

An ISA Server cache drive must be in NTFS format, and have a minimum size of 5 megabytes.

HRESULT Add(
  BSTR Name,
  long CacheLimitInMegs,
  IFPCCacheDrive** ppNewCacheDrive
);

Parameters

Name
[in] Required. BSTR that specifies the name of the new cache drive, such as "C:".
CacheLimitInMegs
[in] Required. A 32-bit integer that specifies the size, in megabytes, allocated to the cache in this particular drive.
ppNewCacheDrive
[out] Address of an interface pointer that on return points to the new IFPCCacheDrive interface added.

Return Values

This method can return one of the following:

Remarks

When you add a drive to the FPCCacheDrives collection, 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 IFPCArray::RestartServices method.

[Visual Basic]

The Add method creates a new FPCCacheDrive object in the collection and returns a reference to it. The Save method must be called for the additional FPCCacheDrive object to be saved to persistent storage.

An ISA Server cache drive must be in NTFS format, and have a minimum size of 5 megabytes.

Function Add( _
  ByVal Name As String, _
  ByVal CacheLimitInMegs As Long _
) As FPCCacheDrive

Parameters

Name
[in] Required. String that specifies the name of the new cache drive, such as "C:".
CacheLimitInMegs
[in] Required. A 32-bit integer that specifies the size, in megabytes, allocated to the cache in this particular drive.

Return Values

This method returns a reference to the FPCCacheDrive object added if the call is successful. Otherwise, an error is raised that can be intercepted by using an error handler.

Remarks

When you add a drive to the FPCCacheDrives collection, 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 FPCArray.RestartServices method.

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

FPCCacheDrives