IRTCClientPortManagement::GetPortRange (Windows CE 5.0)

Send Feedback

This method retrieves the minimum and maximum values of the port range configured for the specified port type. The port range is configured by the system administrator.

HRESULT GetPortRange(RTC_PORT_TYPEenPortType,long*plMinValue,long*plMaxValue);

Parameters

  • enPortType
    [in] Pointer to an RTC_PORT_TYPE enumeration value specifying the port type for the retrieved range.
  • plMinValue
    [out] Pointer to the minimum port range value for the port type specified in enPortType from the registry.
  • plMaxValue
    [out] Pointer to the maximum port range value for the port type specified in enPortType from the registry.

Return Values

This method can return an RTC_E_ constant.

The following table shows additional possible return values.

Value Meaning
E_INVALIDARG Invalid enumeration value.
E_POINTER The pdwMaxValue or pdwMinValue parameter is not a valid pointer.

Remarks

The range returned by this method is used while creating listening ports for media and SIP signaling traffic.

The values for the port ranges can be set in the registry under the registry key HKLM\Software\Policies\Microsoft\Windows\RTC\PortRange.

The MinSipDynamicPort and MaxSipDynamicPort values are used for setting the port range for SIP signaling traffic.

The MinMediaPort and MaxMediaPort values are used for setting the port range for audio/video RTP and RTCP traffic.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Uuid.lib.

See Also

IRTCClientPortManagement |RTC_PORT_TYPE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.