#include "powercfg.h"
-//BOOLEAN Pos_InitData();
-//void Adv_InitDialog();
-
-
static VOID
Hib_InitDialog(HWND hwndDlg)
{
if (CallNtPowerInformation(SystemReserveHiberFile, &bHibernate, sizeof(bHibernate), NULL, 0) == STATUS_SUCCESS)
{
- // FIXME: Do not call these functions directly! Post a message to the other pages instead!
- // Pos_InitData();
- // Adv_InitDialog();
Hib_InitDialog(hwndDlg);
return TRUE;
}
break;
case WM_NOTIFY:
- {
- LPNMHDR lpnm = (LPNMHDR)lParam;
- if (lpnm->code == (UINT)PSN_APPLY)
+ if (((LPNMHDR)lParam)->code == (UINT)PSN_APPLY)
{
return Hib_SaveData(hwndDlg);
}
- }
+ break;
}
return FALSE;