Share via


IRTCPortManager3::ReleaseMappingEx (Windows Embedded CE 6.0)

1/6/2010

This method informs the application that NAT mapping is no longer required. For example, when a call has completed, the NAT mapping is no longer required. The application should then release the NAT mapping.

The method specifies the transport protocol that Port Manager is to use, in addition to the parameters specified by IRTCPortManager::ReleaseMapping.

Syntax

HRESULT ReleaseMappingEx(
  long lTransport,
  BSTR bstrInternalLocalAddress,
  long lInternalLocalPort,
  BSTR bstrExternalLocalAddress,
  long lExternalLocalPort
);

Parameters

  • lTransport
    [in] TCP or UDP. The transport protocol that Port Manager is to use.
  • bstrInternalLocalAddress
    [in] The client's internal IP address used during the call.
  • lInternalLocalPort
    [in] The client's internal port used during the call.
  • bstrExternalLocalAddress
    [in] The external IP address of the NAT, used during the call.
  • lExternalLocalPort
    [in] The external port of the NAT, used during the call.

Return Value

This method can return an RTC_E_ constant, as well as any of the standard COM and ADSI return values. This determination is up to the application that implements the methods.

Requirements

Header rtccore.h, rtccore.idl
Library uuid.lib
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

IRTCPortManager3
IRTCPortManager3::GetMappingEx
IRTCPortManager3::UpdateRemoteAddressEx2