?
Solved

How to hide my own process in the task manager

Posted on 1998-08-05
13
Medium Priority
?
1,794 Views
Last Modified: 2013-12-03
When I run my program,I want to invisible my program's name in task manager. How to do it?
0
Comment
Question by:buboi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 4
13 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1413097
If you are talking about Windows 95, call RegisterServiceProcess. For the information of this function, see
http://support.microsoft.com/support/kb/articles/q125/7/14.asp
0
 

Author Comment

by:buboi
ID: 1413098
chensu:
I can't goto the site you said, so I don't know how to use the RegisterSeviceProcess function, I serached in the help files of VC++ 4.0, didn't find this function.
please tell more information.
And If in the NT, can we do it?

Regards,
Buboi

0
 
LVL 3

Expert Comment

by:BudVVeezer
ID: 1413099
I tried using RegisterServiceProcess, but it tells me that it's not defined, and when I go to find the header which it's in, there is none.  I copy and pasted it right out of VC++ 5 help files.  What's up with this??

~Aaron
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 3

Expert Comment

by:BudVVeezer
ID: 1413100
The answer I found in VC++ 5 is this: RegisterServiceProcess(DWORD processID, DWORD registerflag)

if you put in NULL for processID, then it defaults to your program, and the 2 register flags are:
RSP_SIMPLE_SERVICE - to turn it on
RSP_UNREGISTER_SERVICE - to turn it off.  This was about all I could find on that web page also.

~Aaron
0
 

Author Comment

by:buboi
ID: 1413101
I think my points should be split:
  150 to chensu
  50 to Budvvzer
how to do it?
0
 
LVL 23

Expert Comment

by:chensu
ID: 1413102
To call RegisterServiceProcess, retrieve a function pointer using GetProcAddress on KERNEL32.DLL. Use the function pointer to call RegisterServiceProcess. There is example code at http://www.codeguru.com/misc/nt_service.shtml.

>And If in the NT, can we do it?
No.

By the way, you didn't need to reject my answer if you just wanted more information.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1413103
Doesn't the KB article I mentioned contain everything that BudVVeezer submitted as an answer?
0
 

Author Comment

by:buboi
ID: 1413104
I think my points should be split:
  150 to chensu
  50 to Budvvzer
how to do it?
0
 

Author Comment

by:buboi
ID: 1413105
BudVVeezer:
Sorry, I think I should give my points to chensu because it looks like no method to split my points.

Other exprts don't answer this problem execpt chensu.
Chensu answer again please. I am ready to accept it.

Regards,
Buboi

0
 
LVL 23

Accepted Solution

by:
chensu earned 600 total points
ID: 1413106
Thank you.
0
 
LVL 3

Expert Comment

by:BudVVeezer
ID: 1413107
Don't worry about it, I don't mind.  =o)  He is right, the article is what I answered.  My question is this, why won't it compile for me?  What header file do I include?  I have the code written up, but it tells me that the function call is undefined, and I KNOW I spelled everything right...If someone could help me out on this one<<ahem, Chensu>>, I would appreciate it.  =o)  Thanks!

~Aaron
0
 
LVL 23

Expert Comment

by:chensu
ID: 1413108
So far there is no such a header file. You need to dynamically link to it. See my comment (August 06 1998 - 07:52PM PDT).
0
 
LVL 3

Expert Comment

by:BudVVeezer
ID: 1413109
Don't worry about it, I just figured it out.  Somedays I'm just not that bright.  =oP  Thanks!

~Aaron
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question