Article View: borland.public.cppbuilder.nativeapi
Article #2379Re: My app closes, but cancels Windows shutdown?
From: Dennis Jones
Date: Thu, 08 Mar 2007 22:42
Date: Thu, 08 Mar 2007 22:42
19 lines
1826 bytes
1826 bytes
"Dennis Jones" <nospam@nospam.com> wrote in message news:45f08f8f$1@newsgroups.borland.com... > >>> According to the documentation, the return value for WM_ENDSESSION is >>> 0, not 1. >>> >> It doesn't appear to work that way. You may not have seen my addendum >> when you posted this response, but take a look at it. > > I think you are right (I believe Remy is mistaken here). One of my > applications processes the WM_QUERYENDSESSION and WM_ENDSESSION messages, > and I do it this way (and it works perfectly): Apologies to Remy...he was referring to the return value for WM_ENDSESSION (I was thinking about WM_QUERYENDSESSION). Upon processing WM_ENDSESSION, the app should set the Result field to 0. - Dennis
Technical Details
Message-ID:
<45f09145$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<Xns98ED90968E734anonymoushotmailcom@207.105.83.66> <45f07307@newsgroups.borland.com> <Xns98ED988E421A8anonymoushotmailcom@207.105.83.66> <45f08f8f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,346f60f70c29a156 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <Xns98ED90968E734anonymoushotmailcom@207.105.83.66> <45f07307@newsgroups.borland.com> <Xns98ED988E421A8anonymoushotmailcom@207.105.83.66> <45f08f8f$1@newsgroups.borland.com> Subject: Re: My app closes, but cancels Windows shutdown? Date: Thu, 8 Mar 2007 14:42:45 -0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 71.245.109.58 Message-ID: <45f09145$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1173393733 71.245.109.58 (8 Mar 2007 14:42:13 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail