IVssWMDependency interface

The IVssWMDependency is a C++ (not COM) interface returned by the IVssWMComponent interface and used by applications when backing up or restoring a component that has an explicit writer-component dependency on a component managed by another writer. (Dependencies must be between writers, not within writers.)

IVssWMDependency is used to determine the writer ID, logical path, and component name of components that must be restored or backed up along with the target component.

Dependencies are created by writers while handling Identify events (CVssWriter::OnIdentify) using the IVssCreateWriterMetadata::AddComponentDependency method.

Calling applications are responsible for calling IUnknown::Release to release resources held by a returned IVssWMDependency object when it is no longer needed.

The IVssWMComponent::GetDependency method returns an IVssWMDependency interface.

Note that a dependency does not indicate an order of preference between the component with the documented dependencies and the components it depends on. A dependency merely indicates that the component and the components it depends on must always be backed up or restored together.


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


The IVssWMDependency interface has these methods.


Retrieves the name of a component that the current component depends on.


Retrieves the logical path of a component that the current component depends on.


Retrieves the class ID of a writer containing a component that the current component depends on.



Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]


VsWriter.h (include Vss.h or VsWriter.h)