private static bool FlashWindowEx(Process process, uint duration, uint flags)
 {
     NativeMethods.FLASHWINFO pwfi = default(NativeMethods.FLASHWINFO);
     pwfi.cbSize    = Convert.ToUInt32(Marshal.SizeOf <NativeMethods.FLASHWINFO>(pwfi));
     pwfi.hwnd      = process.MainWindowHandle;
     pwfi.dwFlags   = flags;
     pwfi.uCount    = duration;
     pwfi.dwTimeout = 0u;
     return(NativeMethods.FlashWindowEx(ref pwfi));
 }
 private static extern bool FlashWindowEx(ref NativeMethods.FLASHWINFO pwfi);