This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Rebooting a windows 2000 box
On Thu, Aug 09, 2001 at 05:56:00PM +0200, Norbert Fischer wrote:
> Corinna Vinschen wrote:
>
> > No. Try this:
>
> Hmm, it seems to work, but I can not really test it. If I call it "reboot.exe"
> it doesn't reboot. If I call it "shutdown.exe" it doesn't shutdown.
> If I use the flags ("reboot -r now") I get a pop-up-window "Diese Anwendung
> muss vor Windows beendet werden. Klicken Sie auf OK um zuerst die Anwendung
> und dann Windows zu beenden oder auf Abbrechen um weder die Anwendung
> noch Windows zu beenden". It doesn't matter whether I click at cancel
> or OK, in both cases I get back to Cygwin.
*#@^%Windows98$%##&@!+
Try using the FORCE flag. Change
/* EWX_FORCE doesn't work correctly on 9x/ME. */
if (GetVersion () < 0x80000000L)
force = EWX_FORCE;
to
force = EWX_FORCE;
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/