Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Oct : ExitWindowsEx - EWX_SHUTDOWN then later with EWX_FORCE
| Subject: | ExitWindowsEx - EWX_SHUTDOWN then later with EWX_FORCE |
| Posted by: | "Andrew Jameson" (softspotsoftwareno@spamgmail.com) |
| Date: | Sat, 14 Oct 2006 12:06:33 |
I'd like to implement the following :
1. Initiate a system shutdown at a given time using EWX_SHUTDOWN
2. If say an hour later the system has failed to shutdown then try again
using EWX_FORCE
I need to close the system down in as friendly manner as possible - so prior
to step one, I'd propose to launch a warning dialog. Then do the shutdown
but protect unsaved data in other applications for users who may be away
from their stations at that time of shutdown. Finally force a shutdown.
The shutdown process is fairly easy. But how to stop my application closing
until all other applications been asked to close and then confirm that all
applications have closed ?
Thanks for any ideas / suggestions,
Andrew