public static bool FlashWindowEx(IntPtr windowHandle, UInt32 repeat)
        {
            var flashWindowInfo = new FlashWindowInfo();

            flashWindowInfo.Size         = Convert.ToUInt32(Marshal.SizeOf(flashWindowInfo));
            flashWindowInfo.WindowHandle = windowHandle;
            flashWindowInfo.Flags        = Win32Constants.FlashWindowAll;
            flashWindowInfo.Count        = repeat; // UInt32.MaxValue;
            flashWindowInfo.Timeout      = 0;

            return(Win32Api.FlashWindowEx(ref flashWindowInfo));
        }
Exemple #2
0
 public static extern bool FlashWindowEx(ref FlashWindowInfo pwfi);