Need to hide applicaiton from task list

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Windows C++ (MFC) app.
Using the task manager, I willing to show it as a process, but not showing on the task list. When I hide the window it does not show on the task bar but it is still identified within the task manager as an application.

Any theories or do I have to have the application rewritten without a window itself and use a thread timer instead of a Windows Timer.


Doug
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Any special rework required. Would love to have the application act like the DNet client did on RC64?

Assistance in pointing me in the proper direction is appreciated. I will start looking at the Help package include with VC6.

I meant to post this in S/W
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
In short, you have to create a hidden windows and use that as the parent window for your main application window.

 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
In previous versions of Windows you could use the RegisterServiceProcess function from the win32 api, but I'm not familiar with how to do it in NT+ (2k, XP, ...). The reason this worked in Win9x is because there was no formal concept of services, so in order to achieve the pseudo-background-processing benefit of services they gave us the RegisterServiceProcess function. Since NT+ has a formal concept of services this function has no use.

Creating a service requires a specific set of entry points, but it's certainly a feasible option. The other way to do it would be to create a CLI (command-line interface) application, but then you're dealing with the command window :) Depending on what your app is needing to accomplish you might look into just creating a service. This might be of help if you're wanting to implement the service with MFC.

I think what singh is saying is that you could create a parent window, set its title to an empty string, and then use that as the means to create the child windows. That would work at concealing it, which might be the easier option.

Finally, there was a program called srvany.exe from the NT Resource kit. I have no idea if it removes the app from the task list, but it might be worth a shot. I'm just throwing out ideas...

HTH
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Ok Thanks for the advice. I know that it can be done - the DNet program for RC-64 did it.

Under W2K just having a window (even if hidden) makes it available on the task list