Platform SDK: Hardware |
The DEV_BROADCAST_VOLUME structure contains information about a logical volume.
typedef struct _DEV_BROADCAST_VOLUME { DWORD dbcv_size; DWORD dbcv_devicetype; DWORD dbcv_reserved; DWORD dbcv_unitmask; WORD dbcv_flags; } DEV_BROADCAST_VOLUME; typedef DEV_BROADCAST_VOLUME *PDEV_BROADCAST_VOLUME;
Value | Meaning |
---|---|
DBTF_MEDIA | Change affects media in drive. If not set, change affects physical device or drive. |
DBTF_NET | Indicated logical volume is a network volume. |
Although the dbcv_unitmask member may specify more than one volume in any message, this does not guarantee that only message is generated for a specified event. Multiple system components may independently generate messages for logical volumes at the same time.
Messages for media arrival and removal are sent only for media in devices that support a soft-eject mechanism. For example, applications will not see media-related volume messages for floppy disks.
Messages for network drive arrival and removal are not sent whenever network commands are issued, but rather when network connections will disappear as the result of a hardware event.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Dbt.h.
Device Management Overview, Device Management Structures, DEV_BROADCAST_HDR, WM_DEVICECHANGE