🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Rebooting the Machine, part 2

#15097
From: James A Beggs
Date: Tue, 15 Jul 2003 21:06
31 lines
2051 bytes
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: <3f146b56$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f142280$1@newsgroups.borland.com> <uib8hvshroevuvo372amlsdfcrg1hkhprb@4ax.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:12:38 PST
From: "James A Beggs" <jbeggs@aqha.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f142280$1@newsgroups.borland.com> <uib8hvshroevuvo372amlsdfcrg1hkhprb@4ax.com>
Subject: Re: Rebooting the Machine, part 2
Date: Tue, 15 Jul 2003 16:06:51 -0500
Lines: 33
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: <3f146b56$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058302806 12.19.120.242 (15 Jul 2003 14:00:06 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail