Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IVssDifferentialSoftwareSnapshotMgmt::QueryDiffAreasOnVolume method

The QueryDiffAreasOnVolume method queries shadow copy storage areas that physically reside on the given volume.

Syntax


HRESULT QueryDiffAreasOnVolume(
  [in]   VSS_PWSZ pwszVolumeName,
  [out]  IVssEnumMgmtObject **ppEnum
);

Parameters

pwszVolumeName [in]

Name of the volume that contains shadow copy storage areas.

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)
ppEnum [out]

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.

ValueMeaning
S_OK

Successfully queried the shadow copy storage areas.

E_ACCESSDENIED

Caller does not have sufficient backup privileges or is not an administrator.

E_INVALIDARG

One of the parameter values is not valid.

E_OUTOFMEMORY

The caller is out of memory or other system resources.

VSS_E_PROVIDER_VETO

Provider error - the provider logged the error in the event log. For more information, see Event and Error Handling Under VSS.

VSS_E_UNEXPECTED

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.

 

Remarks

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

VsMgmt.h

IID

IID_IVssDifferentialSoftwareSnapshotMgmt is defined as 214A0F28-B737-4026-B847-4F9E37D79529

See also

IVssDifferentialSoftwareSnapshotMgmt
IVssEnumMgmtObject

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.