ICOMAdminCatalog2::PromoteUnconfiguredComponents method (comadmin.h)
Promotes the specified classes from unconfigured components to configured components.
Syntax
HRESULT PromoteUnconfiguredComponents(
[in] BSTR bstrApplicationIDOrName,
[in] VARIANT *pVarCLSIDOrProgID,
[in, optional] VARIANT *pVarComponentType
);
Parameters
[in] bstrApplicationIDOrName
The application ID or name of the application containing the components to be promoted.
[in] pVarCLSIDOrProgID
The unconfigured components to be promoted. 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 |