IVssDifferentialSoftwareSnapshotMgmt::QueryVolumesSupportedForDiffAreas method (vsmgmt.h)

The QueryVolumesSupportedForDiffAreas method queries volumes that support shadow copy storage areas (including volumes with disabled shadow copy storage areas).


HRESULT QueryVolumesSupportedForDiffAreas(
  [in]  VSS_PWSZ           pwszOriginalVolumeName,
  [out] IVssEnumMgmtObject **ppEnum


[in] pwszOriginalVolumeName

Name of the original volume that is the source of the shadow copies. The name of the volume must be in one of the following formats and must include a trailing backslash (\):

  • The path of a mounted folder, for example, Y:\MountX\
  • A drive letter, for example, D:\
  • A volume GUID path of the form \\?\Volume{GUID}\ (where GUID identifies the volume)

[out] ppEnum

The address of an IVssEnumMgmtObject interface pointer, which is initialized on return. Callers must release the interface.

Return value

This method can return one of these values.

Value Meaning
Successfully queried the shadow copy storage area volumes.
Caller does not have sufficient backup privileges or is not an administrator.
One of the parameter values is not valid.
The caller is out of memory or other system resources.
Provider error - the provider logged the error in the event log. For more information, see Event and Error Handling Under VSS.
Unexpected error. The error code is logged in the error log file. For more information, see Event and Error Handling Under VSS.

Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP:  This value is not supported until Windows Server 2008 R2 and Windows 7. E_UNEXPECTED is used instead.


The returned IVssEnumMgmtObject enumerator object will contain VSS_DIFF_VOLUME_PROP structures inside the VSS_MGMT_OBJECT_UNION union inside the VSS_MGMT_OBJECT_PROP structure.


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