Platform SDK: TAPI

ITILSConfig::put_Port

Sets the port number used to connect to the server of a specified ILS directory.

HRESULT put_Port(
  long Port
);

Parameters

Port
[in] The port number that will be used to connect to the server. This can be any port number in the range of 16-bit unsigned integers.

Return Values

Value Meaning
S_OK Method succeeded.
E_INVALIDARG The Port parameter is not valid.
RND_ALREADY_CONNECTED A successful connection has been made. Port cannot be reset.

Remarks

Applications use this method only if they need to connect to custom-configured ILS servers listening on strange ports that are not listed in the Active Directory. By default, the Rendezvous control automatically tries to use ports 1002 and 389, the usual ILS ports, for connecting to application-specified ILS servers. Also, the Rendezvous control automatically uses whatever port is published in the Active Directory for ILS servers retrieved from there.

Requirements

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

See Also

ITILSConfig, ITILSConfig::get_Port