ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
January 2008
----- 2024 -----
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
24 participants
539 discussions
Start a n
N
ew thread
[hpoussin] 31658: Fix build
by hpoussin@svn.reactos.org
Author: hpoussin Date: Tue Jan 8 00:58:00 2008 New Revision: 31658 URL:
http://svn.reactos.org/svn/reactos?rev=31658&view=rev
Log: Fix build Modified: trunk/reactos/base/system/userinit/userinit.c Modified: trunk/reactos/base/system/userinit/userinit.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/userinit/useri…
============================================================================== --- trunk/reactos/base/system/userinit/userinit.c (original) +++ trunk/reactos/base/system/userinit/userinit.c Tue Jan 8 00:58:00 2008 @@ -575,10 +575,10 @@ #endif /* _MSC_VER */ int WINAPI -WinMain(IN HINSTANCE hInst, - IN HINSTANCE hPrevInstance, - IN LPSTR lpszCmdLine, - IN int nCmdShow) +wWinMain(IN HINSTANCE hInst, + IN HINSTANCE hPrevInstance, + IN LPWSTR lpszCmdLine, + IN int nCmdShow) { NotifyLogon(); SetUserSettings();
16 years, 8 months
1
0
0
0
[hpoussin] 31657: Link to wine library, as we're using wine debug macros
by hpoussin@svn.reactos.org
Author: hpoussin Date: Tue Jan 8 00:50:21 2008 New Revision: 31657 URL:
http://svn.reactos.org/svn/reactos?rev=31657&view=rev
Log: Link to wine library, as we're using wine debug macros Modified: trunk/reactos/base/system/userinit/userinit.rbuild Modified: trunk/reactos/base/system/userinit/userinit.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/userinit/useri…
============================================================================== --- trunk/reactos/base/system/userinit/userinit.rbuild (original) +++ trunk/reactos/base/system/userinit/userinit.rbuild Tue Jan 8 00:50:21 2008 @@ -2,6 +2,7 @@ <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> <module name="userinit" type="win32gui" installbase="system32" installname="userinit.exe" unicode="yes"> <include base="userinit">.</include> + <library>wine</library> <library>ntdll</library> <library>kernel32</library> <library>user32</library>
16 years, 8 months
1
0
0
0
[hpoussin] 31656: Add traces
by hpoussin@svn.reactos.org
Author: hpoussin Date: Tue Jan 8 00:42:59 2008 New Revision: 31656 URL:
http://svn.reactos.org/svn/reactos?rev=31656&view=rev
Log: Add traces Modified: trunk/reactos/base/system/userinit/userinit.c trunk/reactos/base/system/userinit/userinit.rbuild Modified: trunk/reactos/base/system/userinit/userinit.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/userinit/useri…
============================================================================== --- trunk/reactos/base/system/userinit/userinit.c (original) +++ trunk/reactos/base/system/userinit/userinit.c Tue Jan 8 00:42:59 2008 @@ -29,6 +29,9 @@ #include <shlobj.h> #include <shlwapi.h> #include "resource.h" +#include <wine/debug.h> + +WINE_DEFAULT_DEBUG_CHANNEL(userinit); #define CMP_MAGIC 0x01234567 @@ -47,17 +50,29 @@ DWORD cbData = 0; LPWSTR Value; + TRACE("(%p, %s, %p)\n", hKey, debugstr_w(pszKey), pValue); + rc = RegQueryValueExW(hKey, pszKey, NULL, &dwType, NULL, &cbData); if (rc != ERROR_SUCCESS) + { + WARN("RegQueryValueEx(%s) failed with error %lu\n", debugstr_w(pszKey), rc); return rc; + } if (dwType != REG_SZ) + { + WARN("Wrong registry data type (%u vs %u)\n", dwType, REG_SZ); return ERROR_FILE_NOT_FOUND; + } Value = (WCHAR*) HeapAlloc(GetProcessHeap(), 0, cbData + sizeof(WCHAR)); if (!Value) + { + WARN("No memory\n"); return ERROR_NOT_ENOUGH_MEMORY; + } rc = RegQueryValueExW(hKey, pszKey, NULL, NULL, (LPBYTE)Value, &cbData); if (rc != ERROR_SUCCESS) { + WARN("RegQueryValueEx(%s) failed with error %lu\n", debugstr_w(pszKey), rc); HeapFree(GetProcessHeap(), 0, Value); return rc; } @@ -76,6 +91,8 @@ LPWSTR CurrentOption, NextOption; /* Pointers into SystemStartOptions */ LONG rc; BOOL ret = FALSE; + + TRACE("()\n"); rc = RegOpenKeyEx( HKEY_LOCAL_MACHINE, @@ -83,10 +100,18 @@ 0, KEY_QUERY_VALUE, &ControlKey); + if (rc != ERROR_SUCCESS) + { + WARN("RegOpenKeyEx() failed with error %lu\n", rc); + goto cleanup; + } rc = ReadRegSzKey(ControlKey, L"SystemStartOptions", &SystemStartOptions); if (rc != ERROR_SUCCESS) + { + WARN("ReadRegSzKey() failed with error %lu\n", rc); goto cleanup; + } /* Check for CONSOLE in SystemStartOptions */ CurrentOption = SystemStartOptions; @@ -97,6 +122,7 @@ *NextOption = L'\0'; if (wcsicmp(CurrentOption, L"CONSOLE") == 0) { + TRACE("Found 'CONSOLE' boot option\n"); ret = TRUE; goto cleanup; } @@ -120,26 +146,38 @@ WCHAR Shell[MAX_PATH]; BOOL Ret = FALSE; BOOL ConsoleShell = IsConsoleShell(); - - if (RegOpenKeyEx(hRootKey, REGSTR_PATH_WINLOGON, - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) + LONG rc; + + TRACE("(%p, %p)\n", CommandLine, hRootKey); + + rc = RegOpenKeyEx(hRootKey, REGSTR_PATH_WINLOGON, + 0, KEY_QUERY_VALUE, &hKey); + if (rc == ERROR_SUCCESS) { Size = MAX_PATH * sizeof(WCHAR); - if (RegQueryValueEx(hKey, - ConsoleShell ? L"ConsoleShell" : L"Shell", - NULL, - &Type, - (LPBYTE)Shell, - &Size) == ERROR_SUCCESS) + rc = RegQueryValueEx(hKey, + ConsoleShell ? L"ConsoleShell" : L"Shell", + NULL, + &Type, + (LPBYTE)Shell, + &Size); + if (rc == ERROR_SUCCESS) { if ((Type == REG_SZ) || (Type == REG_EXPAND_SZ)) { + TRACE("Found command line %s\n", debugstr_w(Shell)); wcscpy(CommandLine, Shell); Ret = TRUE; } + else + WARN("Wrong type %lu (expected %u or %u)\n", Type, REG_SZ, REG_EXPAND_SZ); } + else + WARN("RegQueryValueEx() failed with error %lu\n", rc); RegCloseKey(hKey); } + else + WARN("RegOpenKeyEx() failed with error %lu\n", rc); return Ret; } @@ -155,10 +193,13 @@ SHELLEXECUTEINFOW ExecInfo; size_t len; + TRACE("(%d)\n", clsid); + hResult = SHGetFolderPathW(NULL, clsid, NULL, SHGFP_TYPE_CURRENT, szPath); len = wcslen(szPath); if (!SUCCEEDED(hResult) || len == 0) { + WARN("SHGetFolderPath() failed with error %lu\n", GetLastError()); return; } @@ -166,6 +207,7 @@ hFind = FindFirstFileW(szPath, &findData); if (hFind == INVALID_HANDLE_VALUE) { + WARN("FindFirstFile(%s) failed with error %lu\n", debugstr_w(szPath), GetLastError()); return; } szPath[len] = L'\0'; @@ -179,6 +221,8 @@ ExecInfo.lpVerb = L"open"; ExecInfo.lpFile = findData.cFileName; ExecInfo.lpDirectory = szPath; + TRACE("Executing %s in directory %s\n", + debugstr_w(findData.cFileName), debugstr_w(szPath)); ShellExecuteExW(&ExecInfo); } } while (FindNextFileW(hFind, &findData)); @@ -192,6 +236,8 @@ STARTUPINFO si; PROCESS_INFORMATION pi; WCHAR ExpandedShell[MAX_PATH]; + + TRACE("(%s)\n", debugstr_w(Shell)); ZeroMemory(&si, sizeof(STARTUPINFO)); si.cb = sizeof(STARTUPINFO); @@ -210,6 +256,7 @@ &si, &pi)) { + WARN("CreateProcess() failed with error %lu\n", GetLastError()); return FALSE; } @@ -227,15 +274,19 @@ WCHAR Shell[MAX_PATH]; TCHAR szMsg[RC_STRING_MAX_SIZE]; + TRACE("()\n"); + /* Try to run shell in user key */ if (GetShell(Shell, HKEY_CURRENT_USER) && TryToStartShell(Shell)) { + TRACE("Failed to start a shell from HKEY_CURRENT_USER\n"); return; } /* Try to run shell in local machine key */ if (GetShell(Shell, HKEY_LOCAL_MACHINE) && TryToStartShell(Shell)) { + TRACE("Failed to start a shell from HKEY_LOCAL_MACHINE\n"); return; } @@ -256,12 +307,13 @@ } if (!TryToStartShell(Shell)) { + WARN("Failed to start default shell %s\n", debugstr_w(Shell)); LoadString( GetModuleHandle(NULL), STRING_USERINIT_FAIL, szMsg, sizeof(szMsg) / sizeof(szMsg[0])); MessageBox(0, szMsg, NULL, 0); } } -WCHAR g_RegColorNames[][32] = { +const WCHAR g_RegColorNames[][32] = { L"Scrollbar", /* 00 = COLOR_SCROLLBAR */ L"Background", /* 01 = COLOR_DESKTOP */ L"ActiveTitle", /* 02 = COLOR_ACTIVECAPTION */ @@ -302,6 +354,8 @@ { BYTE rgb[3]; + TRACE("(%s)\n", debugstr_w(lpszCol)); + rgb[0] = StrToIntW(lpszCol); lpszCol = StrChrW(lpszCol, L' ') + 1; rgb[1] = StrToIntW(lpszCol); @@ -318,25 +372,32 @@ WCHAR szColor[20]; DWORD Type, Size; COLORREF crColor; - - if (!RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_COLORS, - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) - { + LONG rc; + + TRACE("()\n"); + + rc = RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_COLORS, + 0, KEY_QUERY_VALUE, &hKey); + if (rc != ERROR_SUCCESS) + { + WARN("RegOpenKeyEx() failed with error %lu\n", rc); return; } for(i = 0; i < NUM_SYSCOLORS; i++) { Size = sizeof(szColor); - if (RegQueryValueEx(hKey, g_RegColorNames[i], NULL, &Type, - (LPBYTE)szColor, &Size) == ERROR_SUCCESS && - Type == REG_SZ) + rc = RegQueryValueEx(hKey, g_RegColorNames[i], NULL, &Type, + (LPBYTE)szColor, &Size); + if (rc == ERROR_SUCCESS && Type == REG_SZ) { crColor = StrToColorref(szColor); SetSysColors(1, &i, &crColor); } + else + WARN("RegQueryValueEx(%s) failed with error %lu\n", + debugstr_w(g_RegColorNames[i]), rc); } RegCloseKey(hKey); - return; } static @@ -347,17 +408,22 @@ HKEY hKey; LOGFONTW lfTemp; DWORD Type, Size; - INT error; + LONG rc; + + TRACE("(%s, %p)\n", debugstr_w(lpValueName), pFont); Size = sizeof(LOGFONTW); - if (!RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_METRICS, - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) - { - return; - } - error = RegQueryValueEx(hKey, lpValueName, NULL, &Type, (LPBYTE)&lfTemp, &Size); - if ((error != ERROR_SUCCESS) || (Type != REG_BINARY)) - { + rc = RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_METRICS, + 0, KEY_QUERY_VALUE, &hKey); + if (rc != ERROR_SUCCESS) + { + WARN("RegOpenKeyEx() failed with error %lu\n", rc); + return; + } + rc = RegQueryValueEx(hKey, lpValueName, NULL, &Type, (LPBYTE)&lfTemp, &Size); + if (rc != ERROR_SUCCESS || Type != REG_BINARY) + { + WARN("RegQueryValueEx() failed with error %lu\n", rc); return; } RegCloseKey(hKey); @@ -372,18 +438,23 @@ { HKEY hKey; DWORD Type, Size; - INT ret; WCHAR strValue[8]; + LONG rc; + + TRACE("(%s, %p)\n", debugstr_w(lpValueName), pValue); Size = sizeof(strValue); - if (!RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_METRICS, - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) - { - return; - } - ret = RegQueryValueEx(hKey, lpValueName, NULL, &Type, (LPBYTE)&strValue, &Size); - if ((ret != ERROR_SUCCESS) || (Type != REG_SZ)) - { + rc = RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_METRICS, + 0, KEY_QUERY_VALUE, &hKey); + if (rc != ERROR_SUCCESS) + { + WARN("RegOpenKeyEx() failed with error %lu\n", rc); + return; + } + rc = RegQueryValueEx(hKey, lpValueName, NULL, &Type, (LPBYTE)&strValue, &Size); + if (rc != ERROR_SUCCESS || Type != REG_SZ) + { + WARN("RegQueryValueEx() failed with error %lu\n", rc); return; } RegCloseKey(hKey); @@ -395,6 +466,8 @@ { NONCLIENTMETRICSW ncmetrics; MINIMIZEDMETRICS mmmetrics; + + TRACE("()\n"); ncmetrics.cbSize = sizeof(NONCLIENTMETRICSW); mmmetrics.cbSize = sizeof(MINIMIZEDMETRICS); @@ -427,20 +500,25 @@ HKEY hKey; DWORD Type, Size; WCHAR szWallpaper[MAX_PATH + 1]; - - if (RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_DESKTOP, - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) + LONG rc; + + TRACE("()\n"); + + rc = RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_DESKTOP, + 0, KEY_QUERY_VALUE, &hKey); + if (rc == ERROR_SUCCESS) { Size = sizeof(szWallpaper); - if (RegQueryValueEx(hKey, - L"Wallpaper", - NULL, - &Type, - (LPBYTE)szWallpaper, - &Size) == ERROR_SUCCESS && - Type == REG_SZ) + rc = RegQueryValueEx(hKey, + L"Wallpaper", + NULL, + &Type, + (LPBYTE)szWallpaper, + &Size); + if (rc == ERROR_SUCCESS && Type == REG_SZ) { ExpandEnvironmentStrings(szWallpaper, szWallpaper, MAX_PATH); + TRACE("Using wallpaper %s\n", debugstr_w(szWallpaper)); /* Load and change the wallpaper */ SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, szWallpaper, SPIF_SENDCHANGE); @@ -448,15 +526,20 @@ else { /* remove the wallpaper */ + TRACE("No wallpaper set in registry (error %lu)\n", rc); SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, NULL, SPIF_SENDCHANGE); } RegCloseKey(hKey); } + else + WARN("RegOpenKeyEx() failed with error %lu\n", rc); } static VOID SetUserSettings(VOID) { + TRACE("()\n"); + SetUserSysColors(); SetUserMetrics(); SetUserWallpaper(); @@ -470,15 +553,21 @@ HINSTANCE hModule; PCMP_REPORT_LOGON CMP_Report_LogOn; + TRACE("()\n"); + hModule = LoadLibrary(L"setupapi.dll"); if (hModule) { CMP_Report_LogOn = (PCMP_REPORT_LOGON)GetProcAddress(hModule, "CMP_Report_LogOn"); if (CMP_Report_LogOn) CMP_Report_LogOn(CMP_MAGIC, GetCurrentProcessId()); + else + WARN("GetProcAddress() failed\n"); FreeLibrary(hModule); } + else + WARN("LoadLibrary() failed with error %lu\n", GetLastError()); } #ifdef _MSC_VER Modified: trunk/reactos/base/system/userinit/userinit.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/userinit/useri…
============================================================================== --- trunk/reactos/base/system/userinit/userinit.rbuild (original) +++ trunk/reactos/base/system/userinit/userinit.rbuild Tue Jan 8 00:42:59 2008 @@ -1,9 +1,7 @@ <?xml version="1.0"?> <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> -<module name="userinit" type="win32gui" installbase="system32" installname="userinit.exe"> +<module name="userinit" type="win32gui" installbase="system32" installname="userinit.exe" unicode="yes"> <include base="userinit">.</include> - <define name="UNICODE" /> - <define name="_UNICODE" /> <library>ntdll</library> <library>kernel32</library> <library>user32</library>
16 years, 8 months
1
0
0
0
[cfinck] 31655: Win32k: - Read from HKCU\Keyboard Layout\Preload for getting the keyboard layout ID to use instead of using the default locale. This finally makes it possible to set the keyboard layout and system locale independently. - Change ReadRegistryValue from KEY_ALL_ACCESS to KEY_READ, we don't need more rights. usetup: - Rename "ProcessKeyboardLayoutRegistry" to "ProcessLocaleRegistry" as it doesn't set anything related to keyboard layouts. - Add a new function "ProcessKeyboardLayoutReg
by cfinck@svn.reactos.org
Author: cfinck Date: Tue Jan 8 00:34:56 2008 New Revision: 31655 URL:
http://svn.reactos.org/svn/reactos?rev=31655&view=rev
Log: Win32k: - Read from HKCU\Keyboard Layout\Preload for getting the keyboard layout ID to use instead of using the default locale. This finally makes it possible to set the keyboard layout and system locale independently. - Change ReadRegistryValue from KEY_ALL_ACCESS to KEY_READ, we don't need more rights. usetup: - Rename "ProcessKeyboardLayoutRegistry" to "ProcessLocaleRegistry" as it doesn't set anything related to keyboard layouts. - Add a new function "ProcessKeyboardLayoutRegistry", which sets the keyboard layout ID in the correct registry key. - Add ERROR_UPDATE_LOCALE_SETTINGS - Fix the indentation of some parts of the language headers and update the german one. Known issues: - Before input.dll is finished, we can only set the keyboard layout in usetup or by manually editing the registry. - 1st stage and 2nd stage setup always use US English keyboard layout for now. See issue #2635 for more details. Modified: trunk/reactos/base/setup/usetup/errorcode.h trunk/reactos/base/setup/usetup/interface/usetup.c trunk/reactos/base/setup/usetup/lang/de-DE.h trunk/reactos/base/setup/usetup/lang/el-GR.h trunk/reactos/base/setup/usetup/lang/en-US.h trunk/reactos/base/setup/usetup/lang/es-ES.h trunk/reactos/base/setup/usetup/lang/fr-FR.h trunk/reactos/base/setup/usetup/lang/it-IT.h trunk/reactos/base/setup/usetup/lang/pl-PL.h trunk/reactos/base/setup/usetup/lang/ru-RU.h trunk/reactos/base/setup/usetup/lang/sv-SE.h trunk/reactos/base/setup/usetup/lang/uk-UA.h trunk/reactos/base/setup/usetup/settings.c trunk/reactos/base/setup/usetup/settings.h trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c Modified: trunk/reactos/base/setup/usetup/errorcode.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/errorcod…
============================================================================== --- trunk/reactos/base/setup/usetup/errorcode.h (original) +++ trunk/reactos/base/setup/usetup/errorcode.h Tue Jan 8 00:34:56 2008 @@ -63,6 +63,7 @@ ERROR_FIND_SETUPDATA, ERROR_WRITE_PTABLE, ERROR_ADDING_CODEPAGE, + ERROR_UPDATE_LOCALESETTINGS, ERROR_LAST_ERROR_CODE }ERROR_NUMBER; Modified: trunk/reactos/base/setup/usetup/interface/usetup.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/interfac…
============================================================================== --- trunk/reactos/base/setup/usetup/interface/usetup.c (original) +++ trunk/reactos/base/setup/usetup/interface/usetup.c Tue Jan 8 00:34:56 2008 @@ -3139,9 +3139,17 @@ return QUIT_PAGE; } + /* Set the locale */ + CONSOLE_SetStatusText(" Updating locale settings..."); + if (!ProcessLocaleRegistry(LanguageList)) + { + MUIDisplayError(ERROR_UPDATE_LOCALESETTINGS, Ir, POPUP_WAIT_ENTER); + return QUIT_PAGE; + } + /* Update keyboard layout settings */ CONSOLE_SetStatusText(" Updating keyboard layout settings..."); - if (!ProcessKeyboardLayoutRegistry(LanguageList)) + if (!ProcessKeyboardLayoutRegistry(LayoutList)) { MUIDisplayError(ERROR_UPDATE_KBSETTINGS, Ir, POPUP_WAIT_ENTER); return QUIT_PAGE; Modified: trunk/reactos/base/setup/usetup/lang/de-DE.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/de-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/de-DE.h (original) +++ trunk/reactos/base/setup/usetup/lang/de-DE.h Tue Jan 8 00:34:56 2008 @@ -1276,12 +1276,12 @@ { //ERROR_NOT_INSTALLED "ReactOS ist nicht vollstaendig auf Ihrem System installiert.\n" - "Wenn Sie das Setup jetzt beenden, muessen Sie das\n" - "Setup erneut starten, um ROS zu installieren.\n" - "\n" - " \x07 Druecken Sie ENTER um das Setup Fortzusetzen.\n" - " \x07 Druecken Sie F3 um das Setup zu beenden.", - "F3 = Beenden ENTER = Fortsetzen" + "Wenn Sie das Setup jetzt beenden, muessen Sie das\n" + "Setup erneut starten, um ROS zu installieren.\n" + "\n" + " \x07 Druecken Sie ENTER um das Setup Fortzusetzen.\n" + " \x07 Druecken Sie F3 um das Setup zu beenden.", + "F3 = Beenden ENTER = Fortsetzen" }, { //ERROR_NO_HDD @@ -1340,21 +1340,21 @@ }, { //ERROR_WARN_PARTITION, - "Setup hat mindestens eine Festplatte mit einer inkompatiblen Partitionstabelle\n" - "welche nicht richtig verwendet werden koennen!\n" - "\n" - "Partitionen zu erstellen/loeschen kann die Partitionstabelle zerstoeren.\n" - "\n" - " \x07 Druecken Sie F3, um das Setup zu beenden." - " \x07 Druecken Sie ENTER, um das Setup Fortzusetzen.", - "F3 = Beenden ENTER = Fortsetzen" + "Setup hat mindestens eine Festplatte mit einer inkompatiblen Partitionstabelle\n" + "welche nicht richtig verwendet werden koennen!\n" + "\n" + "Partitionen zu erstellen/loeschen kann die Partitionstabelle zerstoeren.\n" + "\n" + " \x07 Druecken Sie F3, um das Setup zu beenden." + " \x07 Druecken Sie ENTER, um das Setup Fortzusetzen.", + "F3 = Beenden ENTER = Fortsetzen" }, { //ERROR_NEW_PARTITION, "Sie koennen keine neue Partition in einer bereits\n" - "vohandenen Partition erstellen!\n" - "\n" - " * * Eine beliebige Taste zum Fortsetzen druecken.", + "vohandenen Partition erstellen!\n" + "\n" + " * * Eine beliebige Taste zum Fortsetzen druecken.", NULL }, { @@ -1449,8 +1449,8 @@ { //ERROR_FIND_SETUPDATA, "Setup konnte die 'SetupData' Sektion in\n" - "TXTSETUP.SIF nicht finden.\n", - "ENTER = Computer neustarten" + "TXTSETUP.SIF nicht finden.\n", + "ENTER = Computer neustarten" }, { //ERROR_WRITE_PTABLE, @@ -1459,8 +1459,13 @@ }, { //ERROR_ADDING_CODEPAGE, - "Setup failed to add codepage to registry.\n" - "ENTER = Reboot computer" + "Setup konnte den CodePage-Eintrag nicht hinzufuegen.\n" + "ENTER = Computer neustarten" + }, + { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup konnte die Systemsprache nicht einstellen.\n" + "ENTER = Computer neustarten" }, { NULL, Modified: trunk/reactos/base/setup/usetup/lang/el-GR.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/el-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/el-GR.h (original) +++ trunk/reactos/base/setup/usetup/lang/el-GR.h Tue Jan 8 00:34:56 2008 @@ -1270,12 +1270,12 @@ { //ERROR_NOT_INSTALLED "Ôï ReactOS äåí åãêáôáóôÜèçêå ðëÞñùò óôïí\n" - "õðïëïãéóôÞ óáò. Áí áðï÷ùñÞóåôå áðü ôçí ÅãêáôÜóôáóç ôþñá, èá ðñÝðåé íá\n" - "îáíáôñÝîåôå ôçí ÅãêáôÜóôáóç ãéá íá åãêáôáóôÞóåô ôï ReactOS.\n" - "\n" - " \x07 ÐáôÞóôå ENTER ãéá áí óõíå÷ßóåôå ôçí ÅãêáôÜóôáóç.\n" - " \x07 ÐáôÞóôå F3 ãéá íá áðï÷ùñÞóåôå áðü ôçí ÅãêáôÜóôáóç.", - "F3= Áðï÷þñçóç ENTER = ÓõíÝ÷åéá" + "õðïëïãéóôÞ óáò. Áí áðï÷ùñÞóåôå áðü ôçí ÅãêáôÜóôáóç ôþñá, èá ðñÝðåé íá\n" + "îáíáôñÝîåôå ôçí ÅãêáôÜóôáóç ãéá íá åãêáôáóôÞóåô ôï ReactOS.\n" + "\n" + " \x07 ÐáôÞóôå ENTER ãéá áí óõíå÷ßóåôå ôçí ÅãêáôÜóôáóç.\n" + " \x07 ÐáôÞóôå F3 ãéá íá áðï÷ùñÞóåôå áðü ôçí ÅãêáôÜóôáóç.", + "F3= Áðï÷þñçóç ENTER = ÓõíÝ÷åéá" }, { //ERROR_NO_HDD @@ -1335,20 +1335,20 @@ { //ERROR_WARN_PARTITION, "Ç ÅãêáôÜóôáóç âñÞêå üôé ôïõëÜ÷éóôïí Ýíáò óêëçñüò äßóêïò ðåñéÝ÷åé Ýíá ìç óõìâáôü\n" - "partition table ðïõ äå ìðïñåß íá åëåã÷èåß óùóôÜ!\n" - "\n" - "Ç äçìéïõñãßá Þ äéáãñáöÞ partitions ìðïñåß íá êáôáóôñÝøåé ôï partiton table.\n" - "\n" - " \x07 ÐáôÞóôå F3 ãéá íá áðï÷ùñÞóåôå áðü ôçí ÅãêáôÜóôáóç." - " \x07 ÐáôÞóôå ENTER ãéá íá óõíå÷ßóåôå.", + "partition table ðïõ äå ìðïñåß íá åëåã÷èåß óùóôÜ!\n" + "\n" + "Ç äçìéïõñãßá Þ äéáãñáöÞ partitions ìðïñåß íá êáôáóôñÝøåé ôï partiton table.\n" + "\n" + " \x07 ÐáôÞóôå F3 ãéá íá áðï÷ùñÞóåôå áðü ôçí ÅãêáôÜóôáóç." + " \x07 ÐáôÞóôå ENTER ãéá íá óõíå÷ßóåôå.", "F3= Áðï÷þñçóç ENTER = ÓõíÝ÷åéá" }, { //ERROR_NEW_PARTITION, "Äå ìðïñåßôå íá äçìéïõñãÞóåôå Ýíá Partition ìÝóá óå\n" - "Ýíá Üëëï õðÜñ÷ïí Partition!\n" - "\n" - " * ÐáôÞóôå ïðïéïäÞðïôå ðëÞêôñï ãéá íá óõíå÷ßóåôå.", + "Ýíá Üëëï õðÜñ÷ïí Partition!\n" + "\n" + " * ÐáôÞóôå ïðïéïäÞðïôå ðëÞêôñï ãéá íá óõíå÷ßóåôå.", NULL }, { @@ -1443,8 +1443,8 @@ { //ERROR_FIND_SETUPDATA, "Ç ÅãêáôÜóôáóç áðÝôõ÷å íá âñåé ôïí ôïìÝá 'SetupData'\n" - "óôï TXTSETUP.SIF.\n", - "ENTER = Åðáíåêêßíçóç õðïëïãéóôÞ" + "óôï TXTSETUP.SIF.\n", + "ENTER = Åðáíåêêßíçóç õðïëïãéóôÞ" }, { //ERROR_WRITE_PTABLE, @@ -1457,6 +1457,11 @@ "ENTER = Reboot computer" }, { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup could not set the system locale.\n" + "ENTER = Reboot computer" + }, + { NULL, NULL } Modified: trunk/reactos/base/setup/usetup/lang/en-US.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/en-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/en-US.h (original) +++ trunk/reactos/base/setup/usetup/lang/en-US.h Tue Jan 8 00:34:56 2008 @@ -1270,12 +1270,12 @@ { //ERROR_NOT_INSTALLED "ReactOS is not completely installed on your\n" - "computer. If you quit Setup now, you will need to\n" - "run Setup again to install ReactOS.\n" - "\n" - " \x07 Press ENTER to continue Setup.\n" - " \x07 Press F3 to quit Setup.", - "F3 = Quit ENTER = Continue" + "computer. If you quit Setup now, you will need to\n" + "run Setup again to install ReactOS.\n" + "\n" + " \x07 Press ENTER to continue Setup.\n" + " \x07 Press F3 to quit Setup.", + "F3 = Quit ENTER = Continue" }, { //ERROR_NO_HDD @@ -1335,20 +1335,20 @@ { //ERROR_WARN_PARTITION, "Setup found that at least one harddisk contains an incompatible\n" - "partition table that can not be handled properly!\n" - "\n" - "Creating or deleting partitions can destroy the partition table.\n" - "\n" - " \x07 Press F3 to quit Setup." - " \x07 Press ENTER to continue.", + "partition table that can not be handled properly!\n" + "\n" + "Creating or deleting partitions can destroy the partition table.\n" + "\n" + " \x07 Press F3 to quit Setup." + " \x07 Press ENTER to continue.", "F3= Quit ENTER = Continue" }, { //ERROR_NEW_PARTITION, "You can not create a new Partition inside\n" - "of an already existing Partition!\n" - "\n" - " * Press any key to continue.", + "of an already existing Partition!\n" + "\n" + " * Press any key to continue.", NULL }, { @@ -1443,8 +1443,8 @@ { //ERROR_FIND_SETUPDATA, "Setup failed to find the 'SetupData' section\n" - "in TXTSETUP.SIF.\n", - "ENTER = Reboot computer" + "in TXTSETUP.SIF.\n", + "ENTER = Reboot computer" }, { //ERROR_WRITE_PTABLE, @@ -1457,6 +1457,11 @@ "ENTER = Reboot computer" }, { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup could not set the system locale.\n" + "ENTER = Reboot computer" + }, + { NULL, NULL } Modified: trunk/reactos/base/setup/usetup/lang/es-ES.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/es-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/es-ES.h (original) +++ trunk/reactos/base/setup/usetup/lang/es-ES.h Tue Jan 8 00:34:56 2008 @@ -1346,9 +1346,9 @@ { //ERROR_NEW_PARTITION, "You can not create a new Partition inside\n" - "of an already existing Partition!\n" - "\n" - " * Press any key to continue.", + "of an already existing Partition!\n" + "\n" + " * Press any key to continue.", NULL }, { @@ -1457,6 +1457,11 @@ "ENTER = Reboot computer" }, { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup could not set the system locale.\n" + "ENTER = Reboot computer" + }, + { NULL, NULL } Modified: trunk/reactos/base/setup/usetup/lang/fr-FR.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/fr-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/fr-FR.h (original) +++ trunk/reactos/base/setup/usetup/lang/fr-FR.h Tue Jan 8 00:34:56 2008 @@ -1282,12 +1282,12 @@ { //ERROR_NOT_INSTALLED "ReactOS n'est pas completement installe sur votre\n" - "ordinateur. Si vous quittez Setup maintenant, vous devrez\n" - "lancer Setup de nouveau pour installer ReactOS.\n" - "\n" - " \x07 Appuyer sur ENTER pour continuer Setup.\n" - " \x07 Appuyer sur F3 pour quitter Setup.", - "F3= Quitter ENTER = Continuer" + "ordinateur. Si vous quittez Setup maintenant, vous devrez\n" + "lancer Setup de nouveau pour installer ReactOS.\n" + "\n" + " \x07 Appuyer sur ENTER pour continuer Setup.\n" + " \x07 Appuyer sur F3 pour quitter Setup.", + "F3= Quitter ENTER = Continuer" }, { //ERROR_NO_HDD @@ -1346,21 +1346,21 @@ }, { //ERROR_WARN_PARTITION, - "Setup a detecte qu'au moins un dique dur contient une table\n" - "de partition incompatible qui ne peut etre prise en compte!\n" - "\n" - "Creer ou effacer des partitions peut detruire la table de partition.\n" - "\n" - " \x07 Appuyer sur F3 pour quitter Setup." - " \x07 Appuyer sur ENTER pour continuer Setup.", - "F3= Quitter ENTER = Continuer" + "Setup a detecte qu'au moins un dique dur contient une table\n" + "de partition incompatible qui ne peut etre prise en compte!\n" + "\n" + "Creer ou effacer des partitions peut detruire la table de partition.\n" + "\n" + " \x07 Appuyer sur F3 pour quitter Setup." + " \x07 Appuyer sur ENTER pour continuer Setup.", + "F3= Quitter ENTER = Continuer" }, { //ERROR_NEW_PARTITION, "Vous ne pouvez creer une nouvelle Partition à l'interieur\n" - "d'une Partition deja existante!\n" - "\n" - " * Appuyez sur une touche pour continuer.", + "d'une Partition deja existante!\n" + "\n" + " * Appuyez sur une touche pour continuer.", NULL }, { @@ -1455,8 +1455,8 @@ { //ERROR_FIND_SETUPDATA, "Setup n'a pu trouver la section 'SetupData'\n" - "in TXTSETUP.SIF.\n", - "ENTER = Redemarrer l'ordinateur" + "in TXTSETUP.SIF.\n", + "ENTER = Redemarrer l'ordinateur" }, { //ERROR_WRITE_PTABLE, @@ -1469,6 +1469,11 @@ "ENTER = Reboot computer" }, { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup could not set the system locale.\n" + "ENTER = Reboot computer" + }, + { NULL, NULL } Modified: trunk/reactos/base/setup/usetup/lang/it-IT.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/it-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/it-IT.h (original) +++ trunk/reactos/base/setup/usetup/lang/it-IT.h Tue Jan 8 00:34:56 2008 @@ -4,7 +4,7 @@ static MUI_ENTRY itITLanguagePageEntries[] = { { - 4, + 4, 3, " Installazione di ReactOS " KERNEL_VERSION_STR " ", TEXT_UNDERLINE @@ -1276,12 +1276,12 @@ { //ERROR_NOT_INSTALLED "ReactOS non è installato completamente nel vostro\n" - "computer. Se esce adesso, dovrà eseguire il Setup\n" - "nuovamente per installare ReactOS.\n" - "\n" - " \x07 Premere INVIO per continuare il setup.\n" - " \x07 Premere F3 per uscire.", - "F3= Uscire INVIO = Continuare" + "computer. Se esce adesso, dovrà eseguire il Setup\n" + "nuovamente per installare ReactOS.\n" + "\n" + " \x07 Premere INVIO per continuare il setup.\n" + " \x07 Premere F3 per uscire.", + "F3= Uscire INVIO = Continuare" }, { //ERROR_NO_HDD @@ -1340,21 +1340,21 @@ }, { //ERROR_WARN_PARTITION, - "Setup ha trovato che al meno un disco fisso contiene una tabella delle\n" - "partizioni incompatibile che non può essere gestita correttamente!\n" - "\n" - "Il creare o cancellare partizioni può distruggere la tabella delle partizioni.\n" - "\n" - " \x07 Premere F3 per uscire dal Setup." - " \x07 Premere INVIO per continuare.", - "F3= Uscire INVIO = Continuare" + "Setup ha trovato che al meno un disco fisso contiene una tabella delle\n" + "partizioni incompatibile che non può essere gestita correttamente!\n" + "\n" + "Il creare o cancellare partizioni può distruggere la tabella delle partizioni.\n" + "\n" + " \x07 Premere F3 per uscire dal Setup." + " \x07 Premere INVIO per continuare.", + "F3= Uscire INVIO = Continuare" }, { //ERROR_NEW_PARTITION, "Non si può creare una nuova partizione all'interno\n" - "di una partizione già esistente!\n" - "\n" - " * Premere un tasto qualsiasi per continuare.", + "di una partizione già esistente!\n" + "\n" + " * Premere un tasto qualsiasi per continuare.", NULL }, { @@ -1449,8 +1449,8 @@ { //ERROR_FIND_SETUPDATA, "Setup non ha trovato la sezione 'SetupData'\n" - "in TXTSETUP.SIF.\n", - "INVIO = Riavviare il computer" + "in TXTSETUP.SIF.\n", + "INVIO = Riavviare il computer" }, { //ERROR_WRITE_PTABLE, @@ -1463,6 +1463,11 @@ "ENTER = Reboot computer" }, { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup could not set the system locale.\n" + "ENTER = Reboot computer" + }, + { NULL, NULL } Modified: trunk/reactos/base/setup/usetup/lang/pl-PL.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/pl-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/pl-PL.h (original) +++ trunk/reactos/base/setup/usetup/lang/pl-PL.h Tue Jan 8 00:34:56 2008 @@ -1278,12 +1278,12 @@ { //ERROR_NOT_INSTALLED "ReactOS nie zosta³ w pe³ni zainstalowany na twoim\n" - "komputerze. Jeli wyjdziesz teraz, trzeba bêdzie\n" - "ponownie uruchomiæ instalator by zainstalowaæ ReactOS.\n" - "\n" - " \x07 Nacinij ENTER aby kontynuowaæ instalacjê.\n" - " \x07 Nacinij F3 aby wyjæ z instalatora.", - "F3= Quit ENTER = Continue" + "komputerze. Jeli wyjdziesz teraz, trzeba bêdzie\n" + "ponownie uruchomiæ instalator by zainstalowaæ ReactOS.\n" + "\n" + " \x07 Nacinij ENTER aby kontynuowaæ instalacjê.\n" + " \x07 Nacinij F3 aby wyjæ z instalatora.", + "F3= Quit ENTER = Continue" }, { //ERROR_NO_HDD @@ -1342,21 +1342,21 @@ }, { //ERROR_WARN_PARTITION, - "Instalator wykry³, ¿e co najmniej jeden dysk twardy zawiera niekompatybiln¹ \n" - "tablicê partycji, która nie bêdzie poprawnie obs³ugiwana!\n" - "\n" - "Tworzenie lub kasowanie partycji mo¿e zniszczyæ ca³¹ tablicê partycji.\n" - "\n" - " \x07 Nacinij F3 aby wyjæ z instalatora." - " \x07 Nacinij ENTER aby kontynuowaæ.", - "F3= Wyjcie ENTER = Kontynuacja" + "Instalator wykry³, ¿e co najmniej jeden dysk twardy zawiera niekompatybiln¹ \n" + "tablicê partycji, która nie bêdzie poprawnie obs³ugiwana!\n" + "\n" + "Tworzenie lub kasowanie partycji mo¿e zniszczyæ ca³¹ tablicê partycji.\n" + "\n" + " \x07 Nacinij F3 aby wyjæ z instalatora." + " \x07 Nacinij ENTER aby kontynuowaæ.", + "F3= Wyjcie ENTER = Kontynuacja" }, { //ERROR_NEW_PARTITION, "Nie mo¿esz stworzyæ nowej partycji w miejscu ju¿\n" - "istniej¹cej!\n" - "\n" - " * Nacinij dowolny klawisz aby kontynuowaæ.", + "istniej¹cej!\n" + "\n" + " * Nacinij dowolny klawisz aby kontynuowaæ.", NULL }, { @@ -1451,8 +1451,8 @@ { //ERROR_FIND_SETUPDATA, "Instalator nie by³ w stanie znaleæ sekcji 'SetupData'\n" - "w pliku TXTSETUP.SIF.\n", - "ENTER = Restart komputera" + "w pliku TXTSETUP.SIF.\n", + "ENTER = Restart komputera" }, { //ERROR_WRITE_PTABLE, @@ -1465,6 +1465,11 @@ "ENTER = Reboot computer" }, { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup could not set the system locale.\n" + "ENTER = Reboot computer" + }, + { NULL, NULL } Modified: trunk/reactos/base/setup/usetup/lang/ru-RU.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/ru-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/ru-RU.h (original) +++ trunk/reactos/base/setup/usetup/lang/ru-RU.h Tue Jan 8 00:34:56 2008 @@ -1270,12 +1270,12 @@ { //ERROR_NOT_INSTALLED "ReactOS íå áûë ïîëíîñòüþ óñòàíîâëåí íà âàø\n" - "êîìïüþòåð. Åñëè âû âûéäèòå èç óñòàíîâêè ñåé÷àñ,\n" - "òî âàì íóæíî çàïóñòèòü ïðîãðàììó óñòàíîâêè ñíîâà,\n" - "åñëè âû õîòèòå óñòàíîâèòü ReactOS\n" - " \x07 Íàæìèòå ENTER äëÿ ïðîäîëæåíèÿ óñòàíîâêè.\n" - " \x07 Íàæìèòå F3 âûõîäà èç óñòàíîâêè.", - "F3 = Âûõîä ENTER = Ïðîäîëæèòü" + "êîìïüþòåð. Åñëè âû âûéäèòå èç óñòàíîâêè ñåé÷àñ,\n" + "òî âàì íóæíî çàïóñòèòü ïðîãðàììó óñòàíîâêè ñíîâà,\n" + "åñëè âû õîòèòå óñòàíîâèòü ReactOS\n" + " \x07 Íàæìèòå ENTER äëÿ ïðîäîëæåíèÿ óñòàíîâêè.\n" + " \x07 Íàæìèòå F3 âûõîäà èç óñòàíîâêè.", + "F3 = Âûõîä ENTER = Ïðîäîëæèòü" }, { //ERROR_NO_HDD @@ -1334,21 +1334,21 @@ }, { //ERROR_WARN_PARTITION, - "Setup found that at least one harddisk contains an incompatible\n" - "partition table that can not be handled properly!\n" - "\n" - "Creating or deleting partitions can destroy the partiton table.\n" - "\n" - " \x07 Íàæìèòå F3 äëÿ âûõîäà èç óñòàíîâêè." - " \x07 Íàæìèòå ENTER äëÿ ïðîäîëæåíèÿ.", - "F3 = Âûõîä ENTER = Ïðîäîëæèòü" + "Setup found that at least one harddisk contains an incompatible\n" + "partition table that can not be handled properly!\n" + "\n" + "Creating or deleting partitions can destroy the partiton table.\n" + "\n" + " \x07 Íàæìèòå F3 äëÿ âûõîäà èç óñòàíîâêè." + " \x07 Íàæìèòå ENTER äëÿ ïðîäîëæåíèÿ.", + "F3 = Âûõîä ENTER = Ïðîäîëæèòü" }, { //ERROR_NEW_PARTITION, "You can not create a new Partition inside\n" - "of an already existing Partition!\n" - "\n" - " * Íàæìèòå ëþáóþ êëàâèøó äëÿ ïðîäîëæåíèÿ.", + "of an already existing Partition!\n" + "\n" + " * Íàæìèòå ëþáóþ êëàâèøó äëÿ ïðîäîëæåíèÿ.", NULL }, { @@ -1443,8 +1443,8 @@ { //ERROR_FIND_SETUPDATA, "Íå óäàëîñü íàéòè ñåêöèþ 'SetupData'\n" - "â ôàéëå TXTSETUP.SIF.\n", - "ENTER = Ïåðåçàãðóçêà" + "â ôàéëå TXTSETUP.SIF.\n", + "ENTER = Ïåðåçàãðóçêà" }, { //ERROR_WRITE_PTABLE, @@ -1457,6 +1457,11 @@ "ENTER = Reboot computer" }, { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup could not set the system locale.\n" + "ENTER = Reboot computer" + }, + { NULL, NULL } Modified: trunk/reactos/base/setup/usetup/lang/sv-SE.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/sv-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/sv-SE.h (original) +++ trunk/reactos/base/setup/usetup/lang/sv-SE.h Tue Jan 8 00:34:56 2008 @@ -1270,12 +1270,12 @@ { //ERROR_NOT_INSTALLED "ReactOS is not completely installed on your\n" - "computer. If you quit Setup now, you will need to\n" - "run Setup again to install ReactOS.\n" - "\n" - " \x07 Press ENTER to continue Setup.\n" - " \x07 Press F3 to quit Setup.", - "F3= Quit ENTER = Continue" + "computer. If you quit Setup now, you will need to\n" + "run Setup again to install ReactOS.\n" + "\n" + " \x07 Press ENTER to continue Setup.\n" + " \x07 Press F3 to quit Setup.", + "F3= Quit ENTER = Continue" }, { //ERROR_NO_HDD @@ -1334,21 +1334,21 @@ }, { //ERROR_WARN_PARTITION, - "Setup found that at least one harddisk contains an incompatible\n" - "partition table that can not be handled properly!\n" - "\n" - "Creating or deleting partitions can destroy the partiton table.\n" - "\n" - " \x07 Press F3 to quit Setup." - " \x07 Press ENTER to continue.", - "F3= Quit ENTER = Continue" + "Setup found that at least one harddisk contains an incompatible\n" + "partition table that can not be handled properly!\n" + "\n" + "Creating or deleting partitions can destroy the partiton table.\n" + "\n" + " \x07 Press F3 to quit Setup." + " \x07 Press ENTER to continue.", + "F3= Quit ENTER = Continue" }, { //ERROR_NEW_PARTITION, "You can not create a new Partition inside\n" - "of an already existing Partition!\n" - "\n" - " * Press any key to continue.", + "of an already existing Partition!\n" + "\n" + " * Press any key to continue.", NULL }, { @@ -1443,8 +1443,8 @@ { //ERROR_FIND_SETUPDATA, "Setup failed to find the 'SetupData' section\n" - "in TXTSETUP.SIF.\n", - "ENTER = Reboot computer" + "in TXTSETUP.SIF.\n", + "ENTER = Reboot computer" }, { //ERROR_WRITE_PTABLE, @@ -1457,6 +1457,11 @@ "ENTER = Reboot computer" }, { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup could not set the system locale.\n" + "ENTER = Reboot computer" + }, + { NULL, NULL } Modified: trunk/reactos/base/setup/usetup/lang/uk-UA.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/uk-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/uk-UA.h (original) +++ trunk/reactos/base/setup/usetup/lang/uk-UA.h Tue Jan 8 00:34:56 2008 @@ -1270,12 +1270,12 @@ { //ERROR_NOT_INSTALLED "ReactOS is not completely installed on your\n" - "computer. If you quit Setup now, you will need to\n" - "run Setup again to install ReactOS.\n" - "\n" - " \x07 Press ENTER to continue Setup.\n" - " \x07 Press F3 to quit Setup.", - "F3= Quit ENTER = Continue" + "computer. If you quit Setup now, you will need to\n" + "run Setup again to install ReactOS.\n" + "\n" + " \x07 Press ENTER to continue Setup.\n" + " \x07 Press F3 to quit Setup.", + "F3= Quit ENTER = Continue" }, { //ERROR_NO_HDD @@ -1334,21 +1334,21 @@ }, { //ERROR_WARN_PARTITION, - "Setup found that at least one harddisk contains an incompatible\n" - "partition table that can not be handled properly!\n" - "\n" - "Creating or deleting partitions can destroy the partiton table.\n" - "\n" - " \x07 Press F3 to quit Setup." - " \x07 Press ENTER to continue.", - "F3= Quit ENTER = Continue" + "Setup found that at least one harddisk contains an incompatible\n" + "partition table that can not be handled properly!\n" + "\n" + "Creating or deleting partitions can destroy the partiton table.\n" + "\n" + " \x07 Press F3 to quit Setup." + " \x07 Press ENTER to continue.", + "F3= Quit ENTER = Continue" }, { //ERROR_NEW_PARTITION, "You can not create a new Partition inside\n" - "of an already existing Partition!\n" - "\n" - " * Press any key to continue.", + "of an already existing Partition!\n" + "\n" + " * Press any key to continue.", NULL }, { @@ -1443,8 +1443,8 @@ { //ERROR_FIND_SETUPDATA, "Setup failed to find the 'SetupData' section\n" - "in TXTSETUP.SIF.\n", - "ENTER = Reboot computer" + "in TXTSETUP.SIF.\n", + "ENTER = Reboot computer" }, { //ERROR_WRITE_PTABLE, @@ -1457,6 +1457,11 @@ "ENTER = Reboot computer" }, { + //ERROR_UPDATE_LOCALESETTINGS, + "Setup could not set the system locale.\n" + "ENTER = Reboot computer" + }, + { NULL, NULL } Modified: trunk/reactos/base/setup/usetup/settings.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/settings…
============================================================================== --- trunk/reactos/base/setup/usetup/settings.c (original) +++ trunk/reactos/base/setup/usetup/settings.c Tue Jan 8 00:34:56 2008 @@ -20,7 +20,8 @@ * PROJECT: ReactOS text-mode setup * FILE: subsys/system/usetup/settings.c * PURPOSE: Device settings support functions - * PROGRAMMER: Eric Kohl + * PROGRAMMERS: Eric Kohl + * Colin Finck */ /* INCLUDES *****************************************************************/ @@ -616,181 +617,15 @@ } -PGENERIC_LIST -CreateKeyboardDriverList(HINF InfFile) -{ - CHAR Buffer[128]; - PGENERIC_LIST List; - INFCONTEXT Context; - PWCHAR KeyName; - PWCHAR KeyValue; - PWCHAR UserData; - - List = CreateGenericList(); - if (List == NULL) - return NULL; - - if (!SetupFindFirstLineW (InfFile, L"Keyboard", NULL, &Context)) - { - DestroyGenericList(List, FALSE); - return NULL; - } - - do - { - if (!INF_GetData (&Context, &KeyName, &KeyValue)) - { - /* FIXME: Handle error! */ - DPRINT("INF_GetData() failed\n"); - break; - } - - UserData = (WCHAR*) RtlAllocateHeap(ProcessHeap, - 0, - (wcslen(KeyName) + 1) * sizeof(WCHAR)); - if (UserData == NULL) - { - /* FIXME: Handle error! */ - } - - wcscpy(UserData, KeyName); - - sprintf(Buffer, "%S", KeyValue); - AppendGenericListEntry(List, Buffer, UserData, FALSE); - } while (SetupFindNextLine(&Context, &Context)); - - return List; -} - -PGENERIC_LIST -CreateLanguageList(HINF InfFile, WCHAR * DefaultLanguage) -{ - CHAR Buffer[128]; - PGENERIC_LIST List; - INFCONTEXT Context; - PWCHAR KeyName; - PWCHAR KeyValue; - PWCHAR UserData; - - /* Get default language id */ - if (!SetupFindFirstLineW (InfFile, L"NLS", L"DefaultLanguage", &Context)) - return NULL; - - if (!INF_GetData (&Context, NULL, &KeyValue)) - return NULL; - - wcscpy(DefaultLanguage, KeyValue); - - SelectedLanguageId = KeyValue; - - List = CreateGenericList(); - if (List == NULL) - return NULL; - - if (!SetupFindFirstLineW (InfFile, L"Language", NULL, &Context)) - { - DestroyGenericList(List, FALSE); - return NULL; - } - - do - { - if (!INF_GetData (&Context, &KeyName, &KeyValue)) - { - /* FIXME: Handle error! */ - DPRINT("INF_GetData() failed\n"); - break; - } - - UserData = (WCHAR*) RtlAllocateHeap(ProcessHeap, - 0, - (wcslen(KeyName) + 1) * sizeof(WCHAR)); - if (UserData == NULL) - { - /* FIXME: Handle error! */ - } - - wcscpy(UserData, KeyName); - - sprintf(Buffer, "%S", KeyValue); - AppendGenericListEntry(List, - Buffer, - UserData, - _wcsicmp(KeyName, DefaultLanguage) ? FALSE : TRUE); - } while (SetupFindNextLine(&Context, &Context)); - - return List; -} - -PGENERIC_LIST -CreateKeyboardLayoutList(HINF InfFile, WCHAR * DefaultKBLayout) -{ - CHAR Buffer[128]; - PGENERIC_LIST List; - INFCONTEXT Context; - PWCHAR KeyName; - PWCHAR KeyValue; - PWCHAR UserData; - - /* Get default layout id */ - if (!SetupFindFirstLineW (InfFile, L"NLS", L"DefaultLayout", &Context)) - return NULL; - - if (!INF_GetData (&Context, NULL, &KeyValue)) - return NULL; - - wcscpy(DefaultKBLayout, KeyValue); - - List = CreateGenericList(); - if (List == NULL) - return NULL; - - if (!SetupFindFirstLineW (InfFile, L"KeyboardLayout", NULL, &Context)) - { - DestroyGenericList(List, FALSE); - return NULL; - } - - do - { - if (!INF_GetData (&Context, &KeyName, &KeyValue)) - { - /* FIXME: Handle error! */ - DPRINT("INF_GetData() failed\n"); - DestroyGenericList(List, FALSE); - break; - } - - UserData = (WCHAR*) RtlAllocateHeap(ProcessHeap, - 0, - (wcslen(KeyName) + 1) * sizeof(WCHAR)); - - if (UserData == NULL) - { - /* FIXME: Handle error! */ - } - - wcscpy(UserData, KeyName); - - sprintf(Buffer, "%S", KeyValue); - AppendGenericListEntry(List, - Buffer, - UserData, - _wcsicmp(KeyName, DefaultKBLayout) ? FALSE : TRUE); - } while (SetupFindNextLine(&Context, &Context)); - - return List; -} - - BOOLEAN -ProcessKeyboardLayoutRegistry(PGENERIC_LIST List) +ProcessLocaleRegistry(PGENERIC_LIST List) { PGENERIC_LIST_ENTRY Entry; PWCHAR LanguageId; OBJECT_ATTRIBUTES ObjectAttributes; UNICODE_STRING KeyName; UNICODE_STRING ValueName; + HANDLE KeyHandle; NTSTATUS Status; @@ -802,7 +637,7 @@ if (LanguageId == NULL) return FALSE; - /* Open the nls language key */ + /* Open the NLS language key */ RtlInitUnicodeString(&KeyName, L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"); @@ -861,6 +696,273 @@ } +PGENERIC_LIST +CreateKeyboardDriverList(HINF InfFile) +{ + CHAR Buffer[128]; + PGENERIC_LIST List; + INFCONTEXT Context; + PWCHAR KeyName; + PWCHAR KeyValue; + PWCHAR UserData; + + List = CreateGenericList(); + if (List == NULL) + return NULL; + + if (!SetupFindFirstLineW (InfFile, L"Keyboard", NULL, &Context)) + { + DestroyGenericList(List, FALSE); + return NULL; + } + + do + { + if (!INF_GetData (&Context, &KeyName, &KeyValue)) + { + /* FIXME: Handle error! */ + DPRINT("INF_GetData() failed\n"); + break; + } + + UserData = (WCHAR*) RtlAllocateHeap(ProcessHeap, + 0, + (wcslen(KeyName) + 1) * sizeof(WCHAR)); + if (UserData == NULL) + { + /* FIXME: Handle error! */ + } + + wcscpy(UserData, KeyName); + + sprintf(Buffer, "%S", KeyValue); + AppendGenericListEntry(List, Buffer, UserData, FALSE); + } while (SetupFindNextLine(&Context, &Context)); + + return List; +} + +PGENERIC_LIST +CreateLanguageList(HINF InfFile, WCHAR * DefaultLanguage) +{ + CHAR Buffer[128]; + PGENERIC_LIST List; + INFCONTEXT Context; + PWCHAR KeyName; + PWCHAR KeyValue; + PWCHAR UserData; + + /* Get default language id */ + if (!SetupFindFirstLineW (InfFile, L"NLS", L"DefaultLanguage", &Context)) + return NULL; + + if (!INF_GetData (&Context, NULL, &KeyValue)) + return NULL; + + wcscpy(DefaultLanguage, KeyValue); + + SelectedLanguageId = KeyValue; + + List = CreateGenericList(); + if (List == NULL) + return NULL; + + if (!SetupFindFirstLineW (InfFile, L"Language", NULL, &Context)) + { + DestroyGenericList(List, FALSE); + return NULL; + } + + do + { + if (!INF_GetData (&Context, &KeyName, &KeyValue)) + { + /* FIXME: Handle error! */ + DPRINT("INF_GetData() failed\n"); + break; + } + + UserData = (WCHAR*) RtlAllocateHeap(ProcessHeap, + 0, + (wcslen(KeyName) + 1) * sizeof(WCHAR)); + if (UserData == NULL) + { + /* FIXME: Handle error! */ + } + + wcscpy(UserData, KeyName); + + sprintf(Buffer, "%S", KeyValue); + AppendGenericListEntry(List, + Buffer, + UserData, + _wcsicmp(KeyName, DefaultLanguage) ? FALSE : TRUE); + } while (SetupFindNextLine(&Context, &Context)); + + return List; +} + +PGENERIC_LIST +CreateKeyboardLayoutList(HINF InfFile, WCHAR * DefaultKBLayout) +{ + CHAR Buffer[128]; + PGENERIC_LIST List; + INFCONTEXT Context; + PWCHAR KeyName; + PWCHAR KeyValue; + PWCHAR UserData; + + /* Get default layout id */ + if (!SetupFindFirstLineW (InfFile, L"NLS", L"DefaultLayout", &Context)) + return NULL; + + if (!INF_GetData (&Context, NULL, &KeyValue)) + return NULL; + + wcscpy(DefaultKBLayout, KeyValue); + + List = CreateGenericList(); + if (List == NULL) + return NULL; + + if (!SetupFindFirstLineW (InfFile, L"KeyboardLayout", NULL, &Context)) + { + DestroyGenericList(List, FALSE); + return NULL; + } + + do + { + if (!INF_GetData (&Context, &KeyName, &KeyValue)) + { + /* FIXME: Handle error! */ + DPRINT("INF_GetData() failed\n"); + DestroyGenericList(List, FALSE); + break; + } + + UserData = (WCHAR*) RtlAllocateHeap(ProcessHeap, + 0, + (wcslen(KeyName) + 1) * sizeof(WCHAR)); + + if (UserData == NULL) + { + /* FIXME: Handle error! */ + } + + wcscpy(UserData, KeyName); + + sprintf(Buffer, "%S", KeyValue); + AppendGenericListEntry(List, + Buffer, + UserData, + _wcsicmp(KeyName, DefaultKBLayout) ? FALSE : TRUE); + } while (SetupFindNextLine(&Context, &Context)); + + return List; +} + + +BOOLEAN +ProcessKeyboardLayoutRegistry(PGENERIC_LIST List) +{ + PGENERIC_LIST_ENTRY Entry; + PWCHAR LanguageId; + OBJECT_ATTRIBUTES ObjectAttributes; + UNICODE_STRING KeyName; + UNICODE_STRING ValueName; + ULONG Disposition; + HANDLE KeyHandle; + NTSTATUS Status; + WCHAR szKeyName[48] = L"\\Registry\\User\\.DEFAULT\\Keyboard Layout"; // 48 = "\Registry\User\.DEFAULT\Keyboard Layout\Preload" + NULL char + + Entry = GetGenericListEntry(List); + if (Entry == NULL) + return FALSE; + + LanguageId = (PWCHAR)Entry->UserData; + if (LanguageId == NULL) + return FALSE; + + // First create the "Keyboard Layout" key + RtlInitUnicodeString(&KeyName, szKeyName); + + InitializeObjectAttributes(&ObjectAttributes, + &KeyName, + OBJ_CASE_INSENSITIVE, + NULL, + NULL); + + Status = NtCreateKey(&KeyHandle, + KEY_ALL_ACCESS, + &ObjectAttributes, + 0, + NULL, + 0, + &Disposition); + + if(NT_SUCCESS(Status)) + NtClose(KeyHandle); + else + { + DPRINT1("NtCreateKey() failed (Status %lx)\n", Status); + return FALSE; + } + + // Then create the "Preload" key + KeyName.MaximumLength = sizeof(szKeyName); + Status = RtlAppendUnicodeToString(&KeyName, L"\\Preload"); + + if(!NT_SUCCESS(Status)) + { + DPRINT1("RtlAppend failed! (%lx)\n", Status); + DPRINT1("String is %wZ\n", &KeyName); + return FALSE; + } + + InitializeObjectAttributes(&ObjectAttributes, + &KeyName, + OBJ_CASE_INSENSITIVE, + NULL, + NULL); + + Status = NtCreateKey(&KeyHandle, + KEY_ALL_ACCESS, + &ObjectAttributes, + 0, + NULL, + 0, + &Disposition); + + if (!NT_SUCCESS(Status)) + { + DPRINT1("NtCreateKey() failed (Status %lx)\n", Status); + return FALSE; + } + + /* Set default keyboard layout */ + RtlInitUnicodeString(&ValueName, + L"1"); + + Status = NtSetValueKey(KeyHandle, + &ValueName, + 0, + REG_SZ, + (PVOID)LanguageId, + (8 + 1) * sizeof(WCHAR)); + if (!NT_SUCCESS(Status)) + { + DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status); + NtClose(KeyHandle); + return FALSE; + } + + NtClose(KeyHandle); + + return TRUE; +} + + #if 0 BOOLEAN ProcessKeyboardLayoutFiles(PGENERIC_LIST List) Modified: trunk/reactos/base/setup/usetup/settings.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/settings…
============================================================================== --- trunk/reactos/base/setup/usetup/settings.h (original) +++ trunk/reactos/base/setup/usetup/settings.h Tue Jan 8 00:34:56 2008 @@ -52,6 +52,9 @@ CreateLanguageList(HINF InfFile, WCHAR * DefaultLanguage); BOOLEAN +ProcessLocaleRegistry(PGENERIC_LIST List); + +BOOLEAN ProcessKeyboardLayoutRegistry(PGENERIC_LIST List); BOOLEAN Modified: trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c Tue Jan 8 00:34:56 2008 @@ -5,6 +5,7 @@ * FILE: subsystems/win32/win32k/ntuser/kbdlayout.c * PURPOSE: Keyboard layout management * COPYRIGHT: Copyright 2007 Saveliy Tretiakov + * Copyright 2008 Colin Finck * */ @@ -53,7 +54,7 @@ InitializeObjectAttributes(&KeyAttributes, KeyName, OBJ_CASE_INSENSITIVE, NULL, NULL); - Status = ZwOpenKey(&KeyHandle, KEY_ALL_ACCESS, &KeyAttributes); + Status = ZwOpenKey(&KeyHandle, KEY_READ, &KeyAttributes); if( !NT_SUCCESS(Status) ) { return Status; @@ -270,24 +271,77 @@ PKBL W32kGetDefaultKeyLayout(VOID) { - LCID LocaleId; + const WCHAR szKeyboardLayoutPath[] = L"\\Keyboard Layout\\Preload"; + + HANDLE KeyHandle; + LCID LayoutLocaleId = 0; NTSTATUS Status; + OBJECT_ATTRIBUTES KeyAttributes; PKBL pKbl; - - // This is probably wrong... - // I need to do more research. - Status = ZwQueryDefaultLocale(FALSE, &LocaleId); - if (!NT_SUCCESS(Status)) - { - DPRINT1("Could not get default locale (%08lx).\n", Status); - DPRINT1("Assuming default locale = 0x409 (US).\n"); - LocaleId = 0x409; + UNICODE_STRING CurrentUserPath; + UNICODE_STRING FullKeyboardLayoutPath; + UNICODE_STRING LayoutValueName; + UNICODE_STRING LayoutLocaleIdString; + WCHAR wszBuffer[MAX_PATH]; + + // Get the path to HKEY_CURRENT_USER + Status = RtlFormatCurrentUserKeyPath(&CurrentUserPath); + + if( NT_SUCCESS(Status) ) + { + // FIXME: Is this 100% correct? + // We're called very early, so \\REGISTRY\\USER might not be available yet. Check this first. + InitializeObjectAttributes(&KeyAttributes, &CurrentUserPath, OBJ_CASE_INSENSITIVE, NULL, NULL); + Status = ZwOpenKey(&KeyHandle, KEY_READ, &KeyAttributes); + + if(Status == STATUS_OBJECT_NAME_NOT_FOUND) + { + // Fall back to US English without any debug message + LayoutLocaleId = 0x409; + } + else + { + // The path is available, so build the full path to HKEY_CURRENT_USER\Keyboard Layout\Preload + ZwClose(KeyHandle); + + RtlCopyMemory(wszBuffer, CurrentUserPath.Buffer, CurrentUserPath.MaximumLength); + RtlInitUnicodeString(&FullKeyboardLayoutPath, wszBuffer); + FullKeyboardLayoutPath.MaximumLength = MAX_PATH; + + Status = RtlAppendUnicodeToString(&FullKeyboardLayoutPath, szKeyboardLayoutPath); + + if( NT_SUCCESS(Status) ) + { + // Return the first keyboard layout listed there + RtlInitUnicodeString(&LayoutValueName, L"1"); + + Status = ReadRegistryValue(&FullKeyboardLayoutPath, &LayoutValueName, &LayoutLocaleIdString); + + if( NT_SUCCESS(Status) ) + RtlUnicodeStringToInteger(&LayoutLocaleIdString, 16, &LayoutLocaleId); + else + DPRINT1("ReadRegistryValue failed! (%08lx).\n", Status); + } + else + DPRINT1("RtlAppendUnicodeToString failed! (%08lx)\n", Status); + } + + RtlFreeUnicodeString(&CurrentUserPath); + } + else + DPRINT1("RtlFormatCurrentUserKeyPath failed! (%08lx)\n", Status); + + if(!LayoutLocaleId) + { + // This block is only reached in case of a failure, so use DPRINT1 here + DPRINT1("Assuming default locale for the keyboard layout (0x409 - US)\n"); + LayoutLocaleId = 0x409; } pKbl = KBLList; do { - if(pKbl->klid == LocaleId) + if(pKbl->klid == LayoutLocaleId) { return pKbl; } @@ -296,11 +350,11 @@ } while(pKbl != KBLList); DPRINT("Loading new default keyboard layout.\n"); - pKbl = UserLoadDllAndCreateKbl(LocaleId); + pKbl = UserLoadDllAndCreateKbl(LayoutLocaleId); if(!pKbl) { - DPRINT("Failed to load %x!!! Returning any availableKL.\n", LocaleId); + DPRINT("Failed to load %x!!! Returning any availableKL.\n", LayoutLocaleId); return KBLList; }
16 years, 8 months
1
0
0
0
[dchapyshev] 31654: - Apply patch from GedMurphy
by dchapyshev@svn.reactos.org
Author: dchapyshev Date: Tue Jan 8 00:08:02 2008 New Revision: 31654 URL:
http://svn.reactos.org/svn/reactos?rev=31654&view=rev
Log: - Apply patch from GedMurphy Modified: trunk/reactos/dll/win32/syssetup/wizard.c Modified: trunk/reactos/dll/win32/syssetup/wizard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
============================================================================== --- trunk/reactos/dll/win32/syssetup/wizard.c (original) +++ trunk/reactos/dll/win32/syssetup/wizard.c Tue Jan 8 00:08:02 2008 @@ -817,27 +817,19 @@ HKEY hKey; LCID lcid; TCHAR Locale[12]; - DWORD dwDisp; - LONG ret = ERROR_SUCCESS; lcid = GetSystemDefaultLCID(); - if (GetLocaleInfo(MAKELCID(lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, (WORD*)Locale, sizeof(Locale)) != 0) + if (GetLocaleInfo(MAKELCID(lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, Locale, sizeof(Locale) / sizeof(Locale[0])) != 0) { - if (RegOpenKey(HKEY_CURRENT_USER, L"Control Panel\\International", &hKey) != ERROR_SUCCESS) - { - ret = RegCreateKeyEx(HKEY_LOCAL_MACHINE, L"Control Panel\\International", - 0, NULL, REG_OPTION_NON_VOLATILE, - KEY_WRITE, NULL, &hKey, &dwDisp); - } - - if (ret == ERROR_SUCCESS) - { - RegSetValueEx(hKey, L"Locale", 0, REG_SZ, (LPBYTE)Locale, (DWORD)(lstrlen(Locale)+1)); + if (RegCreateKeyEx(HKEY_CURRENT_USER, _T("Control Panel\\International"), + 0, NULL, REG_OPTION_NON_VOLATILE, + KEY_WRITE, NULL, &hKey, NULL) == ERROR_SUCCESS) + { + RegSetValueEx(hKey, _T("Locale"), 0, REG_SZ, (LPBYTE)Locale, (_tcslen(Locale)+1) * sizeof(TCHAR)); + RegCloseKey(hKey); } } - - RegCloseKey(hKey); } static INT_PTR CALLBACK
16 years, 8 months
1
0
0
0
[hpoussin] 31653: [FORMATTING] Fix indentation
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Jan 7 23:55:02 2008 New Revision: 31653 URL:
http://svn.reactos.org/svn/reactos?rev=31653&view=rev
Log: [FORMATTING] Fix indentation Modified: trunk/reactos/base/system/userinit/userinit.c Modified: trunk/reactos/base/system/userinit/userinit.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/userinit/useri…
============================================================================== --- trunk/reactos/base/system/userinit/userinit.c (original) +++ trunk/reactos/base/system/userinit/userinit.c Mon Jan 7 23:55:02 2008 @@ -38,113 +38,115 @@ static LONG ReadRegSzKey( - IN HKEY hKey, - IN LPCWSTR pszKey, - OUT LPWSTR* pValue) -{ - LONG rc; - DWORD dwType; - DWORD cbData = 0; - LPWSTR Value; - - rc = RegQueryValueExW(hKey, pszKey, NULL, &dwType, NULL, &cbData); - if (rc != ERROR_SUCCESS) - return rc; - if (dwType != REG_SZ) - return ERROR_FILE_NOT_FOUND; - Value = (WCHAR*) HeapAlloc(GetProcessHeap(), 0, cbData + sizeof(WCHAR)); - if (!Value) - return ERROR_NOT_ENOUGH_MEMORY; - rc = RegQueryValueExW(hKey, pszKey, NULL, NULL, (LPBYTE)Value, &cbData); - if (rc != ERROR_SUCCESS) - { - HeapFree(GetProcessHeap(), 0, Value); - return rc; - } - /* NULL-terminate the string */ - Value[cbData / sizeof(WCHAR)] = '\0'; - - *pValue = Value; - return ERROR_SUCCESS; -} - -static -BOOL IsConsoleShell(void) -{ - HKEY ControlKey = NULL; - LPWSTR SystemStartOptions = NULL; - LPWSTR CurrentOption, NextOption; /* Pointers into SystemStartOptions */ - LONG rc; - BOOL ret = FALSE; - - rc = RegOpenKeyEx( - HKEY_LOCAL_MACHINE, - REGSTR_PATH_CURRENT_CONTROL_SET, - 0, - KEY_QUERY_VALUE, - &ControlKey); - - rc = ReadRegSzKey(ControlKey, L"SystemStartOptions", &SystemStartOptions); - if (rc != ERROR_SUCCESS) - goto cleanup; - - /* Check for CONSOLE in SystemStartOptions */ - CurrentOption = SystemStartOptions; - while (CurrentOption) - { - NextOption = wcschr(CurrentOption, L' '); - if (NextOption) - *NextOption = L'\0'; - if (wcsicmp(CurrentOption, L"CONSOLE") == 0) - { - ret = TRUE; - goto cleanup; - } - CurrentOption = NextOption ? NextOption + 1 : NULL; - } + IN HKEY hKey, + IN LPCWSTR pszKey, + OUT LPWSTR* pValue) +{ + LONG rc; + DWORD dwType; + DWORD cbData = 0; + LPWSTR Value; + + rc = RegQueryValueExW(hKey, pszKey, NULL, &dwType, NULL, &cbData); + if (rc != ERROR_SUCCESS) + return rc; + if (dwType != REG_SZ) + return ERROR_FILE_NOT_FOUND; + Value = (WCHAR*) HeapAlloc(GetProcessHeap(), 0, cbData + sizeof(WCHAR)); + if (!Value) + return ERROR_NOT_ENOUGH_MEMORY; + rc = RegQueryValueExW(hKey, pszKey, NULL, NULL, (LPBYTE)Value, &cbData); + if (rc != ERROR_SUCCESS) + { + HeapFree(GetProcessHeap(), 0, Value); + return rc; + } + /* NULL-terminate the string */ + Value[cbData / sizeof(WCHAR)] = '\0'; + + *pValue = Value; + return ERROR_SUCCESS; +} + +static +BOOL IsConsoleShell(VOID) +{ + HKEY ControlKey = NULL; + LPWSTR SystemStartOptions = NULL; + LPWSTR CurrentOption, NextOption; /* Pointers into SystemStartOptions */ + LONG rc; + BOOL ret = FALSE; + + rc = RegOpenKeyEx( + HKEY_LOCAL_MACHINE, + REGSTR_PATH_CURRENT_CONTROL_SET, + 0, + KEY_QUERY_VALUE, + &ControlKey); + + rc = ReadRegSzKey(ControlKey, L"SystemStartOptions", &SystemStartOptions); + if (rc != ERROR_SUCCESS) + goto cleanup; + + /* Check for CONSOLE in SystemStartOptions */ + CurrentOption = SystemStartOptions; + while (CurrentOption) + { + NextOption = wcschr(CurrentOption, L' '); + if (NextOption) + *NextOption = L'\0'; + if (wcsicmp(CurrentOption, L"CONSOLE") == 0) + { + ret = TRUE; + goto cleanup; + } + CurrentOption = NextOption ? NextOption + 1 : NULL; + } cleanup: - if (ControlKey != NULL) - RegCloseKey(ControlKey); - HeapFree(GetProcessHeap(), 0, SystemStartOptions); - return ret; -} - -static -BOOL GetShell(WCHAR *CommandLine, HKEY hRootKey) -{ - HKEY hKey; - DWORD Type, Size; - WCHAR Shell[MAX_PATH]; - BOOL Ret = FALSE; - BOOL ConsoleShell = IsConsoleShell(); - - if(RegOpenKeyEx(hRootKey, - L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", /* FIXME: should be REGSTR_PATH_WINLOGON */ - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) - { - Size = MAX_PATH * sizeof(WCHAR); - if(RegQueryValueEx(hKey, - ConsoleShell ? L"ConsoleShell" : L"Shell", - NULL, - &Type, - (LPBYTE)Shell, - &Size) == ERROR_SUCCESS) - { - if((Type == REG_SZ) || (Type == REG_EXPAND_SZ)) - { - wcscpy(CommandLine, Shell); - Ret = TRUE; - } - } - RegCloseKey(hKey); - } - - return Ret; + if (ControlKey != NULL) + RegCloseKey(ControlKey); + HeapFree(GetProcessHeap(), 0, SystemStartOptions); + return ret; +} + +static +BOOL GetShell( + OUT WCHAR *CommandLine, /* must be at least MAX_PATH long */ + IN HKEY hRootKey) +{ + HKEY hKey; + DWORD Type, Size; + WCHAR Shell[MAX_PATH]; + BOOL Ret = FALSE; + BOOL ConsoleShell = IsConsoleShell(); + + if (RegOpenKeyEx(hRootKey, REGSTR_PATH_WINLOGON, + 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) + { + Size = MAX_PATH * sizeof(WCHAR); + if (RegQueryValueEx(hKey, + ConsoleShell ? L"ConsoleShell" : L"Shell", + NULL, + &Type, + (LPBYTE)Shell, + &Size) == ERROR_SUCCESS) + { + if ((Type == REG_SZ) || (Type == REG_EXPAND_SZ)) + { + wcscpy(CommandLine, Shell); + Ret = TRUE; + } + } + RegCloseKey(hKey); + } + + return Ret; } static VOID -StartAutoApplications(int clsid) +StartAutoApplications( + IN INT clsid) { WCHAR szPath[MAX_PATH] = {0}; HRESULT hResult; @@ -157,303 +159,307 @@ len = wcslen(szPath); if (!SUCCEEDED(hResult) || len == 0) { - return; + return; } wcscat(szPath, L"\\*"); hFind = FindFirstFileW(szPath, &findData); if (hFind == INVALID_HANDLE_VALUE) { - return; + return; } szPath[len] = L'\0'; do { - if (!(findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) && (findData.nFileSizeHigh || findData.nFileSizeLow)) - { - memset(&ExecInfo, 0x0, sizeof(SHELLEXECUTEINFOW)); - ExecInfo.cbSize = sizeof(ExecInfo); - ExecInfo.lpVerb = L"open"; - ExecInfo.lpFile = findData.cFileName; - ExecInfo.lpDirectory = szPath; - ShellExecuteExW(&ExecInfo); - } - }while(FindNextFileW(hFind, &findData)); + if (!(findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) && (findData.nFileSizeHigh || findData.nFileSizeLow)) + { + memset(&ExecInfo, 0x0, sizeof(SHELLEXECUTEINFOW)); + ExecInfo.cbSize = sizeof(ExecInfo); + ExecInfo.lpVerb = L"open"; + ExecInfo.lpFile = findData.cFileName; + ExecInfo.lpDirectory = szPath; + ShellExecuteExW(&ExecInfo); + } + } while (FindNextFileW(hFind, &findData)); FindClose(hFind); } - static BOOL -TryToStartShell(LPCWSTR Shell) -{ - STARTUPINFO si; - PROCESS_INFORMATION pi; - WCHAR ExpandedShell[MAX_PATH]; - - ZeroMemory(&si, sizeof(STARTUPINFO)); - si.cb = sizeof(STARTUPINFO); - ZeroMemory(&pi, sizeof(PROCESS_INFORMATION)); - - ExpandEnvironmentStrings(Shell, ExpandedShell, MAX_PATH); - - if(!CreateProcess(NULL, - ExpandedShell, - NULL, - NULL, - FALSE, - NORMAL_PRIORITY_CLASS, - NULL, - NULL, - &si, - &pi)) - return FALSE; - - StartAutoApplications(CSIDL_STARTUP); - StartAutoApplications(CSIDL_COMMON_STARTUP); - WaitForSingleObject(pi.hProcess, INFINITE); - CloseHandle(pi.hProcess); - CloseHandle(pi.hThread); - return TRUE; -} - -static -void StartShell(void) -{ - WCHAR Shell[MAX_PATH]; - TCHAR szMsg[RC_STRING_MAX_SIZE]; - - /* Try to run shell in user key */ - if (GetShell(Shell, HKEY_CURRENT_USER) && TryToStartShell(Shell)) - return; - - /* Try to run shell in local machine key */ - if (GetShell(Shell, HKEY_LOCAL_MACHINE) && TryToStartShell(Shell)) - return; - - /* Try default shell */ - if (IsConsoleShell()) - { - if(GetSystemDirectory(Shell, MAX_PATH - 8)) - wcscat(Shell, L"\\cmd.exe"); - else - wcscpy(Shell, L"cmd.exe"); +TryToStartShell( + IN LPCWSTR Shell) +{ + STARTUPINFO si; + PROCESS_INFORMATION pi; + WCHAR ExpandedShell[MAX_PATH]; + + ZeroMemory(&si, sizeof(STARTUPINFO)); + si.cb = sizeof(STARTUPINFO); + ZeroMemory(&pi, sizeof(PROCESS_INFORMATION)); + + ExpandEnvironmentStrings(Shell, ExpandedShell, MAX_PATH); + + if (!CreateProcess(NULL, + ExpandedShell, + NULL, + NULL, + FALSE, + NORMAL_PRIORITY_CLASS, + NULL, + NULL, + &si, + &pi)) + { + return FALSE; + } + + StartAutoApplications(CSIDL_STARTUP); + StartAutoApplications(CSIDL_COMMON_STARTUP); + WaitForSingleObject(pi.hProcess, INFINITE); + CloseHandle(pi.hProcess); + CloseHandle(pi.hThread); + return TRUE; +} + +static +VOID StartShell(VOID) +{ + WCHAR Shell[MAX_PATH]; + TCHAR szMsg[RC_STRING_MAX_SIZE]; + + /* Try to run shell in user key */ + if (GetShell(Shell, HKEY_CURRENT_USER) && TryToStartShell(Shell)) + { + return; + } + + /* Try to run shell in local machine key */ + if (GetShell(Shell, HKEY_LOCAL_MACHINE) && TryToStartShell(Shell)) + { + return; + } + + /* Try default shell */ + if (IsConsoleShell()) + { + if (GetSystemDirectory(Shell, MAX_PATH - 8)) + wcscat(Shell, L"\\cmd.exe"); + else + wcscpy(Shell, L"cmd.exe"); } else { - if(GetWindowsDirectory(Shell, MAX_PATH - 13)) - wcscat(Shell, L"\\explorer.exe"); - else - wcscpy(Shell, L"explorer.exe"); - } - if (!TryToStartShell(Shell)) - { - LoadString( GetModuleHandle(NULL), STRING_USERINIT_FAIL, szMsg, sizeof(szMsg) / sizeof(szMsg[0])); - MessageBox(0, szMsg, NULL, 0); - } -} - -WCHAR g_RegColorNames[][32] = - {L"Scrollbar", /* 00 = COLOR_SCROLLBAR */ - L"Background", /* 01 = COLOR_DESKTOP */ - L"ActiveTitle", /* 02 = COLOR_ACTIVECAPTION */ - L"InactiveTitle", /* 03 = COLOR_INACTIVECAPTION */ - L"Menu", /* 04 = COLOR_MENU */ - L"Window", /* 05 = COLOR_WINDOW */ - L"WindowFrame", /* 06 = COLOR_WINDOWFRAME */ - L"MenuText", /* 07 = COLOR_MENUTEXT */ - L"WindowText", /* 08 = COLOR_WINDOWTEXT */ - L"TitleText", /* 09 = COLOR_CAPTIONTEXT */ - L"ActiveBorder", /* 10 = COLOR_ACTIVEBORDER */ - L"InactiveBorder", /* 11 = COLOR_INACTIVEBORDER */ - L"AppWorkSpace", /* 12 = COLOR_APPWORKSPACE */ - L"Hilight", /* 13 = COLOR_HIGHLIGHT */ - L"HilightText", /* 14 = COLOR_HIGHLIGHTTEXT */ - L"ButtonFace", /* 15 = COLOR_BTNFACE */ - L"ButtonShadow", /* 16 = COLOR_BTNSHADOW */ - L"GrayText", /* 17 = COLOR_GRAYTEXT */ - L"ButtonText", /* 18 = COLOR_BTNTEXT */ - L"InactiveTitleText", /* 19 = COLOR_INACTIVECAPTIONTEXT */ - L"ButtonHilight", /* 20 = COLOR_BTNHIGHLIGHT */ - L"ButtonDkShadow", /* 21 = COLOR_3DDKSHADOW */ - L"ButtonLight", /* 22 = COLOR_3DLIGHT */ - L"InfoText", /* 23 = COLOR_INFOTEXT */ - L"InfoWindow", /* 24 = COLOR_INFOBK */ - L"ButtonAlternateFace", /* 25 = COLOR_ALTERNATEBTNFACE */ - L"HotTrackingColor", /* 26 = COLOR_HOTLIGHT */ - L"GradientActiveTitle", /* 27 = COLOR_GRADIENTACTIVECAPTION */ - L"GradientInactiveTitle", /* 28 = COLOR_GRADIENTINACTIVECAPTION */ - L"MenuHilight", /* 29 = COLOR_MENUHILIGHT */ - L"MenuBar" /* 30 = COLOR_MENUBAR */ + if (GetWindowsDirectory(Shell, MAX_PATH - 13)) + wcscat(Shell, L"\\explorer.exe"); + else + wcscpy(Shell, L"explorer.exe"); + } + if (!TryToStartShell(Shell)) + { + LoadString( GetModuleHandle(NULL), STRING_USERINIT_FAIL, szMsg, sizeof(szMsg) / sizeof(szMsg[0])); + MessageBox(0, szMsg, NULL, 0); + } +} + +WCHAR g_RegColorNames[][32] = { + L"Scrollbar", /* 00 = COLOR_SCROLLBAR */ + L"Background", /* 01 = COLOR_DESKTOP */ + L"ActiveTitle", /* 02 = COLOR_ACTIVECAPTION */ + L"InactiveTitle", /* 03 = COLOR_INACTIVECAPTION */ + L"Menu", /* 04 = COLOR_MENU */ + L"Window", /* 05 = COLOR_WINDOW */ + L"WindowFrame", /* 06 = COLOR_WINDOWFRAME */ + L"MenuText", /* 07 = COLOR_MENUTEXT */ + L"WindowText", /* 08 = COLOR_WINDOWTEXT */ + L"TitleText", /* 09 = COLOR_CAPTIONTEXT */ + L"ActiveBorder", /* 10 = COLOR_ACTIVEBORDER */ + L"InactiveBorder", /* 11 = COLOR_INACTIVEBORDER */ + L"AppWorkSpace", /* 12 = COLOR_APPWORKSPACE */ + L"Hilight", /* 13 = COLOR_HIGHLIGHT */ + L"HilightText", /* 14 = COLOR_HIGHLIGHTTEXT */ + L"ButtonFace", /* 15 = COLOR_BTNFACE */ + L"ButtonShadow", /* 16 = COLOR_BTNSHADOW */ + L"GrayText", /* 17 = COLOR_GRAYTEXT */ + L"ButtonText", /* 18 = COLOR_BTNTEXT */ + L"InactiveTitleText", /* 19 = COLOR_INACTIVECAPTIONTEXT */ + L"ButtonHilight", /* 20 = COLOR_BTNHIGHLIGHT */ + L"ButtonDkShadow", /* 21 = COLOR_3DDKSHADOW */ + L"ButtonLight", /* 22 = COLOR_3DLIGHT */ + L"InfoText", /* 23 = COLOR_INFOTEXT */ + L"InfoWindow", /* 24 = COLOR_INFOBK */ + L"ButtonAlternateFace", /* 25 = COLOR_ALTERNATEBTNFACE */ + L"HotTrackingColor", /* 26 = COLOR_HOTLIGHT */ + L"GradientActiveTitle", /* 27 = COLOR_GRADIENTACTIVECAPTION */ + L"GradientInactiveTitle", /* 28 = COLOR_GRADIENTINACTIVECAPTION */ + L"MenuHilight", /* 29 = COLOR_MENUHILIGHT */ + L"MenuBar" /* 30 = COLOR_MENUBAR */ }; #define NUM_SYSCOLORS (sizeof(g_RegColorNames) / sizeof(g_RegColorNames[0])) static -COLORREF StrToColorref(LPWSTR lpszCol) -{ - BYTE rgb[3]; - - rgb[0] = StrToIntW(lpszCol); - lpszCol = StrChrW(lpszCol, L' ') + 1; - rgb[1] = StrToIntW(lpszCol); - lpszCol = StrChrW(lpszCol, L' ') + 1; - rgb[2] = StrToIntW(lpszCol); - return RGB(rgb[0], rgb[1], rgb[2]); -} - -static -void SetUserSysColors(void) -{ - HKEY hKey; - INT i; - WCHAR szColor[20]; - DWORD Type, Size; - COLORREF crColor; - - if(!RegOpenKeyEx(HKEY_CURRENT_USER, - L"Control Panel\\Colors", - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) - { +COLORREF StrToColorref( + IN LPWSTR lpszCol) +{ + BYTE rgb[3]; + + rgb[0] = StrToIntW(lpszCol); + lpszCol = StrChrW(lpszCol, L' ') + 1; + rgb[1] = StrToIntW(lpszCol); + lpszCol = StrChrW(lpszCol, L' ') + 1; + rgb[2] = StrToIntW(lpszCol); + return RGB(rgb[0], rgb[1], rgb[2]); +} + +static +VOID SetUserSysColors(VOID) +{ + HKEY hKey; + INT i; + WCHAR szColor[20]; + DWORD Type, Size; + COLORREF crColor; + + if (!RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_COLORS, + 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) + { + return; + } + for(i = 0; i < NUM_SYSCOLORS; i++) + { + Size = sizeof(szColor); + if (RegQueryValueEx(hKey, g_RegColorNames[i], NULL, &Type, + (LPBYTE)szColor, &Size) == ERROR_SUCCESS && + Type == REG_SZ) + { + crColor = StrToColorref(szColor); + SetSysColors(1, &i, &crColor); + } + } + RegCloseKey(hKey); return; - } - for(i = 0; i < NUM_SYSCOLORS; i++) - { - Size = sizeof(szColor); - if(RegQueryValueEx(hKey, g_RegColorNames[i], NULL, &Type, - (LPBYTE)szColor, &Size) == ERROR_SUCCESS && Type == REG_SZ) - { - crColor = StrToColorref(szColor); - SetSysColors(1, &i, &crColor); - } - } - RegCloseKey(hKey); - return; -} - -static -void LoadUserFontSetting(LPWSTR lpValueName, PLOGFONTW pFont) -{ - HKEY hKey; - LOGFONTW lfTemp; - DWORD Type, Size; - INT error; - - Size = sizeof(LOGFONTW); - if(!RegOpenKeyEx(HKEY_CURRENT_USER, - L"Control Panel\\Desktop\\WindowMetrics", - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) - { - return; - } - error = RegQueryValueEx(hKey, lpValueName, NULL, &Type, (LPBYTE)&lfTemp, &Size); - if ((error != ERROR_SUCCESS) || (Type != REG_BINARY)) - { - return; - } - RegCloseKey(hKey); - /* FIXME: Check if lfTemp is a valid font */ - *pFont = lfTemp; - return; -} - -static -void LoadUserMetricSetting(LPWSTR lpValueName, INT *pValue) -{ - HKEY hKey; - DWORD Type, Size; - INT ret; - WCHAR strValue[8]; - - Size = sizeof(strValue); - if(!RegOpenKeyEx(HKEY_CURRENT_USER, - L"Control Panel\\Desktop\\WindowMetrics", - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) - { - return; - } - ret = RegQueryValueEx(hKey, lpValueName, NULL, &Type, (LPBYTE)&strValue, &Size); - if ((ret != ERROR_SUCCESS) || (Type != REG_SZ)) - { - return; - } - RegCloseKey(hKey); - *pValue = StrToInt(strValue); - return; -} - -static -void SetUserMetrics(void) -{ - NONCLIENTMETRICSW ncmetrics; - MINIMIZEDMETRICS mmmetrics; - - ncmetrics.cbSize = sizeof(NONCLIENTMETRICSW); - mmmetrics.cbSize = sizeof(MINIMIZEDMETRICS); - SystemParametersInfoW(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICSW), &ncmetrics, 0); - SystemParametersInfoW(SPI_GETMINIMIZEDMETRICS, sizeof(MINIMIZEDMETRICS), &mmmetrics, 0); - - LoadUserFontSetting(L"CaptionFont", &ncmetrics.lfCaptionFont); - LoadUserFontSetting(L"SmCaptionFont", &ncmetrics.lfSmCaptionFont); - LoadUserFontSetting(L"MenuFont", &ncmetrics.lfMenuFont); - LoadUserFontSetting(L"StatusFont", &ncmetrics.lfStatusFont); - LoadUserFontSetting(L"MessageFont", &ncmetrics.lfMessageFont); - /* FIXME: load icon font ? */ - - LoadUserMetricSetting(L"BorderWidth", &ncmetrics.iBorderWidth); - LoadUserMetricSetting(L"ScrollWidth", &ncmetrics.iScrollWidth); - LoadUserMetricSetting(L"ScrollHeight", &ncmetrics.iScrollHeight); - LoadUserMetricSetting(L"CaptionWidth", &ncmetrics.iCaptionWidth); - LoadUserMetricSetting(L"CaptionHeight", &ncmetrics.iCaptionHeight); - LoadUserMetricSetting(L"SmCaptionWidth", &ncmetrics.iSmCaptionWidth); - LoadUserMetricSetting(L"SmCaptionHeight", &ncmetrics.iSmCaptionHeight); - LoadUserMetricSetting(L"Menuwidth", &ncmetrics.iMenuWidth); - LoadUserMetricSetting(L"MenuHeight", &ncmetrics.iMenuHeight); - - SystemParametersInfoW(SPI_SETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICSW), &ncmetrics, 0); - - return; -} - -static -void SetUserWallpaper(void) -{ - HKEY hKey; - DWORD Type, Size; - WCHAR szWallpaper[MAX_PATH + 1]; - - if(RegOpenKeyEx(HKEY_CURRENT_USER, - REGSTR_PATH_DESKTOP, - 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) - { - Size = sizeof(szWallpaper); - if(RegQueryValueEx(hKey, - L"Wallpaper", - NULL, - &Type, - (LPBYTE)szWallpaper, - &Size) == ERROR_SUCCESS - && Type == REG_SZ) - { - ExpandEnvironmentStrings(szWallpaper, szWallpaper, MAX_PATH); - - /* Load and change the wallpaper */ - SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, szWallpaper, SPIF_SENDCHANGE); - } - else - { - /* remove the wallpaper */ - SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, NULL, SPIF_SENDCHANGE); +} + +static +VOID LoadUserFontSetting( + IN LPWSTR lpValueName, + OUT PLOGFONTW pFont) +{ + HKEY hKey; + LOGFONTW lfTemp; + DWORD Type, Size; + INT error; + + Size = sizeof(LOGFONTW); + if (!RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_METRICS, + 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) + { + return; + } + error = RegQueryValueEx(hKey, lpValueName, NULL, &Type, (LPBYTE)&lfTemp, &Size); + if ((error != ERROR_SUCCESS) || (Type != REG_BINARY)) + { + return; } RegCloseKey(hKey); - } -} - -static -void SetUserSettings(void) -{ - SetUserSysColors(); - SetUserMetrics(); - SetUserWallpaper(); + /* FIXME: Check if lfTemp is a valid font */ + *pFont = lfTemp; +} + +static +VOID LoadUserMetricSetting( + IN LPWSTR lpValueName, + OUT INT *pValue) +{ + HKEY hKey; + DWORD Type, Size; + INT ret; + WCHAR strValue[8]; + + Size = sizeof(strValue); + if (!RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_METRICS, + 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) + { + return; + } + ret = RegQueryValueEx(hKey, lpValueName, NULL, &Type, (LPBYTE)&strValue, &Size); + if ((ret != ERROR_SUCCESS) || (Type != REG_SZ)) + { + return; + } + RegCloseKey(hKey); + *pValue = StrToInt(strValue); +} + +static +VOID SetUserMetrics(VOID) +{ + NONCLIENTMETRICSW ncmetrics; + MINIMIZEDMETRICS mmmetrics; + + ncmetrics.cbSize = sizeof(NONCLIENTMETRICSW); + mmmetrics.cbSize = sizeof(MINIMIZEDMETRICS); + SystemParametersInfoW(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICSW), &ncmetrics, 0); + SystemParametersInfoW(SPI_GETMINIMIZEDMETRICS, sizeof(MINIMIZEDMETRICS), &mmmetrics, 0); + + LoadUserFontSetting(L"CaptionFont", &ncmetrics.lfCaptionFont); + LoadUserFontSetting(L"SmCaptionFont", &ncmetrics.lfSmCaptionFont); + LoadUserFontSetting(L"MenuFont", &ncmetrics.lfMenuFont); + LoadUserFontSetting(L"StatusFont", &ncmetrics.lfStatusFont); + LoadUserFontSetting(L"MessageFont", &ncmetrics.lfMessageFont); + /* FIXME: load icon font ? */ + + LoadUserMetricSetting(L"BorderWidth", &ncmetrics.iBorderWidth); + LoadUserMetricSetting(L"ScrollWidth", &ncmetrics.iScrollWidth); + LoadUserMetricSetting(L"ScrollHeight", &ncmetrics.iScrollHeight); + LoadUserMetricSetting(L"CaptionWidth", &ncmetrics.iCaptionWidth); + LoadUserMetricSetting(L"CaptionHeight", &ncmetrics.iCaptionHeight); + LoadUserMetricSetting(L"SmCaptionWidth", &ncmetrics.iSmCaptionWidth); + LoadUserMetricSetting(L"SmCaptionHeight", &ncmetrics.iSmCaptionHeight); + LoadUserMetricSetting(L"Menuwidth", &ncmetrics.iMenuWidth); + LoadUserMetricSetting(L"MenuHeight", &ncmetrics.iMenuHeight); + + SystemParametersInfoW(SPI_SETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICSW), &ncmetrics, 0); +} + +static +VOID SetUserWallpaper(VOID) +{ + HKEY hKey; + DWORD Type, Size; + WCHAR szWallpaper[MAX_PATH + 1]; + + if (RegOpenKeyEx(HKEY_CURRENT_USER, REGSTR_PATH_DESKTOP, + 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS) + { + Size = sizeof(szWallpaper); + if (RegQueryValueEx(hKey, + L"Wallpaper", + NULL, + &Type, + (LPBYTE)szWallpaper, + &Size) == ERROR_SUCCESS && + Type == REG_SZ) + { + ExpandEnvironmentStrings(szWallpaper, szWallpaper, MAX_PATH); + + /* Load and change the wallpaper */ + SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, szWallpaper, SPIF_SENDCHANGE); + } + else + { + /* remove the wallpaper */ + SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, NULL, SPIF_SENDCHANGE); + } + RegCloseKey(hKey); + } +} + +static +VOID SetUserSettings(VOID) +{ + SetUserSysColors(); + SetUserMetrics(); + SetUserWallpaper(); } typedef DWORD (WINAPI *PCMP_REPORT_LOGON)(DWORD, DWORD); @@ -475,22 +481,20 @@ } } - - #ifdef _MSC_VER #pragma warning(disable : 4100) #endif /* _MSC_VER */ int WINAPI -WinMain(HINSTANCE hInst, - HINSTANCE hPrevInstance, - LPSTR lpszCmdLine, - int nCmdShow) -{ - NotifyLogon(); - SetUserSettings(); - StartShell(); - return 0; +WinMain(IN HINSTANCE hInst, + IN HINSTANCE hPrevInstance, + IN LPSTR lpszCmdLine, + IN int nCmdShow) +{ + NotifyLogon(); + SetUserSettings(); + StartShell(); + return 0; } /* EOF */
16 years, 8 months
1
0
0
0
[dchapyshev] 31652: - Fix buffer overflows
by dchapyshev@svn.reactos.org
Author: dchapyshev Date: Mon Jan 7 23:07:09 2008 New Revision: 31652 URL:
http://svn.reactos.org/svn/reactos?rev=31652&view=rev
Log: - Fix buffer overflows Modified: trunk/reactos/dll/win32/syssetup/wizard.c Modified: trunk/reactos/dll/win32/syssetup/wizard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
============================================================================== --- trunk/reactos/dll/win32/syssetup/wizard.c (original) +++ trunk/reactos/dll/win32/syssetup/wizard.c Mon Jan 7 23:07:09 2008 @@ -816,27 +816,26 @@ { HKEY hKey; LCID lcid; - TCHAR Locale[8]; + TCHAR Locale[12]; DWORD dwDisp; + LONG ret = ERROR_SUCCESS; lcid = GetSystemDefaultLCID(); - if (GetLocaleInfo(MAKELCID(lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, (WORD*)Locale, sizeof(Locale)) == 0) + if (GetLocaleInfo(MAKELCID(lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, (WORD*)Locale, sizeof(Locale)) != 0) { - return; + if (RegOpenKey(HKEY_CURRENT_USER, L"Control Panel\\International", &hKey) != ERROR_SUCCESS) + { + ret = RegCreateKeyEx(HKEY_LOCAL_MACHINE, L"Control Panel\\International", + 0, NULL, REG_OPTION_NON_VOLATILE, + KEY_WRITE, NULL, &hKey, &dwDisp); + } + + if (ret == ERROR_SUCCESS) + { + RegSetValueEx(hKey, L"Locale", 0, REG_SZ, (LPBYTE)Locale, (DWORD)(lstrlen(Locale)+1)); + } } - - if (RegOpenKey(HKEY_CURRENT_USER, L"Control Panel\\International", &hKey) != ERROR_SUCCESS) - { - if (RegCreateKeyEx(HKEY_LOCAL_MACHINE, L"Control Panel\\International", - 0, NULL, REG_OPTION_NON_VOLATILE, - KEY_WRITE, NULL, &hKey, &dwDisp)) - { - return; - } - } - - RegSetValueExW(hKey, L"Locale", 0, REG_SZ, (LPBYTE) Locale, (DWORD)(sizeof(Locale) / sizeof(TCHAR))); RegCloseKey(hKey); }
16 years, 8 months
1
0
0
0
[fireball] 31651: - Don't include ntsecpkg.h for now. If it's needed, it should be included differently.
by fireball@svn.reactos.org
Author: fireball Date: Mon Jan 7 22:51:02 2008 New Revision: 31651 URL:
http://svn.reactos.org/svn/reactos?rev=31651&view=rev
Log: - Don't include ntsecpkg.h for now. If it's needed, it should be included differently. Modified: trunk/reactos/include/psdk/security.h Modified: trunk/reactos/include/psdk/security.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/security.h?re…
============================================================================== --- trunk/reactos/include/psdk/security.h (original) +++ trunk/reactos/include/psdk/security.h Mon Jan 7 22:51:02 2008 @@ -5,7 +5,9 @@ #endif #include <sspi.h> -#include <ntsecpkg.h> + +#if defined(SECURITY_WIN32) || defined(SECURITY_KERNEL) #include <secext.h> +#endif #endif /* _SECURITY_H */
16 years, 8 months
1
0
0
0
[dchapyshev] 31650: - Fix typos - Update Russian translation
by dchapyshev@svn.reactos.org
Author: dchapyshev Date: Mon Jan 7 20:46:56 2008 New Revision: 31650 URL:
http://svn.reactos.org/svn/reactos?rev=31650&view=rev
Log: - Fix typos - Update Russian translation Modified: trunk/reactos/dll/win32/shell32/lang/bg-BG.rc trunk/reactos/dll/win32/shell32/lang/ca-ES.rc trunk/reactos/dll/win32/shell32/lang/cs-CZ.rc trunk/reactos/dll/win32/shell32/lang/da-DK.rc trunk/reactos/dll/win32/shell32/lang/de-DE.rc trunk/reactos/dll/win32/shell32/lang/el-GR.rc trunk/reactos/dll/win32/shell32/lang/en-GB.rc trunk/reactos/dll/win32/shell32/lang/en-US.rc trunk/reactos/dll/win32/shell32/lang/eo-EO.rc trunk/reactos/dll/win32/shell32/lang/fi-FI.rc trunk/reactos/dll/win32/shell32/lang/fr-FR.rc trunk/reactos/dll/win32/shell32/lang/hu-HU.rc trunk/reactos/dll/win32/shell32/lang/it-IT.rc trunk/reactos/dll/win32/shell32/lang/ja-JP.rc trunk/reactos/dll/win32/shell32/lang/ko-KO.rc trunk/reactos/dll/win32/shell32/lang/nb-NO.rc trunk/reactos/dll/win32/shell32/lang/nl-NL.rc trunk/reactos/dll/win32/shell32/lang/pl-PL.rc trunk/reactos/dll/win32/shell32/lang/pt-BR.rc trunk/reactos/dll/win32/shell32/lang/pt-PT.rc trunk/reactos/dll/win32/shell32/lang/ru-RU.rc trunk/reactos/dll/win32/shell32/lang/sk-SK.rc trunk/reactos/dll/win32/shell32/lang/sl-SI.rc trunk/reactos/dll/win32/shell32/lang/sv-SE.rc trunk/reactos/dll/win32/shell32/lang/tr-TR.rc trunk/reactos/dll/win32/shell32/lang/wa-WA.rc trunk/reactos/dll/win32/shell32/lang/zh-CN.rc trunk/reactos/dll/win32/shell32/lang/zh-TW.rc Modified: trunk/reactos/dll/win32/shell32/lang/bg-BG.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/bg-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/bg-BG.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/bg-BG.rc Mon Jan 7 20:46:56 2008 @@ -360,7 +360,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/ca-ES.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/ca-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/ca-ES.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/ca-ES.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/cs-CZ.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/cs-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/cs-CZ.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/cs-CZ.rc Mon Jan 7 20:46:56 2008 @@ -362,7 +362,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/da-DK.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/da-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/da-DK.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/da-DK.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/de-DE.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/de-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/de-DE.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/de-DE.rc Mon Jan 7 20:46:56 2008 @@ -363,7 +363,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/el-GR.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/el-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/el-GR.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/el-GR.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/en-GB.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/en-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/en-GB.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/en-GB.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/en-US.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/en-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/en-US.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/en-US.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/eo-EO.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/eo-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/eo-EO.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/eo-EO.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/fi-FI.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/fi-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/fi-FI.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/fi-FI.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/fr-FR.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/fr-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/fr-FR.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/fr-FR.rc Mon Jan 7 20:46:56 2008 @@ -365,7 +365,7 @@ GROUPBOX "Tâches", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Montrer les tâches communes dans les dossiers", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Utilisez les dossiers Windows class&iques", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Utilisez les dossiers ReactOS class&iques", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Parcourir les dossiers", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Ouvrir tous les dossiers dans la &même fenêtre", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/hu-HU.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/hu-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/hu-HU.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/hu-HU.rc Mon Jan 7 20:46:56 2008 @@ -364,7 +364,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/it-IT.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/it-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/it-IT.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/it-IT.rc Mon Jan 7 20:46:56 2008 @@ -362,7 +362,7 @@ GROUPBOX "Attività", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Mostrare le attività comuni nelle cartelle", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Utilizzare le cartelle nella forma 'Windows class&ic' ", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Utilizzare le cartelle nella forma 'ReactOS class&ic' ", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Sfoglia cartelle", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Aprire ogni cartella nella stessa finestra", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/ja-JP.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/ja-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/ja-JP.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/ja-JP.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/ko-KO.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/ko-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/ko-KO.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/ko-KO.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/nb-NO.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/nb-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/nb-NO.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/nb-NO.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/nl-NL.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/nl-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/nl-NL.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/nl-NL.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/pl-PL.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/pl-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/pl-PL.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/pl-PL.rc Mon Jan 7 20:46:56 2008 @@ -362,7 +362,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/pt-BR.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/pt-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/pt-BR.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/pt-BR.rc Mon Jan 7 20:46:56 2008 @@ -363,7 +363,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/pt-PT.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/pt-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/pt-PT.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/pt-PT.rc Mon Jan 7 20:46:56 2008 @@ -363,7 +363,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/ru-RU.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/ru-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/ru-RU.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/ru-RU.rc Mon Jan 7 20:46:56 2008 @@ -354,193 +354,192 @@ FOLDER_OPTIONS_GENERAL_DLG DIALOGEX 0, 0, 264, 256 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION -CAPTION "General" -FONT 8, "MS Shell Dlg", 0, 0, 0x0 -BEGIN - -GROUPBOX "Tasks", -1, 7, 10, 249, 45 +CAPTION "Îáùèå" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN +GROUPBOX "Çàäà÷è", -1, 7, 10, 249, 45 //ICON -AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP -GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP +AUTORADIOBUTTON "Îòîáðà&æåíèå ñïèñêà òèïè÷íûõ çàäà÷ â ïàïêàõ", 14001, 40, 25, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Èñïîëüçîâàòü îáû&÷íûå ïàïêè ReactOS", 14002, 40, 37, 120, 10, WS_TABSTOP +GROUPBOX "Îáçîð ïàïîê", -1, 7, 60, 249, 45, WS_TABSTOP //ICON -AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP -AUTORADIOBUTTON "Open each folder in its own &window", 14005, 40, 82, 140, 10, WS_TABSTOP -GROUPBOX "Click items as follows", -1, 7, 110, 249, 60 +AUTORADIOBUTTON "&Îòêðûâàòü ïàïêè â îäíîì è òîì æå îêíå", 14004, 40, 70, 140, 10, WS_TABSTOP +AUTORADIOBUTTON "Î&òêðûâàòü êàæäóþ ïàïêó â îòäåëüíîì îêíå", 14005, 40, 82, 140, 10, WS_TABSTOP +GROUPBOX "Ùåë÷êè ìûøüþ", -1, 7, 110, 249, 60 //ICON -AUTORADIOBUTTON "&Single-click to open an item (point to select)", 14007, 40, 120, 170, 10, WS_TABSTOP -AUTORADIOBUTTON "Underline icon titles consistent with my &browser", 14008, 50, 132, 170, 10, WS_TABSTOP -AUTORADIOBUTTON "Underline icon titles only when I &point at them", 14009, 50, 144, 170, 10, WS_TABSTOP -AUTORADIOBUTTON "&Double-click to open an item (single-click to select)", 14010, 40, 156, 170, 10, WS_TABSTOP -PUSHBUTTON "&Restore Defaults", 14011, 180, 180, 60, 14, WS_TABSTOP +AUTORADIOBUTTON "Îò&êðûâàòü îäíèì ùåë÷êîì, âûäåëÿòü óêàçàòåëåì", 14007, 40, 120, 170, 10, WS_TABSTOP +AUTORADIOBUTTON "Ïîä÷åðêèâ&àòü ïîäïèñè çíà÷êîâ", 14008, 50, 132, 170, 10, WS_TABSTOP +AUTORADIOBUTTON "Ïîä÷åðêèâàòü ïîäïèñè ç&íà÷êîâ ïðè íàâåäåíèè", 14009, 50, 144, 170, 10, WS_TABSTOP +AUTORADIOBUTTON "Îòêð&ûâàòü äâîéíûì, à âûäåëÿòü îäíèì ùåë÷êîì", 14010, 40, 156, 170, 10, WS_TABSTOP +PUSHBUTTON "&Âîññòàíîâèòü óìîë÷àíèÿ", 14011, 180, 180, 60, 14, WS_TABSTOP END FOLDER_OPTIONS_VIEW_DLG DIALOGEX 0, 0, 264, 256 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION -CAPTION "View" -FONT 8, "MS Shell Dlg", 0, 0, 0x0 -BEGIN -GROUPBOX "Folder views", -1, 7, 10, 249, 60 +CAPTION "Âèä" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN +GROUPBOX "Ïðåäñòàâëåíèå ïàïîê", -1, 7, 10, 249, 60 //ICON -LTEXT "You can apply the view(such as Details or Tiles) that\nyou are using for this folder to all folders.", -1, 60, 20, 180, 20 -PUSHBUTTON "Apply to A&ll Folders", 14001, 60, 50, 80, 14, WS_TABSTOP -PUSHBUTTON "&Reset All Folders", 14002, 150, 50, 80, 14, WS_TABSTOP -LTEXT "Advanced settings:", -1, 7, 80, 100, 10 +LTEXT "Ìîæíî ïðèìåíèòü âèä, âûáðàííûé äëÿ ýòîé ïàïêè, íàïðèìåð, ""Òàáëèöà"" èëè ""Ïëèòêà"", êî âñåì ïàïêàì.", -1, 60, 20, 180, 20 +PUSHBUTTON "&Ïðèìåíèòü êî âñåì ïàïêàì", 14001, 60, 50, 80, 14, WS_TABSTOP +PUSHBUTTON "&Ñáðîñ äëÿ âñåõ ïàïîê", 14002, 150, 50, 80, 14, WS_TABSTOP +LTEXT "Äîïîëíèòåëüíûå ïàðàìåòðû:", -1, 7, 80, 100, 10 CONTROL "", 14003, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 7, 90, 249, 120 -PUSHBUTTON "Restore &Defaults", 14004, 180, 210, 80, 14, WS_TABSTOP +PUSHBUTTON "&Âîññòàíîâèòü óìîë÷àíèÿ", 14004, 180, 210, 80, 14, WS_TABSTOP END FOLDER_OPTIONS_FILETYPES_DLG DIALOGEX 0, 0, 264, 256 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION -CAPTION "File Types" -FONT 8, "MS Shell Dlg", 0, 0, 0x0 -BEGIN -LTEXT "Registered file &types:", -1, 7, 10, 70, 10 +CAPTION "Òèïû ôàéëîâ" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN +LTEXT "&Çàðåãèñòðèðîâàííûå òèïû ôàéëîâ:", -1, 7, 10, 70, 10 CONTROL "", 14000, "SysListView32", LVS_REPORT | LVS_SINGLESEL | LVS_SHAREIMAGELISTS | WS_BORDER | WS_TABSTOP, 7, 20, 249, 80 -PUSHBUTTON "&New", 14001, 120, 110, 50, 14, WS_TABSTOP -PUSHBUTTON "&Delete", 14002, 180, 110, 50, 14, WS_TABSTOP -GROUPBOX "Details for '%s' extension", 14003, 7, 130, 249, 70 -LTEXT "Opens with:", -1, 12, 140, 40, 10 +PUSHBUTTON "&Ñîçäàòü", 14001, 120, 110, 50, 14, WS_TABSTOP +PUSHBUTTON "&Óäàëèòü", 14002, 180, 110, 50, 14, WS_TABSTOP +GROUPBOX "Îïèñàíèå ðàñøèðåíèÿ '%s'", 14003, 7, 130, 249, 70 +LTEXT "Îòêðûâàòü â:", -1, 12, 140, 40, 10 //ICON -LTEXT "Appname", 14005, 100, 140, 40, 10 -PUSHBUTTON "&Change...", 14006, 180, 140, 50, 14, WS_TABSTOP -LTEXT "Files with extension '%s' are of type '%s'. To\nchange settings that affect all '%s' files, click\nAdvanced.", 14007, 12, 155, 160, 30 -PUSHBUTTON "Ad&vanced", 14008, 180, 175, 50, 14, WS_TABSTOP +LTEXT "Ïðèëîæåíèå:", 14005, 100, 140, 40, 10 +PUSHBUTTON "&Èçìåíèòü...", 14006, 180, 140, 50, 14, WS_TABSTOP +LTEXT "Ôàéëû ñ ðàñøèðåíèåì '%s' èìåþò òèï '%s'. Äëÿ\nèçìåíåíèÿ ïàðàìåòðîâ âñåõ ôàéëîâ '%s', íàæìèòå\n""Äîïîëíèòåëüíî"".", 14007, 12, 155, 160, 30 +PUSHBUTTON "Äî&ïîëíèòåëüíî", 14008, 180, 175, 50, 14, WS_TABSTOP END CONFIRM_FILE_REPLACE_DLG DIALOGEX 0, 0, 282, 143 STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_3DLOOK | DS_FIXEDSYS | DS_CENTER | WS_POPUPWINDOW | WS_VISIBLE | WS_CAPTION -CAPTION "Confirm File Replace" -FONT 8, "MS Shell Dlg" -BEGIN - DEFPUSHBUTTON "&Yes", IDYES, 20, 122, 60, 14 - PUSHBUTTON "Yes to &All", 12807, 85, 122, 60, 14 - PUSHBUTTON "&No", IDNO, 150, 122, 60, 14 - PUSHBUTTON "Cancel", IDCANCEL, 215, 122, 60, 14 +CAPTION "Ïîäòâåðæäåíèå çàìåíû ôàéëà" +FONT 8, "MS Shell Dlg" +BEGIN + DEFPUSHBUTTON "&Äà", IDYES, 20, 122, 60, 14 + PUSHBUTTON "Äà - äëÿ &âñåõ", 12807, 85, 122, 60, 14 + PUSHBUTTON "&Íåò", IDNO, 150, 122, 60, 14 + PUSHBUTTON "Îòìåíà", IDCANCEL, 215, 122, 60, 14 ICON 146, -1, 11, 10, 21, 20, SS_REALSIZECONTROL - LTEXT "This folder already contains a file named '%2'.", 12291, 44, 10, 231, 22, SS_NOPREFIX - LTEXT "This folder already contains a read-only file named '%2'.", 12292, 41, 10, 222, 22, SS_NOPREFIX - LTEXT "This folder already contains a system file named '%2'.", 12293, 41, 10, 222, 22, SS_NOPREFIX - LTEXT "Would you like to replace the existing file", -1, 44, 35, 228, 10, SS_NOPREFIX - LTEXT "(unknown date and size)", 12302, 79, 51, 198, 20, SS_NOPREFIX + LTEXT "Ïàïêà óæå ñîäåðæèò ôàéë ""%2"".", 12291, 44, 10, 231, 22, SS_NOPREFIX + LTEXT "Ïàïêà óæå ñîäåðæèò äîñòóïíûé òîëüêî äëÿ ÷òåíèÿ ôàéë ""%2"".", 12292, 41, 10, 222, 22, SS_NOPREFIX + LTEXT "Ïàïêà óæå ñîäåðæèò ñèñòåìíûé ôàéë ""%2"".", 12293, 41, 10, 222, 22, SS_NOPREFIX + LTEXT "Çàìåíèòü èìåþùèéñÿ ôàéë", -1, 44, 35, 228, 10, SS_NOPREFIX + LTEXT "(äàòà è ðàçìåð íåèçâåñòíû)", 12302, 79, 51, 198, 20, SS_NOPREFIX ICON "", 12300, 50, 49, 21, 20, SS_REALSIZECONTROL - LTEXT "with this one?", -1, 44, 75, 228, 10, SS_NOPREFIX - LTEXT "(unknown date and size)", 12303, 79, 91, 198, 20, SS_NOPREFIX + LTEXT "ñëåäóþùèì ôàéëîì?", -1, 44, 75, 228, 10, SS_NOPREFIX + LTEXT "(äàòà è ðàçìåð íåèçâåñòíû)", 12303, 79, 91, 198, 20, SS_NOPREFIX ICON "", 12301, 50, 89, 21, 20, SS_REALSIZECONTROL END LOGOFF_DLG DIALOGEX 0, 0, 190, 60 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUPWINDOW | WS_CAPTION -CAPTION "Log Off ReactOS" +CAPTION "Âûõîä èç ReactOS" FONT 8, "MS Shell Dlg" BEGIN ICON 45, 14344, 10, 10, 21, 20, SS_REALSIZECONTROL - LTEXT "Are you sure you want to log off?", -1, 43, 11, 140, 22 - DEFPUSHBUTTON "&Log Off", IDOK, 57, 40, 60, 14 - PUSHBUTTON "Cancel", IDCANCEL, 122, 40, 60, 14 + LTEXT "Âû äåéñòâèòåëüíî õîòèòå âûéòè èç ñèñòåìû?", -1, 43, 11, 140, 22 + DEFPUSHBUTTON "Â&ûõîä", IDOK, 57, 40, 60, 14 + PUSHBUTTON "Îòìåíà", IDCANCEL, 122, 40, 60, 14 END DISCONNECT_DLG DIALOGEX 0, 0, 190, 60 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUPWINDOW | WS_CAPTION -CAPTION "Disconnect ReactOS" +CAPTION "Îòêëþ÷åíèå ReactOS" FONT 8, "MS Shell Dlg" BEGIN ICON 49, 14346, 10, 10, 21, 20, SS_REALSIZECONTROL - LTEXT "Are you sure you want to disconnect?", -1, 49, 12, 137, 23 - DEFPUSHBUTTON "&Disconnect", IDOK, 57, 40, 60, 14 - PUSHBUTTON "Cancel", IDCANCEL, 123, 40, 60, 14 + LTEXT "Âû äåéñòâèòåëüíî õîòèòå âûïîëíèòü îòêëþ÷åíèå?", -1, 49, 12, 137, 23 + DEFPUSHBUTTON "Îòêëþ&÷åíèå", IDOK, 57, 40, 60, 14 + PUSHBUTTON "Îòìåíà", IDCANCEL, 123, 40, 60, 14 END AUTOPLAY1_DLG DIALOGEX 0, 0, 227, 218 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUPWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CAPTION -CAPTION "AutoPlay" -FONT 8, "MS Shell Dlg" -BEGIN - LTEXT "&Select a content type, then choose an action for ReactOS to perform automatically when that type is used in this device:", 1000, 7, 7, 215, 20 +CAPTION "Àâòîçàïóñê" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Âûáåðèòå &òèï ñîäåðæèìîãî, à çàòåì äåéñòâèå, àâòîìàòè÷åñêè âûïîëíÿåìîå ïðè åãî îáíàðóæåíèè â ýòîì óñòðîéñòâå:", 1000, 7, 7, 215, 20 CONTROL "", 1001, "COMBOBOXEX32", WS_TABSTOP | 0x00000043, 7, 27, 212, 200 - GROUPBOX "Actions", -1, 7, 45, 212, 146 - AUTORADIOBUTTON "Select an action to &perform:", 1005, 14, 54, 202, 10, WS_GROUP + GROUPBOX "Äåéñòâèÿ", -1, 7, 45, 212, 146 + AUTORADIOBUTTON "&Âûáåðèòå âûïîëíÿåìîå äåéñòâèå:", 1005, 14, 54, 202, 10, WS_GROUP CONTROL "LIST2", 1002, "SYSLISTVIEW32", WS_BORDER | WS_TABSTOP | 0x0000C04D, 22, 66, 192, 107 - AUTORADIOBUTTON "Prompt me each time to &choose an action", 1006, 14, 177, 202, 10 - PUSHBUTTON "&Restore Defaults", 1008, 108, 197, 110, 14, WS_DISABLED + AUTORADIOBUTTON "Âûäàâàòü &çàïðîñ íà âûáîð âûïîëíÿåìîãî äåéñòâèÿ", 1006, 14, 177, 202, 10 + PUSHBUTTON "Âîññòàíîâèòü óìîë&÷àíèÿ", 1008, 108, 197, 110, 14, WS_DISABLED END MIXED_CONTENT1_DLG DIALOG 0, 0, 227, 207 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUPWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CAPTION -CAPTION "Mixed Content" +CAPTION "Ñìåøàííîå ñîäåðæèìîå" FONT 8, "MS Shell Dlg" BEGIN ICON "", 1000, 5, 7, 21, 20 - LTEXT "This disk or device contains more than one type of content.", 1001, 32, 7, 191, 20 - LTEXT "What do you want ReactOS to do?", 1002, 32, 31, 188, 8 + LTEXT "Íà ýòîì äèñêå èëè óñòðîéñòâå õðàíèòñÿ ñîäåðæèìîå ðàçëè÷íûõ òèïîâ.", 1001, 32, 7, 191, 20 + LTEXT "Êàêîå äåéñòâèå ñëåäóåò âûïîëíÿòü ReactOS?", 1002, 32, 31, 188, 8 CONTROL "", 1003, "SYSLISTVIEW32", WS_BORDER | WS_TABSTOP | 0x0000C04D, 32, 43, 188, 139 DEFPUSHBUTTON "OK", IDOK, 96, 186, 60, 14 - PUSHBUTTON "Cancel", IDCANCEL, 160, 186, 60, 14 + PUSHBUTTON "Îòìåíà", IDCANCEL, 160, 186, 60, 14 END MIXED_CONTENT2_DLG DIALOG 0, 0, 227, 206 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUPWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CAPTION -CAPTION "Mixed Content" +CAPTION "Ñìåøàííîå ñîäåðæèìîå" FONT 8, "MS Shell Dlg" BEGIN ICON "", 1000, 5, 7, 21, 20 - LTEXT "ReactOS can perform the same action each time you insert a disk or connect a device with this kind of file:", 1001, 30, 7, 193, 20 + LTEXT "ReactOS ìîæåò âñåãäà âûïîëíÿòü îäíî è òî æå äåéñòâèå, êîãäà âû âñòàâëÿåòå äèñê èëè ïîäêëþ÷àåòå óñòðîéñòâî ñ ôàéëàìè ñëåäóþùåãî òèïà:", 1001, 30, 7, 193, 20 ICON "", 1005, 32, 27, 11, 10, SS_REALSIZECONTROL EDITTEXT 1006, 49, 28, 177, 14, ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP - LTEXT "What do you want ReactOS to do?", 1002, 32, 41, 190, 8 + LTEXT "Êàêîå äåéñòâèå ñëåäóåò âûïîëíÿòü ReactOS?", 1002, 32, 41, 190, 8 CONTROL "", 1003, "SYSLISTVIEW32", WS_BORDER | WS_TABSTOP | 0x0000C04D, 32, 55, 188, 112 - AUTOCHECKBOX "Always do the selected action.", 1004, 32, 171, 190, 10 + AUTOCHECKBOX "Âñåãäà âûïîëíÿòü âûáðàííîå äåéñòâèå.", 1004, 32, 171, 190, 10 DEFPUSHBUTTON "OK", IDOK, 96, 185, 60, 14 - PUSHBUTTON "Cancel", IDCANCEL, 160, 185, 60, 14 + PUSHBUTTON "Îòìåíà", IDCANCEL, 160, 185, 60, 14 END AUTOPLAY2_DLG DIALOG 0, 0, 227, 181 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUPWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CAPTION -CAPTION "Autoplay" +CAPTION "Àâòîçàïóñê" FONT 8, "MS Shell Dlg" BEGIN ICON "", 1000, 5, 7, 21, 20 - LTEXT "ReactOS can perform the same action each time you connect this device.", 1001, 32, 7, 190, 22 - LTEXT "&What do you want ReactOS to do?", 1002, 32, 31, 190, 8 + LTEXT "ReactOS ìîæåò âûïîëíÿòü îäíî è òî æå äåéñòâèå ïðè êàæäîì ïîäêëþ÷åíèè ýòîãî óñòðîéñòâà.", 1001, 32, 7, 190, 22 + LTEXT "&Êàêîå äåéñòâèå ñëåäóåò âûïîëíÿòü ReactOS?", 1002, 32, 31, 190, 8 CONTROL "", 1003, "SYSLISTVIEW32", WS_BORDER | WS_TABSTOP | 0x0000C04D, 32, 43, 187, 96 - AUTOCHECKBOX "&Always perform the selected action", 1004, 32, 143, 190, 8 + AUTOCHECKBOX "&Âñåãäà âûïîëíÿòü âûáðàííîå äåéñòâèå", 1004, 32, 143, 190, 8 DEFPUSHBUTTON "OK", IDOK, 94, 160, 60, 14 - PUSHBUTTON "Cancel", IDCANCEL, 159, 160, 60, 14 + PUSHBUTTON "Îòìåíà", IDCANCEL, 159, 160, 60, 14 END SHUTDOWN_DLG DIALOG 0, 0, 211, 103 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUPWINDOW | WS_CAPTION -CAPTION "Shut Down ReactOS" +CAPTION "Çàâåðøåíèå ðàáîòû ReactOS" FONT 8, "MS Shell Dlg" BEGIN ICON 8240, -1, 6, 6, 21, 20, SS_REALSIZECONTROL | WS_GROUP - LTEXT "What do you want the computer to do?", -1, 39, 7, 167, 10 + LTEXT "Âûáåðèòå æåëàåìîå äåéñòâèå.", -1, 39, 7, 167, 10 COMBOBOX 8224, 39, 20, 165, 200, CBS_DROPDOWNLIST | WS_VSCROLL - LTEXT "Maintains your session, keeping the computer running on low power with data still in memory. The computer wakes up when you press a key or move the mouse.", 8225, 39, 40, 167, 37 + LTEXT "Ñîõðàíèòü ñåàíñ, îáåñïå÷èâàÿ ðàáîòó êîìïüþòåðà â ñïÿùåì ðåæèìå è äàííûìè â ïàìÿòè. Ïðè íàæàòèè íà ëþáóþ êëàâèøó èëè ïåðåäâèæåíèè ìûøè êîìïüþòåð âîçâðàòèòñÿ â îáû÷íûé ðåæèì.", 8225, 39, 40, 167, 37 DEFPUSHBUTTON "OK", 1, 7, 82, 60, 14, WS_GROUP - PUSHBUTTON "Cancel", IDCANCEL, 75, 82, 60, 14 - PUSHBUTTON "&Help", IDHELP, 144, 82, 60, 14 + PUSHBUTTON "Îòìåíà", IDCANCEL, 75, 82, 60, 14 + PUSHBUTTON "&Ñïðàâêà", IDHELP, 144, 82, 60, 14 END FORMAT_DLG DIALOGEX 50, 50, 184, 218 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CONTEXTHELP | WS_POPUPWINDOW | WS_VISIBLE | WS_CAPTION -CAPTION "Format" -FONT 8, "MS Shell Dlg" -BEGIN - DEFPUSHBUTTON "&Start", IDOK, 53, 198, 60, 14 - PUSHBUTTON "&Close", IDCANCEL, 118, 198, 60, 14 - LTEXT "Ca&pacity:", -1, 7, 6, 169, 9 +CAPTION "Ôîðìàòèðîâàíèå" +FONT 8, "MS Shell Dlg" +BEGIN + DEFPUSHBUTTON "&Íà÷àòü", IDOK, 53, 198, 60, 14 + PUSHBUTTON "&Çàêðûòü", IDCANCEL, 118, 198, 60, 14 + LTEXT "&Åìêîñòü:", -1, 7, 6, 169, 9 COMBOBOX 28673, 7, 17, 170, 200, CBS_DROPDOWNLIST | WS_VSCROLL | NOT WS_TABSTOP - LTEXT "&File system", -1, 7, 35, 170, 9 + LTEXT "&Ôàéëîâàÿ ñèñòåìà:", -1, 7, 35, 170, 9 COMBOBOX 28677, 7, 46, 170, 200, CBS_DROPDOWNLIST | WS_VSCROLL | NOT WS_TABSTOP CONTROL "", 28678, "MSCTLS_PROGRESS32", 0, 7, 181, 170, 8 - LTEXT "&Allocation unit size", -1, 7, 64, 170, 9 + LTEXT "&Ðàçìåð êëàñòåðà:", -1, 7, 64, 170, 9 COMBOBOX 28680, 7, 75, 170, 200, CBS_DROPDOWNLIST | WS_VSCROLL | NOT WS_TABSTOP - LTEXT "Volume &label", -1, 7, 93, 170, 9 + LTEXT "&Ìåòêà òîìà:", -1, 7, 93, 170, 9 EDITTEXT 28679, 7, 103, 170, 13, ES_AUTOHSCROLL - GROUPBOX "Format &options", 4610, 7, 121, 170, 49 - AUTOCHECKBOX "&Quick Format", 28674, 16, 135, 155, 10 - AUTOCHECKBOX "&Enable Compression", 28675, 16, 152, 155, 10 + GROUPBOX "&Ñïîñîáû ôîðìàòèðîâàíèÿ:", 4610, 7, 121, 170, 49 + AUTOCHECKBOX "&Áûñòðîå (î÷èñòêà îãëàâëåíèÿ)", 28674, 16, 135, 155, 10 + AUTOCHECKBOX "&Èñïîëüçîâàòü ñæàòèå", 28675, 16, 152, 155, 10 END STRINGTABLE DISCARDABLE @@ -640,5 +639,5 @@ FCIDM_SHVIEW_NEW "Ñîçäàòü" FCIDM_SHVIEW_NEWFOLDER "&Ïàïêà" FCIDM_SHVIEW_NEWLINK "&ßðëûê" - IDS_FOLDER_OPTIONS "Folder Options" -END + IDS_FOLDER_OPTIONS "Ñâîéñòâà ïàïêè" +END Modified: trunk/reactos/dll/win32/shell32/lang/sk-SK.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/sk-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/sk-SK.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/sk-SK.rc Mon Jan 7 20:46:56 2008 @@ -367,7 +367,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/sl-SI.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/sl-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/sl-SI.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/sl-SI.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/sv-SE.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/sv-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/sv-SE.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/sv-SE.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/tr-TR.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/tr-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/tr-TR.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/tr-TR.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/wa-WA.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/wa-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/wa-WA.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/wa-WA.rc Mon Jan 7 20:46:56 2008 @@ -361,7 +361,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/zh-CN.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/zh-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/zh-CN.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/zh-CN.rc Mon Jan 7 20:46:56 2008 @@ -362,7 +362,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP Modified: trunk/reactos/dll/win32/shell32/lang/zh-TW.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/lang/zh-…
============================================================================== --- trunk/reactos/dll/win32/shell32/lang/zh-TW.rc (original) +++ trunk/reactos/dll/win32/shell32/lang/zh-TW.rc Mon Jan 7 20:46:56 2008 @@ -362,7 +362,7 @@ GROUPBOX "Tasks", -1, 7, 10, 249, 45 //ICON AUTORADIOBUTTON "Show common tasks in &folders", 14001, 40, 25, 120, 10, WS_TABSTOP -AUTORADIOBUTTON "Use Windows class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP +AUTORADIOBUTTON "Use ReactOS class&ic folders", 14002, 40, 37, 120, 10, WS_TABSTOP GROUPBOX "Browse folders", -1, 7, 60, 249, 45, WS_TABSTOP //ICON AUTORADIOBUTTON "Open each folder in the sa&me window", 14004, 40, 70, 140, 10, WS_TABSTOP
16 years, 8 months
1
0
0
0
[dchapyshev] 31649: - Add locale information to registry - Change main.cpl to input.dll
by dchapyshev@svn.reactos.org
Author: dchapyshev Date: Mon Jan 7 20:36:02 2008 New Revision: 31649 URL:
http://svn.reactos.org/svn/reactos?rev=31649&view=rev
Log: - Add locale information to registry - Change main.cpl to input.dll Modified: trunk/reactos/dll/win32/syssetup/wizard.c Modified: trunk/reactos/dll/win32/syssetup/wizard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
============================================================================== --- trunk/reactos/dll/win32/syssetup/wizard.c (original) +++ trunk/reactos/dll/win32/syssetup/wizard.c Mon Jan 7 20:36:02 2008 @@ -801,7 +801,7 @@ &StartupInfo, &ProcessInformation)) { - MessageBox(hwnd, _T("Error: failed to launch rundll32"), _T("Error"), MB_ICONERROR); + MessageBox(hwnd, _T("Error: failed to launch rundll32"), NULL, MB_ICONERROR); return FALSE; } @@ -809,6 +809,36 @@ CloseHandle(ProcessInformation.hThread); CloseHandle(ProcessInformation.hProcess); return TRUE; +} + +static VOID +WriteUserLocale(VOID) +{ + HKEY hKey; + LCID lcid; + TCHAR Locale[8]; + DWORD dwDisp; + + lcid = GetSystemDefaultLCID(); + + if (GetLocaleInfo(MAKELCID(lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, (WORD*)Locale, sizeof(Locale)) == 0) + { + return; + } + + if (RegOpenKey(HKEY_CURRENT_USER, L"Control Panel\\International", &hKey) != ERROR_SUCCESS) + { + if (RegCreateKeyEx(HKEY_LOCAL_MACHINE, L"Control Panel\\International", + 0, NULL, REG_OPTION_NON_VOLATILE, + KEY_WRITE, NULL, &hKey, &dwDisp)) + { + return; + } + } + + RegSetValueExW(hKey, L"Locale", 0, REG_SZ, (LPBYTE) Locale, (DWORD)(sizeof(Locale) / sizeof(TCHAR))); + + RegCloseKey(hKey); } static INT_PTR CALLBACK @@ -830,10 +860,9 @@ /* Save pointer to the global setup data */ SetupData = (PSETUPDATA)((LPPROPSHEETPAGE)lParam)->lParam; SetWindowLongPtr(hwndDlg, GWL_USERDATA, (DWORD_PTR)SetupData); - + WriteUserLocale(); SetKeyboardLayoutName(GetDlgItem(hwndDlg, IDC_LAYOUTTEXT)); - } break; @@ -852,7 +881,7 @@ case IDC_CUSTOMLAYOUT: { - wcscpy(szBuffer, _T("rundll32.exe shell32.dll,Control_RunDLL main.cpl,@1")); + wcscpy(szBuffer, _T("rundll32.exe shell32.dll,Control_RunDLL input.dll,@1")); RunControlPanelApplet(hwndDlg, szBuffer); } break; @@ -1933,8 +1962,10 @@ break; case WM_DESTROY: - SetupIsActive(0); - return TRUE; + { + SetupIsActive(0); + return TRUE; + } case WM_TIMER: {
16 years, 8 months
1
0
0
0
← Newer
1
...
39
40
41
42
43
44
45
...
54
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Results per page:
10
25
50
100
200