ICOMAdminCatalog::Connect method (comadmin.h)

Connects to the COM+ catalog on a specified remote computer.

Syntax

HRESULT Connect(
  [in]          BSTR      bstrCatalogServerName,
  [out, retval] IDispatch **ppCatalogCollection
);

Parameters

[in] bstrCatalogServerName

The name of the remote computer. To connect to the local computer, use an empty string.

[out, retval] ppCatalogCollection

The ICatalogCollection interface for the root collection on the remote computer.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Remarks

The Connect method also retrieves a root collection that is bound to the remote computer. A root collection serves as a starting point to locate top-level collections and does not contain any objects or properties.

You can use the GetCollection method to get a top-level collection on the local computer without first using the Connect method.

When you use the Connect method, the ICOMAdminCatalog interface you are holding works on the computer to which you have connected.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comadmin.h

See also

ICOMAdminCatalog