Example #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);
 }
Example #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);
        }