Widow – Diff between revs 14 and 26

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 14 Rev 26
Line 64... Line 64...
64 } 64 }
Line 65... Line 65...
65   65  
66 public static string GetProcessName(IntPtr hWnd) 66 public static string GetProcessName(IntPtr hWnd)
67 { 67 {
-   68 Natives.GetWindowThreadProcessId(hWnd, out var pid);
-   69 try
68 Natives.GetWindowThreadProcessId(hWnd, out var pid); 70 {
69 var process = Process.GetProcessById((int) pid); 71 var process = Process.GetProcessById((int) pid);
-   72 return process.ProcessName;
-   73 }
-   74 catch
-   75 {
-   76 return string.Empty;
70 return process.ProcessName; 77 }
Line 71... Line 78...
71 } 78 }
72   79  
73 #endregion 80 #endregion
74 } 81 }