🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #499

Re: Restart Windows from within, resource garbage collection

#499
From: Christoph Mueller
Date: Wed, 09 Sep 1992 21:38
30 lines
1833 bytes
jinli@dgp.toronto.edu (Jin Tonic Li) writes:

>
> 1. How do I restart Windows in a Windows application that is currently runnin
>    The control panel can do this when the virtual memory size is changed.
>
Try out
ExitWindows (EW_REBOOTSYSTEM, 0)    to terminate Windows and reboot
ExitWindows (EW_RESTARTWINDOWS, 0)  to terminate and restart Windows

As far as I know, in Windows 3.0 those were undocumented features, the
value of EW_RESTARTWINDOWS is 66 (0x42).

As I just saw in the manual (3.1 but it says that the function is from Win 3.0)
was this function  ExitWindowsExec  which can be used to exit windows, run
an MS-DOS program and restart Windows again.  Just in case the above is not
enough.

>
> 2. Is there a way to clean up dangling resources, e.g. GDI, that are left beh
>    by other tasks?  Windows' own screen saver always hogs resources this way.
>

The only way definite way to do this which I know of is the above: exit and
restart windows.  Does anybody know better ways?

---Christoph, Germany    ---   cm@cmm.ovum.ka.sub.org
-------------------------------------------------------------------------
Dysklaemours?  What's that?  How do you spell that?  Do I need that?
I  *AM*  the  SYSTEM,  the  EMPLOYER,  and  the  ORGANIZATION  !!
Technical Details
Message-ID: <N3muqB2w165w@cmm.ovum.ka.sub.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!smurf.sub.org!flatlin!ovum!cmm!cm
References: <1992Sep8.174740.24723@jarvis.csri.toronto.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!smurf.sub.org!flatlin!ovum!cmm!cm
From: cm@cmm.ovum.ka.sub.org (Christoph Mueller)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.tools
Subject: Re: Restart Windows from within, resource garbage collection
Keywords: ExitWindows, Restart
Message-ID: <N3muqB2w165w@cmm.ovum.ka.sub.org>
Date: Wed, 09 Sep 92 21:38:22 CED
References: <1992Sep8.174740.24723@jarvis.csri.toronto.edu>
Distribution: world
Organization: Christoph's PC, Karlsruhe, Germany
Lines: 30