[POWERCFG] Add hints on missing property pages and remove an obsolete declaration

This commit is contained in:
Eric Kohl 2020-03-15 16:06:49 +01:00
parent d1d9920b06
commit 6977833e06
2 changed files with 4 additions and 1 deletions

View file

@ -124,6 +124,8 @@ Applet1(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
{
InitPropSheetPage(&psh, IDD_POWERSCHEMESPAGE_ACDC, PowerSchemesDlgProc);
InitPropSheetPage(&psh, IDD_PROPPAGEALARMS, AlarmsDlgProc);
/* FIXME: Add battery page */
}
else
{
@ -135,6 +137,8 @@ Applet1(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
InitPropSheetPage(&psh, IDD_PROPPAGEHIBERNATE, HibernateDlgProc);
}
/* FIXME: Add UPS page */
/* Load additional pages provided by shell extensions */
hpsxa = SHCreatePropSheetExtArray(HKEY_LOCAL_MACHINE, REGSTR_PATH_CONTROLSFOLDER TEXT("\\Power"), MAX_POWER_PAGES - psh.nPages);
if (hpsxa != NULL)

View file

@ -31,7 +31,6 @@ typedef struct
extern HINSTANCE hApplet;
extern GLOBAL_POWER_POLICY gGPP;
extern POWER_POLICY gPP[];
#define MAX_POWER_PAGES 32