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