0

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

Anirudh Goel
  • 4,571
  • 19
  • 79
  • 109

2 Answers2

2

User Process class members.

These functions will help-

GetProcesses
GetProcessesByName


To get current process, use-

GetCurrentProcess

Nayan
  • 3,092
  • 25
  • 34
0

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

Vlad
  • 35,022
  • 6
  • 77
  • 199