[MSGINA] Implement ShellTurnOffDialog (#3254)

Based on the following prototype: http://diendan.congdongcviet.com/threads/t13622::tim-handle-cua-cua-so-tat-may-tren-windows-nhu-the-nao.cpp?p=69284#post69284 (line 32) and return ShellShutdownDialog from it with all required parameters.
It allows to open the shutdown dialog properly from the Start menu with shell32.dll from Windows Server 2003 SP2 (when installing ReactOS as Workstation).

CORE-17313
This commit is contained in:
Oleg Dubinskiy 2020-11-28 16:22:46 +02:00 committed by GitHub
parent 828d5fa93e
commit c0d2cd508f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -6,7 +6,7 @@
6 stub -noname ShellEnableFriendlyUI ; (long) 6 stub -noname ShellEnableFriendlyUI ; (long)
7 stub -noname ShellEnableMultipleUsers ; (long) 7 stub -noname ShellEnableMultipleUsers ; (long)
8 stub -noname ShellEnableRemoteConnections ; (long) 8 stub -noname ShellEnableRemoteConnections ; (long)
9 stub -noname ShellTurnOffDialog ; (long) 9 stdcall -noname ShellTurnOffDialog(ptr)
10 stub -noname ShellIsMultipleUsersEnabled ; () 10 stub -noname ShellIsMultipleUsersEnabled ; ()
11 stub -noname ShellACPIPowerButtonPressed ; (long long long) 11 stub -noname ShellACPIPowerButtonPressed ; (long long long)
12 stub -noname ShellIsSingleUserNoPassword ; (wstr wstr) 12 stub -noname ShellIsSingleUserNoPassword ; (wstr wstr)

View file

@ -825,3 +825,14 @@ ShellShutdownDialog(
return 0; return 0;
} }
/*
* NOTES:
* - Undocumented, called from MS shell32.dll to show the turn off dialog.
* - Seems to have the same purpose as ShellShutdownDialog.
*/
DWORD WINAPI
ShellTurnOffDialog(HWND hWnd)
{
return ShellShutdownDialog(hWnd, NULL, FALSE);
}