🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14812

Re: ExitWindowsEx

#14812
From: micheal davis
Date: Wed, 30 Jul 2003 15:39
31 lines
1689 bytes
thanks Vladimir...

regards

"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message
news:3f27e4d5$1@newsgroups.borland.com...
>
> 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: <3f27e6a8@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!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f27dcf4@newsgroups.borland.com> <3f27e4d5$1@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:40:47 PST
From: "micheal davis" <micheal_davis@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <3f27dcf4@newsgroups.borland.com> <3f27e4d5$1@newsgroups.borland.com>
Subject: Re: ExitWindowsEx
Date: Wed, 30 Jul 2003 07:39:20 -0800
Lines: 33
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: 62.135.27.8
Message-ID: <3f27e6a8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059579560 62.135.27.8 (30 Jul 2003 08:39:20 -0700)
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!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail