Platform SDK: TAPI

ITDirectory::Connect

Establishes a connection to the directory server.

HRESULT Connect(
  VARIANT_BOOL fSecure
);

Parameters

fSecure
[in] Boolean indicator of whether to use SSL connection.

Return Values

Value Meaning
S_OK Method succeeded.
RND_ALREADY_CONNECTED A successful connection has already been made.
RND_NULL_SERVER_NAME The server name is NULL, probably because ITConferenceBlob::Init has not been run or did not succeed.

Remarks

The Connect method must be successfully called before any other function except get_DirectoryType. If fSecure is TRUE, LDAP directories use SSL ports to make connection.

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

ITDirectory