Skip to content

Latest commit

 

History

History
116 lines (85 loc) · 4.53 KB

ns-powrprof-global_user_power_policy.md

File metadata and controls

116 lines (85 loc) · 4.53 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:powrprof._GLOBAL_USER_POWER_POLICY
GLOBAL_USER_POWER_POLICY (powrprof.h)
Contains global user power policy settings that apply to all power schemes for a user.
*PGLOBAL_USER_POWER_POLICY
GLOBAL_USER_POWER_POLICY
GLOBAL_USER_POWER_POLICY structure
PGLOBAL_USER_POWER_POLICY
PGLOBAL_USER_POWER_POLICY structure pointer
_win32_global_user_power_policy_str
base.global_user_power_policy_str
powrprof/GLOBAL_USER_POWER_POLICY
powrprof/PGLOBAL_USER_POWER_POLICY
base\global_user_power_policy_str.htm
base
0e89ae66-a889-4929-b028-125fcef5c89c
12/05/2018
*PGLOBAL_USER_POWER_POLICY, GLOBAL_USER_POWER_POLICY, GLOBAL_USER_POWER_POLICY structure, PGLOBAL_USER_POWER_POLICY, PGLOBAL_USER_POWER_POLICY structure pointer, _win32_global_user_power_policy_str, base.global_user_power_policy_str, powrprof/GLOBAL_USER_POWER_POLICY, powrprof/PGLOBAL_USER_POWER_POLICY
powrprof.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
GLOBAL_USER_POWER_POLICY, *PGLOBAL_USER_POWER_POLICY
19H1
_GLOBAL_USER_POWER_POLICY
powrprof/_GLOBAL_USER_POWER_POLICY
PGLOBAL_USER_POWER_POLICY
powrprof/PGLOBAL_USER_POWER_POLICY
GLOBAL_USER_POWER_POLICY
powrprof/GLOBAL_USER_POWER_POLICY
c++
APIRef
kbSyntax
HeaderDef
PowrProf.h
GLOBAL_USER_POWER_POLICY

GLOBAL_USER_POWER_POLICY structure

-description

Contains global user power policy settings that apply to all power schemes for a user. This structure is part of the GLOBAL_POWER_POLICY structure.

-struct-fields

-field Revision

The current structure revision level. Set this value by calling GetCurrentPowerPolicies or ReadGlobalPwrPolicy before using a GLOBAL_USER_POWER_POLICY structure to set power policy.

-field PowerButtonAc

A POWER_ACTION_POLICY structure that defines the action to take when the power button is pressed and the system is running on AC power.

-field PowerButtonDc

A POWER_ACTION_POLICY structure that defines the action to take when the power button is pressed and the system is running on battery power.

-field SleepButtonAc

A POWER_ACTION_POLICY structure that defines the action to take when the sleep button is pressed and the system is running on AC power.

-field SleepButtonDc

A POWER_ACTION_POLICY structure that defines the action to take when the sleep button is pressed and the system is running on battery power.

-field LidCloseAc

A POWER_ACTION_POLICY structure that defines the action to take when the lid is closed and the system is running on AC power.

-field LidCloseDc

A POWER_ACTION_POLICY structure that defines the action to take when the lid is closed and the system is running on battery power.

-field DischargePolicy

An array of SYSTEM_POWER_LEVEL structures that defines the actions to take at system battery discharge events.

-field GlobalFlags

A flag that enables or disables miscellaneous user power policy settings. This member can be one or more of the values described in Global Flags Constants.

-see-also

GLOBAL_POWER_POLICY

POWER_ACTION_POLICY

SYSTEM_POWER_LEVEL