ICOMAdminCatalog2::InstallPartition method (comadmin.h)

Imports a partition from a file.

Syntax

HRESULT InstallPartition(
  [in] BSTR bstrFileName,
  [in] BSTR bstrDestDirectory,
  [in] long lOptions,
  [in] BSTR bstrUserID,
  [in] BSTR bstrPassword,
  [in] BSTR bstrRSN
);

Parameters

[in] bstrFileName

The file from which the partition is to be imported.

[in] bstrDestDirectory

The path to the directory in which to install the partition components.

[in] lOptions

The install options. This parameter can be one of the following values.

Value Meaning
COMAdminInstallNoUsers
0
Do not install users saved in the partition (default).
COMAdminInstallUsers
1
Install users saved in the partition.
COMAdminInstallForceOverwriteOfFile
2
Overwrite existing files.

[in] bstrUserID

The user ID under which to install the partition.

[in] bstrPassword

The password for the specified user.

[in] bstrRSN

The name of a remote server to use as a proxy.

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 None supported
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header comadmin.h

See also

ICOMAdminCatalog2