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)); }
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); }