mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:23:34 +00:00
Remove all hardcode string to En.rc
Hopplyfull all hardcoing string are gone now svn path=/trunk/; revision=14888
This commit is contained in:
parent
a14761769e
commit
671be67001
3 changed files with 21 additions and 1 deletions
12
reactos/subsys/system/userinit/En.rc
Normal file
12
reactos/subsys/system/userinit/En.rc
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#include "resource.h"
|
||||||
|
/* Start move all hard code string to En.rc
|
||||||
|
* By Magnus Olsen 2005
|
||||||
|
*/
|
||||||
|
|
||||||
|
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
|
||||||
|
STRINGTABLE DISCARDABLE
|
||||||
|
{
|
||||||
|
|
||||||
|
STRING_USERINIT_FAIL, "Userinit failed to start the shell!\n"
|
||||||
|
|
||||||
|
}
|
|
@ -24,6 +24,7 @@
|
||||||
* PROGRAMMERS: Thomas Weidenmueller (w3seek@users.sourceforge.net)
|
* PROGRAMMERS: Thomas Weidenmueller (w3seek@users.sourceforge.net)
|
||||||
*/
|
*/
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
@ -77,6 +78,7 @@ void StartShell(void)
|
||||||
PROCESS_INFORMATION pi;
|
PROCESS_INFORMATION pi;
|
||||||
WCHAR Shell[MAX_PATH];
|
WCHAR Shell[MAX_PATH];
|
||||||
WCHAR ExpandedShell[MAX_PATH];
|
WCHAR ExpandedShell[MAX_PATH];
|
||||||
|
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
||||||
|
|
||||||
GetShell(Shell);
|
GetShell(Shell);
|
||||||
|
|
||||||
|
@ -102,7 +104,10 @@ void StartShell(void)
|
||||||
CloseHandle(pi.hThread);
|
CloseHandle(pi.hThread);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
MessageBox(0, L"Userinit failed to start the shell!\n", NULL, 0);
|
{
|
||||||
|
LoadString( GetModuleHandle(NULL), STRING_USERINIT_FAIL, (LPTSTR) szMsg,sizeof(szMsg));
|
||||||
|
MessageBox(0, szMsg, NULL, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
#define REACTOS_STR_FILE_DESCRIPTION "Userinit Logon Application\0"
|
#define REACTOS_STR_FILE_DESCRIPTION "Userinit Logon Application\0"
|
||||||
#define REACTOS_STR_INTERNAL_NAME "userinit\0"
|
#define REACTOS_STR_INTERNAL_NAME "userinit\0"
|
||||||
#define REACTOS_STR_ORIGINAL_FILENAME "userinit.dll\0"
|
#define REACTOS_STR_ORIGINAL_FILENAME "userinit.dll\0"
|
||||||
#include <reactos/version.rc>
|
#include <reactos/version.rc>
|
||||||
|
#include "En.rc"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue