Export (0) Print
Expand All
Expand Minimize
1 out of 3 rated this helpful - Rate this topic

Win32_DeviceChangeEvent class

The Win32_DeviceChangeEvent abstract WMI class represents device change events that result from the addition, removal, or modification of devices on the computer system. This includes changes in the hardware configuration (docking and undocking), the hardware state, or newly mapped devices (mapping of a network drive). For example, a device has changed when a WM_DEVICECHANGE message is sent.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class Win32_DeviceChangeEvent : __ExtrinsicEvent
{
  uint16 EventType;
  uint8  SECURITY_DESCRIPTOR[];
  uint64 TIME_CREATED;
};

Members

The Win32_DeviceChangeEvent class has these types of members:

Properties

The Win32_DeviceChangeEvent class has these properties.

EventType
Data type: uint16
Access type: Read-only

Type of event change notification that has occurred.

ValueMeaning
1

Configuration Changed

2

Device Arrival

3

Device Removal

4

Docking

 

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.

TIME_CREATED
Data type: uint64
Access type: Read-only

Unique value that indicates the time at which the event was generated. This property is inherited from __Event.

For more information about using uint64 values in scripts, see Scripting in WMI.

Remarks

The Win32_DeviceChangeEvent is an abstract class derived from __ExtrinsicEvent.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Operating System Classes

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.