IFPCRestrictedPortsRange::GetRange method

Applies to: desktop apps only

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

Syntax

HRESULT GetRange(
  [out]       long *pdwPortLow,
  [out, ref]  Long &pdwPortLow,
  [out]       long *pdwPortHigh,
  [out, ref]  Long &pdwPortHigh
);
FPCRestrictedPortsRange.GetRange( _
  ByRef pdwPortLow As long, _
  ByRef pdwPortLow As Long, _
  ByRef pdwPortHigh As long, _
  ByRef pdwPortHigh As Long _
)

Parameters

  • pdwPortLow [out]

    C++

    Required. Pointer to a variable that on return receives a 32-bit integer that specifies the lowest-numbered port in the range.

    VB

    Required. Reference to a 32-bit integer that on return specifies the lowest-numbered port in the range.

  • pdwPortHigh [out]

    C++

    Required. Pointer to a variable that on return receives a 32-bit integer that specifies the highest-numbered port in the range.

    VB

    Required. Reference to a 32-bit integer that on return specifies the highest-numbered port in the range.

Return value

C++

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

VB

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Remarks

This method is a convenience function for getting both limits of the range in single function call.

This method cannot be used in Microsoft Visual Basic Scripting Edition (VBScript).

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCRestrictedPortsRange

 

 

Build date: 7/12/2010