IVssSnapshotMgmt interface

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

Members

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

Methods

The IVssSnapshotMgmt interface has these methods.

MethodDescription
GetProviderMgmtInterface

Returns an interface to further configure a shadow copy provider.

(Inherited from IVssSnapshotMgmt)
QuerySnapshotsByVolume

Reserved for system use.

(Inherited from IVssSnapshotMgmt)
QueryVolumesSupportedForSnapshots

Reserved for system use.

(Inherited from IVssSnapshotMgmt)

 

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

VsMgmt.h

IID

IID_IVssSnapshotMgmt is defined as FA7DF749-66E7-4986-A27F-E2F04AE53772

See also

IUnknown
Volume Shadow Copy API Interfaces

 

 

Show: