21 lines
867 B
C#
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);
|
|
}
|
|
}
|