Solved

Program not in task list

Posted on 1997-11-14
8
140 Views
Last Modified: 2010-04-04
Hello people,

is it possible to create a delphi 3 program, wich doesn't appear in the tasklist when ctrl-alt-del is pressed. ?

Thanx
0
Comment
Question by:mories
  • 4
  • 3
8 Comments
 

Expert Comment

by:almiller
ID: 1350396
No. Every thing running under windows is displayed in the task list, even windows' programs it self, such as the Explorer, and systray etc...

A program not displayed int he task list, would have to not be registered under windows.
0
 
LVL 7

Expert Comment

by:ahalya
ID: 1350397
btw, What constitutes a "tasklist" ?

if you're referring to the list obtained by pressing [ctrl][alt][del] then you CAN hide an app from that list.

0
 
LVL 1

Author Comment

by:mories
ID: 1350398
yes i do mean that list,

how can i hide it ??
0
 
LVL 7

Accepted Solution

by:
ahalya earned 100 total points
ID: 1350399
Hi Mories,
i'm surprised that you have classified this as an "easy" question :-). Anyway, here goes the answer.

you do that by calling the "RegisterServiceProcess" function in Kernel32 DLL.

function declaration goes like this:
(put it just after 'implementation')

function RegisterServiceProcess (ThreadID : THandle; Flags : Integer): Integer; stdcall; external kernel32 name 'RegisterServiceProcess';

in your form create event call the function like this:

ok := RegisterServiceProcess (0, 1);
if ok  = 0 then ShowMessage ('Error Hiding from task list')

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:mories
ID: 1350400
Adjusted points to 100
0
 
LVL 7

Expert Comment

by:ahalya
ID: 1350401
Hi Mories,

you didn't have to adjust the points :-)
i'm not getting anything out of this !

anyway enjoy delphi !

0
 
LVL 1

Author Comment

by:mories
ID: 1350402
i think it was worth it.

i needed this one..

Thanx
0
 
LVL 7

Expert Comment

by:ahalya
ID: 1350403
since you're being nice, here is some more info:


you can call RegisterServiceProcess with a parameter of 0 the remove it from being a service. for e.g.
you can do

RegisterServiceProcess (0, 1) to hide from the task list and
RegisterServiceProcess (0, 0) to show your program again in the task list.

the first parameter indicates the handle of the process; (0 indicates the calling process)





0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now