ICOMAdminCatalog2::ImportComponents method (comadmin.h)
Imports the specified components that are already registered into an application.
To import unconfigured components, you can use the ImportUnconfiguredComponents and PromoteUnconfiguredComponents methods.
Syntax
HRESULT ImportComponents(
[in] BSTR bstrApplicationIDOrName,
[in] VARIANT *pVarCLSIDOrProgID,
[in, optional] VARIANT *pVarComponentType
);
Parameters
[in] bstrApplicationIDOrName
The application ID or name of the application into which the components are to be imported.
[in] pVarCLSIDOrProgID
The components to be imported. Each element of the Variant may be a String containing a class ID or program ID, a single catalog object, or a catalog collection (for example, as returned by the GetCollectionByQuery2 method).
[in, optional] pVarComponentType
The bitnes of each component. This parameter can be one of the following values. If this parameter is omitted, the native bitness of the computer is assumed.
Value | Meaning |
---|---|
|
Uses a 32-bit format. |
|
Uses a 64-bit format. |
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | comadmin.h |