Skip to content

Latest commit

 

History

History
213 lines (165 loc) · 7.15 KB

nf-vsbackup-ivssbackupcomponents-setadditionalrestores.md

File metadata and controls

213 lines (165 loc) · 7.15 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:vsbackup.IVssBackupComponents.SetAdditionalRestores
IVssBackupComponents::SetAdditionalRestores (vsbackup.h)
The SetAdditionalRestores method is used by a requester during incremental or differential restore operations to indicate to writers that a given component will require additional restore operations to completely retrieve it.
IVssBackupComponents interface [VSS]
SetAdditionalRestores method
IVssBackupComponents.SetAdditionalRestores
IVssBackupComponents::SetAdditionalRestores
SetAdditionalRestores
SetAdditionalRestores method [VSS]
SetAdditionalRestores method [VSS]
IVssBackupComponents interface
_win32_ivssbackupcomponents_setadditionalrestores
base.ivssbackupcomponents_setadditionalrestores
vsbackup/IVssBackupComponents::SetAdditionalRestores
base\ivssbackupcomponents_setadditionalrestores.htm
base
b3a38348-ab89-40a5-bf77-612bcd99c31b
12/05/2018
IVssBackupComponents interface [VSS],SetAdditionalRestores method, IVssBackupComponents.SetAdditionalRestores, IVssBackupComponents::SetAdditionalRestores, SetAdditionalRestores, SetAdditionalRestores method [VSS], SetAdditionalRestores method [VSS],IVssBackupComponents interface, _win32_ivssbackupcomponents_setadditionalrestores, base.ivssbackupcomponents_setadditionalrestores, vsbackup/IVssBackupComponents::SetAdditionalRestores
vsbackup.h
VsBackup.h, Vss.h, VsWriter.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
VssApi.lib
Windows
19H1
IVssBackupComponents::SetAdditionalRestores
vsbackup/IVssBackupComponents::SetAdditionalRestores
c++
APIRef
kbSyntax
COM
VssApi.lib
VssApi.dll
IVssBackupComponents.SetAdditionalRestores

IVssBackupComponents::SetAdditionalRestores

-description

The SetAdditionalRestores method is used by a requester during incremental or differential restore operations to indicate to writers that a given component will require additional restore operations to completely retrieve it.

-parameters

-param writerId [in]

Writer identifier.

-param ct [in]

Type of the component. See VSS_COMPONENT_TYPE for the possible values.

-param wszLogicalPath [in]

Null-terminated wide character string containing the logical path of the component to be added.

For more information, see Logical Pathing of Components.

The value of the string containing the logical path used here should be the same as was used when the component was added to the backup set using IVssBackupComponents::AddComponent.

The logical path can be NULL.

There are no restrictions on the characters that can appear in a non-NULL logical path.

-param wszComponentName [in]

Null-terminated wide character string containing the name of the component.

The value of the string should not be NULL, and should contain the same component as was used when the component was added to the backup set using IVssBackupComponents::AddComponent.

-param bAdditionalRestores [in]

If the value of this parameter is true, additional restores of the component will follow this restore. If the value is false, additional restores of the component will not follow this restore.

-returns

The following are the valid return codes for this method.

Value Meaning
S_OK
Successfully set the additional restore status.
E_INVALIDARG
One of the parameter values is not valid.
E_OUTOFMEMORY
The caller is out of memory or other system resources.
VSS_E_BAD_STATE
The backup components object is not initialized, this method has been called during a restore operation, or this method has not been called within the correct sequence.
VSS_E_OBJECT_NOT_FOUND
The backup component does not exist.
VSS_E_INVALID_XML_DOCUMENT
The XML document is not valid. Check the event log for details. For more information, see Event and Error Handling Under VSS.
VSS_E_UNEXPECTED
Unexpected error. The error code is logged in the error log file. For more information, see Event and Error Handling Under VSS.

Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:  This value is not supported until Windows Server 2008 R2 and Windows 7. E_UNEXPECTED is used instead.

-remarks

The information provided by the SetAdditionalRestores method is typically used by writers that support an explicit recovery mechanism as part of their PostRestore event handler (CVssWriter::OnPostRestore)—for instance, the Exchange Server, and database applications such as SQL Server. For these applications, it is often not possible to perform additional differential, incremental, or log restores after such a recovery is performed.

Therefore, if SetAdditionalRestores for a component is set to true, this means that such a writer should not execute its explicit recovery mechanism and should expect that additional differential, incremental, or log restores will be done.

When SetAdditionalRestores on a component is set to false, then after the component is restored, the application can complete its recovery operation and be brought back online.

This method must be called before IVssBackupComponents::PreRestore.

-see-also

IVssBackupComponents

IVssBackupComponents::PreRestore

VSS_COMPONENT_TYPE