VSS_OBJECT_UNION

VSS_OBJECT_UNION union

The VSS_OBJECT_UNION structure is a union of VSS_SNAPSHOT_PROP and VSS_PROVIDER_PROP structures, which is used by the VSS_OBJECT_PROP structure to hold information about a specific shadow copy or provider.

Syntax


typedef union {
  [case(VSS_OBJECT_SNAPSHOT)]
  VSS_SNAPSHOT_PROP Snap;
  [case(VSS_OBJECT_PROVIDER)]
  VSS_PROVIDER_PROP Prov;
} VSS_OBJECT_UNION;

Members

Snap

Information about a specific shadow copy. For more information, see VSS_SNAPSHOT_PROP.

Prov

Information about a specific provider. For more information, see VSS_PROVIDER_PROP.

Remarks

The VSS_OBJECT_UNION structure is used only as a member of the VSS_OBJECT_PROP structure.

Applications need to consult the Type member of VSS_OBJECT_PROP to determine whether the VSS_OBJECT_UNION contains a VSS_SNAPSHOT_PROP or VSS_PROVIDER_PROP object.

When a VSS_OBJECT_PROP structure has been returned by a member method of a COM interface (from, for example, IVssEnumObject:Next), an application must call CoTaskMemFree for every string and byte array value contained in its constituent structure (either VSS_SNAPSHOT_PROP or VSS_PROVIDER_PROP).

In the case of VSS_SNAPSHOT_PROP, this can be done manually, or the utility function VssFreeSnapshotProperties can be used.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Vss.h

See also

VSS_OBJECT_PROP
VSS_PROVIDER_PROP
VSS_SNAPSHOT_PROP

 

 

Community Additions

ADD
Show:
© 2016 Microsoft