Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VDS_ASYNC_OUTPUT structure

[Beginning with Windows 8 and Windows Server 2012, the Virtual Disk Service COM interface is superseded by the Windows Storage Management API.]

Defines the output of an async object. Output elements vary depending on the operation type.

Syntax


typedef struct _VDS_ASYNC_OUTPUT {
  VDS_ASYNC_OUTPUT_TYPE type;
  [switch(type)] union {
    [case(VDS_ASYNCOUT_CREATEPARTITION)]
    struct {
      ULONGLONG     ullOffset;
      VDS_OBJECT_ID volumeId;
    } cp;
    [case(VDS_ASYNCOUT_CREATEVOLUME)]
    struct {
      IUnknown *pVolumeUnk;
    } cv;
    [case(VDS_ASYNCOUT_BREAKVOLUMEPLEX)]
    struct {
      IUnknown *pVolumeUnk;
    } bvp;
    [case(VDS_ASYNCOUT_SHRINKVOLUME)]
    struct {
      ULONGLONG *ullReclaimedBytes;
    } sv;
    [case(VDS_ASYNCOUT_CREATELUN)]
    struct {
      IUnknown *pLunUnk;
    } cl;
    [case(VDS_ASYNCOUT_CREATETARGET)]
    struct {
      IUnknown *pTargetUnk;
    } ct;
    [case(VDS_ASYNCOUT_CREATEPORTALGROUP)]
    struct {
      IUnknown *pPortalGroupUnk;
    } cpg;
    [case(VDS_ASYNCOUT_CREATE_VDISK)]
    struct {
      IUnknown *pVDiskUnk;
    } cvd;
  };
} VDS_ASYNC_OUTPUT;

Members

type

Discriminant for the union enumerated by VDS_ASYNC_OUTPUT_TYPE.

ValueMeaning
VDS_ASYNCOUT_CREATEPARTITION
10

See the following description of the cp structure.

VDS_ASYNCOUT_CREATEVOLUME
1

See the following description of the cv structure.

VDS_ASYNCOUT_BREAKVOLUMEPLEX
5

See the following description of the bvp structure.

VDS_ASYNCOUT_CREATELUN
50

See the following description of the cl structure.

VDS_ASYNCOUT_CREATETARGET
62

See the following description of the ct structure.

VDS_ASYNCOUT_CREATEPORTALGROUP
63

See the following description of the cpg structure.

VDS_ASYNCOUT_CREATE_VDISK
200

See the following description of the cvd structure.

 

cp

Structure used for the IVdsAdvancedDisk::CreatePartition or IVdsCreatePartitionEx::CreatePartitionEx method.

ullOffset

Actual offset of the created partition. This may not be the same as the ullOffset parameter passed to the IVdsAdvancedDisk::CreatePartition or IVdsCreatePartitionEx::CreatePartitionEx method.

volumeId

The ID of the volume object associated with the created partition.

cv

Structure used for the IVdsPack::CreateVolume method.

pVolumeUnk

IUnknown for the volume object. For more information, see Volume Object.

bvp

Structure used for the IVdsVolume::BreakPlex method.

pVolumeUnk

IUnknown for the volume object. For more information, see Volume Object.

sv

Structure used for the IVdsVolume::Shrink method.

ullReclaimedBytes

The number of bytes that were reclaimed by the shrink operation.

Windows Server 2003:   This member is not supported until Windows Server 2003 R2.

cl

Structure used for the IVdsSubSystem::CreateLun method.

pLunUnk

IUnknown for the LUN object. For more information, see LUN Object.

ct

Structure used for the IVdsSubSystemIscsi::CreateTarget method.

pTargetUnk

IUnknown for the target object. For more information, see the Target Object.

cpg

Structure used for the IVdsIscsiTarget::CreatePortalGroup method.

pPortalGroupUnk

IUnknown for the portal group object. For more information, see the Portal Group Object.

cvd

Structure used for the IVdsVdProvider::CreateVDisk method.

pVDiskUnk

IUnknown for the virtual disk object.

Remarks

The IVdsAsync::Wait method returns this structure and adds a reference to any contained object produced by each method. Callers must release the reference to the contained object.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Vds.h;
VdsHwPrv.h (for hardware providers)

See also

VDS Structures
VDS_ASYNC_OUTPUT_TYPE
IVdsAsync::Wait

 

 

Community Additions

Show:
© 2014 Microsoft