From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,53d6d1308be499e1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-22 12:00:59 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!77144-cm.able.ES!not-for-mail From: Jano Newsgroups: comp.lang.ada Subject: Re: Gracefully detecting program termination. Date: Wed, 22 Oct 2003 21:00:44 +0200 Message-ID: References: NNTP-Posting-Host: 77144-cm.able.es (212.97.177.144) X-Trace: news.uni-berlin.de 1066849258 30827672 212.97.177.144 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:1454 Date: 2003-10-22T21:00:44+02:00 List-Id: Dmitry Shykhman dice... > Try to check WM_QUERYENDSESSION message That's OK for windows appz... anyways, I've found my way using SetConsoleCtrlHandler. Thanks!