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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 14 Nov 2002 12:39:09 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: /bin/shutdown on ME In-Reply-To: <20021114180500.K10395@cygbert.vinschen.de> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 14 Nov 2002, Corinna Vinschen wrote: > On Thu, Nov 14, 2002 at 08:07:04AM -0500, CBFalconer wrote: > > Under W98/4dos I do a command line shutdown using the alias: > > > > c:\windows\rundll.exe user.exe,exitwindows > > Do you suggest exec'ing the above from shutdown? Isn't there any > reliable function call? ExitWindowsEx() isn't very helpful, > unfortunately. > > Corinna Corinna, The above is equivalent to calling ExitWindows from the application. ExitWindows will simply log off the current user. You still need ExitWindowsEx to shutdown. Quoting from the ExitWindowsEx page on MSDN: Windows 95/98/Me: ExitWindowEx does not work from a console application. (the typo is theirs) One solution I tried, consequently, is making shutdown into a window (WinMain) application, using the run program as a template. No luck so far. I can post the code I currently have, in case others have further insights. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51 -- 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/