Skip to content

Power button options #173

@gbjbaanb

Description

@gbjbaanb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions