public static bool FlashWindowAPI(IntPtr handleToWindow) { FLASHWINFO flashwinfo1 = new FLASHWINFO(); flashwinfo1.cbSize = (uint)Marshal.SizeOf(flashwinfo1); flashwinfo1.hwnd = handleToWindow; flashwinfo1.dwFlags = 15; flashwinfo1.uCount = uint.MaxValue; flashwinfo1.dwTimeout = 0; return (Win32Utils.FlashWindowEx(ref flashwinfo1) == 0); }
private static extern short FlashWindowEx(ref FLASHWINFO pwfi);