Re: Inactive shutdown service



On Sun, 24 Apr 2005 16:23:31 +0200, "Maarten Wiltink"
<maarten@xxxxxxxxxxxxxxxxxx> wrote:

>"Kezepema" <kezepema@xxxxxxxxx> wrote in message
>news:nuNae.19794$kd1.1366@xxxxxxxxxxxxxxx
>
>> I warned them so many times, but children in my class-group often forget
>> to shutdown their pc's.
>> To prevent high energy costs, I intend to write a service or program in
>> Delphi, that will account for inactivity.
>
>Are you the last to leave the classroom? Turn off the main switch when
>you go out.
>
>Have you considered the wear and tear on the computers from turning them
>on and off seventeen times a day?

I'll second that - turning machines on and off is not good for them

However, if you must do it look at the API ExitWindowsEx


.