common/Ui/Common.UI/Infrastructure/User32DllImports.cs
2026-04-23 17:50:07 +02:00

21 lines
867 B
C#

namespace Common.UI.Infrastructure
{
using System;
using System.Runtime.InteropServices;
internal class User32DllImports
{
[DllImport("User32.dll", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool IsIconic([In] IntPtr windowHandle);
[DllImport("User32.dll", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool SetForegroundWindow([In] IntPtr windowHandle);
[DllImport("User32.dll", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool ShowWindow([In] IntPtr windowHandle, [In] User32Commands command);
}
}