Is it possible to get the progID of a running process? Using C#?
Asked
Active
Viewed 1,964 times
2 Answers
2
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
-
see https://learn.microsoft.com/en-us/windows/win32/com/-progid--key – Waldemar Gałęzinowski Apr 13 '20 at 14:12