How to rename a program process in C C++ (Windows Lib)

Asked

Viewed 514 times

-1

I am creating a utility program for windows but can’t change the name that appears in task manager, I have tried SetConsoleTitle("atwconnect"); but changed only the window name but not the process name of the task manager.

Does anyone know how to rename the process and add a description of the program in the process as well ?

  • If you are using visual studio, I think the solution is to create a . rc (Resource) file. For example, https://stackoverflow.com/questions/1022449/how-to-change-an-executables-properties-windows

  • Is there any tutorial on how to write a file. rc ?

1 answer

-2

changes argv[0] where the process name is, eg argv[0] << "name";

  • Despite the low technical level is an attempt to respond. What fits the negative and not the exclusion.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.