开发者

How to hide C# application from taskmanager processtab? [duplicate]

This question already has answers here: 开发者_如何学C How do I hide a process in Task Manager in C#? (16 answers) Closed 6 years ago.

I need to hide my C# application from process tab of Taskmanager

using

this.ShowInTaskbar = false; 

I have hide it from application tab. Now I need to hide it from process tab.

Is this possible?.


You could inject a DLL into the svchost process, that would camouflage it from Task Manager but not from ProcessExplorer. Here's how:

How To Inject a Managed .NET Assembly (DLL) Into Another Process

Here's some more background info on this technique: Three Ways to Inject Your Code into Another Process

Similar to @Dark Slipstreams link it points unmanaged code info.

Let us know if you have any problems with the code running on Win7?

Edit:

how can i restrict a user while closing my process from taskmanager? - what exactly are you making here?

I dont care to guess but if you really want to know, you hook into the WinLogon, @Jeff Atwood explains it here: How to Clean Up a Windows Spyware Infestation or you could have 2 processes that both watch each other...


If you are trying to prevent your 'standard' users from killing your process you may install your program as Windows Service, run it under special credentials (with non-expiring password in production), setup Automatic startup and allow only 'admins' to kill it.


Depending on why you want to hide it and who you are hiding it from, you may get away with hiding it in plain sight by naming the application something like AdobeUpdater.exe

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