How to get the current ProcessID?
문제
What's the simplest way to obtain the current process ID from within your own application, using the .NET Framework?
해결책
Get a reference to the current process and use System.Diagnostics
's Process.Id
property:
int nProcessID = Process.GetCurrentProcess().Id;
다른 팁
Process.GetCurrentProcess().Id
제휴하지 않습니다 StackOverflow