public static void FlashWindow(Window window) { if (window != null) { var fi = new FLASHINFO(); fi.cbSize = Marshal.SizeOf(typeof(FLASHINFO)); fi.hWnd = new WindowInteropHelper(window).Handle; fi.dwFlags = 0x2 | 0xc; FlashWindowEx(ref fi); } }
private static extern void FlashWindowEx(ref FLASHINFO pfwi);