IWsbApplicationRestoreSupport::OrderComponents method

Specifies the order in which application components are to be restored.

Syntax

HRESULT OrderComponents(
  DWORD  cComponents,
  LPWSTR *rgComponentName,
  LPWSTR *rgComponentLogicalPaths,
  LPWSTR **prgComponentName,
  LPWSTR **prgComponentLogicalPath
);

Parameters

cComponents

The number of components to be restored. The value of this parameter can range from 0 to MAX_COMPONENTS.

rgComponentName

An array of cComponents names of components to be restored.

rgComponentLogicalPaths

An array of cComponents logical paths of components to be restored.

prgComponentName

An array of cComponents names of components to be restored, in the order in which they are to be restored. This parameter receives NULL if no specific restore order is required.

prgComponentLogicalPath

An array of cComponents logical paths of components to be restored, in the order in which they are to be restored. This parameter receives NULL if no specific restore order is required.

Return Value

Returns S_OK if successful, or an error value otherwise. Possible return values include the following.

Remarks

Windows Server Backup calls this method before restoring components for an application.

Requirements

   
Windows version None supported Windows Server 2008
Target Platform Windows
Header wsbapp.h

See Also

IWsbApplicationRestoreSupport