1

I am currently running a process with the name notepad.exe through C# using ProcessStartInfo class, I want to change the process's description (The one where you can see in task manager) just for fun, Is it possible to do so and how?

The application I want to run is a third party application

Here is how I run my notepad.exe:

        ProcessStartInfo startInfo = new ProcessStartInfo();
        startInfo.FileName = @"C:\Program Files\WiLMA\Dependencies\winpmem-1.4\winpmem_1.4.exe";
        startInfo.Verb = "runas";

        var process = Process.Start(startInfo);
        process.WaitForExit();
Fukkatsu
  • 149
  • 1
  • 12
  • This might be the same as `http://stackoverflow.com/questions/16914101/changing-a-programs-process-name-in-task-manager` – Sourav 'Abhi' Mitra Mar 17 '14 at 06:26
  • He did more on process name, my problem is on process description =) Thanks though for the read – Fukkatsu Mar 17 '14 at 06:30
  • Then it is the same as this : `http://stackoverflow.com/questions/12408496/how-can-i-set-the-task-manager-description-for-my-program`. :-) – Sourav 'Abhi' Mitra Mar 17 '14 at 06:33
  • but my problem is changing the process description of a program that already exists (i didn't code the executable), not my program itself =) – Fukkatsu Mar 17 '14 at 06:36
  • Just to be clear : You want to change the description of a 3rd party application and not one that you have coded? – Sourav 'Abhi' Mitra Mar 17 '14 at 06:41
  • Yes =) (uses your words to edit my post) – Fukkatsu Mar 17 '14 at 06:43
  • Probably duplicate of http://stackoverflow.com/questions/11340477/change-a-process-description-at-run-time – Ulugbek Umirov Mar 17 '14 at 06:53
  • I think you would require some P/Invoke calls. You can maybe lookup the SetFileInformationByHandle() in kernel32.dll and call it with the appropriate parameters where your handle would be process.MainWindowHandle. But I would not be surprised if it did not work. Maybe somebody can give some WMI way of doing it. – Sourav 'Abhi' Mitra Mar 17 '14 at 07:19

0 Answers0