运行时进程名称更改 (C++) [英] Process name change at runtime (C++)

查看:131
本文介绍了运行时进程名称更改 (C++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 win32 中在运行时更改进程的名称(出现在任务管理器中进程"下的名称)?我希望程序能够更改自己的名称,而不是其他程序的名称.帮助将不胜感激,最好是在 C++ 中.驱散对病毒的任何想法,不,这不是病毒,是的,我知道我在做什么,它是为我自己使用的.

Is it possible to change the name(the one that apears under 'processes' in Task Manager) of a process at runtime in win32? I want the program to be able to change it's own name, not other program's. Help would be appreciated, preferably in C++. And to dispel any thoughts of viruses, no this isn't a virus, yes I know what I'm doing, it's for my own use.

推荐答案

我知道您要求的是 Win32,但在大多数 *nix 下,这可以通过更改 argv[0] 来实现

I know you're asking for Win32, but under most *nixes, this can be accomplished by just changing argv[0]

这篇关于运行时进程名称更改 (C++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