How to set the name of a process created using CreateProcess?

I start the process with CreateProcess according to the formulas found in google. I am wondering if I can set the process name of the created process so that it is obvious in the task manager?

Thanks,
--Douglas

+4
source share
2 answers

This is not an available option. The process name visible in the task manager is derived from the file name. If you want a different name to be displayed, simply rename the EXE file.

+2
source

You must use psapi.dll to get the process name.

http://support.microsoft.com/kb/175030/

0
source

All Articles