Platform SDK: TAPI

ITMedia::SetPortInfo

Sets the 16-bit port value for the first port and number of ports needed for a session.

HRESULT SetPortInfo(
  LONG StartPort,
  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 Values

Value Meaning
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.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Version: Requires TAPI 3.0 or later.
  Header: Declared in Sdpblb.h.
  Library: Use Sdpblbid.lib.

See Also

ITMedia