Click to See Complete Forum and Search --> : Stealth program


Ruben
March 30th, 1999, 04:30 PM
Hi,


I want my program to be completely stealth, I would want to know if it's possible to hide my app. from the task manager (in win95/98). If this is not possible I would like to know if it's possible to prevent the app from being closed(end task) by the task manager.


Thanks for any comments or advice!

Ruben

Mihai Osian
March 31st, 1999, 01:46 PM
You can try this:

typedef DWORD (WINAPI *fct)(DWORD,DWORD);

fct RegisterServiceProcess;

HINSTANCE h=LoadLibrary("kernel32.dll");

RegisterServiceProcess=(fct)GetProcAddress(h,"RegisterServiceProcess");

RegisterServiceProcess(NULL,1);

FreeLibrary(h);


It should make your application disappear from the task manager

Walter I An
April 2nd, 1999, 03:52 AM
A neat and awesome tip and works fine!!

Thank you!!!

Walter I An

June 14th, 1999, 03:07 PM
One thing to remember - the docs state:
a Win32-based application can prevent itself or any other Win32-based application from being closed when the user logs off. Win32-based applications registered in this manner close only when the system is shut down.

The application should provide for different users logging on at different times during its execution. The application can distinguish between a user logging off and the system shutting down by examining the lParam parameter of the WM_QUERYENDSESSION and WM_ENDSESSION messages. If the user shuts down the system, lParam is NULL. If the user logs off, lParam is set to ENDSESSION_LOGOFF.

This doesn't work for NT. Sure would like to find out how...

June 14th, 1999, 03:13 PM
now you can program that neat virus ... lol

Gordito

ruttiger
March 8th, 2000, 02:12 AM
I'm praying this works, and assume it does, but will this keep programs from using
FindWindow(HWND)?

to what extent does this hide the app?
thank you!!!

www.ruttiger.com
www.123allthingsfree.com