Author: ekohl
Date: Wed Feb 13 23:24:15 2013
New Revision: 58311
URL:
http://svn.reactos.org/svn/reactos?rev=58311&view=rev
Log:
[MSGINA]
Implement the "Computer locked" dialog box.
Attention: Computer can not be unlocked yet!
Modified:
trunk/reactos/dll/win32/msgina/gui.c
trunk/reactos/dll/win32/msgina/lang/bg-BG.rc
trunk/reactos/dll/win32/msgina/lang/cs-CZ.rc
trunk/reactos/dll/win32/msgina/lang/de-DE.rc
trunk/reactos/dll/win32/msgina/lang/en-US.rc
trunk/reactos/dll/win32/msgina/lang/es-ES.rc
trunk/reactos/dll/win32/msgina/lang/fr-FR.rc
trunk/reactos/dll/win32/msgina/lang/he-IL.rc
trunk/reactos/dll/win32/msgina/lang/id-ID.rc
trunk/reactos/dll/win32/msgina/lang/it-IT.rc
trunk/reactos/dll/win32/msgina/lang/ja-JP.rc
trunk/reactos/dll/win32/msgina/lang/no-NO.rc
trunk/reactos/dll/win32/msgina/lang/pl-PL.rc
trunk/reactos/dll/win32/msgina/lang/ro-RO.rc
trunk/reactos/dll/win32/msgina/lang/ru-RU.rc
trunk/reactos/dll/win32/msgina/lang/sk-SK.rc
trunk/reactos/dll/win32/msgina/lang/uk-UA.rc
trunk/reactos/dll/win32/msgina/msgina.c
trunk/reactos/dll/win32/msgina/msgina.h
trunk/reactos/dll/win32/msgina/resource.h
trunk/reactos/dll/win32/msgina/stubs.c
trunk/reactos/dll/win32/msgina/tui.c
Modified: trunk/reactos/dll/win32/msgina/gui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/gui.c?rev…
==============================================================================
--- trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -413,6 +413,68 @@
return WLX_SAS_ACTION_UNLOCK_WKSTA;
}
+
+static INT_PTR CALLBACK
+LockedWindowProc(
+ IN HWND hwndDlg,
+ IN UINT uMsg,
+ IN WPARAM wParam,
+ IN LPARAM lParam)
+{
+ PGINA_CONTEXT pgContext;
+
+ pgContext = (PGINA_CONTEXT)GetWindowLongPtr(hwndDlg, GWL_USERDATA);
+
+ switch (uMsg)
+ {
+ case WM_INITDIALOG:
+ {
+ pgContext = (PGINA_CONTEXT)lParam;
+ SetWindowLongPtr(hwndDlg, GWL_USERDATA, (DWORD_PTR)pgContext);
+
+ pgContext->hBitmap = LoadImage(hDllInstance, MAKEINTRESOURCE(IDI_ROSLOGO),
IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
+ return TRUE;
+ }
+ case WM_PAINT:
+ {
+ PAINTSTRUCT ps;
+ HDC hdc;
+ if (pgContext->hBitmap)
+ {
+ hdc = BeginPaint(hwndDlg, &ps);
+ DrawStateW(hdc, NULL, NULL, (LPARAM)pgContext->hBitmap, (WPARAM)0, 0, 0, 0, 0,
DST_BITMAP);
+ EndPaint(hwndDlg, &ps);
+ }
+ return TRUE;
+ }
+ case WM_DESTROY:
+ {
+ DeleteObject(pgContext->hBitmap);
+ return TRUE;
+ }
+ }
+
+ return FALSE;
+}
+
+
+static VOID
+GUIDisplayLockedNotice(
+ IN OUT PGINA_CONTEXT pgContext)
+{
+ int result;
+
+ TRACE("GUIdisplayLockedNotice()\n");
+
+ result = pgContext->pWlxFuncs->WlxDialogBoxParam(
+ pgContext->hWlx,
+ pgContext->hDllInstance,
+ MAKEINTRESOURCEW(IDD_LOCKED_DLG),
+ GetDesktopWindow(),
+ LockedWindowProc,
+ (LPARAM)pgContext);
+}
+
GINA_UI GinaGraphicalUI = {
GUIInitialize,
GUIDisplayStatusMessage,
@@ -421,4 +483,5 @@
GUILoggedOnSAS,
GUILoggedOutSAS,
GUILockedSAS,
+ GUIDisplayLockedNotice,
};
Modified: trunk/reactos/dll/win32/msgina/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/bg-B…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/bg-BG.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/bg-BG.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -1,4 +1,4 @@
-LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
+LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
IDD_STATUSWINDOW_DLG DIALOGEX 0,0,275,80
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
@@ -47,6 +47,18 @@
PUSHBUTTON "ÐÑказ",IDCANCEL,130,95,99,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "ÐдÑавейÑе!"
@@ -55,4 +67,5 @@
IDS_ASKFORUSER "ÐоÑÑебиÑелÑко име: "
IDS_ASKFORPASSWORD "ÐаÑола: "
IDS_FORCELOGOFF "Така ÑекÑÑиÑÑ Ð¿Ð¾ÑÑебиÑел Ñе
излезе и Ñе изгÑби вÑиÑки неÑÑÑ
Ñанени данни. Ðа пÑодÑлжа ли?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/cs-C…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/cs-CZ.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/cs-CZ.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -52,6 +52,18 @@
PUSHBUTTON "Storno",IDCANCEL,170,95,70,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "VÃtejte!"
@@ -60,4 +72,5 @@
IDS_ASKFORUSER "Uživatelské jméno: "
IDS_ASKFORPASSWORD "Heslo: "
IDS_FORCELOGOFF "SouÄasný uživatel bude odhlášen a vÅ¡echna jeho
neuložená data ztracena. PokraÄovat?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/de-D…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/de-DE.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -47,6 +47,18 @@
PUSHBUTTON "Abbrechen",IDCANCEL,170,95,70,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer gesperrt"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "Dieser Computer wird verwndet und ist
gesperrt.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Drücken Sie Strg+Alt+Entf um den Computer zu
entsperren.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Willkommen!"
@@ -55,4 +67,5 @@
IDS_ASKFORUSER "Benutzername: "
IDS_ASKFORPASSWORD "Passwort: "
IDS_FORCELOGOFF "Dies wird den derzeitigen Benutzer abmelden. Alle
ungespeicherten Daten gehen verloren. Fortsetzen?"
+ IDS_LOCKMMSG "Nur %s oder ein Administrator kann den Computer entsperren."
END
Modified: trunk/reactos/dll/win32/msgina/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/en-U…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/en-US.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -47,6 +47,18 @@
PUSHBUTTON "Cancel",IDCANCEL,170,95,70,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Welcome!"
@@ -55,4 +67,5 @@
IDS_ASKFORUSER "User name: "
IDS_ASKFORPASSWORD "Password: "
IDS_FORCELOGOFF "This will log out the current user and lose all unsaved data.
Continue?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/es-E…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/es-ES.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/es-ES.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -52,6 +52,18 @@
PUSHBUTTON "Cancelar",IDCANCEL, 186, 95, 70, 14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "¡Bienvenido!"
@@ -60,4 +72,5 @@
IDS_ASKFORUSER "Usuario: "
IDS_ASKFORPASSWORD "Contraseña: "
IDS_FORCELOGOFF "Esto cerrará al usuario actual y perderá todos los datos no
guardados. ¿Desea Continuar?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/fr-F…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/fr-FR.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/fr-FR.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -47,6 +47,18 @@
PUSHBUTTON "Annuler",IDCANCEL, 184, 95, 70, 14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Bienvenue!"
@@ -55,4 +67,5 @@
IDS_ASKFORUSER "Utilisateur: "
IDS_ASKFORPASSWORD "Mot de passe: "
IDS_FORCELOGOFF "Cela déconnectera l'utilisateur en cours et perdra les
données non sauvées. Continuer?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/he-IL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/he-I…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/he-IL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/he-IL.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -1,4 +1,4 @@
-LANGUAGE LANG_HEBREW, SUBLANG_DEFAULT
+LANGUAGE LANG_HEBREW, SUBLANG_DEFAULT
IDD_STATUSWINDOW_DLG DIALOGEX 0,0,275,80
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
@@ -47,6 +47,18 @@
PUSHBUTTON "×××××",IDCANCEL,170,95,70,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "×ר×××× ×××××!"
@@ -55,4 +67,5 @@
IDS_ASKFORUSER "×©× ×שת×ש: "
IDS_ASKFORPASSWORD "ס×ס××: "
IDS_FORCELOGOFF "×× ××ר×× ×××ª× ×ª×§×ת ××שת×ש ×× ××××
××××× ×ת ×× ×××××¢ ש××× × × ×©×ר. ×××ש××?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/id-ID.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/id-I…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/id-ID.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/id-ID.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -47,6 +47,18 @@
PUSHBUTTON "Batal",IDCANCEL,170,95,70,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Selamat datang!"
@@ -55,4 +67,5 @@
IDS_ASKFORUSER "Nama Pengguna: "
IDS_ASKFORPASSWORD "Kata sandi: "
IDS_FORCELOGOFF "Ini akan mengeluarkan pengguna saat ini dan kehilangan data
yang belum disimpan. Lanjutkan?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/it-I…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/it-IT.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/it-IT.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -41,6 +41,18 @@
PUSHBUTTON "Spegnimento",IDC_SHUTDOWN,179,122,50,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
IDD_LOGGEDON_DLG DIALOGEX 0,0,275,116
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP | WS_SYSMENU
CAPTION "Sicurezza"
@@ -63,4 +75,5 @@
IDS_ASKFORUSER "Nome utente: "
IDS_ASKFORPASSWORD "Password: "
IDS_FORCELOGOFF "Verrà terminata la sessione dell'utente attuale e tutti i
dati non salvati verranno persi. Volete procedere?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/ja-J…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/ja-JP.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/ja-JP.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -1,4 +1,4 @@
-LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
+LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
IDD_STATUSWINDOW_DLG DIALOGEX 0,0,275,80
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
@@ -47,6 +47,18 @@
PUSHBUTTON "ãã£ã³ã»ã«",IDCANCEL,170,95,70,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "ãããã!"
@@ -55,4 +67,5 @@
IDS_ASKFORUSER "ã¦ã¼ã¶ã¼å: "
IDS_ASKFORPASSWORD "ãã¹ã¯ã¼ã: "
IDS_FORCELOGOFF
"ç¾å¨ã®ã¦ã¼ã¶ã¼ããã°ã¢ã¦ããã¾ããä¿åããã¦ããªããã¼ã¿ã¯ãã¹ã¦å¤±ããã¾ãã
ç¶è¡ãã¾ãã?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/no-NO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/no-N…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/no-NO.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/no-NO.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -47,6 +47,18 @@
PUSHBUTTON "Avbryt",IDCANCEL, 170, 95, 70, 14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Velkommen!"
@@ -55,4 +67,5 @@
IDS_ASKFORUSER "Brukernavn: "
IDS_ASKFORPASSWORD "Passord: "
IDS_FORCELOGOFF "Dette vil logge av gjeldende bruker, alle ulagrede data vil gå
tapt. Fortsette?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/pl-P…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/pl-PL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/pl-PL.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -1,4 +1,4 @@
-/*
+/*
* translated by TestamenT
* testament(a)users.sourceforge.net
*
https://sourceforge.net/projects/reactospl
@@ -55,6 +55,18 @@
PUSHBUTTON "Anuluj",IDCANCEL,170,95,70,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Witaj!"
@@ -63,4 +75,5 @@
IDS_ASKFORUSER "Nazwa użytkownika: "
IDS_ASKFORPASSWORD "HasÅo: "
IDS_FORCELOGOFF "To wyloguje aktualnego użytkownika i straci on wszystkie
niezapisane dane. KontynuowaÄ?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/ro-RO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/ro-R…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/ro-RO.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/ro-RO.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -48,6 +48,18 @@
PUSHBUTTON "A&nuleazÄ", IDCANCEL,170,95,70,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "Bun venit!"
@@ -56,4 +68,5 @@
IDS_ASKFORUSER "Nume utilizator: "
IDS_ASKFORPASSWORD "ParolÄ: "
IDS_FORCELOGOFF "AceastÄ acÈiune va deautentifica utilizatorului
curent cu posibile pierderi ale datelor nepÄstrate. ContinuaÈi?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/ru-R…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/ru-RU.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/ru-RU.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -1,4 +1,4 @@
-//Russian language file. (Dmitry Chapyshev, 2007.06.17)
+//Russian language file. (Dmitry Chapyshev, 2007.06.17)
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
@@ -49,6 +49,18 @@
PUSHBUTTON "ÐÑмена", IDCANCEL, 198, 95, 70, 14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "ÐобÑо пожаловаÑÑ!"
@@ -57,4 +69,5 @@
IDS_ASKFORUSER "ÐÐ¼Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ: "
IDS_ASKFORPASSWORD "ÐаÑолÑ: "
IDS_FORCELOGOFF "ÐÑи ÑегиÑÑÑаÑии нового
полÑзоваÑÐµÐ»Ñ Ð²Ñе неÑоÑ
ÑаненнÑе даннÑе бÑдÑÑ ÑÑеÑÑнÑ. ÐÑодолжиÑÑ?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/sk-SK.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/sk-S…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/sk-SK.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/sk-SK.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -1,4 +1,4 @@
-/* TRANSLATOR: Mário KaÄmár /Mario Kacmar/ aka Kario (kario(a)szm.sk)
+/* TRANSLATOR: Mário KaÄmár /Mario Kacmar/ aka Kario (kario(a)szm.sk)
* DATE OF TR: 09-02-2008
*/
@@ -37,6 +37,18 @@
PUSHBUTTON "Vypnúť",IDC_SHUTDOWN,179,122,50,14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
IDD_LOGGEDON_DLG DIALOGEX 0,0,275,116
STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP | WS_SYSMENU
CAPTION "BezpeÄnosÅ¥"
@@ -59,4 +71,5 @@
IDS_ASKFORUSER "Meno použÃvateľa: "
IDS_ASKFORPASSWORD "Heslo: "
IDS_FORCELOGOFF "Toto spôsobà odhlásenie aktuálneho použÃvateľa a stratu
vÅ¡etkých neuložených údajov. Chcete pokraÄovaÅ¥?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/lang/uk-U…
==============================================================================
--- trunk/reactos/dll/win32/msgina/lang/uk-UA.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/lang/uk-UA.rc [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -1,4 +1,4 @@
-/*
+/*
* PROJECT: ReactOS Logon GINA DLL
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/win32/msgina/lang/uk-UA.rc
@@ -55,6 +55,18 @@
PUSHBUTTON "СкаÑÑваÑи",IDCANCEL, 165, 95, 86, 14
END
+IDD_LOCKED_DLG DIALOGEX 0,0,275,121
+STYLE NOT WS_VISIBLE | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_BORDER | WS_CAPTION
| WS_DLGFRAME | WS_POPUP
+CAPTION "Computer Locked"
+FONT 8,"MS Shell Dlg",400,0,1
+BEGIN
+ CONTROL IDI_ROSLOGO,IDC_ROSLOGO,"Static",SS_BITMAP,0,0,275,54
+ ICON IDI_LOCKICON,-1,7,59,20,20
+ LTEXT "This computer is in use and has been
locked.",IDC_STATIC,37,61,231,8
+ LTEXT "Message",IDC_LOCKMSG,37,75,231,26
+ LTEXT "Press Ctrl-Alt-Del to unlock this
computer.",IDC_STATIC,37,106,231,8
+END
+
STRINGTABLE
BEGIN
IDS_LOGGEDOUTSAS "ÐаÑкаво пÑоÑимо!"
@@ -63,4 +75,5 @@
IDS_ASKFORUSER "ÐоÑиÑÑÑваÑ: "
IDS_ASKFORPASSWORD "ÐаÑолÑ: "
IDS_FORCELOGOFF "Це завеÑÑиÑÑ ÑÐµÐ°Ð½Ñ Ð¿Ð¾ÑоÑного
коÑиÑÑÑваÑа Ñ Ð²ÑÑ Ð½ÐµÐ·Ð±ÐµÑÐµÐ¶ÐµÐ½Ñ Ð´Ð°Ð½Ñ Ð±ÑдÑÑÑ
загÑбленÑ. ÐÑодовжиÑи?"
+ IDS_LOCKMMSG "Only %s or an Administrator can unlock this computer."
END
Modified: trunk/reactos/dll/win32/msgina/msgina.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/msgina.c?…
==============================================================================
--- trunk/reactos/dll/win32/msgina/msgina.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/msgina.c [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -681,6 +681,22 @@
return pGinaUI->LockedSAS(pgContext);
}
+
+/*
+ * @implemented
+ */
+VOID
+WINAPI
+WlxDisplayLockedNotice(PVOID pWlxContext)
+{
+ PGINA_CONTEXT pgContext = (PGINA_CONTEXT)pWlxContext;
+
+ TRACE("WlxDisplayLockedNotice()\n");
+
+ pGinaUI->DisplayLockedNotice(pgContext);
+}
+
+
/*
* @implemented
*/
Modified: trunk/reactos/dll/win32/msgina/msgina.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/msgina.h?…
==============================================================================
--- trunk/reactos/dll/win32/msgina/msgina.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/msgina.h [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -48,6 +48,8 @@
typedef INT (*PFGINA_LOGGEDONSAS)(PGINA_CONTEXT, DWORD);
typedef INT (*PFGINA_LOGGEDOUTSAS)(PGINA_CONTEXT);
typedef INT (*PFGINA_LOCKEDSAS)(PGINA_CONTEXT);
+typedef VOID (*PFGINA_DISPLAYLOCKEDNOTICE)(PGINA_CONTEXT);
+
typedef struct _GINA_UI
{
PFGINA_INITIALIZE Initialize;
@@ -57,6 +59,7 @@
PFGINA_LOGGEDONSAS LoggedOnSAS;
PFGINA_LOGGEDOUTSAS LoggedOutSAS;
PFGINA_LOCKEDSAS LockedSAS;
+ PFGINA_DISPLAYLOCKEDNOTICE DisplayLockedNotice;
} GINA_UI, *PGINA_UI;
/* msgina.c */
Modified: trunk/reactos/dll/win32/msgina/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/resource.…
==============================================================================
--- trunk/reactos/dll/win32/msgina/resource.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/resource.h [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -15,6 +15,7 @@
#define IDC_LOCK 1006
#define IDC_ROSLOGO 1007
#define IDC_TASKMGR 1008
+#define IDC_LOCKMSG 1009
#define IDI_ROSLOGO 20000
@@ -26,5 +27,6 @@
#define IDS_ASKFORUSER 40003
#define IDS_ASKFORPASSWORD 40004
#define IDS_FORCELOGOFF 40005
+#define IDS_LOCKMSG 40006
/* EOF */
Modified: trunk/reactos/dll/win32/msgina/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/stubs.c?r…
==============================================================================
--- trunk/reactos/dll/win32/msgina/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/stubs.c [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -37,19 +37,6 @@
*/
UNIMPLEMENTED;
return FALSE;
-}
-
-
-/*
- * @unimplemented
- */
-VOID WINAPI
-WlxDisplayLockedNotice(
- PVOID pWlxContext)
-{
- UNREFERENCED_PARAMETER(pWlxContext);
-
- UNIMPLEMENTED;
}
Modified: trunk/reactos/dll/win32/msgina/tui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/tui.c?rev…
==============================================================================
--- trunk/reactos/dll/win32/msgina/tui.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/tui.c [iso-8859-1] Wed Feb 13 23:24:15 2013
@@ -247,6 +247,12 @@
return WLX_SAS_ACTION_UNLOCK_WKSTA;
}
+static VOID
+TUIDisplayLockedNotice(
+ IN OUT PGINA_CONTEXT pgContext)
+{
+}
+
GINA_UI GinaTextUI = {
TUIInitialize,
TUIDisplayStatusMessage,
@@ -255,4 +261,5 @@
TUILoggedOnSAS,
TUILoggedOutSAS,
TUILockedSAS,
+ TUIDisplayLockedNotice,
};