[EXPLORER]: Activate Logoff command. Patch by Lee Schroeder plus extra modifs.

CORE-9104 #resolve

svn path=/trunk/; revision=66373
This commit is contained in:
Hermès Bélusca-Maïto 2015-02-20 20:08:52 +00:00
parent f9b5ca3c79
commit e154160e2f
4 changed files with 10 additions and 6 deletions

View file

@ -2622,8 +2622,8 @@ HandleTrayContextMenu:
LRESULT OnDoExitWindows(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
/*
* TWM_DOEXITWINDOWS is send by the CDesktopBrowserr to us to
* show the shutdown dialog
* TWM_DOEXITWINDOWS is send by the CDesktopBrowser to us
* to show the shutdown dialog.
*/
return DoExitWindows();
}
@ -2717,7 +2717,6 @@ HandleTrayContextMenu:
{
switch (LOWORD(wParam))
{
/* FIXME: Handle these commands as well */
case IDM_TASKBARANDSTARTMENU:
DisplayProperties();
break;
@ -2734,13 +2733,16 @@ HandleTrayContextMenu:
DisplayRunFileDlg();
break;
/* FIXME: Handle these commands as well */
/* FIXME: Handle these commands as well */
case IDM_SYNCHRONIZE:
case IDM_LOGOFF:
case IDM_DISCONNECT:
case IDM_UNDOCKCOMPUTER:
break;
case IDM_LOGOFF:
LogoffWindowsDialog(m_hWnd); // FIXME: Maybe handle it in a similar way as DoExitWindows?
break;
case IDM_SHUTDOWN:
DoExitWindows();
break;

View file

@ -1841,6 +1841,7 @@ HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\Classi
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}",,0x00000012
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced","ListviewShadow",0x00010001,0x00000001
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced","HideFileExt",0x00010001,0x00000000
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced","StartMenuLogoff",0x00010001,0x00000001
; default shell
HKCU,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon",,0x00000012

View file

@ -112,7 +112,7 @@ HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls",,0x00000012
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions",,0x00000012
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\ShellServiceObjectDelayLoad",,0x00000012
; FIXME - usetup doesn't handle extra paths
; FIXME - Setup doesn't handle extra paths
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","",0x00000000,"cmd /c md ""%programfiles%\Internet Explorer\"" && move %windir%\iexplore.exe ""%programfiles%\Internet Explorer\"" && ""%programfiles%\Internet Explorer\iexplore.exe"" /RegServer"
; Create .NET Framework InstallRoot key, reg_sz & full path
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","InstallRoot.NET",0x00000000,"cmd /c reg add HKLM\SOFTWARE\Microsoft\.NETFramework /v InstallRoot /t REG_SZ /d %SystemRoot%\Microsoft.NET\Framework\"

View file

@ -123,6 +123,7 @@ void WINAPI RunFileDlg(
LPCWSTR lpstrDescription,
UINT uFlags);
int WINAPI LogoffWindowsDialog(HWND hwndOwner);
void WINAPI ExitWindowsDialog(HWND hwndOwner);
BOOL WINAPI SHFindComputer(