Subject: RE: Linking in InitiateSystemShutdown()...
From: [email-masked] (Sergey Okhapkin)

26 Jan 1997 03:12:50 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <01BC0B86.58E9ECE0.cygnus.gnu-win32@sos>
Original-To: "[email-masked]" <[email-masked]>,
        "[email-masked]'"
	 <[email-masked]>
Encoding: 12 TEXT
Original-Sender: [email-masked]

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
"[email-masked]" with one line of text: "help".