Article View: borland.public.cppbuilder.nativeapi
Article #14158Re: AutoshutDown Windows XP
From: Remy Lebeau (TeamB)
Date: Tue, 02 Sep 2003 16:43
Date: Tue, 02 Sep 2003 16:43
18 lines
1471 bytes
1471 bytes
"Marco" <mlazzaro@hotmail.net> wrote in message news:3f54b78e$1@newsgroups.borland.com... > how can i shutdown my pc (windows XP) when i close my application? Look at ExitWindowsEx(). You need to make sure that your application has SE_SHUTDOWN_NAME rights enabled first. Look at AdjustTokenPrivileges() for that. Gambit --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
Technical Details
Message-ID:
<3f54c8a5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f54b78e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,678f848dea53a998 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-02 09:56:31 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f54b78e$1@newsgroups.borland.com> Subject: Re: AutoshutDown Windows XP Date: Tue, 2 Sep 2003 09:43:29 -0700 Lines: 20 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.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f54c8a5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062520997 207.175.226.26 (2 Sep 2003 09:43:17 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail