C#动态更改进程名称 [英] c# change process name dynamically
本文介绍了C#动态更改进程名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在一个项目中,根据我的要求,我需要向任务管理器隐藏一个流程.
我之前曾问过这个问题,但有建议说这是不可能的.如果有人知道这样做,请帮忙吗?
我想做的是可以动态地将进程伪装为explorer.exe或其他进程名称吗?我可以动态更改进程名称吗?
如果您有解决此要求的其他建议,请随时为您提供帮助.
谢谢
Hi All,
I am working on a project where according to my requirement I need to hide a process from task manager.
I asked this question before and got suggestion that it’s not possible. If anyone knows to does this please help?
What I want to do is if I can disguise the process to explorer.exe or some other process name dynamically? Can I change process name dynamically?
If you have any alternate suggestions to solve this requirement please feel free and help with you suggestions.
Thanks
推荐答案
在这里您将获得一种方法:
http://stackoverflow.com/questions/1016823/c-how-can-i-rename-a-process-window-that-i-started [ http://msdn.microsoft.com/en-us/library/s9tkk4a3%28v = vs.71%29.aspx [ ^ ]
here you will get a way:
http://stackoverflow.com/questions/1016823/c-how-can-i-rename-a-process-window-that-i-started[^]
http://msdn.microsoft.com/en-us/library/s9tkk4a3%28v=vs.71%29.aspx[^]
将.exe名称更改为svchost.exe并使用诸如
之类的参数启动它 "-k LocalServiceProvider"
查看任务管理器,查看正在运行的svchosts.exe.
Svchost.exe是用于从动态链接库(DLL)运行的服务的通用主机进程名称.
Change the .exe name to svchost.exe and have it startup with a parameter like
"-k LocalServiceProvider"
Take a look at the Task Manager and see how many svchosts.exe that are running.
Svchost.exe is a generic host process name for services that run from dynamic-link libraries (DLLs).
这篇关于C#动态更改进程名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文