Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 private static extern bool FlashWindowEx(ref FlashWinfo pwfi);