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
- 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.
| 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.
|
- 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 client | Windows XP |
| Minimum supported server | Windows Server 2003 |
| Header | VsBackup.h (include VsBackup.h, Vss.h, or VsWriter.h) |
| Library | VssApi.lib |
| DLL | VssApi.dll |
See Also
- IVssBackupComponents
Send comments about this topic to Microsoft
Build date: 11/12/2009