[SHELL32]
authorGregor Schneider <grschneider@gmail.com>
Sun, 4 Apr 2010 18:37:39 +0000 (18:37 +0000)
committerGregor Schneider <grschneider@gmail.com>
Sun, 4 Apr 2010 18:37:39 +0000 (18:37 +0000)
- Add a confirmation dialog for logoff operation
- English and German translation included
See issue #1494 for more details.

svn path=/trunk/; revision=46722

31 files changed:
reactos/dll/win32/shell32/dialogs.c
reactos/dll/win32/shell32/lang/bg-BG.rc
reactos/dll/win32/shell32/lang/ca-ES.rc
reactos/dll/win32/shell32/lang/cs-CZ.rc
reactos/dll/win32/shell32/lang/da-DK.rc
reactos/dll/win32/shell32/lang/de-DE.rc
reactos/dll/win32/shell32/lang/el-GR.rc
reactos/dll/win32/shell32/lang/en-GB.rc
reactos/dll/win32/shell32/lang/en-US.rc
reactos/dll/win32/shell32/lang/es-ES.rc
reactos/dll/win32/shell32/lang/fi-FI.rc
reactos/dll/win32/shell32/lang/fr-FR.rc
reactos/dll/win32/shell32/lang/hu-HU.rc
reactos/dll/win32/shell32/lang/it-IT.rc
reactos/dll/win32/shell32/lang/ja-JP.rc
reactos/dll/win32/shell32/lang/ko-KR.rc
reactos/dll/win32/shell32/lang/nl-NL.rc
reactos/dll/win32/shell32/lang/no-NO.rc
reactos/dll/win32/shell32/lang/pl-PL.rc
reactos/dll/win32/shell32/lang/pt-BR.rc
reactos/dll/win32/shell32/lang/pt-PT.rc
reactos/dll/win32/shell32/lang/ro-RO.rc
reactos/dll/win32/shell32/lang/ru-RU.rc
reactos/dll/win32/shell32/lang/sk-SK.rc
reactos/dll/win32/shell32/lang/sl-SI.rc
reactos/dll/win32/shell32/lang/sv-SE.rc
reactos/dll/win32/shell32/lang/tr-TR.rc
reactos/dll/win32/shell32/lang/uk-UA.rc
reactos/dll/win32/shell32/lang/zh-CN.rc
reactos/dll/win32/shell32/lang/zh-TW.rc
reactos/dll/win32/shell32/shresdef.h

