Skip to content

Latest commit

 

History

History
77 lines (61 loc) · 3.2 KB

nf-comadmin-icomadmincatalog-importcomponent.md

File metadata and controls

77 lines (61 loc) · 3.2 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:comadmin.ICOMAdminCatalog.ImportComponent
ICOMAdminCatalog::ImportComponent (comadmin.h)
Imports a component already registered as an in-process server into a COM+ application.
ICOMAdminCatalog interface [COM+]
ImportComponent method
ICOMAdminCatalog.ImportComponent
ICOMAdminCatalog::ImportComponent
ImportComponent
ImportComponent method [COM+]
ImportComponent method [COM+]
ICOMAdminCatalog interface
_cos_ICOMAdminCatalog_ImportComponent
comadmin/ICOMAdminCatalog::ImportComponent
cos.icomadmincatalog_importcomponent
cos\icomadmincatalog_importcomponent.htm
cos
0e29025d-60bc-4f95-a6f9-aa178769855c
12/05/2018
ICOMAdminCatalog interface [COM+],ImportComponent method, ICOMAdminCatalog.ImportComponent, ICOMAdminCatalog::ImportComponent, ImportComponent, ImportComponent method [COM+], ImportComponent method [COM+],ICOMAdminCatalog interface, _cos_ICOMAdminCatalog_ImportComponent, comadmin/ICOMAdminCatalog::ImportComponent, cos.icomadmincatalog_importcomponent
comadmin.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
ComAdmin.Idl
Windows
19H1
ICOMAdminCatalog::ImportComponent
comadmin/ICOMAdminCatalog::ImportComponent
c++
APIRef
kbSyntax
COM
ComAdmin.h
ICOMAdminCatalog.ImportComponent

ICOMAdminCatalog::ImportComponent

-description

Imports a component already registered as an in-process server into a COM+ application.

-parameters

-param bstrApplIDOrName [in]

The GUID or name of the application.

-param bstrCLSIDOrProgID [in]

The CLSID or ProgID for the component to import.

-returns

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

-remarks

Generally, this method should not be used unless you want to restrict a component to local use only. Otherwise, use the InstallComponent method instead of ImportComponent. InstallComponent fully registers the component in the COM+ class registration database (RegDB), whereas ImportComponent does not, resulting in an application with limited functionality.

ImportComponent does not bring any interface, method, or type library information for the component into the COM+ class registration database. This behavior restricts how the component can be configured. When you attempt to export a COM+ application that has an imported component to an application proxy, the proxy contains no interface or type library information for the component and marshaling for that component fails.

-see-also

ICOMAdminCatalog