The following code is really simple. It restricts access to the current process. In this way no other process can open the process handle and for example terminate this process. uses   JwaWindows,   JwsclSecureObjects,   JwsclDescriptor,   JwsclToken,   JwsclTypes,   JwsclAcl,   JwsclKnownSid; var   SD : TJwSecurityDescriptor;   hProcess : TJwProcessHandle; begin [...]