Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
New related comments Number of comments in the last 48 hoursPlay WAV files 1 new comments
|
Hide your application in Windows' task manager
15 comments. Current rating: (3 votes). Leave comments and/ or rate it.
There are various ways to attempt hiding an application in the task manager. A simple trick is to set the application title to be empty thus have Windows display an empty entry there (the entry is still in the task manager's list of applications but empty).
Another attempt is to register the process while running as a service. The general purpose of running as a service is to allow your program to run without needing to have a user logged on. Common usages are most virus scanners, firewalls or some FTP servers. Services can also have a user interface; they don't need to be 'invisible'.
In consumer versions of Windows (95,98,ME) the kernel exports a function RegisterServiceProcess which easily registers an regular application into an service and back. All you need is the process ID.
Delphi doesn't import this function - probably because it is not supported in newer Windows versions. To be able to run on Windows NT, 2000 or XP, you should check at runtime the version of Windows and then dynamically load that DLL (with LoadLibrary()) and import the function RegisterServiceProcess.
The code below shows a static link to KERNEL32.DLL and it will not start up on Windows 2000. The links above show how to check the Windows version and how to dynamically load DLLs and import functions.  | |  | | function RegisterServiceProcess(dwProcessID, dwType: DWORD): DWORD;
stdcall; external 'KERNEL32.DLL';
begin
RegisterServiceProcess(GetCurrentProcessID, 1);
RegisterServiceProcess(GetCurrentProcessID, 0);
end
| |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|
|
|
|
can someone plz tell me how to set the application title to be empty...like can you change the titles of applications and set them to empty or something else...if so how?
|
|
|
|
|
Application.Initialize;
Application.Title := ' ';
Application.CreateForm(TForm1, Form1);
The best place to clear the Title property is inside the Project's source code. To see the Project source select Project|View Source in the IDE
|
|
|
|
|
|
|
|
|
|
Application.Title := ' ';
it can hide in 'application' tab but not in tab 'process' in task manager
|
|
|
|
|
if you want to hide your program in applications tab use
ShowWindow(Application.Handle,SW_HIDE);
paste it in the OnActivate event of the main form.
This will hide the progrom from the task bar and the application
tab
|
|
|
|
|
vorks 100 %
|
|
|
|
|
Works 1000%
Great!!!!
|
|
|
|
|
|
|
|
|
|
Great!!!
|
|
|
|
|
LOL
|
|
|
|
|
can any one tell me how to run applications without showing in task manager?
|
|
|
|
|
hey guys you can use just one command :D
application.showmainform:=false;
just this :D:D:D:D
put this command in OnCreate of Form1 :D
easy ;)
|
|
|
|
|
Hi i need some help. Using VB6 i have managed to 'run' an external exe from my program. Is it possible to hide the external exe from the applications tab in task manager? I know you can't hide the process on anything higher than 9x but thats fine - i don't want to do that anyway. I just don't want the external exe to be listed in applications.
I have tried Shell('<name of exe>.exe', vbHide) but it also hides the visual application. So the exe becomes useless.
Is there a better code? :)
|
|
|
|
|
Hi. I have been creating a data stealing softwre and found a problem, when tried to use it.
First of all I need the software to be completely invisible and work with other processes (what I mean is that, when PC starts, lots of processes are initiated - what I want to do is to manipulate one of these processes with my software so it would work without a possibility to be detected).
Also please note that I have direct access to the machine, where I am going to set the software.
P.S.: this topic might be about illeagal actions, but I am sure that some1 knows the answers. If so - please let me know - modestas3D@gmail.com.
|
2008-11-24, 23:33:41 (updated: 2008-11-24, 23:36:39) |
|
|
|
To hide the VB Application from TaskManager,
Try with this following code in your MDI form load evernt.
App.TaskVisible = False
Regards,
Vimala
|
|