🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Rebooting the Machine, part 2

#15098
From: James A Beggs
Date: Tue, 15 Jul 2003 21:18
41 lines
2511 bytes
correction, now it does.

How odd. Unless I misspelled it? I'm generally very careful about checking
spelling when an error like that comes along. Ah well.

"James A Beggs" <jbeggs@aqha.org> wrote in message
news:3f146b56$1@newsgroups.borland.com...
> I tried EWX_FORCEIFHUNG , it didnt recongize it....
>
> Oh, and see my next post, labeled EGADS!!!!
>
> "Bob Gonder" <notbg@notmindspring.invalid> wrote in message
> news:uib8hvshroevuvo372amlsdfcrg1hkhprb@4ax.com...
> > "James A Beggs" <jbeggs@aqha.org> wrote:
> >
> > >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
> >
> > See Hugo's reply.
> >
> > >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?
> >
> > Well, yeah,  reboot(2) & force(4) == logoff(0)
> >
> > The docs also say EWX_FORCE is a nasty thing to do.
> > The header shows an EWX_FORCEIFHUNG that sounds nicer.
> >
> >
>
>
Technical Details
Message-ID: <3f146e0f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f142280$1@newsgroups.borland.com> <uib8hvshroevuvo372amlsdfcrg1hkhprb@4ax.com> <3f146b56$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,27d0bd8ec98fa3f5
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-15 14:26:12 PST
From: "James A Beggs" <jbeggs@aqha.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f142280$1@newsgroups.borland.com> <uib8hvshroevuvo372amlsdfcrg1hkhprb@4ax.com> <3f146b56$1@newsgroups.borland.com>
Subject: Re: Rebooting the Machine, part 2
Date: Tue, 15 Jul 2003 16:18:28 -0500
Lines: 43
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: <3f146e0f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058303503 12.19.120.242 (15 Jul 2003 14:11:43 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail