Article View: borland.public.cppbuilder.nativeapi
Article #15286Rebooting the Machine, part 2
From: James A Beggs
Date: Tue, 15 Jul 2003 15:56
Date: Tue, 15 Jul 2003 15:56
22 lines
1625 bytes
1625 bytes
I'm trying to reboot the machine, where it powers down and back up,
completely from scratch.
I've been using ExitWindowsEx(EWX_REBOOT | EXWFORCE, 0);
However, I noticed that, at least on my laptop, this did nothing. So, I
rewrote it as:
if (!ExitWindowsEx(EWX_REBOOT | EXWFORCE, 0))
ExitWindowsEx(EWX_REBOOT & EWXFORCE, 0);
The & worked, sort of, on my laptop. It logged me out of windows. And
exiting windows is fine, I guess, but I actually need a full reboot. How
would I do that instead?
Thanks!
--
James A Beggs
Manager of Product Development
American Quarter Horse Association
Technical Details
Message-ID:
<3f142280$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,27d0bd8ec98fa3f5,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-15 09:12:12 PST From: "James A Beggs" <jbeggs@aqha.org> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Rebooting the Machine, part 2 Date: Tue, 15 Jul 2003 10:56:08 -0500 Lines: 24 Organization: American Quarter Horse Association X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 12.19.120.242 Message-ID: <3f142280$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058284160 12.19.120.242 (15 Jul 2003 08:49:20 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail