Win32_PowerManagementEvent class
The Win32_PowerManagementEvent WMI class represents power management events resulting from power state changes. These state changes are associated with either the Advanced Power Management (APM) or the Advanced Configuration and Power Interface (ACPI) system management protocols.
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_PowerManagementEvent : __ExtrinsicEvent
{
uint16 EventType;
uint16 OEMEventCode;
};
Members
The Win32_PowerManagementEvent class has these types of members:
Properties
The Win32_PowerManagementEvent class has these properties.
- EventType
-
- Data type: uint16
- Access type: Read-only
Type of change in the system power state.
Value Meaning - 4
Entering Suspend
- 7
Resume From Suspend
- 10
Power Status Change
- 11
OEM Event
- 18
Resume Automatic
- OEMEventCode
-
- Data type: uint16
- Access type: Read-only
System power state defined by the original equipment manufacturer (OEM) when the EventType property of this class is set to 11 (OEM Event); otherwise, this property is set to NULL. OEM events are generated when an APM BIOS signals an APM OEM event. OEM event codes are in the range 0x0200h - 0x02FFh.
Remarks
The Win32_PowerManagementEvent class is 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 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012