GetRange Method of the IFPCRestrictedPortsRange Interface

The GetRange method retrieves the highest-numbered port and lowest-numbered port in the range.

[C++]

Syntax

HRESULT GetRange(
  [out]  long* pdwPortLow,
  [out]  long* pdwPortHigh
);

Parameters

pdwPortLow

Pointer to a long that on return specifies the lowest-numbered port in the range.

pdwPortHigh

Pointer to a long that on return specifies the highest-numbered port in the range.

Return Value

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

[Visual Basic]

Syntax

Function GetRange( _
  ByRef pdwPortLow As Long, _
  ByRef pdwPortHigh As Long _
) As LongLong

Parameters

pdwPortLow

Reference to a Long that on return specifies the lowest-numbered port in the range.

pdwPortHigh

Reference to a Long that on return specifies the highest-numbered port in the range.

Return Value

If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Remarks

This is a convenience function to get both limts of the range with single function call.

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

IFPCRestrictedPortsRange
FPCRestrictedPortsRange
FPCRestrictedPortsRange


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.

508 Resource Limit Is Reached

Resource Limit Is Reached

The website is temporarily unable to service your request as it exceeded resource limit. Please try again later.