This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: /bin/shutdown on ME
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin at cygwin dot com
- Date: Thu, 14 Nov 2002 12:39:09 -0500 (EST)
- Subject: Re: /bin/shutdown on ME
- Reply-to: cygwin at cygwin dot com
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@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.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/