Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets a property for a shadow copy.
Syntax
HRESULT SetSnapshotProperty(
[in] VSS_ID SnapshotId,
[in] VSS_SNAPSHOT_PROPERTY_ID eSnapshotPropertyId,
[in] VARIANT vProperty
);
Parameters
[in] SnapshotId
Shadow copy identifier. This parameter is required and cannot be GUID_NULL.
[in] eSnapshotPropertyId
A VSS_SNAPSHOT_PROPERTY_ID value that specifies the property to be set for the shadow copy.
[in] vProperty
The value to be set for the property. See the VSS_SNAPSHOT_PROP structure for valid data types and descriptions of the properties that can be set for a shadow copy.
Return value
The following are the valid return codes for this method.
| Value | Meaning |
|---|---|
|
The property was set successfully. |
|
The caller does not have sufficient backup privileges or is not an administrator. |
|
One of the parameter values is not valid. |
|
The caller is out of memory or other system resources. |
|
The specified shadow copy was not found. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | vsprov.h |
| Library | VssApi.lib |