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

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.

ValueMeaning
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 XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Computer System Hardware Classes

 

 

Show:
© 2014 Microsoft. All rights reserved.