Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 13 Sep 2003 11:13:29 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: shutdown-1.3-1 patch for Win9x Message-ID: <20030913091329.GP9981@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Sat, Sep 13, 2003 at 05:30:55AM +0000, Mark Ord wrote: > Although shutdown.exe works fine on NT (XP at least), it's not possible to > shutdown a system to a power off state with shutdown.exe on Win9x > (Win98SE tested). > > It's been my experience (on Win98SE anyway) that it's directly related > to the ShutdownEx() API. Despite what the API docs say, EWX_POWEROFF > actually performs a log off, while EWX_SHUTDOWN performs a power off > shutdown, on Win9x. This behavour seems to hold true even in a non > cygwin application. > > The following patch to shutdown-1.3-1 makes 'shutdown -s' work as > expected (power off, instead of log off) on Win9x, tested on Win98SE. Thanks for the patch. I've included it slightly different formatted. I've uploaded a new version 1.4-1 with this patch to cygwin.com. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/