VDS_PARTITION_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 partition events.

Syntax

typedef struct _VDS_PARTITION_NOTIFICATION {
  ULONG         ulEvent;
  VDS_OBJECT_ID diskId;
  ULONGLONG     ullOffset;
} VDS_PARTITION_NOTIFICATION;

Members

ulEvent

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

Value Meaning
VDS_NF_PARTITION_ARRIVE
11
A new partition arrived. If the partition is a volume, the event also triggers a volume-arrival notification.
VDS_NF_PARTITION_DEPART
12
An existing partition was removed. If the partition is a volume, the event also triggers a volume-departure notification.
VDS_NF_PARTITION_MODIFY
13
A member was changed in the VDS_PARTITION_PROP structure for the partition. If the partition is a volume, and if the properties of the partition have changed, a VDS_NF_VOLUME_MODIFY notification is also sent.

diskId

The GUID of the disk containing the partition that triggered the event.

ullOffset

The Partition offset.

Remarks

The VDS_NOTIFICATION structure includes this structure as a member.

An application can receive partition 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 vdshwprv.h

See also

IVdsAdviseSink

IVdsService::Advise

VDS Structures

VDS_NOTIFICATION