public static Process FromWindowHandle(IntPtr windowHandle) { return FromProcessId(WindowCore.GetWindowProcessId(windowHandle)); }