• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1797
  • Last Modified:

How to hide my own process in the task manager

When I run my program,I want to invisible my program's name in task manager. How to do it?
0
buboi
Asked:
buboi
  • 5
  • 4
  • 4
1 Solution
 
chensuCommented:
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
 
buboiAuthor Commented:
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
 
BudVVeezerCommented:
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
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
BudVVeezerCommented:
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
 
buboiAuthor Commented:
I think my points should be split:
  150 to chensu
  50 to Budvvzer
how to do it?
0
 
chensuCommented:
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
 
chensuCommented:
Doesn't the KB article I mentioned contain everything that BudVVeezer submitted as an answer?
0
 
buboiAuthor Commented:
I think my points should be split:
  150 to chensu
  50 to Budvvzer
how to do it?
0
 
buboiAuthor Commented:
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
 
chensuCommented:
Thank you.
0
 
BudVVeezerCommented:
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
 
chensuCommented:
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
 
BudVVeezerCommented:
Don't worry about it, I just figured it out.  Somedays I'm just not that bright.  =oP  Thanks!

~Aaron
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 5
  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now