🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15642

Re: WM_ENDSESSION + Win2k/WinXP

#15642
From: Frank Gruber
Date: Thu, 19 Jun 2003 13:48
13 lines
1754 bytes
> > The best thing is to close the application by posting WM_CLOSE to main
> > form when you receive WM_QUERYENDSESSION and not wait until
> > system kills your application.

We tried this solution but it does not work as desired. Maybe we did
something wrong or misunderstood how it should work. In this case the
app is also killed before it is able to leave the message loop and
cleanly close anything. We also tried to post WM_QUIT from within
WM_QUERYENDSESSION but with the same result.

Thank's again for your suggestions.
Kind regards,
Frank.
Technical Details
Message-ID: <3ef1bf39@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!newsfeed.news2me.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ef08c31$1@newsgroups.borland.com> <3ef09b02$1@newsgroups.borland.com> <3ef0a332@newsgroups.borland.com> <3ef0c5ce@newsgroups.borland.com> <3ef1a66e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9e00bf1ef85252e4
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-19 06:55:22 PST
From: "Frank Gruber" <HVFDMIPUMFPS@spammotel.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ef08c31$1@newsgroups.borland.com> <3ef09b02$1@newsgroups.borland.com> <3ef0a332@newsgroups.borland.com> <3ef0c5ce@newsgroups.borland.com> <3ef1a66e@newsgroups.borland.com>
Subject: Re: WM_ENDSESSION + Win2k/WinXP
Date: Thu, 19 Jun 2003 15:48:49 +0200
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 217.231.158.134
Message-ID: <3ef1bf39@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1056030521 217.231.158.134 (19 Jun 2003 06:48:41 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!newsfeed.news2me.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail