- Get autochk, calc, cmd, devmgr, expand, format, gettype, hostname, lsass, msconfig...
authorAlex Ionescu <aionescu@gmail.com>
Sun, 8 Jan 2006 10:05:37 +0000 (10:05 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 8 Jan 2006 10:05:37 +0000 (10:05 +0000)
- PCHify some things.
- Reduce NDK usage.

svn path=/trunk/; revision=20703

21 files changed:
reactos/subsys/system/cmd/filecomp.c
reactos/subsys/system/regedit/about.c
reactos/subsys/system/regedit/childwnd.c
reactos/subsys/system/regedit/edit.c
reactos/subsys/system/regedit/find.c
reactos/subsys/system/regedit/framewnd.c
reactos/subsys/system/regedit/hexedit.c
reactos/subsys/system/regedit/listview.c
reactos/subsys/system/regedit/main.c
reactos/subsys/system/regedit/regedit.c
reactos/subsys/system/regedit/regedit.xml
reactos/subsys/system/regedit/regproc.c
reactos/subsys/system/regedit/security.c
reactos/subsys/system/regedit/security.h
reactos/subsys/system/regedit/treeview.c
reactos/subsys/system/sc/sc.h
reactos/subsys/system/sc/sc.xml
reactos/subsys/system/sc/usage.c
reactos/subsys/system/servman/servman.xml
reactos/subsys/system/setup/setup.c
reactos/subsys/system/sm/sm.c

index 5540bc3..9042a29 100644 (file)
@@ -475,7 +475,7 @@ VOID FindPrefixAndSuffix(LPTSTR strIN, LPTSTR szPrefix, LPTSTR szSuffix)
        }
 
 }
