Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Program not in task list

Posted on 1997-11-14
8
144 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

861 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