ICOMAdminCatalog::InstallComponent method (comadmin.h)
Installs all components (COM classes) from a DLL file into a COM+ application and registers the components in the COM+ class registration database.
HRESULT InstallComponent( [in] BSTR bstrApplIDOrName, [in] BSTR bstrDLL, [in] BSTR bstrTLB, [in] BSTR bstrPSDLL );
The GUID or name of the application.
The name of the DLL file containing the component to be installed.
The name of the external type library file. If the type library file is embedded in the DLL, pass in an empty string for this parameter.
The name of the proxy-stub DLL file. If there is no proxy-stub DLL associated with the component, pass in an empty string for this parameter.
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
InstallComponent provides full registration of components in the COM+ class registration database (RegDB) as configured components, including interface, method, type library, and proxy-stub information necessary for marshaling.
InstallComponent is the recommended way to install all components into COM+ applications instead of ICOMAdminCatalog::ImportComponent.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|