Author: akhaldi
Date: Tue Jan 7 17:08:52 2014
New Revision: 61564
URL:
http://svn.reactos.org/svn/reactos?rev=61564&view=rev
Log:
[REGEDIT]
* Remove one time inclusions from the main header and put them back where they belong.
* Cleanup the main header.
CORE-7716
Modified:
trunk/reactos/base/applications/regedit/about.c
trunk/reactos/base/applications/regedit/edit.c
trunk/reactos/base/applications/regedit/framewnd.c
trunk/reactos/base/applications/regedit/hexedit.c
trunk/reactos/base/applications/regedit/listview.c
trunk/reactos/base/applications/regedit/main.c
trunk/reactos/base/applications/regedit/regedit.c
trunk/reactos/base/applications/regedit/regedit.h
trunk/reactos/base/applications/regedit/regproc.c
trunk/reactos/base/applications/regedit/regproc.h
Modified: trunk/reactos/base/applications/regedit/about.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/about.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/about.c [iso-8859-1] Tue Jan 7 17:08:52 2014
@@ -20,6 +20,8 @@
#include "regedit.h"
+#include <shellapi.h>
+
void ShowAboutBox(HWND hWnd)
{
WCHAR AppStr[255];
Modified: trunk/reactos/base/applications/regedit/edit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/edit.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/edit.c [iso-8859-1] Tue Jan 7 17:08:52 2014
@@ -19,6 +19,9 @@
*/
#include "regedit.h"
+
+#define NTOS_MODE_USER
+#include <ndk/cmtypes.h>
typedef enum _EDIT_MODE
{
Modified: trunk/reactos/base/applications/regedit/framewnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/framewnd.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/framewnd.c [iso-8859-1] Tue Jan 7 17:08:52
2014
@@ -19,6 +19,10 @@
*/
#include "regedit.h"
+
+#include <commdlg.h>
+#include <cderr.h>
+#include <objsel.h>
/********************************************************************************
* Global and Local Variables:
Modified: trunk/reactos/base/applications/regedit/hexedit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/hexedit.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/hexedit.c [iso-8859-1] Tue Jan 7 17:08:52
2014
@@ -19,6 +19,7 @@
*/
#include "regedit.h"
+
typedef struct
{
HWND hWndSelf;
Modified: trunk/reactos/base/applications/regedit/listview.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/listview.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/listview.c [iso-8859-1] Tue Jan 7 17:08:52
2014
@@ -20,7 +20,6 @@
#include "regedit.h"
-
#define CX_ICON 16
#define CY_ICON 16
#define NUM_ICONS 2
Modified: trunk/reactos/base/applications/regedit/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/main.c [iso-8859-1] Tue Jan 7 17:08:52 2014
@@ -21,7 +21,6 @@
#include "regedit.h"
BOOL ProcessCmdLine(LPWSTR lpCmdLine);
-
/*******************************************************************************
* Global Variables:
Modified: trunk/reactos/base/applications/regedit/regedit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/regedit.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/regedit.c [iso-8859-1] Tue Jan 7 17:08:52
2014
@@ -19,7 +19,6 @@
*/
#include "regedit.h"
-
static const LPCWSTR usage =
L"Usage:\n"
Modified: trunk/reactos/base/applications/regedit/regedit.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/regedit.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/regedit.h [iso-8859-1] Tue Jan 7 17:08:52
2014
@@ -4,25 +4,14 @@
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
#define WIN32_NO_STATUS
#include <windows.h>
-
-#define NTOS_MODE_USER
-#include <ndk/cmtypes.h>
-
#include <commctrl.h>
-#include <shellapi.h>
#include <shlwapi.h>
#include <stdio.h>
#include <aclapi.h>
-#include <commdlg.h>
-#include <cderr.h>
-#include <objsel.h>
-#include <assert.h>
#include "main.h"
#include "regproc.h"
#include "hexedit.h"
#include "security.h"
-#endif
-
-/* EOF */
+#endif /* _REGEDIT_H */
Modified: trunk/reactos/base/applications/regedit/regproc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/regproc.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/regproc.c [iso-8859-1] Tue Jan 7 17:08:52
2014
@@ -23,6 +23,8 @@
#include "regedit.h"
+#include <assert.h>
+
#define REG_VAL_BUF_SIZE 4096
/* maximal number of characters in hexadecimal data line,
Modified: trunk/reactos/base/applications/regedit/regproc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/regproc.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/regproc.h [iso-8859-1] Tue Jan 7 17:08:52
2014
@@ -17,6 +17,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#pragma once
+
#define KEY_MAX_LEN 1024
#define REG_FORMAT_5 1