Yes... My original question is "How to make a program which shuts down the
computer after a compilation (under Worldcraft.... Hammer :) ) ?". This is
of course not to my computer run all the night (exactly as Nero does)... I
found the solution : add a little program which only shuts down the computer
and include it at the end of the compile process. So, my question was : "How
to write a very little which ONLY shuts down the computer ?".

Botman and Commando helped me and I got it to work (big thx to them :) ) So,
my original question is answered :) And I don't want to shut down the
computer of anyone else :D As Ad Rock mentioned, It's only for my personal
use :-)

I don't think there's any malicious thought here...

      - Cortex : mapper & coder www.hlalbator.fr.st


----- Original Message -----
From: Ralph Hartley
To: [EMAIL PROTECTED]
Sent: Monday, April 15, 2002 5:00 PM
Subject: Re: [hlcoders] little app


Commando wrote:
> This should work on all systems;

No It SHOULDNT work on ANY system. There may be systems on which it
DOES, but that is a Bad Thing.

> // Shut down the system and force all applications to close.
> ExitWindowsEx(EWX_POWEROFF, 0);

Applications sould NEVER shut down the system itself. It should not be a
matter of courtesy, they souldn't be allowed.

I assumed the orriginal question was asking about just closing the
application itself. That would, of course, be ok.

I know that some brain dead operating systems let any running program do
anything it wants, but that is not good.

What if someone else is using the system at the time (even on windows
they could be editing a shared file)? They could lose all their work.

Ralph Hartley

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to