private GetProcessHandle ( ) : |
||
리턴 |
static SafeProcessHandle SafeGetHandle(Process process) { try { return(process.GetProcessHandle(Interop.Advapi32.ProcessOptions.PROCESS_QUERY_LIMITED_INFORMATION, false)); } catch (Win32Exception) { return(SafeProcessHandle.InvalidHandle); } }