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