-
Stealth program
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
-
Re: Stealth program
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
-
Re: Stealth program
A neat and awesome tip and works fine!!
Thank you!!!
Walter I An
-
Re: Stealth program
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...
-
Re: Stealth program
now you can program that neat virus ... lol
Gordito
-
Re: Stealth program
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