IVssSnapshotMgmt interface

The IVssSnapshotMgmt interface provides a method that returns an interface to further configure a shadow copy provider.

Methods

The IVssSnapshotMgmt interface has these methods.

Method Description
IVssSnapshotMgmt::GetProviderMgmtInterface Returns an interface to further configure the system provider.
IVssSnapshotMgmt::QuerySnapshotsByVolume Reserved for system use.
IVssSnapshotMgmt::QueryVolumesSupportedForSnapshots Reserved for system use.

Remarks

The IVssSnapshotMgmt interface can be invoked remotely using DCOM. The caller must be a member of the local administrators group on the remote machine.

Examples

C++
#include "vss.h"
#include "vsmgmt.h"

void main() { // software-provider id is {b5946137-7b9f-4925-af80-51abd60b20d5} const VSS_ID ProviderId = { 0xb5946137, 0x7b9f, 0x4925, { 0xaf,0x80,0x51,0xab,0xd6,0xb,0x20,0xd5 } };

HRESULT                               hr        = S_OK;
IVssSnapshotMgmt*                     pMgmt     = NULL;
IVssDifferentialSoftwareSnapshotMgmt* pDiffMgmt = NULL;

hr = CoCreateInstance(CLSID_VssSnapshotMgmt,
                      NULL,
                      CLSCTX_ALL,
                      IID_IVssSnapshotMgmt,
                      (void**)&(pMgmt));
if (FAILED(hr)) 
{
    // error handling code
}

hr = pMgmt->GetProviderMgmtInterface(ProviderId, 
                                     IID_IVssDifferentialSoftwareSnapshotMgmt, 
                                     (IUnknown**)&pDiffMgmt);
if (FAILED(hr)) 
{
    pMgmt->Release();
}

// processing code

pDiffMgmt->Release();
pMgmt->Release();

}

Requirements

   
Windows version Windows Vista [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header vsmgmt.h

See Also

IUnknown

Volume Shadow Copy API Interfaces