IVssComponentEx::GetPostSnapshotFailureMsg method (vswriter.h)
Returns the PostSnapshot failure message string that a writer has set for a given component.
Both writers and requesters can call this method. Writers should call this method after the IVssBackupComponents::DoSnapshotSet asynchronous operation has completed.
Syntax
HRESULT GetPostSnapshotFailureMsg(
[out] BSTR *pbstrFailureMsg
);
Parameters
[out] pbstrFailureMsg
A pointer to a 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 obtained. |
|
No PostSnapshot failure message was set for the component. |
|
One of the parameter values is not valid. |
|
The caller is out of memory or other system resources. |
Remarks
The caller is responsible for freeing the string that the pbstrFailureMsg parameter points to by calling the SysFreeString function.
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 |