Skip to content

Latest commit

 

History

History
129 lines (110 loc) · 3.25 KB

nf-vswriter-ivsscomponent-setrestoretarget.md

File metadata and controls

129 lines (110 loc) · 3.25 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:vswriter.IVssComponent.SetRestoreTarget
IVssComponent::SetRestoreTarget (vswriter.h)
The SetRestoreTarget method sets the restore target (in terms of the VSS_RESTORE_TARGET enumeration) for the current component.
IVssComponent interface [VSS]
SetRestoreTarget method
IVssComponent.SetRestoreTarget
IVssComponent::SetRestoreTarget
SetRestoreTarget
SetRestoreTarget method [VSS]
SetRestoreTarget method [VSS]
IVssComponent interface
_win32_ivsscomponent_setrestoretarget
base.ivsscomponent_setrestoretarget
vswriter/IVssComponent::SetRestoreTarget
base\ivsscomponent_setrestoretarget.htm
base
6e8b9322-6611-4a47-aa7a-876be01d33b8
12/05/2018
IVssComponent interface [VSS],SetRestoreTarget method, IVssComponent.SetRestoreTarget, IVssComponent::SetRestoreTarget, SetRestoreTarget, SetRestoreTarget method [VSS], SetRestoreTarget method [VSS],IVssComponent interface, _win32_ivsscomponent_setrestoretarget, base.ivsscomponent_setrestoretarget, vswriter/IVssComponent::SetRestoreTarget
vswriter.h
Vss.h, VsWriter.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
VssApi.lib
Windows
19H1
IVssComponent::SetRestoreTarget
vswriter/IVssComponent::SetRestoreTarget
c++
APIRef
kbSyntax
COM
VssApi.lib
VssApi.dll
IVssComponent.SetRestoreTarget

IVssComponent::SetRestoreTarget

-description

The SetRestoreTarget method sets the restore target (in terms of the VSS_RESTORE_TARGET enumeration) for the current component.

Only a writer can call this method, and only during a restore operation.

-parameters

-param target [in]

A value from VSS_RESTORE_TARGET containing the restore target information.

-returns

The following are the valid return codes for this method.

Value Meaning
S_OK
Successfully set the item.
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 caller is not in the correct state (either backup or restore) for the operation.

-remarks

The restore target set by SetRestoreTarget applies to all files in the component and any nonselectable subcomponents.

-see-also

IVssComponent