- int compare(const void *arg1,const void *arg2)
+ int __cdecl compare(const void *arg1,const void *arg2)
  {
        FileName * File1;
        FileName * File2;
index 6261e6f..cba8373 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
-#include <windows.h>
-#include <commctrl.h>
-#include <shellapi.h>
-#include <stdlib.h>
-#include <tchar.h>
-#include <process.h>
-#include <stdio.h>
+#include <regedit.h>
 
-#include "main.h"
 
 void ShowAboutBox(HWND hWnd)
 {
index 988aa47..956b917 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
-#include <windows.h>
-#include <commctrl.h>
-#include <tchar.h>
-#include <stdio.h>
-
-#include "main.h"
-#include "regproc.h"
+#include <regedit.h>
 
 ChildWnd* g_pChildWnd;
 HBITMAP SizingPattern = 0;
index 25c1467..cc30cf5 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
-
-#include <windows.h>
-#include <tchar.h>
-#include <commctrl.h>
-#include <commdlg.h>
-#include <cderr.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <shellapi.h>
-#include <ctype.h>
-#include <shlwapi.h>
-
-#include "main.h"
-#include "regproc.h"
-#include "resource.h"
-#include "hexedit.h"
-
+#include <regedit.h>
 
 typedef enum _EDIT_MODE
 {
index 06adfed..cba1660 100644 (file)
  */
 
 
-#include <windows.h>
-#include <tchar.h>
-#include <commctrl.h>
-#include <commdlg.h>
-#include <cderr.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <shellapi.h>
-#include <objsel.h>
-#include <objbase.h>
-#include <ole2.h>
-
-#include "main.h"
-#include "regproc.h"
+#include <regedit.h>
 
 static TCHAR s_szFindWhat[256];
 static const TCHAR s_szFindFlags[] = _T("FindFlags");
index cb7fded..01f271f 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include <windows.h>
-#include <tchar.h>
-#include <commctrl.h>
-#include <commdlg.h>
-#include <cderr.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <shellapi.h>
-#include <objsel.h>
-#include <objbase.h>
-#include <ole2.h>
-
-#include "main.h"
-#include "regproc.h"
+#include <regedit.h>
 
 /********************************************************************************
  * Global and Local Variables:
index ae43ec5..032db28 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
-#include <windows.h>
-#include <commctrl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <tchar.h>
-#include <zmouse.h>
-
-#include "hexedit.h"
-
+#include <regedit.h>
 typedef struct
 {
   HWND hWndSelf;
index 12c9ced..354317c 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include <windows.h>
-#include <windowsx.h>
-#include <commctrl.h>
-#include <stdlib.h>
-#include <tchar.h>
-#include <process.h>
-#include <stdio.h>
-
-#include "main.h"
-#include "regproc.h"
+#include <regedit.h>
+
 
 #define CX_ICON    16
 #define CY_ICON    16
index 8b58ffe..7d12455 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
-#include <windows.h>
-#include <commctrl.h>
-#include <accctrl.h>
-#include <unknwn.h>
-#include <stdlib.h>
-#include <tchar.h>
-#include <process.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <aclui.h>
-#include <cguid.h>
-
-#include "main.h"
-#include "hexedit.h"
-#include "security.h"
-#include "regproc.h"
+#include <regedit.h>
 
 BOOL ProcessCmdLine(LPSTR lpCmdLine);
 
index 8c2dbbf..48dfd65 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include <ctype.h>
-#include <stdio.h>
-#include <windows.h>
-#include "regproc.h"
+#include <regedit.h>
+
 
 static const char *usage =
     "Usage:\n"
index 65bdb80..8f933e3 100644 (file)
@@ -29,6 +29,7 @@
        <file>security.c</file>
        <file>treeview.c</file>
        <file>regedit.rc</file>
+       <pch>regedit.h</pch>
 </module>
 <directory name="clb">
        <xi:include href="clb/clb.xml" />
index 54c1c7b..56a9486 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include <limits.h>
-#include <stdio.h>
-#include <ctype.h>
-#include <stdlib.h>
-#include <windows.h>
-#include <winnt.h>
-#include <winreg.h>
-#include <assert.h>
-#include <tchar.h>
-#include <malloc.h>
-#include <shlwapi.h>
-#include "regproc.h"
+#include <regedit.h>
 
 #define REG_VAL_BUF_SIZE        4096
 
index 5a51080..88453cb 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
+#include <regedit.h>
+
 #define INITGUID
-#include <windows.h>
-#include <tchar.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <accctrl.h>
-#include <objbase.h>
-#include <basetyps.h>
-#include <unknwn.h>
-#include <aclui.h>
-#include <cguid.h>
-#include "security.h"
-#include "regproc.h"
-#include "resource.h"
+#include <guiddef.h>
+
+DEFINE_GUID(IID_CRegKeySecurity, 0x965fc360, 0x16ff, 0x11d0, 0x0091, 0xcb,0x00,0xaa,0x00,0xbb,0xb7,0x23);
 
 /******************************************************************************
    Implementation of the CRegKeySecurity interface
index d29f087..510592c 100644 (file)
@@ -7,8 +7,6 @@ InitializeAclUiDll(VOID);
 VOID
 UnloadAclUiDll(VOID);
 
-DEFINE_GUID(IID_CRegKeySecurity, 0x965fc360, 0x16ff, 0x11d0, 0x0091, 0xcb,0x00,0xaa,0x00,0xbb,0xb7,0x23);
-
 /******************************************************************************
    CRegKeySecurity
  ******************************************************************************/
index 54eb172..536434a 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#define WIN32_LEAN_AND_MEAN     /* Exclude rarely-used stuff from Windows headers */
-
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-#include <windows.h>
-#include <commctrl.h>
-#include <stdlib.h>
-#include <tchar.h>
-#include <process.h>
-#include <stdio.h>
-#include <string.h>
-#include <tchar.h>
-
-#include "main.h"
+#include <regedit.h>
 
 /* Global variables and constants  */
 /* Image_Open, Image_Closed, and Image_Root - integer variables for indexes of the images.  */
@@ -133,7 +120,7 @@ static HTREEITEM AddEntryToTree(HWND hwndTV, HTREEITEM hParent, LPTSTR label, HK
     tvi.iSelectedImage = Image_Open;
     tvi.cChildren = dwChildren;
     tvi.lParam = (LPARAM)hKey;
-    tvins.DUMMYUNIONNAME.item = tvi;
+    tvins.item = tvi;
     tvins.hInsertAfter = (HTREEITEM)(hKey ? TVI_LAST : TVI_FIRST);
     tvins.hParent = hParent;
     return TreeView_InsertItem(hwndTV, &tvins);
@@ -389,7 +376,7 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPTSTR pHostName)
     tvi.cChildren = 5;
     /* Save the heading level in the item's application-defined data area.  */
     tvi.lParam = (LPARAM)NULL;
-    tvins.DUMMYUNIONNAME.item = tvi;
+    tvins.item = tvi;
     tvins.hInsertAfter = (HTREEITEM)TVI_FIRST;
     tvins.hParent = TVI_ROOT;
     /* Add the item to the tree view control.  */
index c9dc282..f6c977c 100644 (file)
@@ -1,4 +1,5 @@
 #include <windows.h>
+#include <conio.h>
 #include <stdio.h>
 #include <tchar.h>
 
index 934046c..076fb90 100644 (file)
@@ -13,4 +13,5 @@
        <file>delete.c</file>\r
        <file>usage.c</file>\r
        <file>sc.rc</file>\r
+       <pch>sc.h</pch>\r
 </module>\r
index 8c745c4..eb02542 100644 (file)
@@ -8,7 +8,6 @@
  *           Ged Murphy 20/10/05 Created
  *
  */
-#include <conio.h>
 #include "sc.h"
 
 INT MainUsage(VOID)
index 930231a..72b73d2 100644 (file)
@@ -20,4 +20,5 @@
                <file>servman.c</file>\r
        </compilationunit>\r
        <file>servman.rc</file>\r
+       <pch>servman.h</pch>\r
 </module>\r
index 6550584..cf78891 100644 (file)
 #include <userenv.h>
 #include <tchar.h>
 
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
-
 #define NDEBUG
 #include <debug.h>
 
 
-typedef DWORD STDCALL (*PINSTALL_REACTOS)(HINSTANCE hInstance);
+typedef DWORD (STDCALL *PINSTALL_REACTOS)(HINSTANCE hInstance);
 
 
 /* FUNCTIONS ****************************************************************/
index e694242..0416ab5 100644 (file)
@@ -31,8 +31,9 @@
 
 #define WIN32_NO_STATUS
 #include <windows.h>
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
+#include <lpctypes.h>
+#include <lpcfuncs.h>
+#include <rtlfuncs.h>
 
 #include <sm/helper.h>