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.
The SetRestoreMetadata method sets writer-specific metadata for the current component.
Only a writer can call this method, and only in the context of implementing CVssWriter::OnPreRestore.
Syntax
HRESULT SetRestoreMetadata(
[in] LPCWSTR wszRestoreMetadata
);
Parameters
[in] wszRestoreMetadata
A caller-allocated NULL-terminated wide character string containing the restore metadata for the component.
Return value
The following are the valid return codes for this method.
Value | Meaning |
---|---|
|
Successfully set the item. |
|
One of the parameter values is not valid. |
|
The caller is out of memory or other system resources. |
|
Private metadata has already been written for this component. |
|
The method was called outside of the context of a writer handling a PreRestore event. |
Remarks
IVssComponent::SetRestoreMetadata sets private, writer-specific metadata, which can be used by a writer during a restore operation.
The format need not conform to any VSS metadata specification.
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 |