From: Hugh McMaster Subject: [2/4] regsvr32: Create resource header and move ANSI resource strings Message-Id: <9CB7F20010CADE479EB89B7DCEDFB64268076ED6E8@VMBX112.ihostexchange.net> Date: Mon, 10 Mar 2014 22:16:35 -0400 This patch creates a new header (regsvr32.h) and adds the existing ANSI strings from the C source to the string table in regsvr32.rc. From c33694635767c4d78afedb18d70965cf234abd6c Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Mon, 10 Mar 2014 22:34:18 +1100 Subject: regsvr32-resources --- programs/regsvr32/regsvr32.h | 34 ++++++++++++++++++++++++++++++++++ programs/regsvr32/regsvr32.rc | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 programs/regsvr32/regsvr32.h diff --git a/programs/regsvr32/regsvr32.h b/programs/regsvr32/regsvr32.h new file mode 100644 index 0000000..6a14661 --- /dev/null +++ b/programs/regsvr32/regsvr32.h @@ -0,0 +1,34 @@ +/* + * Language resources for regsvr32 + * + * Copyright 2014 Hugh McMaster + * + * This library 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.1 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* Resource strings */ +#define STRING_HEADER 1000 +#define STRING_USAGE 1001 +#define STRING_UNRECOGNIZED_SWITCH 1002 +#define STRING_DLL_LOAD_FAILED 1003 +#define STRING_PROC_NOT_IMPLEMENTED 1004 +#define STRING_REGISTER_FAILED 1005 +#define STRING_REGISTER_SUCCESSFUL 1006 +#define STRING_UNREGISTER_FAILED 1007 +#define STRING_UNREGISTER_SUCCESSFUL 1008 +#define STRING_INSTALL_FAILED 1009 +#define STRING_INSTALL_SUCCESSFUL 1010 +#define STRING_UNINSTALL_FAILED 1011 +#define STRING_UNINSTALL_SUCCESSFUL 1012 diff --git a/programs/regsvr32/regsvr32.rc b/programs/regsvr32/regsvr32.rc index c1ebe47..8e6b2df 100644 --- a/programs/regsvr32/regsvr32.rc +++ b/programs/regsvr32/regsvr32.rc @@ -1,6 +1,7 @@ /* Language neutral resources. * * Copyright 2003 Stefan Leichter + * Copyright 2014 Hugh McMaster * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -17,7 +18,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define WINE_FILEDESCRIPTION_STR "Wine Register Server" +#include "wine/wine_common_ver.rc" +#include "regsvr32.h" + +#define WINE_FILEDESCRIPTION_STR "Wine DLL Registration Server" #define WINE_FILENAME_STR "REGSVR32" #define WINE_FILETYPE VFT_APP #define WINE_FILEVERSION 5,0,1586,1 @@ -26,4 +30,31 @@ #define WINE_PRODUCTVERSION 5,0,1586,1 #define WINE_PRODUCTVERSION_STR "5.0" -#include "wine/wine_common_ver.rc" +#pragma makedep po + +LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT + +STRINGTABLE +{ + STRING_HEADER, "Wine DLL Registration Server (regsvr32)\n\n\ +Provides DLL registration services.\n\n" + STRING_USAGE, "Usage:\n\ +regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname\n\n\ +Options:\n\ +[/u] Unregister a module from the server.\n\ +[/s] Silent mode (no messages will be displayed).\n\ +[/i] Call DllInstall, passing an optional [cmdline].\n\ +\tWhen used with [/u], regsvr32 also calls DLL uninstall.\n\ +[/n] Do not call DllRegisterServer. This option must be used with [/i].\n\n" + STRING_UNRECOGNIZED_SWITCH, "regsvr32: Unrecognized switch [%1]\n\n" + STRING_DLL_LOAD_FAILED, "regsvr32: Failed to load DLL '%1'\n" + STRING_PROC_NOT_IMPLEMENTED, "regsvr32: %1!S! not implemented in DLL '%2'\n" + STRING_REGISTER_FAILED, "regsvr32: Failed to register DLL '%1'\n" + STRING_REGISTER_SUCCESSFUL, "regsvr32: Successfully registered DLL '%1'\n" + STRING_UNREGISTER_FAILED, "regsvr32: Failed to unregister DLL '%1'\n" + STRING_UNREGISTER_SUCCESSFUL, "regsvr32: Successfully unregistered DLL '%1'\n" + STRING_INSTALL_FAILED, "regsvr32: Failed to install DLL '%1'\n" + STRING_INSTALL_SUCCESSFUL, "regsvr32: Successfully installed DLL '%1'\n" + STRING_UNINSTALL_FAILED, "regsvr32: Failed to uninstall DLL '%1'\n" + STRING_UNINSTALL_SUCCESSFUL, "regsvr32: Successfully uninstalled DLL '%1'\n" +} -- 1.8.3.2