Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Copies the specified components from one partition to another.
Syntax
HRESULT CopyComponents(
[in] BSTR bstrSourceApplicationIDOrName,
[in] VARIANT *pVarCLSIDOrProgID,
[in] BSTR bstrDestinationApplicationIDOrName
);
Parameters
[in] bstrSourceApplicationIDOrName
The application ID or name of the source application.
[in] pVarCLSIDOrProgID
The components to be copied. 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] bstrDestinationApplicationIDOrName
The application ID or name of the destination application.
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.
Return code | Description |
---|---|
|
The method completed successfully. |
|
At least one of the named applications exists in multiple partitions. To avoid this error, use application IDs instead of names. |
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 |