Shutdown dialog: Display the current users name in the "log off" list entry.
svn path=/trunk/; revision=62297
IN PGINA_CONTEXT pgContext)
{
WCHAR szBuffer[256];
+ WCHAR szBuffer2[256];
HWND hwndList;
INT idx, count, i;
/* 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);
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."
/* 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."