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" , "'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".