Article View: borland.public.cppbuilder.nativeapi
Article #4605Re: Windows Shutdown Replacement
From: Remy Lebeau (TeamB)
Date: Sun, 25 Dec 2005 08:57
Date: Sun, 25 Dec 2005 08:57
15 lines
1530 bytes
1530 bytes
"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:
<43ae6026@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.gamma.ru!Gamma.RU!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43ad3757@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 From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43ad3757@newsgroups.borland.com> Subject: Re: Windows Shutdown Replacement Date: Sun, 25 Dec 2005 00:57:20 -0800 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43ae6026@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135501350 68.69.17.41 (25 Dec 2005 01:02:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.gamma.ru!Gamma.RU!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail