🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ExitWindowsEx

#14808
From: micheal davis
Date: Wed, 30 Jul 2003 14:57
11 lines
1201 bytes
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: <3f27dcf4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!logbridge.uoregon.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,aab6793df64212ca,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-30 08:05:08 PST
From: "micheal davis" <micheal_davis@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: ExitWindowsEx
Date: Wed, 30 Jul 2003 06:57:55 -0800
Lines: 13
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: 213.158.160.99
Message-ID: <3f27dcf4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059577076 213.158.160.99 (30 Jul 2003 07:57:56 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!logbridge.uoregon.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail