🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Begore Shutting Down the PC

#6696
From: Michel Corbin
Date: Thu, 14 Apr 2005 19:05
23 lines
1845 bytes
Give a look at
WM_QUERYENDSESSION
and
WM_ENDSESSION
Hope it can help
Michel

Grety wrote:
> Hi I guess this question is a little complicated :">
> Imagin that there is a Software named HideApp.exe
> This software is Hide and users couldn't see it, may be they can see it in
> Taskmanager.
> This HideApp.exe has a duty to change Windows Wallpaper.
> Now, the Problem is when Users wants to shut the computer Down,
> They faced a problem that Windows doesn't let them to shut the PC down (OFF)
> because there is a software running hide !
> Please tell me if there is a way to close the software before shutiing down
> Maybe we can use a event in HideApp.exe determining shut down message and
> HideApp can close itself, I dont know.
> Before any help I approciate all friends reading my problem.
> Thx
> 
> 
Technical Details
Message-ID: <425ebef8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <425ebafb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,92564fdeda5ee096
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 14 Apr 2005 21:05:20 +0200
From: "Michel Corbin" <"Michel Corbin">
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: fr-fr, fr, en, en-us, es, it, p
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Begore Shutting Down the PC
References: <425ebafb@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.4.118.61
Message-ID: <425ebef8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1113505528 84.4.118.61 (14 Apr 2005 12:05:28 -0800)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail