Shutdown dialog: Display the current users name in the "log off" list entry.

svn path=/trunk/; revision=62297
This commit is contained in:
Eric Kohl 2014-02-23 09:32:44 +00:00
parent 9347a16a57
commit 11e1167b0c
19 changed files with 39 additions and 38 deletions

View file

@ -641,6 +641,7 @@ ShutDownOnInit(
IN PGINA_CONTEXT pgContext)
{
WCHAR szBuffer[256];
WCHAR szBuffer2[256];
HWND hwndList;
INT idx, count, i;
@ -651,7 +652,8 @@ ShutDownOnInit(
/* Log off */
LoadStringW(hDllInstance, IDS_SHUTDOWN_LOGOFF, szBuffer, sizeof(szBuffer) / sizeof(WCHAR));
idx = SendMessageW(hwndList, CB_ADDSTRING, 0, (LPARAM)szBuffer);
wsprintfW(szBuffer2, szBuffer, pgContext->UserName);
idx = SendMessageW(hwndList, CB_ADDSTRING, 0, (LPARAM)szBuffer2);
if (idx != CB_ERR)
SendMessageW(hwndList, CB_SETITEMDATA, idx, WLX_SAS_ACTION_LOGOFF);

View file

@ -150,14 +150,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -155,14 +155,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -150,14 +150,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -150,15 +150,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -152,14 +152,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -150,14 +150,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -150,14 +150,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -149,14 +149,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -158,14 +158,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -150,14 +150,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -150,14 +150,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -159,14 +159,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -152,14 +152,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -152,14 +152,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -155,14 +155,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -150,14 +150,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -152,14 +152,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."

View file

@ -158,14 +158,14 @@ END
/* Shutdown Dialog Strings */
STRINGTABLE
BEGIN
IDS_SHUTDOWN_LOGOFF "Log off ""%s"""
IDS_SHUTDOWN_SHUTDOWN "Shut down"
IDS_SHUTDOWN_LOGOFF "Log off"
IDS_SHUTDOWN_RESTART "Restart"
IDS_SHUTDOWN_SLEEP "Sleep"
IDS_SHUTDOWN_HIBERNATE "Hibernate"
/* Shut down descriptions */
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_LOGOFF_DESC "Ends your current session and allows other users to log on to the system."
IDS_SHUTDOWN_SHUTDOWN_DESC "Ends your current session and shuts down the system so you can safely shut down the power."
IDS_SHUTDOWN_RESTART_DESC "Ends your current session and reboots the system."
IDS_SHUTDOWN_SLEEP_DESC "Puts the system in sleep mode."
IDS_SHUTDOWN_HIBERNATE_DESC "Saves the current session and shuts down the computer."