Article View: borland.public.cppbuilder.nativeapi
Article #14811Re: ExitWindowsEx
From: Vladimir Afanasyev
Date: Wed, 30 Jul 2003 15:31
Date: Wed, 30 Jul 2003 15:31
21 lines
1426 bytes
1426 bytes
Hi, "micheal davis" <micheal_davis@hotmail.com> wrote: >hi all, > >I am trying to shut down windows XP home edition using the following line of >code > >ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, 0); > >but unfortunately it is not working can some one tell me please what I am >doing wrong... > >thanks > Yes, really SE_SHUTDOWN_NAME privilege needed. See sample of code here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/shutting_down.asp Vladimir.
Technical Details
Message-ID:
<3f27e4d5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f27dcf4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,aab6793df64212ca X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-30 08:38:52 PST From: "Vladimir Afanasyev" <avv@systema.kiev.ua> Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua> Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua> Subject: Re: ExitWindowsEx Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 212.82.216.226 212.82.216.226 X-Forwarded-For: 192.168.0.147 References: <3f27dcf4@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3f27e4d5$1@newsgroups.borland.com> Date: 30 Jul 2003 08:31:33 -0700 X-Trace: newsgroups.borland.com 1059579093 207.105.83.65 (30 Jul 2003 08:31:33 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail