Author: akhaldi
Date: Thu Jul 28 15:00:43 2011
New Revision: 52959
URL:
http://svn.reactos.org/svn/reactos?rev=52959&view=rev
Log:
[POWERCFG]
* Use powercfg.h as a PCH.
Modified:
trunk/reactos/dll/cpl/powercfg/CMakeLists.txt
trunk/reactos/dll/cpl/powercfg/advanced.c
trunk/reactos/dll/cpl/powercfg/alarms.c
trunk/reactos/dll/cpl/powercfg/hibernate.c
trunk/reactos/dll/cpl/powercfg/powercfg.c
trunk/reactos/dll/cpl/powercfg/powercfg.h
trunk/reactos/dll/cpl/powercfg/powercfg.rbuild
trunk/reactos/dll/cpl/powercfg/powershemes.c
Modified: trunk/reactos/dll/cpl/powercfg/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/CMakeList…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/powercfg/CMakeLists.txt [iso-8859-1] Thu Jul 28 15:00:43 2011
@@ -25,4 +25,5 @@
kernel32
ntdll)
+add_pch(powercfg powercfg.h)
add_cd_file(TARGET powercfg DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/powercfg/advanced.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/advanced.…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/advanced.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/powercfg/advanced.c [iso-8859-1] Thu Jul 28 15:00:43 2011
@@ -14,12 +14,6 @@
//typedef long NTSTATUS;
//#endif
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include "resource.h"
#include "powercfg.h"
HWND hAdv = 0;
Modified: trunk/reactos/dll/cpl/powercfg/alarms.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/alarms.c?…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/alarms.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/powercfg/alarms.c [iso-8859-1] Thu Jul 28 15:00:43 2011
@@ -10,14 +10,6 @@
* Dmitry Chapyshev (lentind(a)yandex.ru)
*/
-
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <stdio.h>
-#include <tchar.h>
-
-#include "resource.h"
#include "powercfg.h"
static BOOLEAN
Modified: trunk/reactos/dll/cpl/powercfg/hibernate.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/hibernate…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/hibernate.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/powercfg/hibernate.c [iso-8859-1] Thu Jul 28 15:00:43 2011
@@ -14,17 +14,7 @@
//typedef long NTSTATUS;
//#endif
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <stdio.h>
-#include <tchar.h>
-
-#include "resource.h"
#include "powercfg.h"
-
BOOLEAN Pos_InitData();
void Adv_InitDialog();
Modified: trunk/reactos/dll/cpl/powercfg/powercfg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/powercfg.…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/powercfg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/powercfg/powercfg.c [iso-8859-1] Thu Jul 28 15:00:43 2011
@@ -10,13 +10,6 @@
* Dmitry Chapyshev (lentind(a)yandex.ru)
*/
-#include <windows.h>
-#include <commctrl.h>
-#include <shlobj.h>
-#include <regstr.h>
-#include <cpl.h>
-
-#include "resource.h"
#include "powercfg.h"
#define NUM_APPLETS (1)
Modified: trunk/reactos/dll/cpl/powercfg/powercfg.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/powercfg.…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/powercfg.h [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/powercfg/powercfg.h [iso-8859-1] Thu Jul 28 15:00:43 2011
@@ -1,6 +1,16 @@
-#pragma once
+#include "ntstatus.h"
+#define WIN32_NO_STATUS
+#include <windows.h>
+
+#include <commctrl.h>
+#include <cpl.h>
+#include <stdio.h>
+#include <tchar.h>
+#include <shlobj.h>
+#include <regstr.h>
#include "powrprof.h"
+#include "resource.h"
typedef struct
{
Modified: trunk/reactos/dll/cpl/powercfg/powercfg.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/powercfg.…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/powercfg.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/powercfg/powercfg.rbuild [iso-8859-1] Thu Jul 28 15:00:43 2011
@@ -15,4 +15,5 @@
<file>advanced.c</file>
<file>hibernate.c</file>
<file>powercfg.rc</file>
+ <pch>powercfg.h</pch>
</module>
Modified: trunk/reactos/dll/cpl/powercfg/powershemes.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/powershem…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/powershemes.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/powercfg/powershemes.c [iso-8859-1] Thu Jul 28 15:00:43 2011
@@ -10,13 +10,7 @@
* Dmitry Chapyshev (lentind(a)yandex.ru)
*/
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <tchar.h>
-#include "resource.h"
#include "powercfg.h"
-#include "stdio.h"
UINT Sec[]=
{