index e5aa28f..792ed62 100644 (file)
@@ -612,9 +612,11 @@ int WINAPI RestartDialogEx(HWND hWndOwner, LPCWSTR lpwstrReason, DWORD uFlags, D
 
 int WINAPI LogoffWindowsDialog(HWND hWndOwner)
 {
-   UNIMPLEMENTED;
-   ExitWindowsEx(EWX_LOGOFF, 0);
-   return 0;
+    if (ConfirmDialog(hWndOwner, IDS_LOGOFF_PROMPT, IDS_LOGOFF_TITLE))
+    {
+        ExitWindowsEx(EWX_LOGOFF, 0);
+    }
+    return 0;
 }
 
 /*************************************************************************
index fea6d98..5cda676 100644 (file)
@@ -666,6 +666,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Èñêàòå ëè äà ïðåçàïóñíåòå ñèñòåìàòà?"
        IDS_SHUTDOWN_TITLE          "Èçêëþ÷âàíå"
        IDS_SHUTDOWN_PROMPT         "Èñêàòå ëè äà èçêëþ÷èòå êîìïþòúðà?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        // shell folder path default values 
        IDS_PROGRAMS                "Ïóñêîâ èçáîðíèê\\Ïðèëîæåíèÿ"
index df5cb9e..a26fab0 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Do you want to restart the system?"
        IDS_SHUTDOWN_TITLE          "Shutdown"
        IDS_SHUTDOWN_PROMPT         "Do you want to shutdown?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index b08beea..f2652e6 100644 (file)
@@ -666,6 +666,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Opravdu chcete restartovat systém?"
        IDS_SHUTDOWN_TITLE          "Vypnout"
        IDS_SHUTDOWN_PROMPT         "Opravdu chcete vypnout poèítaè?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Nabídka Start\\Programy"
index 40e1eab..b9cf521 100644 (file)
@@ -654,6 +654,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Ønsker du at Genstarte Systemet?"
        IDS_SHUTDOWN_TITLE          "Luk Ned"
        IDS_SHUTDOWN_PROMPT         "Ønsker du at Lukke Ned?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programmer"
index db0fa82..09f6559 100644 (file)
@@ -669,6 +669,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Möchten Sie das System neu starten?"
        IDS_SHUTDOWN_TITLE          "Herunterfahren"
        IDS_SHUTDOWN_PROMPT         "Möchten Sie das System herunterfahren?"
+       IDS_LOGOFF_TITLE            "Ausloggen"
+       IDS_LOGOFF_PROMPT           "Möchten Sie sich ausloggen?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Startmenü\\Programme"
index 6b35ec3..0821f01 100644 (file)
@@ -666,6 +666,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Åßóôå óßãïõñïé üôé èÝëåôå íá åðáíåêêéíÞóåôå ôïí õðïëïãéóôÞ óáò;"
        IDS_SHUTDOWN_TITLE          "Áðåíåñãïðïßçóç"
        IDS_SHUTDOWN_PROMPT         "Åßóôå óßãïõñïé üôé èÝëåôå íá áðåíåñãïðïéÞóåôå ôïí õðïëïãéóôÞ óáò;"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index 38203c2..3dfbfd9 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Do you want to restart the system?"
        IDS_SHUTDOWN_TITLE          "Shutdown"
        IDS_SHUTDOWN_PROMPT         "Do you want to shutdown?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index 63d38cb..200c97a 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Do you want to restart the system?"
        IDS_SHUTDOWN_TITLE          "Shutdown"
        IDS_SHUTDOWN_PROMPT         "Do you want to shutdown?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index 0e20abc..a0dacf6 100644 (file)
@@ -668,6 +668,8 @@ BEGIN
        IDS_RESTART_PROMPT          "¿Desea reiniciar el equipo?"
        IDS_SHUTDOWN_TITLE          "Apagar"
        IDS_SHUTDOWN_PROMPT         "¿Desea apagar el equipo?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Menú Inicio\\Programas"
index 2620c2b..778576a 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Haluatko simuloida Windows:n uudelleenkäynnistämistä?"
        IDS_SHUTDOWN_TITLE          "Sammuta"
        IDS_SHUTDOWN_PROMPT         "Haluatko lopettaa Wine:n istunnon?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Käynnistä\\Ohjelmat"
index 98cd95f..3f712a6 100644 (file)
@@ -669,6 +669,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Voulez-vous redémarrer votre ordinateur ?"
        IDS_SHUTDOWN_TITLE          "Arrêter"
        IDS_SHUTDOWN_PROMPT         "Voulez-vous fermer la session ReactOS ?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Menu Démarrer\\Programmes"
index 7016d50..22a2603 100644 (file)
@@ -668,6 +668,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Újra szeretnéd indítani a rendszert?"
        IDS_SHUTDOWN_TITLE          "Kikapcsolás"
        IDS_SHUTDOWN_PROMPT         "Kiakarod kapcsolni számítógépét?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index 986ecfe..4407298 100644 (file)
@@ -666,6 +666,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Volete riavviare il sistema?"
        IDS_SHUTDOWN_TITLE          "Termina sessione"
        IDS_SHUTDOWN_PROMPT         "Volete terminare la sessione di ReactOS?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Menu Avvio\\Programmi"
index 47c5bfb..12f24d3 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "\83V\83X\83e\83\80\82ð\8dÄ\8bN\93®\82µ\82Ü\82·\82©?"
        IDS_SHUTDOWN_TITLE          "\83V\83\83\83b\83g\83_\83E\83\93"
        IDS_SHUTDOWN_PROMPT         "\83V\83\83\83b\83g\83_\83E\83\93\82µ\82Ü\82·\82©?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "\83X\83^\81[\83\83\81\83j\83\85\81[\\\83v\83\8d\83O\83\89\83\80"
index e9e67b7..9d7ad80 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Do you want to restart the system?"
        IDS_SHUTDOWN_TITLE          "Shutdown"
        IDS_SHUTDOWN_PROMPT         "Do you want to shutdown?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index 5ff6c83..b0e1c91 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Do you want to restart the system?"
        IDS_SHUTDOWN_TITLE          "Shutdown"
        IDS_SHUTDOWN_PROMPT         "Do you want to shutdown?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index 90dc27d..43c637f 100644 (file)
@@ -668,6 +668,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Vil du starte datamaskinen på nytt?"
        IDS_SHUTDOWN_TITLE          "Avslutt"
        IDS_SHUTDOWN_PROMPT         "Vil du slå av datamaskinen?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start-meny\\Programmer"
index b6d33a6..a0d3682 100644 (file)
@@ -672,6 +672,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Czy chcesz zrestartowaæ system?"
        IDS_SHUTDOWN_TITLE          "Wy³¹cz"
        IDS_SHUTDOWN_PROMPT         "Czy chcesz wy³¹czyæ system?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Menu Start\\Programy"
index 048d4c3..5bcee21 100644 (file)
@@ -667,6 +667,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Você quer simular a reinicialização do Windows?"
        IDS_SHUTDOWN_TITLE          "Desligar"
        IDS_SHUTDOWN_PROMPT         "Você quer finalizar a sessão no Wine?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Menu Iniciar\\Programas"
index c20e670..dbf3fe2 100644 (file)
@@ -667,6 +667,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Deseja simular a reinicialização do Windows?"
        IDS_SHUTDOWN_TITLE          "Desligar"
        IDS_SHUTDOWN_PROMPT         "Deseja finalizar esta sessão do Wine?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Menu Iniciar\\Programas"
index 656bc41..efbff85 100644 (file)
@@ -668,6 +668,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Vreți să reporniți sistemul?"
        IDS_SHUTDOWN_TITLE          "Închidere"
        IDS_SHUTDOWN_PROMPT         "Vreți să închideți computerul?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Meniu Start\\Programe"
index 7d6e1e1..6c3f488 100644 (file)
@@ -664,6 +664,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Âû äåéñòâèòåëüíî õîòèòå ïåðåçàãðóçèòü ReactOS?"
        IDS_SHUTDOWN_TITLE          "Âûêëþ÷èòü ïèòàíèå"
        IDS_SHUTDOWN_PROMPT         "Çàêîí÷èòü ðàáîòó ñ ReactOS?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Ãëàâíîå ìåíþ\\Ïðîãðàììû"
index 2ec58ec..e45b141 100644 (file)
@@ -671,6 +671,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Naozaj chcete re\9atartova\9d systém?"
        IDS_SHUTDOWN_TITLE          "Vypnú\9d"
        IDS_SHUTDOWN_PROMPT         "Naozaj chcete vypnú\9d poèítaè?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Ponuka \8atart\\Programy"
index 876be4b..5038af1 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Do you want to restart the system?"
        IDS_SHUTDOWN_TITLE          "Shutdown"
        IDS_SHUTDOWN_PROMPT         "Do you want to shutdown?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index e7a520f..08a6f59 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Do you want to restart the system?"
        IDS_SHUTDOWN_TITLE          "Shutdown"
        IDS_SHUTDOWN_PROMPT         "Do you want to shutdown?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index 49a154c..3ab92cb 100644 (file)
@@ -665,6 +665,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Do you want to restart the system?"
        IDS_SHUTDOWN_TITLE          "Oturumu Kapat"
        IDS_SHUTDOWN_PROMPT         "Do you want to shutdown?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programlar"
index 3846965..cf2847e 100644 (file)
@@ -666,6 +666,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Âè õî÷åòå ïåðåçàâàíòàæèòè ñèñòåìó?"
        IDS_SHUTDOWN_TITLE          "Âèìêíóòè"
        IDS_SHUTDOWN_PROMPT         "Âè õî÷åòå âèìêíóòè êîìï'þòåð?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index 5180db5..18c4d54 100644 (file)
@@ -654,6 +654,8 @@ BEGIN
        IDS_RESTART_PROMPT          "ÊÇ·ñÖØÐÂÆô¶¯ÏµÍ³?"
        IDS_SHUTDOWN_TITLE          "¹Ø»ú"
        IDS_SHUTDOWN_PROMPT         "ÊÇ·ñ¹Ø±Õϵͳ?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index fc76bf1..f7c59a2 100644 (file)
@@ -666,6 +666,8 @@ BEGIN
        IDS_RESTART_PROMPT          "Do you want to restart the system?"
        IDS_SHUTDOWN_TITLE          "Shutdown"
        IDS_SHUTDOWN_PROMPT         "Do you want to shutdown?"
+       IDS_LOGOFF_TITLE            "Log Off"
+       IDS_LOGOFF_PROMPT           "Do you want to log off?"
 
        /* shell folder path default values */
        IDS_PROGRAMS                "Start Menu\\Programs"
index e28efb0..981e17f 100644 (file)
@@ -90,6 +90,9 @@
 #define IDS_FONTS                   76
 #define IDS_PRINTERS                77
 
+#define IDS_LOGOFF_TITLE            78
+#define IDS_LOGOFF_PROMPT           79
+
 #define IDS_CREATEFOLDER_DENIED     128
 #define IDS_CREATEFOLDER_CAPTION    129
 #define IDS_DELETEITEM_CAPTION      130