VDS_LUN_NOTIFICATION structure (vdshwprv.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 a LUN notification.

Syntax

typedef struct _VDS_LUN_NOTIFICATION {
  ULONG         ulEvent;
  VDS_OBJECT_ID LunId;
} VDS_LUN_NOTIFICATION;

Members

ulEvent

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

Value Meaning
VDS_NF_LUN_ARRIVE
108
A new LUN has been created.
VDS_NF_LUN_DEPART
109
An existing LUN has been deleted.
VDS_NF_LUN_MODIFY
110
A member was changed in the VDS_LUN_PROP structure for an external LUN. Examples of changes that trigger this notification include changes to the VDS_LUN_PROP structure and the addition of a plex to the LUN. Applications are responsible for determining the precise nature of the change.

LunId

The GUID of the LUN.

Remarks

This structure is included as a member in the VDS_NOTIFICATION structure.

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

To get the LUN object, use the IVdsService::GetObject method. You can then use the IVdsLun::GetProperties method to get the LUN properties.

Requirements

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

See also

IVdsAdviseSink

IVdsService::Advise

VDS Structures

VDS_NOTIFICATION