コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: Win32Api.cs プロジェクト: HiichanDaisuki/OpenTween
        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);
        }