Renaming a process

Hi everyone,

So I have my application --> myapp.exe
As it is running, in the Windows Task Manager / Processes tab, it is showed as myapp.exe

I want to change the name that is displayed in the task manager based on one variable inside my program, is there a way to do this?

I have tried SetConsoleTitle() but it does't affect the name in the process tab of the task manager.

Thanks.
IIRC its going to be whatever the name of the process already is. that being said, im sure you could do something similar to creating a daemon. ie creating a child process under a pseudonym, then stopping the parent process, then running the rest of the code
Registered users can post here. Sign in or register to post.