ICOMAdminCatalog2::ExportPartition method (comadmin.h)
Exports a partition to a file.
An exported partition can be imported using the InstallPartition method.
Syntax
HRESULT ExportPartition(
[in] BSTR bstrPartitionIDOrName,
[in] BSTR bstrPartitionFileName,
[in] long lOptions
);
Parameters
[in] bstrPartitionIDOrName
The partition GUID or name of the partition.
[in] bstrPartitionFileName
The file to which the specified partition is exported. If no path is specified, the current directory is used. If no file name is specified, the application name is used.
[in] lOptions
The option flags. This parameter can be one or more of the following values.
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. |
|
The specified partition does not exist. |
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 |