IVssComponentEx::SetPostSnapshotFailureMsg method (vswriter.h)
Sets a PostSnapshot failure message string for a component.
This method can only be called by a writer's CVssWriter::OnPostSnapshot method.
Syntax
HRESULT SetPostSnapshotFailureMsg(
[in] LPCWSTR wszFailureMsg
);
Parameters
[in] wszFailureMsg
The address of a caller-allocated NULL-terminated wide character string containing the failure message that describes an error that occurred while processing a PostSnapshot event.
Return value
The following are the valid return codes for this method.
Value | Meaning |
---|---|
|
The failure message was successfully set. |
|
One of the parameter values is not valid. |
|
The caller is out of memory or other system resources. |
|
This method was not called by a writer's CVssWriter::OnPostSnapshot method. |
Remarks
The failure message that is set by SetPostSnapshotFailureMsg applies to all files in the component and any subcomponents.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | vswriter.h (include Vss.h, VsWriter.h) |
Library | VssApi.lib |