Article View: borland.public.cppbuilder.nativeapi
Article #14810Re: ExitWindowsEx
From: Rodolfo Frino
Date: Wed, 30 Jul 2003 15:14
Date: Wed, 30 Jul 2003 15:14
23 lines
1447 bytes
1447 bytes
To shut down or restart XP you must use AdjustTokenPrivileges() (SE_SHUTDOWN_NAME privilege) Rodolfo "micheal davis" <micheal_davis@hotmail.com> wrote in message news:3f27dcf4@newsgroups.borland.com... > 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 > >
Technical Details
Message-ID:
<3f27e0a7@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!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!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:24:43 PST From: "Rodolfo Frino" <rodolfofrino@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f27dcf4@newsgroups.borland.com> Subject: Re: ExitWindowsEx Date: Thu, 31 Jul 2003 01:14:12 +1000 Lines: 25 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: 203.206.30.234 Message-ID: <3f27e0a7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059578023 203.206.30.234 (30 Jul 2003 08:13:43 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail