Newsgroups: comp.windows.ms.programmer
Path: funic!fuug!news.funet.fi!sunic!psinntp!psinntp!dg-rtp!rambo.atlanta.dg.com!atlanta.dg.com!dab
From: dab@atlanta.dg.com (David A Busse)
Subject: Re: How to Re-Boot DOS from Windows 
Sender: usenet@rambo.atlanta.dg.com (Usenet Administration)
Message-ID: <1993Feb2.144002.2685@rambo.atlanta.dg.com>
Date: Tue, 2 Feb 93 14:40:02 GMT
Organization: Data General Corp. SIS, Atlanta, GA
Lines: 36

Hi folks,

Thanks to all who responded to my request.  As promised here is
the information.  This is copied from a message from Wong Fay Yu
and is typical of the information I got back.

Thanks again.


	Hi - you can restart windows by using the ExitWindows
	function. It has the following function prototype:

	BOOL ExitWindows(dwReturnCode, reserved)
	DWORD dwReturnCode;
	UINT reserved;

	dwReturnCode = EW_REBOOTSYSTEM   /* cause system to reboot */
		     = EW_RESTARTWINDOWS  /* restart windows */

	reserved must be zero

	You can also look at ExitWindowsExec - it exits Windows and
	runs a specified DOS app and returns to Windows.

	Hope this helps!


	


-- 
_________________________________________________________________________
Dave Busse                             e-mail (work): dab@atlanta.dg.com
Systems Integration Services         e-mail (school): dab@cc.gatech.edu 
Data General Corp, Atlanta, Ga           Voice Phone: (404)705-2671
DISCLAIMER: Standard disclaimers apply.
