Ejemplo n.º 1
0
 public static bool Stop(IntPtr handle)
 {
     if (FlashWindow.Win2000OrLater)
     {
         FlashWindow.FLASHWINFO fLASHWINFO = FlashWindow.Create_FLASHWINFO(handle, 0u, 4294967295u, 0u);
         return(FlashWindow.FlashWindowEx(ref fLASHWINFO));
     }
     return(false);
 }
Ejemplo n.º 2
0
 public static bool Flash(IntPtr handle, uint count)
 {
     if (FlashWindow.Win2000OrLater)
     {
         FlashWindow.FLASHWINFO fLASHWINFO = FlashWindow.Create_FLASHWINFO(handle, 3u, count, 0u);
         return(FlashWindow.FlashWindowEx(ref fLASHWINFO));
     }
     return(false);
 }
Ejemplo n.º 3
0
 private static FlashWindow.FLASHWINFO Create_FLASHWINFO(IntPtr handle, uint flags, uint count, uint timeout)
 {
     FlashWindow.FLASHWINFO fLASHWINFO = default(FlashWindow.FLASHWINFO);
     fLASHWINFO.cbSize    = Convert.ToUInt32(Marshal.SizeOf(fLASHWINFO));
     fLASHWINFO.hwnd      = handle;
     fLASHWINFO.dwFlags   = flags;
     fLASHWINFO.uCount    = count;
     fLASHWINFO.dwTimeout = timeout;
     return(fLASHWINFO);
 }
Ejemplo n.º 4
0
 private static extern bool FlashWindowEx(ref FlashWindow.FLASHWINFO pwfi);