Win32_VolumeChangeEvent class
The Win32_VolumeChangeEvent WMI class represents a local drive event that results from the addition of a drive letter or mounted drive on the computer system. Network drives are not currently supported.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
[UUID("455CE053-2552-4051-A3E4-C4200DC31B7"), AMENDMENT]
class Win32_VolumeChangeEvent : Win32_DeviceChangeEvent
{
uint8 SECURITY_DESCRIPTOR[];
uint64 TIME_CREATED;
uint16 EventType;
string DriveName;
};
Members
The Win32_VolumeChangeEvent class has these types of members:
Properties
The Win32_VolumeChangeEvent class has these properties.
-
DriveName
-
-
Data type: string
-
Access type: Read-only
Drive name (letter) that has been added or removed from the system.
-
-
EventType
-
-
Data type: uint16
-
Access type: Read-only
-
Qualifiers: MappingStrings ("Win32APIDevice Management Messages|WM_DEVICECHANGE|wParam", "Win32APIDevice Management Messages|WM_SETTINGCHANGE")
Type of event change notification that has occurred.
This property is inherited from Win32_DeviceChangeEvent.
-
-
Configuration Changed (1)
-
Device Arrival (2)
-
Device Removal (3)
-
Docking (4)
SECURITY_DESCRIPTOR
-
Data type: uint8 array
-
Access type: Read-only
Descriptor used by the event provider to determine which users can receive the event. This property is inherited from __Event. For more information about constants used to set this security descriptor, see WMI Security Constants.
TIME_CREATED
-
Data type: uint64
-
Access type: Read-only
Unique value that indicates the time at which the event was generated. This is a 64-bit value that represents the number of 100-nanosecond intervals after January 1, 1601. The information is in the Coordinated Universal Times (UTC) format.
This property is inherited from __Event.
For more information about using uint64 values in scripts, see Scripting in WMI.
Remarks
The Win32_VolumeChangeEvent class is derived from Win32_DeviceChangeEvent.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\CIMV2 |
MOF |
|
DLL |
|
See also