How do I get the subtitle, which is "Dell SupportAssist", in C#?
-
https://stackoverflow.com/questions/1363167/how-can-i-get-the-child-windows-of-a-window-given-its-hwnd – Anand Chapla Feb 24 '20 at 12:03
2 Answers
I'm not sure what you have as a given in order to locate the name.
This is how you can do this if you know the Id of the process, not sure if you are looking for the ProcessName property of the Process class.
var process = Process.GetProcessById(19060).ProcessName;
If this is not what you are looking for, please provide a bit more info.

- 195
- 2
- 14
Looks like this running as a windows service.
To get a list of Windows Services you can use.
var winServices = ServiceController.GetServices();
You will need to following using statement.
using System.ServiceProcess;
And to add a reference to the following DLL.
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6.1\System.ServiceProcess.dll
This will return an array of type ServiceController, this object has properties such as DisplayName and ServiceName which I believe are what you are after.
You can also use LINQ to find a specific service based on these properties.
If this is not what you're after please leave a comment.

- 1,724
- 2
- 14
- 27