The Add method creates a new FPCRestrictedPortsRange object in the collection.
HRESULT Add( [in] USHORT usPortLow, [in] USHORT usPortHigh, [out] IFPCRestrictedPortsRange** ppPortsRange );
A USHORT that represents the lowest-numbered port in the range.
A USHORT that represents the highest-numbered port in the range.
An Interface pointer that on return points to the IFPCRestrictedPortsRange interface that represents the new range.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Function Add( _ ByVal usPortLow As USHORT, _ ByVal usPortHigh As USHORT, _ ByRef pPortsRange As FPCRestrictedPortsRange _ ) As FPCRestrictedPortsRange
A USHORT that represents the lowest-numbered port in the range.
A USHORT that represents the highest-numbered port in the range.
Reference that on return points to the FPCRestrictedPortsRange object that represents the new range.
A FPCRestrictedPortsRange object that represents the new range.
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.
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. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.