question

Pawellepko-1986 avatar image
0 Votes"
Pawellepko-1986 asked Pawellepko-1986 commented

C# - How to get company name of running process

Hello,

How to get the name of an application manufacturer from a running process? In the "Process Explorer - Winternals" application, the last column contains information about the program's producer. I want to extract this information about a certain process using C# language. How to do it?

Best regards,
Paweł

dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The option worked for me:

"p.MainModule.FileVersionInfo.ProductName".

0 Votes 0 ·

1 Answer

RLWA32-6355 avatar image
0 Votes"
RLWA32-6355 answered

For example following prints company name for Visual Studio IDE (devenv.exe) -

     Process p = Process.GetProcessesByName("devenv")[0];
     Console.WriteLine("Company Name is {0}", p.MainModule.FileVersionInfo.CompanyName);


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.