Article View: borland.public.cppbuilder.nativeapi
Article #10567Re: finding out system shutdown?
From: Arnie Mauer
Date: Mon, 05 Apr 2004 15:22
Date: Mon, 05 Apr 2004 15:22
14 lines
1404 bytes
1404 bytes
"dumboo" <vthe2@yahoo.com> wrote in message news:c4rso6$2m1tam$1@ID-211285.news.uni-berlin.de... > hi there > is it possible to find out whether system is abt to shut down or not ? > maybe i have to write a service application... > > any suggestion ? > See the Win32 API SetConsoleCtrlHandler(). This works for console programs. For Windowed programs, there is a WM_? message sent - forget what it is off hand. - Arnie
Technical Details
Message-ID:
<40717966$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!transit.news.xs4all.nl!newsfeed.wirehub.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<c4rso6$2m1tam$1@ID-211285.news.uni-berlin.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,224da17fcdfc2919 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-05 08:40:12 PST From: "Arnie Mauer" <xxx@nowhere.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <c4rso6$2m1tam$1@ID-211285.news.uni-berlin.de> Subject: Re: finding out system shutdown? Date: Mon, 5 Apr 2004 11:22:22 -0400 Lines: 16 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: 209.140.211.97 Message-ID: <40717966$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1081178470 209.140.211.97 (5 Apr 2004 08:21:10 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!transit.news.xs4all.nl!newsfeed.wirehub.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail