IVssSnapshotMgmt interface (vsmgmt.h)

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

Inheritance

The IVssSnapshotMgmt interface inherits from the IUnknown interface. IVssSnapshotMgmt also has these types of members:

Methods

The IVssSnapshotMgmt interface has these methods.

 
IVssSnapshotMgmt::GetProviderMgmtInterface

Returns an interface to further configure the system provider.
IVssSnapshotMgmt::QuerySnapshotsByVolume

Reserved for system use. (IVssSnapshotMgmt.QuerySnapshotsByVolume)
IVssSnapshotMgmt::QueryVolumesSupportedForSnapshots

Reserved for system use. (IVssSnapshotMgmt.QueryVolumesSupportedForSnapshots)

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

#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

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header vsmgmt.h

See also

IUnknown

Volume Shadow Copy API Interfaces