VSS_MGMT_OBJECT_UNION union

The VSS_MGMT_OBJECT_UNION union is a union of VSS_VOLUME_PROP, VSS_DIFF_VOLUME_PROP, and VSS_DIFF_AREA_PROP structures determined by the Type member of the VSS_MGMT_OBJECT_PROP structure containing this union.

Syntax


typedef union {
  [case(VSS_MGMT_OBJECT_VOLUME)]
  VSS_VOLUME_PROP      Vol;
  [case(VSS_MGMT_OBJECT_DIFF_VOLUME)]
  VSS_DIFF_VOLUME_PROP DiffVol;
  [case(VSS_MGMT_OBJECT_DIFF_AREA)]
  VSS_DIFF_AREA_PROP   DiffArea;
} VSS_MGMT_OBJECT_UNION, *PVSS_MGMT_OBJECT_UNION;

Members

Vol

If the Type member of the VSS_MGMT_OBJECT_PROP structure containing this union is VSS_MGMT_OBJECT_VOLUME, then this union is a VSS_VOLUME_PROP structure.

DiffVol

If the Type member of the VSS_MGMT_OBJECT_PROP structure containing this union is VSS_MGMT_OBJECT_DIFF_VOLUME, then this union is a VSS_DIFF_VOLUME_PROP structure.

DiffArea

If the Type member of the VSS_MGMT_OBJECT_PROP structure containing this union is VSS_MGMT_OBJECT_DIFF_AREA, then this union is a VSS_DIFF_AREA_PROP structure.

Remarks

The VSS_MGMT_OBJECT_UNION structure is used only as a member of the VSS_MGMT_OBJECT_PROP structure.

Applications need to consult the Type member of VSS_MGMT_OBJECT_PROP to determine whether the VSS_MGMT_OBJECT_UNION contains a VSS_VOLUME_PROP, VSS_DIFF_VOLUME_PROP, or VSS_DIFF_AREA_PROP object.

When a VSS_MGMT_OBJECT_UNION structure has been returned by a member method of a COM interface (from, for example, IVssEnumMgmtObject::Next), an application must call CoTaskMemFree for every string and byte array value contained in its constituent structure (VSS_VOLUME_PROP, VSS_DIFF_VOLUME_PROP, or VSS_DIFF_AREA_PROP).

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

VsMgmt.h

See also

Volume Shadow Copy API Structures
IVssEnumMgmtObject::Next
VSS_MGMT_OBJECT_TYPE
VSS_VOLUME_PROP
VSS_DIFF_VOLUME_PROP
VSS_DIFF_AREA_PROP

 

 

Show: