Re: Can I delay windows automatically shuting down my app?
- From: " Frank" <frank@xxxxxxxxxx>
- Date: Wed, 17 Jan 2007 11:46:48 -0500
"Ben Voigt" <rbv@xxxxxxxxxxxxx> wrote in message
news:eZ7YbykOHHA.4724@xxxxxxxxxxxxxxxxxxxxxxx
One solution is to respond immediately to the WM_QUERYENDSESSION by
returning FALSE (abort shutdown), and then initiate the same kind of
shutdown that had already been initiated once the user has responded to
your message (actually, I'm not sure whether you can work out whether it
was a restart or a plain shutdown).
Users *hate* that behavior, they expect that if they click logout and walk
away, the computer will be logged off when they come back.
I hadn't thought about that.
I'll look at the sites.
thanks
Find some reasonable default behavior, like saving all open files with an
alternate name (append .autosave or .leftopen to the filename). Then, if
the user hasn't responded to your prompt by the timeout, execute the
default behavior and quit.
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/34637.mspx?mfr=true
Note that if AutoEndTasks is set you need to give up on waiting for the
user with time to spare for your own processing or I/O, otherwise your app
will be rudely terminated.
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/34637.mspx?mfr=true
I don't know of a way to change the OS delay you mention - there may be a
registry key somewhere for it.
Tom
.
- References:
- Can I delay windows automatically shuting down my app?
- From: Frank
- Re: Can I delay windows automatically shuting down my app?
- From: Tom Widmer [VC++ MVP]
- Re: Can I delay windows automatically shuting down my app?
- From: Ben Voigt
- Can I delay windows automatically shuting down my app?
- Prev by Date: Re: Can I delay windows automatically shuting down my app?
- Next by Date: Re: Display a time span in days
- Previous by thread: Re: Can I delay windows automatically shuting down my app?
- Next by thread: Re: Can I delay windows automatically shuting down my app?
- Index(es):
Relevant Pages
|