Path: 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 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