[WINLOGON] Usability enhancement for the RPC SystemShutdown functionality.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 28 Apr 2018 16:14:53 +0000 (18:14 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 28 Apr 2018 23:02:05 +0000 (01:02 +0200)
commitcb20bf8c903f42b64bb397477b857b5cf4e4eb71
treec40e87e806df87599ed46bb358dd8de6fabe0e9e
parent03c233bcd09bb378f9561968b9cbf4f45d140f09
[WINLOGON] Usability enhancement for the RPC SystemShutdown functionality.

- Perform an immediate system shutdown if the timeout is zero, otherwise
  display the countdown shutdown dialog.
- Cleanup pShutdownParams->pszMessage as soon as the dialog goes away.
- It actually appears (tested on Windows 2000 and 2003) that sending
  WM_CLOSE messages from a user-mode app to the shutdown dialog really
  do nothing (and in particular does not cancel the shutdown!), so modify
  the code to take this fact into account.
base/system/winlogon/shutdown.c