IWsbApplicationRestoreSupport::PreRestore method

Performs application-specific PreRestore operations.

Syntax


HRESULT PreRestore(
  [in, optional] WCHAR   *wszWriterMetadata,
  [in, optional] WCHAR   *wszComponentName,
  [in, optional] WCHAR   *wszComponentLogicalPath,
  [in]           BOOLEAN bNoRollForward
);

Parameters

wszWriterMetadata [in, optional]

A string that contains the VSS writer's metadata.

wszComponentName [in, optional]

The name of the component or component set. This should match the name in the metadata that the wszWriterMetadata parameter points to.

wszComponentLogicalPath [in, optional]

The logical path of the component or component set. This should match the logical path in the metadata that the wszWriterMetadata parameter points to.

bNoRollForward [in]

Set to TRUE if a previous point-in-time recovery operation is in progress and no application rollforward should be performed. The previous logs for the application will be deleted before the application restore operation is performed.

Return value

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

WSBAPP_E_COMPONENT_PRE_RESTORE_FAILED

0x807A0002L

One or more PreRestore operations failed.

Remarks

During application restore, Windows Server Backup calls this method before restoring the files for each application component.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

WsbApp.h

IDL

WsbApp.idl

See also

IWsbApplicationRestoreSupport

 

 

Show: