Teen Programmers Unite  


Return to forum top

Windows Tasklist

Posted by shroomrefic29 [send private reply] at June 19, 2002, 02:23:32 AM

Hello everyone.

Ive been scouring the internet for resource on programming the windows tasklist/taskbar but have found nothing of use. Specifically im trying to remove a program from the taskbar and tasklist, effectively making it a background process.

I've looked in the winSDK and among various other resources but found nothing of use. If you have any information that could help please reply. Thanks in advance.

Posted by buzgub [send private reply] at June 19, 2002, 02:33:48 AM

I suspect that you're trying to write something malicious here, so I'll be cryptic and say but one thing: "services"

There's your hint. Demonstrate that your project is not malevolent, and more information may be forthcoming. It may.

Posted by shroomrefic29 [send private reply] at June 19, 2002, 02:55:11 AM

Ok to calm your fears of "malicous intent" I plan to write a general backup utility with macro support, I don't necessarily need to hide it from the task list, but most importantly from the taskBAR<<. It will remain in the background processing sheduled tasks such as backing up the registry or compressing key directories into backup files... Stuff of that sort.

The program will be of a server form running out of view and configured through IPC. Heh funny.. you can consider this program a service. Makes sense. But I assure you my intents are honest. If you can provide more precise information I will be extremely glad. Thanks in advance

Posted by gian [send private reply] at June 19, 2002, 03:29:06 AM

I believe he meant installing the program as a system service. Programs like IIS and Apache32 run as services on Windows, and therefore run reguardless of who is logged on or whether it is open on the task bar or not (it is not visible there unless you make it so).

Posted by buzgub [send private reply] at June 19, 2002, 07:25:18 AM

Yup. That also means that it is invisible to everything except things that look at services.

However, if the only thing needed is to remove it from the task bar, I think that simply not opening any windows (or hiding all of your windows) should suffice.

More detail would require knowledge of the programming language to be used.

Posted by AnyoneEB [send private reply] at June 19, 2002, 10:48:20 AM

I know some programs start minimized to an icon if that's all you want to do, but I only know that for java (and I'm not sure on that).

Posted by CodeRed [send private reply] at June 19, 2002, 10:31:33 PM

I hate services, in XP I disabled over half of them without any negative consequences and my system's never run better

Posted by shroomrefic29 [send private reply] at June 19, 2002, 11:22:49 PM

Ok i found out exactly how to do it.. it's an undocumented function called RegisterServiceProcess() which removes it from the task list.. this function resides in Kernel32.dll

Anyone have a clue what other side-effects it has?

Posted by shroomrefic29 [send private reply] at June 19, 2002, 11:31:09 PM

http://lantools.narod.ru/hidden.html the url for a more detailed explanation

You must be logged in to post messages and see which you have already read.

Log on
Save for later automatic logon

Register as a new user
Copyright TPU 2002. See the Credits and About TPU for more information.