VDS_DRIVE_LETTER_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 drive-letter events.

Syntax

typedef struct _VDS_DRIVE_LETTER_NOTIFICATION {
  ULONG         ulEvent;
  WCHAR         wcLetter;
  VDS_OBJECT_ID volumeId;
} VDS_DRIVE_LETTER_NOTIFICATION;

Members

ulEvent

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

Value Meaning
VDS_NF_DRIVE_LETTER_FREE
201
The drive letter of an uninitialized disk is free.
VDS_NF_DRIVE_LETTER_ASSIGN
202
The drive letter of an uninitialized disk is assigned.

wcLetter

The drive letter that triggered the event.

volumeId

The GUID of the volume to which the drive letter is assigned. If the drive letter is freed, the volume identifier is GUID_NULL.

Remarks

The VDS_NOTIFICATION structure includes this structure as a member.

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

Requirements

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

See also

IVdsAdviseSink

IVdsService::Advise

VDS Structures

VDS_NOTIFICATION