/bin/shutdown on ME

Igor Pechtchanski pechtcha@cs.nyu.edu
Thu Nov 14 09:49:00 GMT 2002


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/



More information about the Cygwin mailing list