public static Window GetTopWindow() { IntPtr hwnd = SafeNativeMethods.GetForegroundWindow(); if (hwnd == IntPtr.Zero) { return(null); } return(GetWindowFromHwnd(hwnd)); }
public static Window GetTopWindow() { IntPtr hwnd = SafeNativeMethods.GetForegroundWindow(); if (hwnd == IntPtr.Zero) { return(null); } return(GetWindowFromHwnd(hwnd)); }