-
Notifications
You must be signed in to change notification settings - Fork 466
Description
I noticed the menu does not honour the settings in I noticed the power button menu (ie the flyout with sleep, hibernate, shutdown etc) does not honour the settings made in Control panel's power options.
If you go to CP -> Power Options -> "Choose what the power buttons do", there is a pane with "shut-down settings" that has 4 checkboxes. 3 of these turn the power menu's buttons on or off (or rather show/hide them). Unchecking any of them doesn't affect the menu,
In the code (CMenuContainer::ToggleStartMenu), I noticed there was code to detect the power options from the OS (using GetPwrCapabilities) but this only returns power capabilities, not the control panel choices.
The choice of showing the buttons is stored in the registry, in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings
I don't know if there is a system API to retrieve these.