mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: update lumina, flash window
This commit is contained in:
parent
877b95eca6
commit
bef5a35fd9
6 changed files with 85 additions and 10 deletions
65
Dalamud/NativeFunctions.cs
Normal file
65
Dalamud/NativeFunctions.cs
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Dalamud
|
||||
{
|
||||
static class NativeFunctions
|
||||
{
|
||||
#region Enums and Structs
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct FLASHWINFO
|
||||
{
|
||||
public UInt32 cbSize;
|
||||
public IntPtr hwnd;
|
||||
public FlashWindow dwFlags;
|
||||
public UInt32 uCount;
|
||||
public UInt32 dwTimeout;
|
||||
}
|
||||
|
||||
public enum FlashWindow : uint
|
||||
{
|
||||
/// <summary>
|
||||
/// Stop flashing. The system restores the window to its original state.
|
||||
/// </summary>
|
||||
FLASHW_STOP = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Flash the window caption
|
||||
/// </summary>
|
||||
FLASHW_CAPTION = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Flash the taskbar button.
|
||||
/// </summary>
|
||||
FLASHW_TRAY = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Flash both the window caption and taskbar button.
|
||||
/// This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.
|
||||
/// </summary>
|
||||
FLASHW_ALL = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Flash continuously, until the FLASHW_STOP flag is set.
|
||||
/// </summary>
|
||||
FLASHW_TIMER = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Flash continuously until the window comes to the foreground.
|
||||
/// </summary>
|
||||
FLASHW_TIMERNOFG = 12
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
public static extern bool FlashWindowEx(ref FLASHWINFO pwfi);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue