POWERBROADCAST_SETTING structure (winuser.h)

Sent with a power setting event and contains data about the specific change. For more information, see Registering for Power Events and Power Setting GUIDs.

Syntax

typedef struct {
  GUID  PowerSetting;
  DWORD DataLength;
  UCHAR Data[1];
} POWERBROADCAST_SETTING, *PPOWERBROADCAST_SETTING;

Members

PowerSetting

Indicates the power setting for which this notification is being delivered. For more info, see Power Setting GUIDs.

DataLength

The size in bytes of the data in the Data member.

Data[1]

The new value of the power setting. The type and possible values for this member depend on PowerSettng.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header winuser.h (include Windows.h)

See also

Power Setting GUIDs

Registering for Power Events