|
|
|
|
@ -66,9 +66,6 @@ namespace ICSharpCode.ILSpy.AddIn
@@ -66,9 +66,6 @@ namespace ICSharpCode.ILSpy.AddIn
|
|
|
|
|
do { |
|
|
|
|
NativeMethods.EnumWindows( |
|
|
|
|
(hWnd, lParam) => { |
|
|
|
|
uint processId = NativeMethods.GetProcessIdFromWindow(hWnd); |
|
|
|
|
//if (processId == ilspyProcess.Id) {
|
|
|
|
|
Debug.WriteLine("Found {0:x4} for process {1}", hWnd, processId); |
|
|
|
|
string windowTitle = NativeMethods.GetWindowText(hWnd, 100); |
|
|
|
|
if (windowTitle.StartsWith("ILSpy", StringComparison.Ordinal)) { |
|
|
|
|
Debug.WriteLine("Found {0:x4}: {1}", hWnd, windowTitle); |
|
|
|
|
@ -81,7 +78,6 @@ namespace ICSharpCode.ILSpy.AddIn
@@ -81,7 +78,6 @@ namespace ICSharpCode.ILSpy.AddIn
|
|
|
|
|
return false; // stop enumeration
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//}
|
|
|
|
|
return true; // continue enumeration
|
|
|
|
|
}, IntPtr.Zero); |
|
|
|
|
|
|
|
|
|
|