Newsgroups: comp.windows.ms
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!m.cs.uiuc.edu!ux1.cso.uiuc.edu!phil
From: phil@ux1.cso.uiuc.edu (Phil Howard KA9WGN)
Subject: Re: How can I automaticaly exit Windows?
Message-ID: <1991Jun4.182503.3808@ux1.cso.uiuc.edu>
Organization: University of Illinois at Urbana
References: <49975@ut-emx.uucp>
Date: Tue, 4 Jun 1991 18:25:03 GMT
Lines: 21

jrobi@ccwf.cc.utexas.edu (James Barton) writes:

>I would like to be able to have Windows turn itself off gracefully at a 
>specified time or following some specifiable event.  Anybody know how to 
>do this?

If there is an internal call (I don't have my book here at the moment)
that allows you to cause Windows to close down, then it should be possible
to make a program that simply does this.

For example if you want to have windows close down after 30 minutes of no
input, your program would have to hook into all the keyboard and mouse
events, and reset a timer back to 30 minutes when any event occurs.  When
the timer reaches 0, the program does its thing.

I should be able to try things like this in just a few weeks.
-- 
 /***************************************************************************\
/ Phil Howard -- KA9WGN -- phil@ux1.cso.uiuc.edu   |  Guns don't aim guns at  \
\ Lietuva laisva -- Brivu Latviju -- Eesti vabaks  |  people; CRIMINALS do!!  /
 \***************************************************************************/
