Article View: borland.public.cppbuilder.nativeapi
Article #4609Re: Windows Shutdown Replacement
From: Tom
Date: Mon, 26 Dec 2005 11:54
Date: Mon, 26 Dec 2005 11:54
25 lines
2057 bytes
2057 bytes
Too bad, thanx anyway. I thought it's possible to replace the standard shutdown dialog with three options Stand By, Shutdown and Restart with my application. Something like Task Switch, which replaces the standard Alt+Tab dialog. Remy Lebeau (TeamB) wrote: > "Tom" <tom@net.com> wrote in message news:43ad3757@newsgroups.borland.com... > > >>Is it possible to run the application which I made when user >>cliks on Start->Turn Off Computer instead of windows shutdown? > > > No. That operation is built into the OS. It is not a program that you can > replace. What you can do is have your program already running before the > shutdown occurs, and then respond to the shutdown request by intercepting > the WM_QUERYENDSESSION and/or WM_ENDSESSION message. Or else have your > program initiate the shutdown in the first place instead of the user > clicking on the start menu at all. > > > Gambit > >
Technical Details
Message-ID:
<43afd98b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.freenet.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43ad3757@newsgroups.borland.com> <43ae6026@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2724a76b8d806cf8 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 26 Dec 2005 12:54:44 +0100 From: Tom <tom@net.com> Reply-To: tom@net.com User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Windows Shutdown Replacement References: <43ad3757@newsgroups.borland.com> <43ae6026@newsgroups.borland.com> In-Reply-To: <43ae6026@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.202.87.144 Message-ID: <43afd98b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135597963 213.202.87.144 (26 Dec 2005 03:52:43 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.freenet.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail