public static bool Stop(IntPtr handle) { if (FlashWindow.Win2000OrLater) { FlashWindow.FLASHWINFO fLASHWINFO = FlashWindow.Create_FLASHWINFO(handle, 0u, 4294967295u, 0u); return(FlashWindow.FlashWindowEx(ref fLASHWINFO)); } return(false); }
public static bool Flash(IntPtr handle, uint count) { if (FlashWindow.Win2000OrLater) { FlashWindow.FLASHWINFO fLASHWINFO = FlashWindow.Create_FLASHWINFO(handle, 3u, count, 0u); return(FlashWindow.FlashWindowEx(ref fLASHWINFO)); } return(false); }
private static FlashWindow.FLASHWINFO Create_FLASHWINFO(IntPtr handle, uint flags, uint count, uint timeout) { FlashWindow.FLASHWINFO fLASHWINFO = default(FlashWindow.FLASHWINFO); fLASHWINFO.cbSize = Convert.ToUInt32(Marshal.SizeOf(fLASHWINFO)); fLASHWINFO.hwnd = handle; fLASHWINFO.dwFlags = flags; fLASHWINFO.uCount = count; fLASHWINFO.dwTimeout = timeout; return(fLASHWINFO); }
private static extern bool FlashWindowEx(ref FlashWindow.FLASHWINFO pwfi);