🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #14096

Re: Closing Windows with no user interaction

#14096
From: Eugene Veteska
Date: Tue, 27 Feb 1990 00:30
20 lines
1073 bytes
I think this was posted a while ago but this is how I shutdown windows
from an application without any user inaction. There is an undocumented
windows function called ExitWindows(). First, you need to forward reference
it:

extern void FAR PASCAL ExitWindows (int, int);

Then call it when you want, like so:

   ExitWindows (NULL, NULL);

I don't know what the parameters mean.  The only danger with this is that if
any applications have not saved their data, it will be lost.  I only use this
function in my test cases, having any easy way to quit windows.  Hope this
helps.


Eugene Veteska
HP Information Networks Division
eav@hpindda.hp.com
Technical Details
Message-ID: <40130012@hpindda.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!jarthur!usc!ucsd!helios.ee.lbl.gov!pasteur!ucbvax!hplabs!hp-ses!hpcuhb!hpindda!eav
References: <426@bjcong.bj.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!jarthur!usc!ucsd!helios.ee.lbl.gov!pasteur!ucbvax!hplabs!hp-ses!hpcuhb!hpindda!eav
From: eav@hpindda.HP.COM (Eugene Veteska)
Newsgroups: comp.windows.ms
Subject: Re: Closing Windows with no user interaction
Message-ID: <40130012@hpindda.HP.COM>
Date: 27 Feb 90 00:30:41 GMT
References: <426@bjcong.bj.co.uk>
Organization: HP Information Networks, Cupertino, CA
Lines: 20