Thread View: comp.windows.ms.programmer
2 messages
2 total messages
Started by Jin Tonic Li
Tue, 08 Sep 1992 21:47
Restart Windows from within, resource garbage collection
Author: Jin Tonic Li
Date: Tue, 08 Sep 1992 21:47
Date: Tue, 08 Sep 1992 21:47
16 lines
1028 bytes
1028 bytes
1. How do I restart Windows in a Windows application that is currently running? The control panel can do this when the virtual memory size is changed. 2. Is there a way to clean up dangling resources, e.g. GDI, that are left behind by other tasks? Windows' own screen saver always hogs resources this way. Thank you in advance, -- Jin Li (416) 978-6619 // Gin & Tonic mix well Dynamic Graphics Project, Dept. of Computer Science \\ University of Toronto, Ontario, Canada M5S 1A1 // jinli@dgp.utoronto.ca uunet!utai!dgp!jinli \\ No bugs, no bucks
Re: Restart Windows from within, resource garbage collection
Author: Christoph Mueller
Date: Wed, 09 Sep 1992 21:38
Date: Wed, 09 Sep 1992 21:38
30 lines
1833 bytes
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 !!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads