IVssComponentEx::GetAuthoritativeRestore method (vswriter.h)

Determines whether a requester has marked the restore of a component as authoritative for a replicated data store.

Syntax

HRESULT GetAuthoritativeRestore(
  [out] bool *pbAuth
);

Parameters

[out] pbAuth

The address of a caller-allocated variable that receives true if the restore is authoritative, or false otherwise.

Return value

The following are the valid return codes for this method.

Value Meaning
S_OK
The operation was successful.
E_INVALIDARG
One of the parameter values is not valid.
E_OUTOFMEMORY
The caller is out of memory or other system resources.

Remarks

A writer indicates that it supports authoritative restore by setting the VSS_BS_AUTHORITATIVE_RESTORE flag in its backup schema mask.

For more information, see Setting VSS Restore Options.

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

See also

IVssBackupComponentsEx2::SetAuthoritativeRestore

IVssComponentEx

VSS_BACKUP_SCHEMA