get progid of a running process

2k Views Asked by At

Is it possible to get the progID of a running process? Using C#?

2

There are 2 best solutions below

0
On

User Process class members.

These functions will help-

GetProcesses
GetProcessesByName


To get current process, use-

GetCurrentProcess

1
On

What is progID? Seems that you need System.Diagnostics.Process.GetCurrentProcess().Id.