ICOMAdminCatalog::Connect method (comadmin.h)

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


HRESULT Connect(
  BSTR      bstrCatalogServerName,
  IDispatch **ppCatalogCollection



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


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.


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.


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