From: sos@prospect.com.ru (Sergey Okhapkin)
Subject: RE: Linking in InitiateSystemShutdown()...
26 Jan 1997 03:12:50 -0800
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <01BC0B86.58E9ECE0.cygnus.gnu-win32@sos>
Original-To: "gnu-win32@cygnus.com" <gnu-win32@cygnus.COM>,
        "'rgordon@vnet.net'"
	 <rgordon@vnet.net>
Encoding: 12 TEXT
Original-Sender: owner-gnu-win32@cygnus.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@cygnus.com" with one line of text: "help".
