Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set the name of a process created with CreateProcess?

I am starting a process with CreateProcess following the formulas found on google. What I am wondering, is can I set the process name of the created process so that it is obvious in the task manager?

Thank you,
--Douglas

like image 611
vextorspace Avatar asked Nov 14 '22 21:11

vextorspace


1 Answers

That's not an available option. The process name as visible in Task Manager is derived from the file name. If you want another name to show up then simply rename the EXE file.

like image 180
Hans Passant Avatar answered Dec 22 '22 08:12

Hans Passant