Change a process description at run time

北城余情 提交于 2019-12-11 09:51:39

问题


I have an C win32 application that starts other apps by using the CreateProcess(). Each of the new processes get a unique port number and other stuff. My question is there anyway to add, for example the port number, to the new process description at run time? I want this to to be able to separate the processes by looking at the Task manager > Processes > Description column.

Please understand I am talking about run time not compile time.

with regards,

Ehsan


回答1:


The Description value is retreived from a process's version resource, which cannot be changed while the process is running.



来源:https://stackoverflow.com/questions/11340477/change-a-process-description-at-run-time

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!