Hide your applicacion from tasklist (CRTL-ALT-DEL dialog)
First, put this declaration in the implementation of your form:
Now, to hide it:
Show it again:
Lord Trancos communicates me that in Windows 2000 that function doesn't exist in Kernel32.DLL ... so it will fail you the trick.
Take a look to the trick:
 Know if a DLL contains a given function
Here you have a new version of this trick, in the one that the procedure RegisterServiceProcess is declared dynamically, avoiding the problem of if it exists or not in Windows the procedure...
First, we should register the type of the function that we want to register, so that Delphi controls its parameters well.
We will make it in the interface of the form:
Now, we need a global variable to the form to keep the address of the procedure.
For example, we will include it in the private part of the form:
Now, we need to assign the address to the procedure before being able to use it.
We will make it in the event OnCreate of the form. Notice that we will use a function that checks if the procedure exists or not, generating an exception (that can capture or to allow it to happen) if the procedure doesn't exist...:
If you notice, in this example I capture the exception, giving the message that to my it gives me the desire. If removes the ' ShowMessage' could make it silent... that is to say that the user neither it would find out that that problem exists.
It is convenient that we go getting used to the manipulation of errors with exception, at the end they remove you a lot of work.
Finally... we have left the trick in yes, that is to say... to call to the function that so much work has given us to declare:
If you notice, I use the If Assigned to make sure that it was declared, to avoid surprises...
Updated at 16/03/2000
Updated at 20/02/2001 Typographic error (Thanks to Lucas)