-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#include <windows.h>
+#ifndef _POWERCFG_H
+#define _POWERCFG_H
+
+#include <stdarg.h>
-#include <commctrl.h>
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#include <ntstatus.h>
+#define WIN32_NO_STATUS
+#include <windef.h>
+#include <winbase.h>
+#include <winreg.h>
#include <cpl.h>
-#include <stdio.h>
#include <tchar.h>
#include <shlobj.h>
-#include <regstr.h>
+#include <shlwapi.h>
+#include <powrprof.h>
-#include "powrprof.h"
#include "resource.h"
typedef struct
INT_PTR CALLBACK AdvancedDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK HibernateDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
-/* EOF */
+#endif /* _POWERCFG_H */