• Advertisement
Sign in to follow this  

[C++] How to change process name?

This topic is 2362 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Yup

I am working on program to make multi instances of some game, I think i need to change process name to do it :)

Share this post


Link to post
Share on other sites
Advertisement
C++ has no notion of process names. Some specific operating systems do. If you mention which one you're using it would probably help.

Share this post


Link to post
Share on other sites
Win7 Ult x64

Edit: There can be any other language, I think I can learn basics very quickly

Share this post


Link to post
Share on other sites

Win7 Ult x64


then use the HINSTANCE params, if you are using a Console app, then look for a tutorial on attaching a Console.
you are handed two HINSTANCE'es, the current instance, and the previuse instance.

Share this post


Link to post
Share on other sites
I think you can't change the process name through the api without changing the filename. If you explain some more about your working program then it is too easy to tell you.

Share this post


Link to post
Share on other sites
What do you mean by process name? Do you mean the title of the application in the task bar, or the title seen in task manager process list / process explorer?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement