PID of current process?
C#
5
Posts
2
Posters
0
Views
1
Watching
-
in my application i would like to get the PID of the current process, does any one know how i can do this? Thanks Tim
System.Diagnostics.GetCurrentProcess().Id
-
System.Diagnostics.GetCurrentProcess().Id
-
i dont have GetCurrentProcess in the Diagnostics namespace. Any ideas why its not there? am i calling it from the wrong place?
System.Diagnostics.Process.GetCurrentProcess().Id
-
System.Diagnostics.Process.GetCurrentProcess().Id