🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WM_ENDSESSION + Win2k/WinXP

#15759
From: Remy Lebeau (TeamB)
Date: Wed, 18 Jun 2003 17:05
20 lines
1876 bytes
"Frank Gruber" <HVFDMIPUMFPS@spammotel.com> wrote in message
news:3ef08c31$1@newsgroups.borland.com...

> When I receive the WM_ENDSESSION message I
> make all the cleanup necessary before returning from
> this message, but under Win2K/WinXP this cleanup
> process does not come to the point where to return
> from the procedure but it is interrupted in between by
> Windows. This is not a problem under Win9x/WinME.

If I remember correctly, I think 2K/XP has a timeout period for that
message.  If you do not return control back to the OS in a timely fashion,
the OS moves on anyway and assumes your application stopped responding.  Try
utilizing the WM_QUERYENDSESSION message as well, do some of your cleanup
work there as well, so that WM_ENDSESSION has less work to do and can return
back to the OS faster.


Gambit
Technical Details
Message-ID: <3ef09b02$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ef08c31$1@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-18 10:08:10 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ef08c31$1@newsgroups.borland.com>
Subject: Re: WM_ENDSESSION + Win2k/WinXP
Date: Wed, 18 Jun 2003 10:05:48 -0700
Lines: 22
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: 207.175.226.26
Message-ID: <3ef09b02$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1055955714 207.175.226.26 (18 Jun 2003 10:01:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail