SYSTEM_POWER_LEVEL structure

Contains information about system battery drain policy settings. This structure is part of the GLOBAL_USER_POWER_POLICY structure.

Syntax


typedef struct _SYSTEM_POWER_LEVEL {
  BOOLEAN             Enable;
  UCHAR               Spare[3];
  ULONG               BatteryLevel;
  POWER_ACTION_POLICY PowerPolicy;
  SYSTEM_POWER_STATE  MinSystemState;
} SYSTEM_POWER_LEVEL, *PSYSTEM_POWER_LEVEL;

Members

Enable

If this member is TRUE, the alarm should be activated when the battery discharges below the value set in BatteryLevel.

Spare

Reserved.

BatteryLevel

The battery capacity for this battery discharge policy, expressed as a percentage.

PowerPolicy

A POWER_ACTION_POLICY structure that defines the action to take for this battery discharge policy.

MinSystemState

The minimum system sleep state to enter when the battery discharges below the value set in BatteryLevel. This member must be one of the SYSTEM_POWER_STATE enumeration type values.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinNT.h (include Windows.h)

See also

GLOBAL_USER_POWER_POLICY
POWER_ACTION_POLICY

 

 

Show: