VDS_DISK_NOTIFICATION structure (vds.h)

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

Defines the details of disk events.

Syntax

typedef struct _VDS_DISK_NOTIFICATION {
  ULONG         ulEvent;
  VDS_OBJECT_ID diskId;
} VDS_DISK_NOTIFICATION;

Members

ulEvent

Determines the disk event for which an application will be notified, as one of the following values.

Value Meaning
VDS_NF_DISK_ARRIVE
8
A disk was inserted, or a RAID controller surfaced a LUN that is local to the host.
VDS_NF_DISK_DEPART
9
A disk was removed, or a RAID controller unbound a LUN.
VDS_NF_DISK_MODIFY
10
A member of the VDS_DISK_PROP structure changed, or an extent on a disk changed.

diskId

The GUID of the disk object that triggered the event.

Remarks

The VDS_NOTIFICATION structure includes this structure as a member.

An application can receive disk events by implementing the IVdsAdviseSink interface and passing the interface pointer as an argument to the IVdsService::Advise method.

To get the disk object, use the IVdsService::GetObject method. You can then use the IVdsDisk::GetProperties method or the IVdsDisk3::GetProperties2 method to get the disk properties.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header vds.h

See also

IVdsAdviseSink

IVdsDisk

IVdsService::Advise

VDS Structures

VDS_DISK_PROP

VDS_NOTIFICATION