I suggest using GetWindowsDirectory and PathAppend'ing "regedit.exe" instead.
On Sat, May 17, 2008 at 12:53 AM, cfinck@svn.reactos.org wrote:
Author: cfinck Date: Fri May 16 11:53:36 2008 New Revision: 33541
URL: http://svn.reactos.org/svn/reactos?rev=33541&view=rev Log: Carlo Bramini (carlo DOT bramix AT libero DOT it):
- Implemented "regedt32", which just calls "regedit"
See issue #3248 for more details.
Added: trunk/reactos/base/applications/regedt32/ (with props) trunk/reactos/base/applications/regedt32/regedt32.c (with props) trunk/reactos/base/applications/regedt32/regedt32.rbuild (with props) trunk/reactos/base/applications/regedt32/res/ trunk/reactos/base/applications/regedt32/res/regedt32.ico (with props) trunk/reactos/base/applications/regedt32/resource.h (with props) trunk/reactos/base/applications/regedt32/resource.rc (with props) Modified: trunk/reactos/base/applications/applications.rbuild
Modified: trunk/reactos/base/applications/applications.rbuild URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/applicati... ============================================================================== --- trunk/reactos/base/applications/applications.rbuild [iso-8859-1] (original) +++ trunk/reactos/base/applications/applications.rbuild [iso-8859-1] Fri May 16 11:53:36 2008 @@ -26,9 +26,9 @@ <xi:include href="hh/hh.rbuild" /> </directory>
<!-- - <directory name="iexplore"> - <xi:include href="iexplore/iexplore.rbuild" /> - </directory> + <directory name="iexplore"> + <xi:include href="iexplore/iexplore.rbuild" /> + </directory> -->
<directory name="kbswitch"> <xi:include href="kbswitch/kbswitch.rbuild" />@@ -54,6 +54,9 @@ <directory name="regedit"> <xi:include href="regedit/regedit.rbuild" /> </directory>
<directory name="regedt32"><xi:include href="regedt32/regedt32.rbuild" /></directory> <directory name="sc"> <xi:include href="sc/sc.rbuild" /> </directory>Propchange: trunk/reactos/base/applications/regedt32/
--- svn:ignore (added) +++ svn:ignore Fri May 16 11:53:36 2008 @@ -1,0 +1,7 @@ +GNUmakefile +*.vcproj +*.user +*.cbp +*.ncb +*.suo +*.sln
Added: trunk/reactos/base/applications/regedt32/regedt32.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedt32/... ============================================================================== --- trunk/reactos/base/applications/regedt32/regedt32.c (added) +++ trunk/reactos/base/applications/regedt32/regedt32.c [iso-8859-1] Fri May 16 11:53:36 2008 @@ -1,0 +1,11 @@ +#include <windows.h> +#include <tchar.h> +#include <shellapi.h>
+int WINAPI _tWinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst,
LPTSTR lpsCmdLine, int nCmdShow)+{
- ShellExecute(NULL, NULL, _T("regedit.exe"), lpsCmdLine, NULL, nCmdShow);
- return 0;
+}
Propchange: trunk/reactos/base/applications/regedt32/regedt32.c
svn:eol-style = native
Added: trunk/reactos/base/applications/regedt32/regedt32.rbuild URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedt32/... ============================================================================== --- trunk/reactos/base/applications/regedt32/regedt32.rbuild (added) +++ trunk/reactos/base/applications/regedt32/regedt32.rbuild [iso-8859-1] Fri May 16 11:53:36 2008 @@ -1,0 +1,9 @@ +<?xml version="1.0"?> +<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> +<module name="regedt32" type="win32gui" installbase="system32" installname="regedt32.exe" unicode="yes">
<include base="regedt32">.</include><library>kernel32</library><library>shell32</library><file>regedt32.c</file><file>resource.rc</file>+</module>
Propchange: trunk/reactos/base/applications/regedt32/regedt32.rbuild
svn:eol-style = native
Added: trunk/reactos/base/applications/regedt32/res/regedt32.ico URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedt32/... ============================================================================== Binary file - no diff available.
Propchange: trunk/reactos/base/applications/regedt32/res/regedt32.ico
svn:mime-type = application/octet-stream
Added: trunk/reactos/base/applications/regedt32/resource.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedt32/... ============================================================================== --- trunk/reactos/base/applications/regedt32/resource.h (added) +++ trunk/reactos/base/applications/regedt32/resource.h [iso-8859-1] Fri May 16 11:53:36 2008 @@ -1,0 +1,1 @@ +#define IDI_REGEDIT 101
Propchange: trunk/reactos/base/applications/regedt32/resource.h
svn:eol-style = native
Added: trunk/reactos/base/applications/regedt32/resource.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedt32/... ============================================================================== --- trunk/reactos/base/applications/regedt32/resource.rc (added) +++ trunk/reactos/base/applications/regedt32/resource.rc [iso-8859-1] Fri May 16 11:53:36 2008 @@ -1,0 +1,33 @@ +/*
- Regedit-32 resources
- Copyright 2008 Carlo Bramini
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
+#include <windows.h> +#include "resource.h"
+// Common resources
+LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
+#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Registry Explorer\0" +#define REACTOS_STR_INTERNAL_NAME "regedt32\0" +#define REACTOS_STR_ORIGINAL_FILENAME "regedt32.exe\0" +#include <reactos/version.rc>
+IDI_REGEDIT ICON DISCARDABLE res/regedt32.ico
Propchange: trunk/reactos/base/applications/regedt32/resource.rc
svn:eol-style = native