1 #ifndef _POWERCFG_H 2 #define _POWERCFG_H 3 4 #include <stdarg.h> 5 6 #define _INC_WINDOWS 7 #define COM_NO_WINDOWS_H 8 9 #include <ntstatus.h> 10 #define WIN32_NO_STATUS 11 #include <windef.h> 12 #include <winbase.h> 13 #include <winreg.h> 14 #include <cpl.h> 15 #include <tchar.h> 16 #include <shlobj.h> 17 #include <shlwapi.h> 18 #include <powrprof.h> 19 #include <ndk/rtlfuncs.h> 20 #include <strsafe.h> 21 22 #include "resource.h" 23 24 typedef struct 25 { 26 int idIcon; 27 int idName; 28 int idDescription; 29 APPLET_PROC AppletProc; 30 } APPLET, *PAPPLET; 31 32 extern HINSTANCE hApplet; 33 extern GLOBAL_POWER_POLICY gGPP; 34 35 #define MAX_POWER_PAGES 32 36 37 INT_PTR CALLBACK PowerSchemesDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 38 INT_PTR CALLBACK AlarmsDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 39 INT_PTR CALLBACK AdvancedDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 40 INT_PTR CALLBACK HibernateDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 41 42 #endif /* _POWERCFG_H */ 43