🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Detecting windows shudtown.

#5796
From: qyte
Date: Sat, 02 Jul 2005 01:28
19 lines
1483 bytes
Remy Lebeau (TeamB) wrote:
> "qyte" <gyte@vivodinet.gr> wrote in message
> news:42c4f6c9$1@newsgroups.borland.com...
> 
> 
>>Is there a way to detect in the OnClose event of
>>the form that the system is shutting down?
> 
> 
> No.  To do that, you need to intercept the WM_QUERYENDSESSION message
> directly.
> 
> 
> Gambit
> 
> 

I have intercepted it using the WndProc of the main form
but nothing happens. is there something wrong with that?
Technical Details
Message-ID: <42c5edce$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42c4f6c9$1@newsgroups.borland.com> <42c50d9b$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6f249ce41ad1dc44
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 02 Jul 2005 04:28:46 +0300
From: qyte <gyte@vivodinet.gr>
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: Detecting windows shudtown.
References: <42c4f6c9$1@newsgroups.borland.com> <42c50d9b$2@newsgroups.borland.com>
In-Reply-To: <42c50d9b$2@newsgroups.borland.com>
Content-Type: text/plain; charset=windows-1253; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 83.171.210.195
Message-ID: <42c5edce$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1120267726 83.171.210.195 (1 Jul 2005 18:28:46 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail