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.

Value Meaning
COMAdminExportNoUsers
0
Do not export users with roles (default).
COMAdminExportUsers
1
Export users with roles.
COMAdminExportApplicationProxy
2
Export applications as proxies.
COMAdminExportForceOverwriteOfFile
4
Overwrite existing files.
COMAdminExportIn10Format
16
Export in COM+ 1.0 format.

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
S_OK
The method completed successfully.
COMADMIN_E_OBJECT_DOES_NOT_EXIST
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

See also

ICOMAdminCatalog2