OpenTween.Win32Api.FlashMyWindow C# (CSharp) Method

FlashMyWindow() public static method

public static FlashMyWindow ( IntPtr hwnd, FlashSpecification flashType, int flashCount ) : bool
hwnd System.IntPtr
flashType FlashSpecification
flashCount int
return bool
        public static bool FlashMyWindow(IntPtr hwnd,
            FlashSpecification flashType,
            int flashCount)
        {
            var fInfo = new FLASHWINFO();
            fInfo.cbSize = Convert.ToInt32(Marshal.SizeOf(fInfo));
            fInfo.hwnd = hwnd;
            fInfo.dwFlags = (int)FlashSpecification.FlashAll;
            fInfo.uCount = flashCount;
            fInfo.dwTimeout = 0;

            return FlashWindowEx(ref fInfo);
        }