SET_POWER_SETTING_VALUE structure (wdm.h)

This topic describes the SET_POWER_SETTING_VALUE structure.

Syntax

typedef struct {
  ULONG                  Version;
  GUID                   Guid;
  SYSTEM_POWER_CONDITION PowerCondition;
  ULONG                  DataLength;
  UCHAR                  Data[ANYSIZE_ARRAY];
} SET_POWER_SETTING_VALUE, *PSET_POWER_SETTING_VALUE;

Members

Version

Version of this structure. Currently should be set to POWER_SETTING_VALUE_VERSION.

Guid

GUID representing the power setting being applied.

PowerCondition

The power state this setting should be applied to, for example, AC, DC, thermal, and so on.

DataLength

Length in bytes of the Data member.

Data[ANYSIZE_ARRAY]

Contains the setting value.

Requirements

Requirement Value
Minimum supported client Windows 11, version 22H2
Header wdm.h (include Wdm.h)