delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/26/03:12:50

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Linking in InitiateSystemShutdown()...
26 Jan 1997 03:12:50 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <01BC0B86.58E9ECE0.cygnus.gnu-win32@sos>
Original-To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT COM>,
"'rgordon AT vnet DOT net'"
<rgordon AT vnet DOT net>
Encoding: 12 TEXT
Original-Sender: owner-gnu-win32 AT cygnus DOT COM

Ryan C. Gordon wrote:
> However, this doesn't get me any further; how you you shutdown (or, 
> even better, shutdown and reboot) a Win95 box from within a program?
> Calling ExitWindows(0, 0) seemed to be equivalent to selecting "Close all 
> programs and log in as another user" on the shutdown menu...

Use ExitWindowsEx(EWX_FORCE | EWX_REBOOT, 0);

-- 
Sergey Okhapkin
Moscow, Russia
Looking for a job

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019