mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[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:
parent
828d5fa93e
commit
c0d2cd508f
2 changed files with 12 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
6 stub -noname ShellEnableFriendlyUI ; (long)
|
||||
7 stub -noname ShellEnableMultipleUsers ; (long)
|
||||
8 stub -noname ShellEnableRemoteConnections ; (long)
|
||||
9 stub -noname ShellTurnOffDialog ; (long)
|
||||
9 stdcall -noname ShellTurnOffDialog(ptr)
|
||||
10 stub -noname ShellIsMultipleUsersEnabled ; ()
|
||||
11 stub -noname ShellACPIPowerButtonPressed ; (long long long)
|
||||
12 stub -noname ShellIsSingleUserNoPassword ; (wstr wstr)
|
||||
|
|
|
@ -825,3 +825,14 @@ ShellShutdownDialog(
|
|||
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue