public static bool FlashWindowEx(IntPtr formHandle, uint count) { if (System.Environment.OSVersion.Version.Major >= 5) { FlashWinfo fi = FlashWinfo.CreateFlashWinfo(formHandle, FlashWinfoDwFlags.FLASHW_ALL, count, 0); return(FlashWindowEx(ref fi)); } return(false); }
public static bool StopFlashWindow(IntPtr formHandle) { if (System.Environment.OSVersion.Version.Major >= 5) { FlashWinfo fi = FlashWinfo.CreateFlashWinfo(formHandle, FlashWinfoDwFlags.FLASHW_STOP, uint.MaxValue, 0); return(FlashWindowEx(ref fi)); } return(false); }
public static FlashWinfo CreateFlashWinfo(IntPtr handle, uint flags, uint count, uint timeout) { FlashWinfo fi = new FlashWinfo(); fi.cbSize = Convert.ToUInt32(Marshal.SizeOf(fi)); fi.hwnd = handle; fi.dwFlags = flags; fi.uCount = count; fi.dwTimeout = timeout; return(fi); }
private static extern bool FlashWindowEx(ref FlashWinfo pwfi);