CreateVssBackupComponents function (vsbackup.h)

The CreateVssBackupComponents function creates an IVssBackupComponents interface object and returns a pointer to it.

Note  This function is exported as CreateVssBackupComponentsInternal, but you should call CreateVssBackupComponents, not CreateVssBackupComponentsInternal.
 

Syntax

HRESULT CreateVssBackupComponents(
  [out] IVssBackupComponents **ppBackup
);

Parameters

[out] ppBackup

Doubly indirect pointer to the created IVssBackupComponents interface object.

Return value

The return values listed here are in addition to the normal COM HRESULTs that may be returned at any time from the function.

Value Meaning
S_OK
Successfully returned a pointer to an IVssBackupComponents interface.
E_ACCESSDENIED
The caller does not have sufficient backup privileges or is not an administrator.
E_INVALIDARG
One of the parameters is not valid.
E_OUTOFMEMORY
Out of memory or other system resources.
VSS_E_UNEXPECTED
Unexpected error. The error code is logged in the error log file. For more information, see Event and Error Handling Under VSS.

Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:  This value is not supported until Windows Server 2008 R2 and Windows 7. E_UNEXPECTED is used instead.

Remarks

The calling application is responsible for calling IUnknown::Release to release the resources held by the returned IVssBackupComponents when it is no longer needed.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header vsbackup.h (include VsBackup.h, Vss.h, VsWriter.h)
Library VssApi.lib
DLL VssApi.dll

See also

IVssBackupComponents