Add Method of the IFPCRestrictedPorts Interface

The Add method creates a new FPCRestrictedPortsRange object in the collection.

[C++]

Syntax

HRESULT Add(
  [in]   USHORT usPortLow,
  [in]   USHORT usPortHigh,
  [out]  IFPCRestrictedPortsRange** ppPortsRange
);

Parameters

usPortLow

A USHORT that represents the lowest-numbered port in the range.

usPortHigh

A USHORT that represents the highest-numbered port in the range.

ppPortsRange

An Interface pointer that on return points to the IFPCRestrictedPortsRange interface that represents the new range.

Return Value

This method returns S_OK if the call is successful; otherwise, it returns an error code.

[Visual Basic]

Syntax

Function Add( _
  ByVal usPortLow As USHORT, _
  ByVal usPortHigh As USHORT, _
  ByRef pPortsRange As FPCRestrictedPortsRange _
) As FPCRestrictedPortsRange

Parameters

usPortLow

A USHORT that represents the lowest-numbered port in the range.

usPortHigh

A USHORT that represents the highest-numbered port in the range.

pPortsRange

Reference that on return points to the FPCRestrictedPortsRange object that represents the new range.

Return Value

A FPCRestrictedPortsRange object that represents the new range.

Remarks

Use this function to add a new range element to the collection of ranges. Fully or partially overlapping ranges are allowed in the collection and will be handled correctly.

Requirements

Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCRestrictedPorts


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.

[an error occurred while processing this directive]