CreateVssBackupComponents Function

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

C++
HRESULT CreateVssBackupComponents(
  __out  IVssBackupComponents **ppBackup
);

Parameters

ppBackup [out]

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.

ValueMeaning
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.

E_UNEXPECTED

Unexpected VSS system error. The error code is logged in the event log.

 

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

Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
HeaderVsBackup.h (include VsBackup.h, Vss.h, or VsWriter.h)
LibraryVssApi.lib
DLLVssApi.dll

See Also

IVssBackupComponents

Send comments about this topic to Microsoft

Build date: 10/29/2009

Tags :


Page view tracker