IVssProviderCreateSnapshotSet::EndPrepareSnapshots method (vsprov.h)
The EndPrepareSnapshots method is called once for the complete shadow copy set, after the last IVssHardwareSnapshotProvider::BeginPrepareSnapshot call. This method is intended as a point where the provider can wait for any shadow copy preparation work to complete. Because EndPrepareSnapshots may take a long time to complete, a provider should be prepared to accept an AbortSnapshots method call at any time and immediately end the preparation work.
Syntax
HRESULT EndPrepareSnapshots(
[in] VSS_ID SnapshotSetId
);
Parameters
[in] SnapshotSetId
The VSS_ID of the shadow copy set.
Return value
Return code/value | Description |
---|---|
|
The operation was successfully completed. |
|
Out of memory or other system resources. |
|
One of the parameter values is not valid. |
|
There is not enough disk storage to create a shadow copy. Insufficient disk space can also generate VSS_E_PROVIDER_VETO or VSS_E_OBJECT_NOT_FOUND error return values. |
|
The SnapshotSetId parameter refers to an object that was not found. |
|
An unexpected provider error occurred. If this is returned, the error must be described in an entry in the application event log, giving the user information on how to resolve the problem. |
If any other value is returned, VSS will write an event to the event log and convert the error to VSS_E_UNEXPECTED_PROVIDER_ERROR.
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 |