How to change exe name/description in Task Manager dynamically for different processes?
I have a console exe program (EXEConsole.exe) which will dynamically load some dlls for different work depends on the paramters.
So, it is possible I have 3 instance of EXEConsole.exe in the Task Manager, each runs with a different DLL. Now, I want to know which instance is running which DLL by looking at Task Manager. That's why I want to change the title/description of the EXEConsole in the Task Manager.
I could not figure out how to do it, so I have this idea:
When it needs to load a DLL, it copies the EXEConsole to a different folder, rename it based on the DLL's name, i.e. EXEConsole_MyDLL.exe, then run it. This somehow works for the purpose. But, is there a better way to do this?
Thanks