ITMedia::SetPortInfo method

[ Rendezvous IP Telephony Conferencing controls and interfaces are not available for use in Windows Vista, Windows Server 2008, and subsequent versions of the operating system. The RTC Client API provides similar functionality.]

The SetPortInfo method sets the 16-bit port value for the first port and the number of ports needed for a session.

Syntax

HRESULT SetPortInfo(
  [in] LONG StartPort,
  [in] LONG NumPorts
);

Parameters

StartPort [in]

Starting port. This can be a value in the range 0-65535.

NumPorts [in]

Number of ports. This can be a value in the range 0-65535.

Return value

This method can return one of these values.

Return code Description
S_OK
Method succeeded.
E_INVALIDARG
The StartPort or NumPorts parameter is not valid.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.
E_FAIL
Unspecified error.
E_NOTIMPL
This method is not yet implemented.

Remarks

This function may send data over the wire in unencrypted form; therefore, someone eavesdropping on the network may be able to read the data. The security risk of sending the data in clear text should be considered before using this method.

Requirements

Requirement Value
TAPI version
Requires TAPI 3.0 or later
Header
Sdpblb.h
Library
Uuid.lib
DLL
Sdpblb.dll

See also

ITMedia