26 if (hwndTaskBar ==
NULL)
39 if (hwndTaskBar ==
NULL)
69 if (lpAction[
Index] == poAction)
137 poAction =
Policy->Action;
166 if (poActionIndex < 0)
411 BOOL bSystrayBatteryMeter;
413 BOOL bVideoDimDisplay;
415 bSystrayBatteryMeter =
424 if (bSystrayBatteryMeter)
454 if (bVideoDimDisplay)
INT_PTR CALLBACK AdvancedDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static POWER_ACTION g_PowerButton[5]
POWER_ACTION GetPowerActionFromPolicy(POWER_ACTION_POLICY *Policy, PSYSTEM_POWER_CAPABILITIES spc, BOOL bIsLid)
VOID Adv_InitDialog(HWND hwndDlg)
VOID ShowCurrentPowerActionPolicy(HWND hDlgCtrl, POWER_ACTION *lpAction, DWORD dwActionSize, POWER_ACTION_POLICY *Policy, PSYSTEM_POWER_CAPABILITIES spc, BOOL bIsLid)
static VOID Adv_SaveData(HWND hwndDlg)
BOOLEAN SaveCurrentPowerActionPolicy(IN HWND hDlgCtrl, OUT POWER_ACTION_POLICY *Policy)
static POWER_ACTION g_SleepButton[5]
static BOOLEAN IsBatteryUsed(VOID)
static INT FindActionIndex(POWER_ACTION *lpAction, DWORD dwActionSize, POWER_ACTION poAction)
VOID ShowCurrentPowerActionPolicies(HWND hwndDlg, PSYSTEM_POWER_CAPABILITIES spc)
static VOID SetSystrayPowerIconState(BOOL bEnabled)
static POWER_ACTION g_SystemBatteries[3]
static BOOL GetSystrayPowerIconState(VOID)
#define IDS_PowerActionWarmEject
#define IDS_PowerActionHibernate
#define IDC_VIDEODIMDISPLAY
#define IDS_PowerActionNone1
#define IDS_PowerActionShutdown
#define IDC_PASSWORDLOGON
#define IDS_PowerActionSleep
#define IDC_SYSTRAYBATTERYMETER
#define POWER_ACTION_UI_ALLOWED
#define POWER_USER_NOTIFY_BUTTON
#define POWER_FORCE_TRIGGER_RESET
#define POWER_ACTION_QUERY_ALLOWED
#define POWER_USER_NOTIFY_SHUTDOWN
BOOLEAN WINAPI GetPwrCapabilities(PSYSTEM_POWER_CAPABILITIES lpSystemPowerCapabilities)
NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL InformationLevel, PVOID lpInputBuffer, ULONG nInputBufferSize, PVOID lpOutputBuffer, ULONG nOutputBufferSize)
BOOLEAN WINAPI WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy)
BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy)
#define EnableVideoDimDisplay
#define EnablePasswordLogon
#define EnableSysTrayBatteryMeter
#define PropSheet_Changed(d, w)
BOOLEAN PowerButtonPresent
BOOLEAN SystemBatteriesPresent
BOOLEAN SleepButtonPresent
GLOBAL_USER_POWER_POLICY user
POWER_ACTION_POLICY PowerButtonDc
POWER_ACTION_POLICY LidCloseDc
POWER_ACTION_POLICY SleepButtonDc
POWER_ACTION_POLICY PowerButtonAc
POWER_ACTION_POLICY SleepButtonAc
POWER_ACTION_POLICY LidCloseAc
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY Policy
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
HWND WINAPI GetParent(_In_ HWND)
HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)