IVssComponent::GetNewTarget method (vswriter.h)
The GetNewTarget method returns the new file restoration locations for the selected component or component set. (See Working with Selectability and Logical Paths for information on selecting components.)
Either a writer or a requester can call this method.
Syntax
HRESULT GetNewTarget(
[in] UINT iNewTarget,
[out] IVssWMFiledesc **ppFiledesc
);
Parameters
[in] iNewTarget
Index number of the new target. The value of this parameter is an integer from 0 to n–1 inclusive, where n is the total number of new targets associated with a given component. The value of n is returned by IVssComponent::GetNewTargetCount.
[out] ppFiledesc
Doubly indirect pointer to an IVssWMFiledesc object containing the new target restore location information.
Return value
The following are the valid return codes for this method.
Value | Meaning |
---|---|
|
Successfully returned the attribute value. |
|
One of the parameter values is not valid. |
|
The caller is out of memory or other system resources. |
|
The XML document is not valid. Check the event log for details. For more information, see Event and Error Handling Under VSS. |
|
The specified item was not found. |
Remarks
New targets returned by GetNewTarget may be those not only of files in the current component but to files in any of its nonselectable subcomponents.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | vswriter.h (include Vss.h, VsWriter.h) |
Library | VssApi.lib |