# Xui.Runtime.Windows.Win32

Assembly: **Xui.Runtime.Windows** · [C# declarations](index.cs) · [Assembly overview](../index.md)

## Types

- [`class Dwmapi`](#api-f3b1787a8d776087)
- [`struct Dwmapi.MARGINS`](#api-72fcad9bf23c6fc4)
- [`class Kernel32`](#api-dfbb5fa1ad5e17ce)
- [`class Types`](#api-7b43e988b23c9522)
- [`struct Types.BOOL`](#api-0ea3023166321114)
- [`struct Types.COLORREF`](#api-5c8809c070127a99)
- [`struct Types.DWORD`](#api-f4da08af486f05a6)
- [`struct Types.HDC`](#api-6ff9226daa86a6e2)
- [`struct Types.HRESULT`](#api-c795e871fd800733)
- [`struct Types.LPARAM`](#api-28657016037cd84e)
- [`struct Types.LRESULT`](#api-2b33622090cbced4)
- [`struct Types.WPARAM`](#api-c9a0feaa42cf6a66)
- [`class User32`](#api-ac4847df1acd3055)
- [`enum User32.DPIAwarenessContext`](#api-8b10992b060a32ff)
- [`enum User32.ExtendedWindowStyles`](#api-0ac0f75ff9a5091d)
- [`enum User32.HitTest`](#api-96f8b2df5ca77cd5)
- [`enum User32.LayeredWindowAttribute`](#api-e92dc76b076d80bb)
- [`struct User32.MSG`](#api-171380babd647758)
- [`struct User32.NCCALCSIZE_PARAMS`](#api-61a47f18b48507aa)
- [`struct User32.PAINTSTRUCT`](#api-a51b75a2b453b8c0)
- [`struct User32.POINT`](#api-430de22d057e4f92)
- [`struct User32.RECT`](#api-bb966cb401d32566)
- [`enum User32.SystemCursor`](#api-e5b3d26f3be76c39)
- [`enum User32.SystemMetric`](#api-b1ec9f04a698549a)
- [`struct User32.TRACKMOUSEEVENT`](#api-245fe9850c4c9655)
- [`enum User32.TrackMouseEventFlags`](#api-d5455266517dbad5)
- [`class User32.Types`](#api-da48aa80c3a4676b)
- [`struct User32.Types.HWND`](#api-11f98628e25456d4)
- [`enum User32.Types.SetWindowPosFlags`](#api-34911ca24ad1f425)
- [`struct User32.WINDOWPOS`](#api-cb3656197bc68778)
- [`struct User32.WNDCLASSEXW`](#api-8833392ba2f995d7)
- [`delegate User32.WNDPROC`](#api-c613ae775004d512)
- [`enum User32.WindowClassStyles`](#api-c64b345be67131a0)
- [`enum User32.WindowColor`](#api-1d8c1a9540aca005)
- [`enum User32.WindowMessage`](#api-6cab561d78a101e6)
- [`enum User32.WindowPosFlags`](#api-42fc39b0c62faed8)
- [`enum User32.WindowStyles`](#api-9a58e5b819a4ff76)

<a id="api-f3b1787a8d776087"></a>

## `class Dwmapi`



```csharp
public static partial class Dwmapi
{
    public const string DwmapiLib = "dwmapi.dll";
    public const uint DWMWA_CAPTION_COLOR = 35;
    public const uint DWMWA_TEXT_COLOR = 36;
    public const uint DWMWA_SYSTEMBACKDROP_TYPE = 38;
    public const int DWMWA_COLOR_NONE = unchecked((int)0xFFFFFFFE);
    public const int DWMSBT_MAINWINDOW = 2;
    public const int DWMSBT_TRANSIENTWINDOW = 3;
    public const int DWMSBT_TABBEDWINDOW = 4;
    [StructLayout(LayoutKind.Sequential)]
    public struct MARGINS
    {
        public int Left;
        public int Right;
        public int Top;
        public int Bottom;
    }

    [LibraryImport(DwmapiLib)]
    public static partial int DwmExtendFrameIntoClientArea(nint hwnd, ref MARGINS pMarInset);
    [LibraryImport(DwmapiLib)]
    public static partial int DwmSetWindowAttribute(nint hwnd, uint dwAttribute, ref int pvAttribute, int cbAttribute);
    [LibraryImport(DwmapiLib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool DwmDefWindowProc(nint hwnd, User32.WindowMessage msg, WPARAM wParam, LPARAM lParam, out LRESULT plResult);
    [DllImport("dwmapi.dll")]
    public static extern int DwmFlush();
}
public static unsafe partial class Dwmapi
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial int DwmExtendFrameIntoClientArea(nint hwnd, ref global::Xui.Runtime.Windows.Win32.Dwmapi.MARGINS pMarInset);
}
public static unsafe partial class Dwmapi
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial int DwmSetWindowAttribute(nint hwnd, uint dwAttribute, ref int pvAttribute, int cbAttribute);
}
public static unsafe partial class Dwmapi
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool DwmDefWindowProc(nint hwnd, global::Xui.Runtime.Windows.Win32.User32.WindowMessage msg, global::Xui.Runtime.Windows.Win32.Types.WPARAM wParam, global::Xui.Runtime.Windows.Win32.Types.LPARAM lParam, out global::Xui.Runtime.Windows.Win32.Types.LRESULT plResult);
}
```

<a id="api-675ab1332261731d"></a>

### [`int Dwmapi.DWMSBT_MAINWINDOW`](#api-675ab1332261731d)


```csharp
public const int DWMSBT_MAINWINDOW = 2;
```

Mica backdrop (Windows 11 22H2+).

<a id="api-9fab98968be24565"></a>

### [`int Dwmapi.DWMSBT_TABBEDWINDOW`](#api-9fab98968be24565)


```csharp
public const int DWMSBT_TABBEDWINDOW = 4;
```

Mica Alt / Tabbed backdrop (Windows 11 22H2+).

<a id="api-09b9ec1eb64f02f0"></a>

### [`int Dwmapi.DWMSBT_TRANSIENTWINDOW`](#api-09b9ec1eb64f02f0)


```csharp
public const int DWMSBT_TRANSIENTWINDOW = 3;
```

Acrylic backdrop (Windows 11 22H2+).

<a id="api-1a3b9751e6950867"></a>

### [`uint Dwmapi.DWMWA_CAPTION_COLOR`](#api-1a3b9751e6950867)


```csharp
public const uint DWMWA_CAPTION_COLOR = 35;
```



<a id="api-636eca5aa2a34509"></a>

### [`int Dwmapi.DWMWA_COLOR_NONE`](#api-636eca5aa2a34509)


```csharp
public const int DWMWA_COLOR_NONE = unchecked((int)0xFFFFFFFE);
```

COLORREF value that indicates &quot;no color&quot; / transparent for DWM attributes.

<a id="api-9b57c836af609f43"></a>

### [`uint Dwmapi.DWMWA_SYSTEMBACKDROP_TYPE`](#api-9b57c836af609f43)


```csharp
public const uint DWMWA_SYSTEMBACKDROP_TYPE = 38;
```



<a id="api-343d7853e97139c0"></a>

### [`uint Dwmapi.DWMWA_TEXT_COLOR`](#api-343d7853e97139c0)


```csharp
public const uint DWMWA_TEXT_COLOR = 36;
```



<a id="api-87106778f77054a7"></a>

### [`bool Dwmapi.DwmDefWindowProc(nint hwnd, WindowMessage msg, WPARAM wParam, LPARAM lParam, out LRESULT plResult)`](#api-87106778f77054a7)


```csharp
[LibraryImport(DwmapiLib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool DwmDefWindowProc(nint hwnd, User32.WindowMessage msg, WPARAM wParam, LPARAM lParam, out LRESULT plResult);
```



<a id="api-436477f7da30653f"></a>

### [`int Dwmapi.DwmExtendFrameIntoClientArea(nint hwnd, ref MARGINS pMarInset)`](#api-436477f7da30653f)


```csharp
[LibraryImport(DwmapiLib)]
public static partial int DwmExtendFrameIntoClientArea(nint hwnd, ref MARGINS pMarInset);
```



<a id="api-d368a9001c98c612"></a>

### [`int Dwmapi.DwmFlush()`](#api-d368a9001c98c612)


```csharp
[DllImport("dwmapi.dll")]
public static extern int DwmFlush();
```



<a id="api-f7658f5b8a4d5166"></a>

### [`int Dwmapi.DwmSetWindowAttribute(nint hwnd, uint dwAttribute, ref int pvAttribute, int cbAttribute)`](#api-f7658f5b8a4d5166)


```csharp
[LibraryImport(DwmapiLib)]
public static partial int DwmSetWindowAttribute(nint hwnd, uint dwAttribute, ref int pvAttribute, int cbAttribute);
```



<a id="api-cb4d6e3f9265bfca"></a>

### [`string Dwmapi.DwmapiLib`](#api-cb4d6e3f9265bfca)


```csharp
public const string DwmapiLib = "dwmapi.dll";
```




<a id="api-72fcad9bf23c6fc4"></a>

## `struct Dwmapi.MARGINS`



```csharp
[StructLayout(LayoutKind.Sequential)]
public struct MARGINS
{
    public int Left;
    public int Right;
    public int Top;
    public int Bottom;
}
```

<a id="api-aeb572fcd2598481"></a>

### [`int MARGINS.Bottom`](#api-aeb572fcd2598481)


```csharp
public int Bottom;
```



<a id="api-839c4eead22673a4"></a>

### [`int MARGINS.Left`](#api-839c4eead22673a4)


```csharp
public int Left;
```



<a id="api-37c9d5643a736cd8"></a>

### [`int MARGINS.Right`](#api-37c9d5643a736cd8)


```csharp
public int Right;
```



<a id="api-d37e9e17a30100d2"></a>

### [`int MARGINS.Top`](#api-d37e9e17a30100d2)


```csharp
public int Top;
```




<a id="api-dfbb5fa1ad5e17ce"></a>

## `class Kernel32`



```csharp
public static partial class Kernel32
{
    public const string Kernel32Lib = "kernel32.dll";
    [LibraryImport(Kernel32Lib)]
    public static partial uint GetCurrentThreadId();
}
public static unsafe partial class Kernel32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("kernel32.dll", EntryPoint = "GetCurrentThreadId", ExactSpelling = true)]
    public static extern partial uint GetCurrentThreadId();
}
```

<a id="api-e2b554ee7b1d083d"></a>

### [`uint Kernel32.GetCurrentThreadId()`](#api-e2b554ee7b1d083d)


```csharp
[LibraryImport(Kernel32Lib)]
public static partial uint GetCurrentThreadId();
```

https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentthreadid

<a id="api-3a9fb847a93e91d1"></a>

### [`string Kernel32.Kernel32Lib`](#api-3a9fb847a93e91d1)


```csharp
public const string Kernel32Lib = "kernel32.dll";
```




<a id="api-7b43e988b23c9522"></a>

## `class Types`



```csharp
public static partial class Types
{
    [DebuggerDisplay("{Value}")]
    public struct BOOL
    {
        public int value;
        public BOOL(bool v);
        public bool Value { get; }

        public static implicit operator bool (BOOL v);
        public static implicit operator BOOL(bool v);
    }
}
public static partial class Types
{
    public partial struct COLORREF
    {
        public uint __BBGGRR;
        public COLORREF(uint v);
    }
}
public static partial class Types
{
    [DebuggerDisplay("{Value}")]
    public struct DWORD
    {
        public uint value;
        public DWORD(uint value);
        public uint Value { get; }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator uint (DWORD v);
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator DWORD(uint v);
    }
}
public static partial class Types
{
    [DebuggerDisplay("{Value}")]
    public partial struct HDC
    {
        [LibraryImport(User32Lib, EntryPoint = "FillRect")]
        public static partial BOOL HDCFillRect(nint hDC, ref RECT lprc, nint hbr);
        [LibraryImport(User32Lib, EntryPoint = "FrameRect")]
        public static partial BOOL HDCFrameRect(nint hDC, ref RECT lprc, nint hbr);
        public nint value;
        public HDC(nint value);
        public bool FillRect(Rect rect, nint brush);
        public bool FrameRect(Rect rect, nint brush);
        public nint Value { get; }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator nint(HDC v);
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator HDC(nint v);
    }
}
public static partial class Types
{
    [DebuggerDisplay("{Value}")]
    public struct HRESULT
    {
        public int value;
        public HRESULT(int value);
        public int Value { get; }
        public bool Failed { get; }
        public bool Succeeded { get; }

        public static implicit operator bool (HRESULT res);
        public static implicit operator int (HRESULT res);
    }
}
public static partial class Types
{
    [DebuggerDisplay("{Value}")]
    public struct LPARAM
    {
        public ulong value;
        public LPARAM(ulong value);
        public ulong Value { get; }
        public short LoWord { get; }
        public short HiWord { get; }
        public Point MousePosition { get; }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator ulong (LPARAM v);
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator LPARAM(ulong v);
    }
}
public static partial class Types
{
    [DebuggerDisplay("{Value}")]
    public struct LRESULT
    {
        public int value;
        public LRESULT(int value);
        public int Value { get; }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator int (LRESULT v);
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator LRESULT(int v);
    }
}
public static partial class Types
{
    [DebuggerDisplay("{Value}")]
    public struct WPARAM
    {
        public ulong value;
        public WPARAM(ulong value);
        public ulong Value { get; }
        public short HiWord { get; }
        public short LoWord { get; }
        public Vector WheelDelta { get; }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator ulong (WPARAM v);
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator WPARAM(ulong v);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HDC
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL HDCFillRect(nint hDC, ref global::Xui.Runtime.Windows.Win32.User32.RECT lprc, nint hbr);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HDC
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL HDCFrameRect(nint hDC, ref global::Xui.Runtime.Windows.Win32.User32.RECT lprc, nint hbr);
    }
}
```


<a id="api-0ea3023166321114"></a>

## `struct Types.BOOL`



```csharp
[DebuggerDisplay("{Value}")]
public struct BOOL
{
    public int value;
    public BOOL(bool v);
    public bool Value { get; }

    public static implicit operator bool (BOOL v);
    public static implicit operator BOOL(bool v);
}
```

<a id="api-20e5589965aed815"></a>

### [`BOOL.BOOL(bool v)`](#api-20e5589965aed815)


```csharp
public BOOL(bool v);
```



<a id="api-a52e0ef0c4767225"></a>

### [`bool BOOL.Value`](#api-a52e0ef0c4767225)


```csharp
public bool Value { get; }
```



<a id="api-20812361d373dcaa"></a>

### [`BOOL.implicit operator BOOL(bool v)`](#api-20812361d373dcaa)


```csharp
public static implicit operator BOOL(bool v);
```



<a id="api-0a15bfe6ed8ee52f"></a>

### [`BOOL.implicit operator bool(BOOL v)`](#api-0a15bfe6ed8ee52f)


```csharp
public static implicit operator bool (BOOL v);
```



<a id="api-046c6400651fe28d"></a>

### [`int BOOL.value`](#api-046c6400651fe28d)


```csharp
public int value;
```




<a id="api-5c8809c070127a99"></a>

## `struct Types.COLORREF`



```csharp
public partial struct COLORREF
{
    public uint __BBGGRR;
    public COLORREF(uint v);
}
```

<a id="api-ce875b52c05dc0d7"></a>

### [`COLORREF.COLORREF(uint v)`](#api-ce875b52c05dc0d7)


```csharp
public COLORREF(uint v);
```



<a id="api-c88e95115056639a"></a>

### [`uint COLORREF.__BBGGRR`](#api-c88e95115056639a)


```csharp
public uint __BBGGRR;
```




<a id="api-f4da08af486f05a6"></a>

## `struct Types.DWORD`



```csharp
[DebuggerDisplay("{Value}")]
public struct DWORD
{
    public uint value;
    public DWORD(uint value);
    public uint Value { get; }

    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator uint (DWORD v);
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator DWORD(uint v);
}
```

<a id="api-811d8f79547e1c2a"></a>

### [`DWORD.DWORD(uint value)`](#api-811d8f79547e1c2a)


```csharp
public DWORD(uint value);
```



<a id="api-b49d96093e76d920"></a>

### [`uint DWORD.Value`](#api-b49d96093e76d920)


```csharp
public uint Value { get; }
```



<a id="api-798783ad91f2cce6"></a>

### [`DWORD.implicit operator DWORD(uint v)`](#api-798783ad91f2cce6)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator DWORD(uint v);
```



<a id="api-d586dadfd497bddb"></a>

### [`DWORD.implicit operator uint(DWORD v)`](#api-d586dadfd497bddb)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator uint (DWORD v);
```



<a id="api-2390088250d8d016"></a>

### [`uint DWORD.value`](#api-2390088250d8d016)


```csharp
public uint value;
```




<a id="api-6ff9226daa86a6e2"></a>

## `struct Types.HDC`



```csharp
[DebuggerDisplay("{Value}")]
public partial struct HDC
{
    [LibraryImport(User32Lib, EntryPoint = "FillRect")]
    public static partial BOOL HDCFillRect(nint hDC, ref RECT lprc, nint hbr);
    [LibraryImport(User32Lib, EntryPoint = "FrameRect")]
    public static partial BOOL HDCFrameRect(nint hDC, ref RECT lprc, nint hbr);
    public nint value;
    public HDC(nint value);
    public bool FillRect(Rect rect, nint brush);
    public bool FrameRect(Rect rect, nint brush);
    public nint Value { get; }

    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator nint(HDC v);
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator HDC(nint v);
}
public unsafe partial struct HDC
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL HDCFillRect(nint hDC, ref global::Xui.Runtime.Windows.Win32.User32.RECT lprc, nint hbr);
}
public unsafe partial struct HDC
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL HDCFrameRect(nint hDC, ref global::Xui.Runtime.Windows.Win32.User32.RECT lprc, nint hbr);
}
```

<a id="api-21ad2a74b7de797f"></a>

### [`HDC.HDC(nint value)`](#api-21ad2a74b7de797f)


```csharp
public HDC(nint value);
```



<a id="api-d42fcd647d2ceaa0"></a>

### [`bool HDC.FillRect(Rect rect, nint brush)`](#api-d42fcd647d2ceaa0)


```csharp
public bool FillRect(Rect rect, nint brush);
```



<a id="api-c8024bdeedb7f73a"></a>

### [`bool HDC.FrameRect(Rect rect, nint brush)`](#api-c8024bdeedb7f73a)


```csharp
public bool FrameRect(Rect rect, nint brush);
```



<a id="api-703f85b5f33406c3"></a>

### [`BOOL HDC.HDCFillRect(nint hDC, ref RECT lprc, nint hbr)`](#api-703f85b5f33406c3)


```csharp
[LibraryImport(User32Lib, EntryPoint = "FillRect")]
public static partial BOOL HDCFillRect(nint hDC, ref RECT lprc, nint hbr);
```



<a id="api-85d94cf7e4641d5f"></a>

### [`BOOL HDC.HDCFrameRect(nint hDC, ref RECT lprc, nint hbr)`](#api-85d94cf7e4641d5f)


```csharp
[LibraryImport(User32Lib, EntryPoint = "FrameRect")]
public static partial BOOL HDCFrameRect(nint hDC, ref RECT lprc, nint hbr);
```



<a id="api-95e61d346d62fed8"></a>

### [`nint HDC.Value`](#api-95e61d346d62fed8)


```csharp
public nint Value { get; }
```



<a id="api-918d2d8912188a37"></a>

### [`HDC.implicit operator HDC(nint v)`](#api-918d2d8912188a37)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator HDC(nint v);
```



<a id="api-51b29292fd5237d4"></a>

### [`HDC.implicit operator nint(HDC v)`](#api-51b29292fd5237d4)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator nint(HDC v);
```



<a id="api-ec7efe69df31386d"></a>

### [`nint HDC.value`](#api-ec7efe69df31386d)


```csharp
public nint value;
```




<a id="api-c795e871fd800733"></a>

## `struct Types.HRESULT`



```csharp
[DebuggerDisplay("{Value}")]
public struct HRESULT
{
    public int value;
    public HRESULT(int value);
    public int Value { get; }
    public bool Failed { get; }
    public bool Succeeded { get; }

    public static implicit operator bool (HRESULT res);
    public static implicit operator int (HRESULT res);
}
```

<a id="api-73dc1800bf058ee5"></a>

### [`HRESULT.HRESULT(int value)`](#api-73dc1800bf058ee5)


```csharp
public HRESULT(int value);
```



<a id="api-9734b563915ff8e4"></a>

### [`bool HRESULT.Failed`](#api-9734b563915ff8e4)


```csharp
public bool Failed { get; }
```



<a id="api-65572d5bd4b6b98b"></a>

### [`bool HRESULT.Succeeded`](#api-65572d5bd4b6b98b)


```csharp
public bool Succeeded { get; }
```



<a id="api-b89ac6d1056ca4aa"></a>

### [`int HRESULT.Value`](#api-b89ac6d1056ca4aa)


```csharp
public int Value { get; }
```



<a id="api-a754271e57259eae"></a>

### [`HRESULT.implicit operator bool(HRESULT res)`](#api-a754271e57259eae)


```csharp
public static implicit operator bool (HRESULT res);
```



<a id="api-da3c4c6e2fda2a1e"></a>

### [`HRESULT.implicit operator int(HRESULT res)`](#api-da3c4c6e2fda2a1e)


```csharp
public static implicit operator int (HRESULT res);
```



<a id="api-e6d4c1415b4eed97"></a>

### [`int HRESULT.value`](#api-e6d4c1415b4eed97)


```csharp
public int value;
```




<a id="api-28657016037cd84e"></a>

## `struct Types.LPARAM`



```csharp
[DebuggerDisplay("{Value}")]
public struct LPARAM
{
    public ulong value;
    public LPARAM(ulong value);
    public ulong Value { get; }
    public short LoWord { get; }
    public short HiWord { get; }
    public Point MousePosition { get; }

    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator ulong (LPARAM v);
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator LPARAM(ulong v);
}
```

<a id="api-1e9f4d41473b76f5"></a>

### [`LPARAM.LPARAM(ulong value)`](#api-1e9f4d41473b76f5)


```csharp
public LPARAM(ulong value);
```



<a id="api-fd67ad61c9d09b53"></a>

### [`short LPARAM.HiWord`](#api-fd67ad61c9d09b53)


```csharp
public short HiWord { get; }
```



<a id="api-7050d7eec00c34dd"></a>

### [`short LPARAM.LoWord`](#api-7050d7eec00c34dd)


```csharp
public short LoWord { get; }
```



<a id="api-f0646cffe1c2d990"></a>

### [`Point LPARAM.MousePosition`](#api-f0646cffe1c2d990)


```csharp
public Point MousePosition { get; }
```



<a id="api-3638a6fb49483835"></a>

### [`ulong LPARAM.Value`](#api-3638a6fb49483835)


```csharp
public ulong Value { get; }
```



<a id="api-4bb5e5a25eacf37e"></a>

### [`LPARAM.implicit operator LPARAM(ulong v)`](#api-4bb5e5a25eacf37e)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator LPARAM(ulong v);
```



<a id="api-1a65e3f4e2f80b26"></a>

### [`LPARAM.implicit operator ulong(LPARAM v)`](#api-1a65e3f4e2f80b26)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator ulong (LPARAM v);
```



<a id="api-807c029d493d889e"></a>

### [`ulong LPARAM.value`](#api-807c029d493d889e)


```csharp
public ulong value;
```




<a id="api-2b33622090cbced4"></a>

## `struct Types.LRESULT`



```csharp
[DebuggerDisplay("{Value}")]
public struct LRESULT
{
    public int value;
    public LRESULT(int value);
    public int Value { get; }

    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator int (LRESULT v);
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator LRESULT(int v);
}
```

<a id="api-26fd8f9a699a4e2b"></a>

### [`LRESULT.LRESULT(int value)`](#api-26fd8f9a699a4e2b)


```csharp
public LRESULT(int value);
```



<a id="api-5d16be4bd009cb6e"></a>

### [`int LRESULT.Value`](#api-5d16be4bd009cb6e)


```csharp
public int Value { get; }
```



<a id="api-aecb120d0559c250"></a>

### [`LRESULT.implicit operator LRESULT(int v)`](#api-aecb120d0559c250)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator LRESULT(int v);
```



<a id="api-46b824e671bc088c"></a>

### [`LRESULT.implicit operator int(LRESULT v)`](#api-46b824e671bc088c)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator int (LRESULT v);
```



<a id="api-0e37d2830cf80ca9"></a>

### [`int LRESULT.value`](#api-0e37d2830cf80ca9)


```csharp
public int value;
```




<a id="api-c9a0feaa42cf6a66"></a>

## `struct Types.WPARAM`



```csharp
[DebuggerDisplay("{Value}")]
public struct WPARAM
{
    public ulong value;
    public WPARAM(ulong value);
    public ulong Value { get; }
    public short HiWord { get; }
    public short LoWord { get; }
    public Vector WheelDelta { get; }

    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator ulong (WPARAM v);
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator WPARAM(ulong v);
}
```

<a id="api-72d817c32b27289d"></a>

### [`WPARAM.WPARAM(ulong value)`](#api-72d817c32b27289d)


```csharp
public WPARAM(ulong value);
```



<a id="api-a5dbf6584c487d96"></a>

### [`short WPARAM.HiWord`](#api-a5dbf6584c487d96)


```csharp
public short HiWord { get; }
```



<a id="api-93847b19e4323740"></a>

### [`short WPARAM.LoWord`](#api-93847b19e4323740)


```csharp
public short LoWord { get; }
```



<a id="api-b73577d062eb2418"></a>

### [`ulong WPARAM.Value`](#api-b73577d062eb2418)


```csharp
public ulong Value { get; }
```



<a id="api-44bd8c97abbe962e"></a>

### [`Vector WPARAM.WheelDelta`](#api-44bd8c97abbe962e)


```csharp
public Vector WheelDelta { get; }
```



<a id="api-9a4f3e33a7fc5f5d"></a>

### [`WPARAM.implicit operator WPARAM(ulong v)`](#api-9a4f3e33a7fc5f5d)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator WPARAM(ulong v);
```



<a id="api-7372e7089f4a2cb1"></a>

### [`WPARAM.implicit operator ulong(WPARAM v)`](#api-7372e7089f4a2cb1)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator ulong (WPARAM v);
```



<a id="api-aed1ca31c6081dca"></a>

### [`ulong WPARAM.value`](#api-aed1ca31c6081dca)


```csharp
public ulong value;
```




<a id="api-ac4847df1acd3055"></a>

## `class User32`



```csharp
public static partial class User32
{
    [Flags]
    public enum DPIAwarenessContext : long
    {
        DPI_AWARENESS_CONTEXT_UNAWARE = -1,
        DPI_AWARENESS_CONTEXT_SYSTEM_AWARE = -2,
        DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = -3,
        DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 = -4,
        DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED = -5
    }
}
public static partial class User32
{
    [Flags]
    public enum ExtendedWindowStyles : long
    {
        WS_EX_ACCEPTFILES = 0x00000010L,
        WS_EX_APPWINDOW = 0x00040000L,
        WS_EX_CLIENTEDGE = 0x00000200L,
        WS_EX_COMPOSITED = 0x02000000L,
        WS_EX_CONTEXTHELP = 0x00000400L,
        WS_EX_CONTROLPARENT = 0x00010000L,
        WS_EX_DLGMODALFRAME = 0x00000001L,
        WS_EX_LAYERED = 0x00080000,
        WS_EX_LAYOUTRTL = 0x00400000L,
        WS_EX_LEFT = 0x00000000L,
        WS_EX_LEFTSCROLLBAR = 0x00004000L,
        WS_EX_LTRREADING = 0x00000000L,
        WS_EX_MDICHILD = 0x00000040L,
        WS_EX_NOACTIVATE = 0x08000000L,
        WS_EX_NOINHERITLAYOUT = 0x00100000L,
        WS_EX_NOPARENTNOTIFY = 0x00000004L,
        WS_EX_NOREDIRECTIONBITMAP = 0x00200000L,
        WS_EX_OVERLAPPEDWINDOW = (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE),
        WS_EX_PALETTEWINDOW = (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST),
        WS_EX_RIGHT = 0x00001000L,
        WS_EX_RIGHTSCROLLBAR = 0x00000000L,
        WS_EX_RTLREADING = 0x00002000L,
        WS_EX_STATICEDGE = 0x00020000L,
        WS_EX_TOOLWINDOW = 0x00000080L,
        WS_EX_TOPMOST = 0x00000008L,
        WS_EX_TRANSPARENT = 0x00000020L,
        WS_EX_WINDOWEDGE = 0x00000100L,
    }
}
public partial class User32
{
    public enum HitTest : int
    {
        HTERROR = -2,
        HTTRANSPARENT = -1,
        HTNOWHERE = 0,
        HTCLIENT = 1,
        HTCAPTION = 2,
        HTSYSMENU = 3,
        HTGROWBOX = 4,
        HTSIZE = HTGROWBOX,
        HTMENU = 5,
        HTHSCROLL = 6,
        HTVSCROLL = 7,
        HTMINBUTTON = 8,
        HTMAXBUTTON = 9,
        HTLEFT = 10,
        HTRIGHT = 11,
        HTTOP = 12,
        HTTOPLEFT = 13,
        HTTOPRIGHT = 14,
        HTBOTTOM = 15,
        HTBOTTOMLEFT = 16,
        HTBOTTOMRIGHT = 17,
        HTBORDER = 18,
        HTREDUCE = HTMINBUTTON,
        HTZOOM = HTMAXBUTTON,
        HTSIZEFIRST = HTLEFT,
        HTSIZELAST = HTBOTTOMRIGHT,
        HTOBJECT = 19,
        HTCLOSE = 20,
        HTHELP = 21,
    }
}
public static partial class User32
{
    [Flags]
    public enum LayeredWindowAttribute : long
    {
        LWA_COLORKEY = 0x00000001,
        LWA_ALPHA = 0x00000002,
    }
}
public static partial class User32
{
    [StructLayout(LayoutKind.Sequential)]
    public struct MSG
    {
        public nint hWnd;
        public WindowMessage message;
        public WPARAM wParam;
        public LPARAM lParam;
        public DWORD time;
        public POINT pt;
        public DWORD lPrivate;
    }
}
public static partial class User32
{
    public unsafe struct NCCALCSIZE_PARAMS
    {
        public RECT r1;
        public RECT r2;
        public RECT r3;
        public WINDOWPOS* lppos;
    }
}
public static partial class User32
{
    [StructLayout(LayoutKind.Explicit, Size = 72)]
    public struct PAINTSTRUCT
    {
        [FieldOffset(0)]
        public uint hdc;
        [FieldOffset(8)]
        public BOOL fErase;
        [FieldOffset(12)]
        public RECT rcPaint;
        [FieldOffset(28)]
        public BOOL fRestore;
        [FieldOffset(32)]
        public BOOL fIncUpdate;
        [FieldOffset(36)]
        public UInt64 rgbReserved1, rgbReserved2, rgbReserved3, rgbReserved4;
    }
}
public static partial class User32
{
    [StructLayout(LayoutKind.Sequential)]
    public struct POINT
    {
        public int X;
        public int Y;
    }
}
public static partial class User32
{
    [StructLayout(LayoutKind.Explicit)]
    public struct RECT
    {
        [FieldOffset(0)]
        public int Left;
        [FieldOffset(4)]
        public int Top;
        [FieldOffset(8)]
        public int Right;
        [FieldOffset(12)]
        public int Bottom;
        public RECT(Rect rect);
    }
}
public static partial class User32
{
    public static partial class Types
    {
        [Flags]
        public enum SetWindowPosFlags : uint
        {
            SWP_NOSIZE = 0x0001,
            SWP_NOMOVE = 0x0002,
            SWP_NOZORDER = 0x0004,
            SWP_NOREDRAW = 0x0008,
            SWP_NOACTIVATE = 0x0010,
            SWP_FRAMECHANGED = 0x0020,
            SWP_SHOWWINDOW = 0x0040,
            SWP_HIDEWINDOW = 0x0080,
            SWP_NOCOPYBITS = 0x0100,
            SWP_NOOWNERZORDER = 0x0200,
            SWP_NOSENDCHANGING = 0x0400,
            SWP_DEFERERASE = 0x2000,
            SWP_ASYNCWINDOWPOS = 0x4000
        }
    }
}
public static partial class User32
{
    public enum SystemCursor : int
    {
        Arrow = 32512,
        IBeam = 32513,
        Wait = 32514,
        Cross = 32515,
        UpArrow = 32516,
        SizeNWSE = 32642,
        SizeNESW = 32643,
        SizeWE = 32644,
        SizeNS = 32645,
        SizeAll = 32646,
        No = 32648,
        Hand = 32649,
        AppStarting = 32650,
        Help = 32651,
    }
}
public static partial class User32
{
    public enum SystemMetric : int
    {
        SM_CYCAPTION = 4,
        SM_CXSIZE = 30,
        SM_CYSIZE = 31,
        SM_CXSIZEFRAME = 32,
        SM_CYSIZEFRAME = 33,
        SM_CXPADDEDBORDER = 92,
    }
}
public static partial class User32
{
    [StructLayout(LayoutKind.Explicit, Size = 24)]
    public struct TRACKMOUSEEVENT
    {
        [FieldOffset(0)]
        public uint cbSize;
        [FieldOffset(4)]
        public TrackMouseEventFlags dwFlags;
        [FieldOffset(8)]
        public HWND hwndTrack;
        [FieldOffset(16)]
        public uint dwHoverTime;
    }
}
public static partial class User32
{
    [Flags]
    public enum TrackMouseEventFlags : uint
    {
        TME_HOVER = 0x00000001,
        TME_LEAVE = 0x00000002,
        TME_CANCEL = 0x80000000
    }
}
public static partial class User32
{
    public static partial class Types
    {
        [DebuggerDisplay("{Value}")]
        public partial struct HWND : IEquatable<HWND>
        {
            public static readonly HWND HWND_TOPMOST;
            public static readonly HWND HWND_NOTOPMOST;
            [LibraryImport(User32Lib)]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool ShowWindow(HWND hWnd, int nCmdShow);
            [LibraryImport(User32Lib)]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool UpdateWindow(HWND hWnd);
            [LibraryImport(User32Lib, EntryPoint = "SetWindowTextW")]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool SetWindowText(HWND hWnd, [MarshalAs(UnmanagedType.LPWStr)] string lpString);
            [LibraryImport(User32Lib, EntryPoint = "GetWindowTextW")]
            public static partial int GetWindowText(HWND hWnd, [MarshalAs(UnmanagedType.LPWStr)] out string lpString, int maxLength);
            [LibraryImport(User32Lib, EntryPoint = "SetWindowPos")]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, Types.SetWindowPosFlags uFlags);
            [LibraryImport(User32Lib, EntryPoint = "GetClientRect")]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool GetClientRect(HWND hWnd, out RECT rc);
            [LibraryImport(User32Lib, EntryPoint = "DefWindowProcW")]
            public static partial LRESULT DefWindowProc(HWND hWnd, WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
            [LibraryImport(User32Lib)]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool InvalidateRect(HWND hWnd, ref RECT rect, [MarshalAs(UnmanagedType.Bool)] bool erase);
            [LibraryImport(User32Lib)]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool InvalidateRect(HWND hWnd, nint rectPtr, [MarshalAs(UnmanagedType.Bool)] bool erase);
            [LibraryImport(User32Lib)]
            public static partial HDC BeginPaint(HWND hWnd, ref PAINTSTRUCT lpPaint);
            [LibraryImport(User32Lib)]
            public static partial BOOL EndPaint(HWND hWnd, ref PAINTSTRUCT lpPaint);
            [LibraryImport(User32Lib)]
            public static partial BOOL ScreenToClient(HWND hWnd, ref POINT lpPoint);
            [LibraryImport(User32Lib)]
            public static partial uint GetDpiForWindow(HWND hwnd);
            [LibraryImport(User32Lib, EntryPoint = "SetCapture")]
            public static partial HWND SetCapture(HWND hWnd);
            [LibraryImport(User32Lib, EntryPoint = "ReleaseCapture")]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool ReleaseCapture();
            [LibraryImport(User32Lib, EntryPoint = "GetWindowRect")]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool GetWindowRect(HWND hWnd, out RECT lpRect);
            [LibraryImport(User32Lib)]
            [return: MarshalAs(UnmanagedType.Bool)]
            public static partial bool IsZoomed(HWND hWnd);
            public nint value;
            public HWND(nint value);
            public bool SetWindowText(string text);
            public int GetWindowText(out string text, int maxLength);
            public bool GetClientRect(out RECT rect);
            public void ShowWindow(int nCmdShow = 1);
            public bool UpdateWindow();
            public void Invalidate();
            public bool ScreenToClient(ref POINT point);
            public bool GetWindowRect(out RECT rect);
            public bool IsMaximized { get; }

            public LRESULT DefWindowProc(WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
            public HDC BeginPaint(ref PAINTSTRUCT lpPaint);
            public bool EndPaint(ref PAINTSTRUCT lpPaint);
            public nint Value { get; }

            public bool Equals(HWND other);
            public override bool Equals(object? obj);
            public override int GetHashCode();
            public static bool operator ==(HWND left, HWND right);
            public static bool operator !=(HWND left, HWND right);
            public uint DPI { get; }
            public NFloat DPIScale { get; }

            public HWND CaptureMouse();
            [MethodImpl(MethodImplOptions.AggressiveInlining)]
            public static implicit operator nint(HWND v);
            [MethodImpl(MethodImplOptions.AggressiveInlining)]
            public static implicit operator HWND(nint v);
        }
    }
}
public static partial class User32
{
    public const string User32Lib = "user32.dll";
    public static readonly nint Lib;
    [LibraryImport(User32Lib)]
    public static partial nint GetSysColorBrush(int nIndex);
    [LibraryImport(User32Lib, EntryPoint = "RegisterClassExW")]
    public static partial ushort RegisterClassEx(WNDCLASSEXW p);
    [LibraryImport(User32Lib, EntryPoint = "CreateWindowExW")]
    public static partial nint CreateWindowEx(uint dwExStyle, ushort atom, [MarshalAs(UnmanagedType.LPUTF8Str)] string lpWindowName, uint dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, nint hMenu, nint hInstance, nint lpParam);
    [LibraryImport(User32Lib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool SetProcessDpiAwarenessContext(nint dpiContext);
    [LibraryImport(User32Lib)]
    public static partial int TranslateMessage(ref MSG msg);
    [LibraryImport(User32Lib, EntryPoint = "DispatchMessageW")]
    public static partial nint DispatchMessage(ref MSG msg);
    [LibraryImport(User32Lib, EntryPoint = "GetMessageW")]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool GetMessage(ref MSG msg, HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax);
    [LibraryImport(User32Lib, EntryPoint = "PeekMessageW")]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool PeekMessage(ref MSG msg, HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax, uint wRemoveMsg);
    [LibraryImport(User32Lib, EntryPoint = "PostMessageW")]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool PostMessage(HWND hWnd, WindowMessage Msg, WPARAM wParam, LPARAM lParam);
    [LibraryImport(User32Lib)]
    public static partial nuint SetTimer(HWND hWnd, nuint nIDEvent, uint uElapse, nint lpTimerFunc);
    [LibraryImport(User32Lib, EntryPoint = "SendMessageW")]
    public static partial nint SendMessage(HWND hWnd, uint Msg, nuint wParam, nint lParam);
    [LibraryImport(User32Lib)]
    public static unsafe partial BOOL SetLayeredWindowAttributes(HWND hWnd, COLORREF crKey, byte bAlpha, LayeredWindowAttribute dwFlags);
    [LibraryImport(User32Lib)]
    public static partial uint GetDpiForSystem();
    [DllImport(User32Lib, SetLastError = true)]
    public static extern BOOL TrackMouseEvent(ref TRACKMOUSEEVENT lpEventTrack);
    [LibraryImport(User32Lib, EntryPoint = "LoadCursorW", SetLastError = true)]
    public static partial nint LoadCursor(nint hInstance, int lpCursorName);
    [LibraryImport(User32Lib)]
    public static partial nint SetCursor(nint hCursor);
    [LibraryImport(User32Lib)]
    public static partial short GetKeyState(int nVirtKey);
    [LibraryImport(User32Lib, EntryPoint = "PostThreadMessageW", SetLastError = true)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool PostThreadMessage(uint idThread, uint Msg, nuint wParam, nint lParam);
    [LibraryImport(User32Lib, SetLastError = true)]
    public static partial uint MsgWaitForMultipleObjectsEx(uint nCount, nint[]? pHandles, uint dwMilliseconds, uint dwWakeMask, uint dwFlags);
    [LibraryImport(User32Lib)]
    public static partial int GetSystemMetricsForDpi(SystemMetric nIndex, uint dpi);
    [LibraryImport(User32Lib, EntryPoint = "GetSystemMetrics")]
    public static partial int GetSystemMetrics(SystemMetric nIndex);
    [LibraryImport(User32Lib)]
    public static partial void PostQuitMessage(int nExitCode);
    [LibraryImport(User32Lib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool DestroyWindow(HWND hWnd);
    [LibraryImport(User32Lib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool ClientToScreen(HWND hWnd, ref POINT lpPoint);
    [LibraryImport(User32Lib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool GetCursorPos(out POINT lpPoint);
}
public static partial class User32
{
    [StructLayout(LayoutKind.Sequential)]
    public struct WINDOWPOS
    {
        public nint hwnd;
        public nint hwndInsertAfter;
        public int x;
        public int y;
        public int cx;
        public int cy;
        public uint flags;
    }
}
public static partial class User32
{
    [StructLayout(LayoutKind.Sequential)]
    public struct WNDCLASSEXW
    {
        public uint cbSize;
        public WindowClassStyles styles;
        public nint lpfnWndProc;
        public int cbClsExtra;
        public int cbWndExtra;
        public nint hInstance;
        public nint hIcon;
        public nint hCursor;
        public nint hbrBackground;
        public nint lpszMenuName;
        public nint lpszClassName;
        public nint hIconSm;
    }
}
public static partial class User32
{
    [UnmanagedFunctionPointer(CallingConvention.StdCall)]
    public delegate int WNDPROC(HWND hwnd, WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
}
public static partial class User32
{
    [Flags]
    public enum WindowClassStyles : uint
    {
        CS_BYTEALIGNCLIENT = 0x1000,
        CS_BYTEALIGNWINDOW = 0x2000,
        CS_CLASSDC = 0x0040,
        CS_DBLCLKS = 0x0008,
        CS_DROPSHADOW = 0x00020000,
        CS_GLOBALCLASS = 0x4000,
        CS_HREDRAW = 0x0002,
        CS_NOCLOSE = 0x0200,
        CS_OWNDC = 0x0020,
        CS_PARENTDC = 0x0080,
        CS_SAVEBITS = 0x0800,
        CS_VREDRAW = 0x0001,
    }
}
public static partial class User32
{
    public enum WindowColor : int
    {
        COLOR_WINDOW = 5,
        COLOR_3DFACE = 15
    }
}
public static partial class User32
{
    public enum WindowMessage : uint
    {
        WM_NULL = 0x0000,
        WM_CREATE = 0x0001,
        WM_DESTROY = 0x0002,
        WM_MOVE = 0x0003,
        WM_SIZE = 0x0005,
        WM_ERASEBKGND = 0x0014,
        WM_SETCURSOR = 0x0020,
        WM_ACTIVATEAPP = 0x001C,
        WM_CANCELMODE = 0x001F,
        WM_CHILDACTIVATE = 0x0022,
        WM_CLOSE = 0x0010,
        WM_COMPACTING = 0x0041,
        WM_ENABLE = 0x000A,
        WM_ENTERSIZEMOVE = 0x0231,
        WM_EXITSIZEMOVE = 0x0232,
        WM_GETICON = 0x007F,
        WM_GETMINMAXINFO = 0x0024,
        WM_INPUTLANGCHANGE = 0x0051,
        WM_INPUTLANGCHANGEREQUEST = 0x0050,
        WM_MOVING = 0x0216,
        WM_NCACTIVATE = 0x0086,
        WM_NCCALCSIZE = 0x0083,
        WM_NCCREATE = 0x0081,
        WM_NCDESTROY = 0x0082,
        WM_QUERYDRAGICON = 0x0037,
        WM_QUERYOPEN = 0x0013,
        WM_QUIT = 0x0012,
        WM_SHOWWINDOW = 0x0018,
        WM_SIZING = 0x0214,
        WM_STYLECHANGED = 0x007D,
        WM_STYLECHANGING = 0x007C,
        WM_THEMECHANGED = 0x031A,
        WM_USERCHANGED = 0x0054,
        WM_WINDOWPOSCHANGED = 0x0047,
        WM_WINDOWPOSCHANGING = 0x0046,
        WM_CAPTURECHANGED = 0x0215,
        WM_LBUTTONDBLCLK = 0x0203,
        WM_LBUTTONDOWN = 0x0201,
        WM_LBUTTONUP = 0x0202,
        WM_MBUTTONDBLCLK = 0x0209,
        WM_MBUTTONDOWN = 0x0207,
        WM_MBUTTONUP = 0x0208,
        WM_MOUSEACTIVATE = 0x0021,
        WM_MOUSEHOVER = 0x02A1,
        WM_MOUSEHWHEEL = 0x020E,
        WM_MOUSELEAVE = 0x02A3,
        WM_MOUSEMOVE = 0x0200,
        WM_MOUSEWHEEL = 0x020A,
        WM_NCHITTEST = 0x0084,
        WM_NCLBUTTONDBLCLK = 0x00A3,
        WM_NCLBUTTONDOWN = 0x00A1,
        WM_NCLBUTTONUP = 0x00A2,
        WM_NCMBUTTONDBLCLK = 0x00A9,
        WM_NCMBUTTONDOWN = 0x00A7,
        WM_NCMBUTTONUP = 0x00A8,
        WM_NCMOUSEHOVER = 0x02A0,
        WM_NCMOUSELEAVE = 0x02A2,
        WM_NCMOUSEMOVE = 0x00A0,
        WM_NCRBUTTONDBLCLK = 0x00A6,
        WM_NCRBUTTONDOWN = 0x00A4,
        WM_NCRBUTTONUP = 0x00A5,
        WM_NCXBUTTONDBLCLK = 0x00AD,
        WM_NCXBUTTONDOWN = 0x00AB,
        WM_NCXBUTTONUP = 0x00AC,
        WM_RBUTTONDBLCLK = 0x0206,
        WM_RBUTTONDOWN = 0x0204,
        WM_RBUTTONUP = 0x0205,
        WM_XBUTTONDBLCLK = 0x020D,
        WM_XBUTTONDOWN = 0x020B,
        WM_XBUTTONUP = 0x020C,
        WM_ACTIVATE = 0x0006,
        WM_APPCOMMAND = 0x0319,
        WM_CHAR = 0x0102,
        WM_DEADCHAR = 0x0103,
        WM_HOTKEY = 0x0312,
        WM_KEYDOWN = 0x0100,
        WM_KEYUP = 0x0101,
        WM_KILLFOCUS = 0x0008,
        WM_SETFOCUS = 0x0007,
        WM_SYSDEADCHAR = 0x0107,
        WM_SYSKEYDOWN = 0x0104,
        WM_SYSKEYUP = 0x0105,
        WM_UNICHAR = 0x0109,
        WM_DISPLAYCHANGE = 0x7E,
        WM_NCPAINT = 0x85,
        WM_PAINT = 0xF,
        WM_PRINT = 0x317,
        WM_PRINTCLIENT = 0x318,
        WM_SETREDRAW = 0xB,
        WM_SYNCPAINT = 0x88,
        WM_INITMENUPOPUP = 0x0117,
        WM_MENUCHAR = 0x0120,
        WM_MENUSELECT = 0x011F,
        WM_SYSCHAR = 0x0106,
        WM_SYSCOMMAND = 0x0112,
        WM_TIMER = 0x0113,
        WM_DPICHANGED = 0x02E0,
        WM_SETICON = 0x0080,
    }
}
public static partial class User32
{
    [Flags]
    public enum WindowPosFlags : uint
    {
        None = 0,
        NoSize = 0x0001,
        NoMove = 0x0002,
        NoZOrder = 0x0004,
        NoRedraw = 0x0008,
        NoActivate = 0x0010,
        FrameChanged = 0x0020,
        ShowWindow = 0x0040,
        HideWindow = 0x0080,
        NoCopyBits = 0x0100,
        NoOwnerZOrder = 0x0200,
        NoSendChanging = 0x0400,
        DeferErase = 0x2000,
        AsyncWindowPos = 0x4000,
    }
}
public static partial class User32
{
    [Flags]
    public enum WindowStyles : long
    {
        WS_BORDER = 0x00800000L,
        WS_CAPTION = 0x00C00000L,
        WS_CHILD = 0x40000000L,
        WS_CHILDWINDOW = 0x40000000L,
        WS_CLIPCHILDREN = 0x02000000L,
        WS_CLIPSIBLINGS = 0x04000000L,
        WS_DISABLED = 0x08000000L,
        WS_DLGFRAME = 0x00400000L,
        WS_GROUP = 0x00020000L,
        WS_HSCROLL = 0x00100000L,
        WS_ICONIC = 0x20000000L,
        WS_MAXIMIZE = 0x01000000L,
        WS_MAXIMIZEBOX = 0x00010000L,
        WS_MINIMIZE = 0x20000000L,
        WS_MINIMIZEBOX = 0x00020000L,
        WS_OVERLAPPED = 0x00000000L,
        WS_OVERLAPPEDWINDOW = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX),
        WS_POPUP = 0x80000000L,
        WS_POPUPWINDOW = (WS_POPUP | WS_BORDER | WS_SYSMENU),
        WS_SIZEBOX = 0x00040000L,
        WS_SYSMENU = 0x00080000L,
        WS_TABSTOP = 0x00010000L,
        WS_THICKFRAME = 0x00040000L,
        WS_TILED = 0x00000000L,
        WS_TILEDWINDOW = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX),
        WS_VISIBLE = 0x10000000L,
        WS_VSCROLL = 0x00200000L,
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool ShowWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, int nCmdShow);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool UpdateWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool SetWindowText(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, string lpString);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial int GetWindowText(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, out string lpString, int maxLength);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool SetWindowPos(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWndInsertAfter, int X, int Y, int cx, int cy, global::Xui.Runtime.Windows.Win32.User32.Types.SetWindowPosFlags uFlags);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool GetClientRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, out global::Xui.Runtime.Windows.Win32.User32.RECT rc);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "DefWindowProcW", ExactSpelling = true)]
            public static extern partial global::Xui.Runtime.Windows.Win32.Types.LRESULT DefWindowProc(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, global::Xui.Runtime.Windows.Win32.User32.WindowMessage uMsg, global::Xui.Runtime.Windows.Win32.Types.WPARAM wParam, global::Xui.Runtime.Windows.Win32.Types.LPARAM lParam);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool InvalidateRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.RECT rect, bool erase);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool InvalidateRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, nint rectPtr, bool erase);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial global::Xui.Runtime.Windows.Win32.Types.HDC BeginPaint(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.PAINTSTRUCT lpPaint);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL EndPaint(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.PAINTSTRUCT lpPaint);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL ScreenToClient(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.POINT lpPoint);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "GetDpiForWindow", ExactSpelling = true)]
            public static extern partial uint GetDpiForWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hwnd);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetCapture", ExactSpelling = true)]
            public static extern partial global::Xui.Runtime.Windows.Win32.User32.Types.HWND SetCapture(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool ReleaseCapture();
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool GetWindowRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, out global::Xui.Runtime.Windows.Win32.User32.RECT lpRect);
        }
    }
}
public static unsafe partial class User32
{
    public static unsafe partial class Types
    {
        public unsafe partial struct HWND
        {
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
            [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
            public static partial bool IsZoomed(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
        }
    }
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "GetSysColorBrush", ExactSpelling = true)]
    public static extern partial nint GetSysColorBrush(int nIndex);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "RegisterClassExW", ExactSpelling = true)]
    public static extern partial ushort RegisterClassEx(global::Xui.Runtime.Windows.Win32.User32.WNDCLASSEXW p);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial nint CreateWindowEx(uint dwExStyle, ushort atom, string lpWindowName, uint dwStyle, int X, int Y, int nWidth, int nHeight, global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWndParent, nint hMenu, nint hInstance, nint lpParam);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool SetProcessDpiAwarenessContext(nint dpiContext);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial int TranslateMessage(ref global::Xui.Runtime.Windows.Win32.User32.MSG msg);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial nint DispatchMessage(ref global::Xui.Runtime.Windows.Win32.User32.MSG msg);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool GetMessage(ref global::Xui.Runtime.Windows.Win32.User32.MSG msg, global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool PeekMessage(ref global::Xui.Runtime.Windows.Win32.User32.MSG msg, global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax, uint wRemoveMsg);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool PostMessage(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, global::Xui.Runtime.Windows.Win32.User32.WindowMessage Msg, global::Xui.Runtime.Windows.Win32.Types.WPARAM wParam, global::Xui.Runtime.Windows.Win32.Types.LPARAM lParam);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetTimer", ExactSpelling = true)]
    public static extern partial nuint SetTimer(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, nuint nIDEvent, uint uElapse, nint lpTimerFunc);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SendMessageW", ExactSpelling = true)]
    public static extern partial nint SendMessage(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, uint Msg, nuint wParam, nint lParam);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetLayeredWindowAttributes", ExactSpelling = true)]
    public static unsafe extern partial global::Xui.Runtime.Windows.Win32.Types.BOOL SetLayeredWindowAttributes(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, global::Xui.Runtime.Windows.Win32.Types.COLORREF crKey, byte bAlpha, global::Xui.Runtime.Windows.Win32.User32.LayeredWindowAttribute dwFlags);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "GetDpiForSystem", ExactSpelling = true)]
    public static extern partial uint GetDpiForSystem();
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial nint LoadCursor(nint hInstance, int lpCursorName);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetCursor", ExactSpelling = true)]
    public static extern partial nint SetCursor(nint hCursor);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "GetKeyState", ExactSpelling = true)]
    public static extern partial short GetKeyState(int nVirtKey);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool PostThreadMessage(uint idThread, uint Msg, nuint wParam, nint lParam);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial uint MsgWaitForMultipleObjectsEx(uint nCount, nint[] pHandles, uint dwMilliseconds, uint dwWakeMask, uint dwFlags);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "GetSystemMetricsForDpi", ExactSpelling = true)]
    public static extern partial int GetSystemMetricsForDpi(global::Xui.Runtime.Windows.Win32.User32.SystemMetric nIndex, uint dpi);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "GetSystemMetrics", ExactSpelling = true)]
    public static extern partial int GetSystemMetrics(global::Xui.Runtime.Windows.Win32.User32.SystemMetric nIndex);
}
public static unsafe partial class User32
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "PostQuitMessage", ExactSpelling = true)]
    public static extern partial void PostQuitMessage(int nExitCode);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool DestroyWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool ClientToScreen(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.POINT lpPoint);
}
public static unsafe partial class User32
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool GetCursorPos(out global::Xui.Runtime.Windows.Win32.User32.POINT lpPoint);
}
```

<a id="api-b3be4ff66df28556"></a>

### [`bool User32.ClientToScreen(HWND hWnd, ref POINT lpPoint)`](#api-b3be4ff66df28556)


```csharp
[LibraryImport(User32Lib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool ClientToScreen(HWND hWnd, ref POINT lpPoint);
```



<a id="api-90c06d327bc2ec63"></a>

### [`nint User32.CreateWindowEx(uint dwExStyle, ushort atom, string lpWindowName, uint dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, nint hMenu, nint hInstance, nint lpParam)`](#api-90c06d327bc2ec63)


```csharp
[LibraryImport(User32Lib, EntryPoint = "CreateWindowExW")]
public static partial nint CreateWindowEx(uint dwExStyle, ushort atom, [MarshalAs(UnmanagedType.LPUTF8Str)] string lpWindowName, uint dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, nint hMenu, nint hInstance, nint lpParam);
```



<a id="api-47b674fe6192ac8c"></a>

### [`bool User32.DestroyWindow(HWND hWnd)`](#api-47b674fe6192ac8c)


```csharp
[LibraryImport(User32Lib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool DestroyWindow(HWND hWnd);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-destroywindow

<a id="api-b999acc7ed65079a"></a>

### [`nint User32.DispatchMessage(ref MSG msg)`](#api-b999acc7ed65079a)


```csharp
[LibraryImport(User32Lib, EntryPoint = "DispatchMessageW")]
public static partial nint DispatchMessage(ref MSG msg);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-dispatchmessagew

<a id="api-a707535947651bae"></a>

### [`bool User32.GetCursorPos(out POINT lpPoint)`](#api-a707535947651bae)


```csharp
[LibraryImport(User32Lib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool GetCursorPos(out POINT lpPoint);
```



<a id="api-898a27ec42e9705e"></a>

### [`uint User32.GetDpiForSystem()`](#api-898a27ec42e9705e)


```csharp
[LibraryImport(User32Lib)]
public static partial uint GetDpiForSystem();
```



<a id="api-c373ea054f11c644"></a>

### [`short User32.GetKeyState(int nVirtKey)`](#api-c373ea054f11c644)


```csharp
[LibraryImport(User32Lib)]
public static partial short GetKeyState(int nVirtKey);
```



<a id="api-038b29ad1e1250c1"></a>

### [`bool User32.GetMessage(ref MSG msg, HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax)`](#api-038b29ad1e1250c1)


```csharp
[LibraryImport(User32Lib, EntryPoint = "GetMessageW")]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool GetMessage(ref MSG msg, HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-dispatchmessagew

<a id="api-25a7364c62eaedd6"></a>

### [`nint User32.GetSysColorBrush(int nIndex)`](#api-25a7364c62eaedd6)


```csharp
[LibraryImport(User32Lib)]
public static partial nint GetSysColorBrush(int nIndex);
```



<a id="api-c6966dcdfa211463"></a>

### [`int User32.GetSystemMetrics(SystemMetric nIndex)`](#api-c6966dcdfa211463)


```csharp
[LibraryImport(User32Lib, EntryPoint = "GetSystemMetrics")]
public static partial int GetSystemMetrics(SystemMetric nIndex);
```



<a id="api-e706a0a80178a311"></a>

### [`int User32.GetSystemMetricsForDpi(SystemMetric nIndex, uint dpi)`](#api-e706a0a80178a311)


```csharp
[LibraryImport(User32Lib)]
public static partial int GetSystemMetricsForDpi(SystemMetric nIndex, uint dpi);
```



<a id="api-8132d20291aa9512"></a>

### [`nint User32.Lib`](#api-8132d20291aa9512)


```csharp
public static readonly nint Lib;
```



<a id="api-10e6504a3cacdcce"></a>

### [`nint User32.LoadCursor(nint hInstance, int lpCursorName)`](#api-10e6504a3cacdcce)


```csharp
[LibraryImport(User32Lib, EntryPoint = "LoadCursorW", SetLastError = true)]
public static partial nint LoadCursor(nint hInstance, int lpCursorName);
```



<a id="api-87ebeda857eaf10c"></a>

### [`uint User32.MsgWaitForMultipleObjectsEx(uint nCount, nint[]? pHandles, uint dwMilliseconds, uint dwWakeMask, uint dwFlags)`](#api-87ebeda857eaf10c)


```csharp
[LibraryImport(User32Lib, SetLastError = true)]
public static partial uint MsgWaitForMultipleObjectsEx(uint nCount, nint[]? pHandles, uint dwMilliseconds, uint dwWakeMask, uint dwFlags);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-msgwaitformultipleobjectsex

<a id="api-7d87dcfc56e9a9e4"></a>

### [`bool User32.PeekMessage(ref MSG msg, HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax, uint wRemoveMsg)`](#api-7d87dcfc56e9a9e4)


```csharp
[LibraryImport(User32Lib, EntryPoint = "PeekMessageW")]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool PeekMessage(ref MSG msg, HWND hWnd, uint wMsgFilterMin, uint wMsgFilterMax, uint wRemoveMsg);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-dispatchmessagew

<a id="api-b6d796b526b818be"></a>

### [`bool User32.PostMessage(HWND hWnd, WindowMessage Msg, WPARAM wParam, LPARAM lParam)`](#api-b6d796b526b818be)


```csharp
[LibraryImport(User32Lib, EntryPoint = "PostMessageW")]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool PostMessage(HWND hWnd, WindowMessage Msg, WPARAM wParam, LPARAM lParam);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-postmessagew

<a id="api-217dace50cd50d22"></a>

### [`void User32.PostQuitMessage(int nExitCode)`](#api-217dace50cd50d22)


```csharp
[LibraryImport(User32Lib)]
public static partial void PostQuitMessage(int nExitCode);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-postquitmessage

<a id="api-9aa3c9308812149f"></a>

### [`bool User32.PostThreadMessage(uint idThread, uint Msg, nuint wParam, nint lParam)`](#api-9aa3c9308812149f)


```csharp
[LibraryImport(User32Lib, EntryPoint = "PostThreadMessageW", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool PostThreadMessage(uint idThread, uint Msg, nuint wParam, nint lParam);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-postthreadmessagew

<a id="api-e80d5d266ddb39b8"></a>

### [`ushort User32.RegisterClassEx(WNDCLASSEXW p)`](#api-e80d5d266ddb39b8)


```csharp
[LibraryImport(User32Lib, EntryPoint = "RegisterClassExW")]
public static partial ushort RegisterClassEx(WNDCLASSEXW p);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerclassexw

<a id="api-0ecd60c47dfbe139"></a>

### [`nint User32.SendMessage(HWND hWnd, uint Msg, nuint wParam, nint lParam)`](#api-0ecd60c47dfbe139)


```csharp
[LibraryImport(User32Lib, EntryPoint = "SendMessageW")]
public static partial nint SendMessage(HWND hWnd, uint Msg, nuint wParam, nint lParam);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessagew

<a id="api-ef826107ab83c9ca"></a>

### [`nint User32.SetCursor(nint hCursor)`](#api-ef826107ab83c9ca)


```csharp
[LibraryImport(User32Lib)]
public static partial nint SetCursor(nint hCursor);
```



<a id="api-927b1c07170b3e3f"></a>

### [`BOOL User32.SetLayeredWindowAttributes(HWND hWnd, COLORREF crKey, byte bAlpha, LayeredWindowAttribute dwFlags)`](#api-927b1c07170b3e3f)


```csharp
[LibraryImport(User32Lib)]
public static unsafe partial BOOL SetLayeredWindowAttributes(HWND hWnd, COLORREF crKey, byte bAlpha, LayeredWindowAttribute dwFlags);
```



<a id="api-50225e2d5938daa6"></a>

### [`bool User32.SetProcessDpiAwarenessContext(nint dpiContext)`](#api-50225e2d5938daa6)


```csharp
[LibraryImport(User32Lib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool SetProcessDpiAwarenessContext(nint dpiContext);
```



<a id="api-5b10fe7e5ca209c7"></a>

### [`nuint User32.SetTimer(HWND hWnd, nuint nIDEvent, uint uElapse, nint lpTimerFunc)`](#api-5b10fe7e5ca209c7)


```csharp
[LibraryImport(User32Lib)]
public static partial nuint SetTimer(HWND hWnd, nuint nIDEvent, uint uElapse, nint lpTimerFunc);
```



<a id="api-ea3cb27a7bb3470f"></a>

### [`BOOL User32.TrackMouseEvent(ref TRACKMOUSEEVENT lpEventTrack)`](#api-ea3cb27a7bb3470f)


```csharp
[DllImport(User32Lib, SetLastError = true)]
public static extern BOOL TrackMouseEvent(ref TRACKMOUSEEVENT lpEventTrack);
```



<a id="api-50726ccbceda4b5d"></a>

### [`int User32.TranslateMessage(ref MSG msg)`](#api-50726ccbceda4b5d)


```csharp
[LibraryImport(User32Lib)]
public static partial int TranslateMessage(ref MSG msg);
```

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-translatemessage

<a id="api-fe8b0d2c3c2d3f68"></a>

### [`string User32.User32Lib`](#api-fe8b0d2c3c2d3f68)


```csharp
public const string User32Lib = "user32.dll";
```




<a id="api-8b10992b060a32ff"></a>

## `enum User32.DPIAwarenessContext`



```csharp
[Flags]
public enum DPIAwarenessContext : long
{
    DPI_AWARENESS_CONTEXT_UNAWARE = -1,
    DPI_AWARENESS_CONTEXT_SYSTEM_AWARE = -2,
    DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = -3,
    DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 = -4,
    DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED = -5
}
```

<a id="api-a02a3273cae2ab11"></a>

### [`DPIAwarenessContext.DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE`](#api-a02a3273cae2ab11)


```csharp
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE = -3
```



<a id="api-6dba740b53f7127b"></a>

### [`DPIAwarenessContext.DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2`](#api-6dba740b53f7127b)


```csharp
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 = -4
```



<a id="api-e3ac41fd84b78da1"></a>

### [`DPIAwarenessContext.DPI_AWARENESS_CONTEXT_SYSTEM_AWARE`](#api-e3ac41fd84b78da1)


```csharp
DPI_AWARENESS_CONTEXT_SYSTEM_AWARE = -2
```



<a id="api-b964c4159ff756bc"></a>

### [`DPIAwarenessContext.DPI_AWARENESS_CONTEXT_UNAWARE`](#api-b964c4159ff756bc)


```csharp
DPI_AWARENESS_CONTEXT_UNAWARE = -1
```



<a id="api-048b4b1ce9e32a26"></a>

### [`DPIAwarenessContext.DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED`](#api-048b4b1ce9e32a26)


```csharp
DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED = -5
```




<a id="api-0ac0f75ff9a5091d"></a>

## `enum User32.ExtendedWindowStyles`

https://learn.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles

```csharp
[Flags]
public enum ExtendedWindowStyles : long
{
    WS_EX_ACCEPTFILES = 0x00000010L,
    WS_EX_APPWINDOW = 0x00040000L,
    WS_EX_CLIENTEDGE = 0x00000200L,
    WS_EX_COMPOSITED = 0x02000000L,
    WS_EX_CONTEXTHELP = 0x00000400L,
    WS_EX_CONTROLPARENT = 0x00010000L,
    WS_EX_DLGMODALFRAME = 0x00000001L,
    WS_EX_LAYERED = 0x00080000,
    WS_EX_LAYOUTRTL = 0x00400000L,
    WS_EX_LEFT = 0x00000000L,
    WS_EX_LEFTSCROLLBAR = 0x00004000L,
    WS_EX_LTRREADING = 0x00000000L,
    WS_EX_MDICHILD = 0x00000040L,
    WS_EX_NOACTIVATE = 0x08000000L,
    WS_EX_NOINHERITLAYOUT = 0x00100000L,
    WS_EX_NOPARENTNOTIFY = 0x00000004L,
    WS_EX_NOREDIRECTIONBITMAP = 0x00200000L,
    WS_EX_OVERLAPPEDWINDOW = (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE),
    WS_EX_PALETTEWINDOW = (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST),
    WS_EX_RIGHT = 0x00001000L,
    WS_EX_RIGHTSCROLLBAR = 0x00000000L,
    WS_EX_RTLREADING = 0x00002000L,
    WS_EX_STATICEDGE = 0x00020000L,
    WS_EX_TOOLWINDOW = 0x00000080L,
    WS_EX_TOPMOST = 0x00000008L,
    WS_EX_TRANSPARENT = 0x00000020L,
    WS_EX_WINDOWEDGE = 0x00000100L,
}
```

<a id="api-588d16cfdf916f2d"></a>

### [`ExtendedWindowStyles.WS_EX_ACCEPTFILES`](#api-588d16cfdf916f2d)


```csharp
WS_EX_ACCEPTFILES = 0x00000010L
```



<a id="api-3b7e018dffd5b7a4"></a>

### [`ExtendedWindowStyles.WS_EX_APPWINDOW`](#api-3b7e018dffd5b7a4)


```csharp
WS_EX_APPWINDOW = 0x00040000L
```



<a id="api-db1789190f7a9c83"></a>

### [`ExtendedWindowStyles.WS_EX_CLIENTEDGE`](#api-db1789190f7a9c83)


```csharp
WS_EX_CLIENTEDGE = 0x00000200L
```



<a id="api-374870701264d0de"></a>

### [`ExtendedWindowStyles.WS_EX_COMPOSITED`](#api-374870701264d0de)


```csharp
WS_EX_COMPOSITED = 0x02000000L
```



<a id="api-e8a7496f2d544e29"></a>

### [`ExtendedWindowStyles.WS_EX_CONTEXTHELP`](#api-e8a7496f2d544e29)


```csharp
WS_EX_CONTEXTHELP = 0x00000400L
```



<a id="api-b04a29489aab8515"></a>

### [`ExtendedWindowStyles.WS_EX_CONTROLPARENT`](#api-b04a29489aab8515)


```csharp
WS_EX_CONTROLPARENT = 0x00010000L
```



<a id="api-c0e92e8db4f4c4ca"></a>

### [`ExtendedWindowStyles.WS_EX_DLGMODALFRAME`](#api-c0e92e8db4f4c4ca)


```csharp
WS_EX_DLGMODALFRAME = 0x00000001L
```



<a id="api-5f2a58ae99f8a85b"></a>

### [`ExtendedWindowStyles.WS_EX_LAYERED`](#api-5f2a58ae99f8a85b)


```csharp
WS_EX_LAYERED = 0x00080000
```



<a id="api-dc5217077cca87fd"></a>

### [`ExtendedWindowStyles.WS_EX_LAYOUTRTL`](#api-dc5217077cca87fd)


```csharp
WS_EX_LAYOUTRTL = 0x00400000L
```



<a id="api-c68e31eb6634ae74"></a>

### [`ExtendedWindowStyles.WS_EX_LEFT`](#api-c68e31eb6634ae74)


```csharp
WS_EX_LEFT = 0x00000000L
```



<a id="api-f0fad46bf5e26b92"></a>

### [`ExtendedWindowStyles.WS_EX_LEFTSCROLLBAR`](#api-f0fad46bf5e26b92)


```csharp
WS_EX_LEFTSCROLLBAR = 0x00004000L
```



<a id="api-6cd6e7a621938d56"></a>

### [`ExtendedWindowStyles.WS_EX_LTRREADING`](#api-6cd6e7a621938d56)


```csharp
WS_EX_LTRREADING = 0x00000000L
```



<a id="api-d2814b0169b86f6c"></a>

### [`ExtendedWindowStyles.WS_EX_MDICHILD`](#api-d2814b0169b86f6c)


```csharp
WS_EX_MDICHILD = 0x00000040L
```



<a id="api-4cc367a7b6490c37"></a>

### [`ExtendedWindowStyles.WS_EX_NOACTIVATE`](#api-4cc367a7b6490c37)


```csharp
WS_EX_NOACTIVATE = 0x08000000L
```



<a id="api-748df4f8b1ba2459"></a>

### [`ExtendedWindowStyles.WS_EX_NOINHERITLAYOUT`](#api-748df4f8b1ba2459)


```csharp
WS_EX_NOINHERITLAYOUT = 0x00100000L
```



<a id="api-08a0223fb0293454"></a>

### [`ExtendedWindowStyles.WS_EX_NOPARENTNOTIFY`](#api-08a0223fb0293454)


```csharp
WS_EX_NOPARENTNOTIFY = 0x00000004L
```



<a id="api-de2eaa54bc9b637e"></a>

### [`ExtendedWindowStyles.WS_EX_NOREDIRECTIONBITMAP`](#api-de2eaa54bc9b637e)


```csharp
WS_EX_NOREDIRECTIONBITMAP = 0x00200000L
```



<a id="api-34545b0643def4fb"></a>

### [`ExtendedWindowStyles.WS_EX_OVERLAPPEDWINDOW`](#api-34545b0643def4fb)


```csharp
WS_EX_OVERLAPPEDWINDOW = (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE)
```



<a id="api-4a53113983768e3a"></a>

### [`ExtendedWindowStyles.WS_EX_PALETTEWINDOW`](#api-4a53113983768e3a)


```csharp
WS_EX_PALETTEWINDOW = (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST)
```



<a id="api-37b6daa38a604d5c"></a>

### [`ExtendedWindowStyles.WS_EX_RIGHT`](#api-37b6daa38a604d5c)


```csharp
WS_EX_RIGHT = 0x00001000L
```



<a id="api-8ce1c3f0766b3a40"></a>

### [`ExtendedWindowStyles.WS_EX_RIGHTSCROLLBAR`](#api-8ce1c3f0766b3a40)


```csharp
WS_EX_RIGHTSCROLLBAR = 0x00000000L
```



<a id="api-6e887ae0e1b2329f"></a>

### [`ExtendedWindowStyles.WS_EX_RTLREADING`](#api-6e887ae0e1b2329f)


```csharp
WS_EX_RTLREADING = 0x00002000L
```



<a id="api-e0afb9d6ed9d5c87"></a>

### [`ExtendedWindowStyles.WS_EX_STATICEDGE`](#api-e0afb9d6ed9d5c87)


```csharp
WS_EX_STATICEDGE = 0x00020000L
```



<a id="api-41da9a313a9a8f1b"></a>

### [`ExtendedWindowStyles.WS_EX_TOOLWINDOW`](#api-41da9a313a9a8f1b)


```csharp
WS_EX_TOOLWINDOW = 0x00000080L
```



<a id="api-ba3dcb7e0ff5d0c8"></a>

### [`ExtendedWindowStyles.WS_EX_TOPMOST`](#api-ba3dcb7e0ff5d0c8)


```csharp
WS_EX_TOPMOST = 0x00000008L
```



<a id="api-fe4f9fe9e38bf3ce"></a>

### [`ExtendedWindowStyles.WS_EX_TRANSPARENT`](#api-fe4f9fe9e38bf3ce)


```csharp
WS_EX_TRANSPARENT = 0x00000020L
```



<a id="api-0fa1eebeab8e199a"></a>

### [`ExtendedWindowStyles.WS_EX_WINDOWEDGE`](#api-0fa1eebeab8e199a)


```csharp
WS_EX_WINDOWEDGE = 0x00000100L
```




<a id="api-96f8b2df5ca77cd5"></a>

## `enum User32.HitTest`



```csharp
public enum HitTest : int
{
    HTERROR = -2,
    HTTRANSPARENT = -1,
    HTNOWHERE = 0,
    HTCLIENT = 1,
    HTCAPTION = 2,
    HTSYSMENU = 3,
    HTGROWBOX = 4,
    HTSIZE = HTGROWBOX,
    HTMENU = 5,
    HTHSCROLL = 6,
    HTVSCROLL = 7,
    HTMINBUTTON = 8,
    HTMAXBUTTON = 9,
    HTLEFT = 10,
    HTRIGHT = 11,
    HTTOP = 12,
    HTTOPLEFT = 13,
    HTTOPRIGHT = 14,
    HTBOTTOM = 15,
    HTBOTTOMLEFT = 16,
    HTBOTTOMRIGHT = 17,
    HTBORDER = 18,
    HTREDUCE = HTMINBUTTON,
    HTZOOM = HTMAXBUTTON,
    HTSIZEFIRST = HTLEFT,
    HTSIZELAST = HTBOTTOMRIGHT,
    HTOBJECT = 19,
    HTCLOSE = 20,
    HTHELP = 21,
}
```

<a id="api-605f5664750b7917"></a>

### [`HitTest.HTBORDER`](#api-605f5664750b7917)


```csharp
HTBORDER = 18
```



<a id="api-659ece27480787bf"></a>

### [`HitTest.HTBOTTOM`](#api-659ece27480787bf)


```csharp
HTBOTTOM = 15
```



<a id="api-e83881ae573fb2e8"></a>

### [`HitTest.HTBOTTOMLEFT`](#api-e83881ae573fb2e8)


```csharp
HTBOTTOMLEFT = 16
```



<a id="api-e97dce94b89d9823"></a>

### [`HitTest.HTBOTTOMRIGHT`](#api-e97dce94b89d9823)


```csharp
HTBOTTOMRIGHT = 17
```



<a id="api-15477dfa6e24626c"></a>

### [`HitTest.HTCAPTION`](#api-15477dfa6e24626c)


```csharp
HTCAPTION = 2
```



<a id="api-159e38c75722834d"></a>

### [`HitTest.HTCLIENT`](#api-159e38c75722834d)


```csharp
HTCLIENT = 1
```



<a id="api-7d7eaceebac76dfe"></a>

### [`HitTest.HTCLOSE`](#api-7d7eaceebac76dfe)


```csharp
HTCLOSE = 20
```



<a id="api-474c80521a219983"></a>

### [`HitTest.HTERROR`](#api-474c80521a219983)


```csharp
HTERROR = -2
```



<a id="api-5e9729a7d425f906"></a>

### [`HitTest.HTGROWBOX`](#api-5e9729a7d425f906)


```csharp
HTGROWBOX = 4
```



<a id="api-1199fb397e84a2ac"></a>

### [`HitTest.HTHELP`](#api-1199fb397e84a2ac)


```csharp
HTHELP = 21
```



<a id="api-2b436524a6f48eb1"></a>

### [`HitTest.HTHSCROLL`](#api-2b436524a6f48eb1)


```csharp
HTHSCROLL = 6
```



<a id="api-f002936817400872"></a>

### [`HitTest.HTLEFT`](#api-f002936817400872)


```csharp
HTLEFT = 10
```



<a id="api-b786eea70e707c2e"></a>

### [`HitTest.HTMAXBUTTON`](#api-b786eea70e707c2e)


```csharp
HTMAXBUTTON = 9
```



<a id="api-bdfcec56feb0b7ad"></a>

### [`HitTest.HTMENU`](#api-bdfcec56feb0b7ad)


```csharp
HTMENU = 5
```



<a id="api-1452921182fd73a8"></a>

### [`HitTest.HTMINBUTTON`](#api-1452921182fd73a8)


```csharp
HTMINBUTTON = 8
```



<a id="api-046f706eb94c23a6"></a>

### [`HitTest.HTNOWHERE`](#api-046f706eb94c23a6)


```csharp
HTNOWHERE = 0
```



<a id="api-ea347c26962bb652"></a>

### [`HitTest.HTOBJECT`](#api-ea347c26962bb652)


```csharp
HTOBJECT = 19
```



<a id="api-f5e9067a7ace536f"></a>

### [`HitTest.HTREDUCE`](#api-f5e9067a7ace536f)


```csharp
HTREDUCE = HTMINBUTTON
```



<a id="api-c383f542d0c7b135"></a>

### [`HitTest.HTRIGHT`](#api-c383f542d0c7b135)


```csharp
HTRIGHT = 11
```



<a id="api-982b88862dde6c1c"></a>

### [`HitTest.HTSIZE`](#api-982b88862dde6c1c)


```csharp
HTSIZE = HTGROWBOX
```



<a id="api-d4f67eed39a89be4"></a>

### [`HitTest.HTSIZEFIRST`](#api-d4f67eed39a89be4)


```csharp
HTSIZEFIRST = HTLEFT
```



<a id="api-88e0db386bf3ef93"></a>

### [`HitTest.HTSIZELAST`](#api-88e0db386bf3ef93)


```csharp
HTSIZELAST = HTBOTTOMRIGHT
```



<a id="api-104322d76cfb33ec"></a>

### [`HitTest.HTSYSMENU`](#api-104322d76cfb33ec)


```csharp
HTSYSMENU = 3
```



<a id="api-f4d4b6f1e2b501e6"></a>

### [`HitTest.HTTOP`](#api-f4d4b6f1e2b501e6)


```csharp
HTTOP = 12
```



<a id="api-6f6d4b71455e1631"></a>

### [`HitTest.HTTOPLEFT`](#api-6f6d4b71455e1631)


```csharp
HTTOPLEFT = 13
```



<a id="api-6379a535173239ef"></a>

### [`HitTest.HTTOPRIGHT`](#api-6379a535173239ef)


```csharp
HTTOPRIGHT = 14
```



<a id="api-ec5ee5550e2a38b5"></a>

### [`HitTest.HTTRANSPARENT`](#api-ec5ee5550e2a38b5)


```csharp
HTTRANSPARENT = -1
```



<a id="api-5126553e6ed99aae"></a>

### [`HitTest.HTVSCROLL`](#api-5126553e6ed99aae)


```csharp
HTVSCROLL = 7
```



<a id="api-3f8c4cfa00da5626"></a>

### [`HitTest.HTZOOM`](#api-3f8c4cfa00da5626)


```csharp
HTZOOM = HTMAXBUTTON
```




<a id="api-e92dc76b076d80bb"></a>

## `enum User32.LayeredWindowAttribute`



```csharp
[Flags]
public enum LayeredWindowAttribute : long
{
    LWA_COLORKEY = 0x00000001,
    LWA_ALPHA = 0x00000002,
}
```

<a id="api-bf8e62a3952a7021"></a>

### [`LayeredWindowAttribute.LWA_ALPHA`](#api-bf8e62a3952a7021)


```csharp
LWA_ALPHA = 0x00000002
```



<a id="api-c694143c5890883e"></a>

### [`LayeredWindowAttribute.LWA_COLORKEY`](#api-c694143c5890883e)


```csharp
LWA_COLORKEY = 0x00000001
```




<a id="api-171380babd647758"></a>

## `struct User32.MSG`

https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-msg

```csharp
[StructLayout(LayoutKind.Sequential)]
public struct MSG
{
    public nint hWnd;
    public WindowMessage message;
    public WPARAM wParam;
    public LPARAM lParam;
    public DWORD time;
    public POINT pt;
    public DWORD lPrivate;
}
```

<a id="api-a4f43e6758224cd3"></a>

### [`nint MSG.hWnd`](#api-a4f43e6758224cd3)


```csharp
public nint hWnd;
```



<a id="api-bff6ae9e9ac527c2"></a>

### [`LPARAM MSG.lParam`](#api-bff6ae9e9ac527c2)


```csharp
public LPARAM lParam;
```



<a id="api-b4aa44d8dff326c1"></a>

### [`DWORD MSG.lPrivate`](#api-b4aa44d8dff326c1)


```csharp
public DWORD lPrivate;
```



<a id="api-9c273eaec39df7ee"></a>

### [`WindowMessage MSG.message`](#api-9c273eaec39df7ee)


```csharp
public WindowMessage message;
```



<a id="api-1876f162c640600c"></a>

### [`POINT MSG.pt`](#api-1876f162c640600c)


```csharp
public POINT pt;
```



<a id="api-6e7ce1efeb7143ba"></a>

### [`DWORD MSG.time`](#api-6e7ce1efeb7143ba)


```csharp
public DWORD time;
```



<a id="api-375c1f21bc5f3451"></a>

### [`WPARAM MSG.wParam`](#api-375c1f21bc5f3451)


```csharp
public WPARAM wParam;
```




<a id="api-61a47f18b48507aa"></a>

## `struct User32.NCCALCSIZE_PARAMS`



```csharp
public unsafe struct NCCALCSIZE_PARAMS
{
    public RECT r1;
    public RECT r2;
    public RECT r3;
    public WINDOWPOS* lppos;
}
```

<a id="api-accaf832237006cd"></a>

### [`WINDOWPOS* NCCALCSIZE_PARAMS.lppos`](#api-accaf832237006cd)


```csharp
public WINDOWPOS* lppos;
```



<a id="api-2a5cf62464240c37"></a>

### [`RECT NCCALCSIZE_PARAMS.r1`](#api-2a5cf62464240c37)


```csharp
public RECT r1;
```



<a id="api-711a1511b2cc67af"></a>

### [`RECT NCCALCSIZE_PARAMS.r2`](#api-711a1511b2cc67af)


```csharp
public RECT r2;
```



<a id="api-15f72598a9690252"></a>

### [`RECT NCCALCSIZE_PARAMS.r3`](#api-15f72598a9690252)


```csharp
public RECT r3;
```




<a id="api-a51b75a2b453b8c0"></a>

## `struct User32.PAINTSTRUCT`

https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-paintstruct

```csharp
[StructLayout(LayoutKind.Explicit, Size = 72)]
public struct PAINTSTRUCT
{
    [FieldOffset(0)]
    public uint hdc;
    [FieldOffset(8)]
    public BOOL fErase;
    [FieldOffset(12)]
    public RECT rcPaint;
    [FieldOffset(28)]
    public BOOL fRestore;
    [FieldOffset(32)]
    public BOOL fIncUpdate;
    [FieldOffset(36)]
    public UInt64 rgbReserved1, rgbReserved2, rgbReserved3, rgbReserved4;
}
```

<a id="api-535a6bc7e517b084"></a>

### [`BOOL PAINTSTRUCT.fErase`](#api-535a6bc7e517b084)


```csharp
[FieldOffset(8)]
public BOOL fErase;
```



<a id="api-183f3052354e6d0e"></a>

### [`BOOL PAINTSTRUCT.fIncUpdate`](#api-183f3052354e6d0e)


```csharp
[FieldOffset(32)]
public BOOL fIncUpdate;
```



<a id="api-783b0682375d65d6"></a>

### [`BOOL PAINTSTRUCT.fRestore`](#api-783b0682375d65d6)


```csharp
[FieldOffset(28)]
public BOOL fRestore;
```



<a id="api-98f1fd5d49641c93"></a>

### [`uint PAINTSTRUCT.hdc`](#api-98f1fd5d49641c93)


```csharp
[FieldOffset(0)]
public uint hdc;
```



<a id="api-e019ab34eb48a08a"></a>

### [`RECT PAINTSTRUCT.rcPaint`](#api-e019ab34eb48a08a)


```csharp
[FieldOffset(12)]
public RECT rcPaint;
```



<a id="api-685c5ba8a8428d35"></a>

### [`ulong PAINTSTRUCT.rgbReserved1`](#api-685c5ba8a8428d35)


```csharp
[FieldOffset(36)]
public UInt64 rgbReserved1;
```



<a id="api-6b5be155968a41db"></a>

### [`ulong PAINTSTRUCT.rgbReserved2`](#api-6b5be155968a41db)


```csharp
[FieldOffset(36)]
public UInt64 rgbReserved2;
```



<a id="api-eb0d5f854fbdc0da"></a>

### [`ulong PAINTSTRUCT.rgbReserved3`](#api-eb0d5f854fbdc0da)


```csharp
[FieldOffset(36)]
public UInt64 rgbReserved3;
```



<a id="api-7455928f6abccc89"></a>

### [`ulong PAINTSTRUCT.rgbReserved4`](#api-7455928f6abccc89)


```csharp
[FieldOffset(36)]
public UInt64 rgbReserved4;
```




<a id="api-430de22d057e4f92"></a>

## `struct User32.POINT`



```csharp
[StructLayout(LayoutKind.Sequential)]
public struct POINT
{
    public int X;
    public int Y;
}
```

<a id="api-2eb0c1582f4619df"></a>

### [`int POINT.X`](#api-2eb0c1582f4619df)


```csharp
public int X;
```



<a id="api-3b130bd88871e230"></a>

### [`int POINT.Y`](#api-3b130bd88871e230)


```csharp
public int Y;
```




<a id="api-bb966cb401d32566"></a>

## `struct User32.RECT`



```csharp
[StructLayout(LayoutKind.Explicit)]
public struct RECT
{
    [FieldOffset(0)]
    public int Left;
    [FieldOffset(4)]
    public int Top;
    [FieldOffset(8)]
    public int Right;
    [FieldOffset(12)]
    public int Bottom;
    public RECT(Rect rect);
}
```

<a id="api-e41368d426235278"></a>

### [`RECT.RECT(Rect rect)`](#api-e41368d426235278)


```csharp
public RECT(Rect rect);
```



<a id="api-e8560af3288b56d2"></a>

### [`int RECT.Bottom`](#api-e8560af3288b56d2)


```csharp
[FieldOffset(12)]
public int Bottom;
```



<a id="api-0bfaeb4e18a2ba59"></a>

### [`int RECT.Left`](#api-0bfaeb4e18a2ba59)


```csharp
[FieldOffset(0)]
public int Left;
```



<a id="api-8f62062f3eeee80f"></a>

### [`int RECT.Right`](#api-8f62062f3eeee80f)


```csharp
[FieldOffset(8)]
public int Right;
```



<a id="api-61f15d1b356f7234"></a>

### [`int RECT.Top`](#api-61f15d1b356f7234)


```csharp
[FieldOffset(4)]
public int Top;
```




<a id="api-e5b3d26f3be76c39"></a>

## `enum User32.SystemCursor`



```csharp
public enum SystemCursor : int
{
    Arrow = 32512,
    IBeam = 32513,
    Wait = 32514,
    Cross = 32515,
    UpArrow = 32516,
    SizeNWSE = 32642,
    SizeNESW = 32643,
    SizeWE = 32644,
    SizeNS = 32645,
    SizeAll = 32646,
    No = 32648,
    Hand = 32649,
    AppStarting = 32650,
    Help = 32651,
}
```

<a id="api-c5203a0a21fc9d1f"></a>

### [`SystemCursor.AppStarting`](#api-c5203a0a21fc9d1f)


```csharp
AppStarting = 32650
```

Application starting (arrow + wait) (IDC_APPSTARTING)

<a id="api-843f7d375ea07fa9"></a>

### [`SystemCursor.Arrow`](#api-843f7d375ea07fa9)


```csharp
Arrow = 32512
```

Standard arrow cursor (IDC_ARROW)

<a id="api-09db217d0d927259"></a>

### [`SystemCursor.Cross`](#api-09db217d0d927259)


```csharp
Cross = 32515
```

Crosshair (IDC_CROSS)

<a id="api-60ef1d80c1c52734"></a>

### [`SystemCursor.Hand`](#api-60ef1d80c1c52734)


```csharp
Hand = 32649
```

Hand / link cursor (IDC_HAND)

<a id="api-406745b95d52c756"></a>

### [`SystemCursor.Help`](#api-406745b95d52c756)


```csharp
Help = 32651
```

Help cursor (arrow + question) (IDC_HELP)

<a id="api-1f1af266d48b7239"></a>

### [`SystemCursor.IBeam`](#api-1f1af266d48b7239)


```csharp
IBeam = 32513
```

I-beam text cursor (IDC_IBEAM)

<a id="api-129f865276b80e31"></a>

### [`SystemCursor.No`](#api-129f865276b80e31)


```csharp
No = 32648
```

Slashed circle (not allowed) (IDC_NO)

<a id="api-d598da25c513ed97"></a>

### [`SystemCursor.SizeAll`](#api-d598da25c513ed97)


```csharp
SizeAll = 32646
```

Resize all directions (IDC_SIZEALL)

<a id="api-75e4c24fb72dd0e9"></a>

### [`SystemCursor.SizeNESW`](#api-75e4c24fb72dd0e9)


```csharp
SizeNESW = 32643
```

Resize NE-SW / diagonal (IDC_SIZENESW)

<a id="api-41a846b651c37489"></a>

### [`SystemCursor.SizeNS`](#api-41a846b651c37489)


```csharp
SizeNS = 32645
```

Resize vertical (IDC_SIZENS)

<a id="api-becaf3791c24478e"></a>

### [`SystemCursor.SizeNWSE`](#api-becaf3791c24478e)


```csharp
SizeNWSE = 32642
```

Resize NW-SE / diagonal (IDC_SIZENWSE)

<a id="api-992023e6225e7b80"></a>

### [`SystemCursor.SizeWE`](#api-992023e6225e7b80)


```csharp
SizeWE = 32644
```

Resize horizontal (IDC_SIZEWE)

<a id="api-a671d6ec84daed1a"></a>

### [`SystemCursor.UpArrow`](#api-a671d6ec84daed1a)


```csharp
UpArrow = 32516
```

Up arrow (rarely used) (IDC_UPARROW)

<a id="api-fd6505a18042f1a8"></a>

### [`SystemCursor.Wait`](#api-fd6505a18042f1a8)


```csharp
Wait = 32514
```

Hourglass / wait (legacy) (IDC_WAIT)


<a id="api-b1ec9f04a698549a"></a>

## `enum User32.SystemMetric`



```csharp
public enum SystemMetric : int
{
    SM_CYCAPTION = 4,
    SM_CXSIZE = 30,
    SM_CYSIZE = 31,
    SM_CXSIZEFRAME = 32,
    SM_CYSIZEFRAME = 33,
    SM_CXPADDEDBORDER = 92,
}
```

<a id="api-2524839c60de9974"></a>

### [`SystemMetric.SM_CXPADDEDBORDER`](#api-2524839c60de9974)


```csharp
SM_CXPADDEDBORDER = 92
```



<a id="api-557b894c90462eab"></a>

### [`SystemMetric.SM_CXSIZE`](#api-557b894c90462eab)


```csharp
SM_CXSIZE = 30
```



<a id="api-90ed892aa5ed7891"></a>

### [`SystemMetric.SM_CXSIZEFRAME`](#api-90ed892aa5ed7891)


```csharp
SM_CXSIZEFRAME = 32
```



<a id="api-299d342342b8c1ad"></a>

### [`SystemMetric.SM_CYCAPTION`](#api-299d342342b8c1ad)


```csharp
SM_CYCAPTION = 4
```



<a id="api-ab93a8ed1d19743f"></a>

### [`SystemMetric.SM_CYSIZE`](#api-ab93a8ed1d19743f)


```csharp
SM_CYSIZE = 31
```



<a id="api-0391b664ba657421"></a>

### [`SystemMetric.SM_CYSIZEFRAME`](#api-0391b664ba657421)


```csharp
SM_CYSIZEFRAME = 33
```




<a id="api-245fe9850c4c9655"></a>

## `struct User32.TRACKMOUSEEVENT`

https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-trackmouseevent

```csharp
[StructLayout(LayoutKind.Explicit, Size = 24)]
public struct TRACKMOUSEEVENT
{
    [FieldOffset(0)]
    public uint cbSize;
    [FieldOffset(4)]
    public TrackMouseEventFlags dwFlags;
    [FieldOffset(8)]
    public HWND hwndTrack;
    [FieldOffset(16)]
    public uint dwHoverTime;
}
```

<a id="api-9c66b78208dd18da"></a>

### [`uint TRACKMOUSEEVENT.cbSize`](#api-9c66b78208dd18da)


```csharp
[FieldOffset(0)]
public uint cbSize;
```



<a id="api-5ebcc7b0044afb64"></a>

### [`TrackMouseEventFlags TRACKMOUSEEVENT.dwFlags`](#api-5ebcc7b0044afb64)


```csharp
[FieldOffset(4)]
public TrackMouseEventFlags dwFlags;
```



<a id="api-bea8fdab6b73cfed"></a>

### [`uint TRACKMOUSEEVENT.dwHoverTime`](#api-bea8fdab6b73cfed)


```csharp
[FieldOffset(16)]
public uint dwHoverTime;
```



<a id="api-facb196faaa32824"></a>

### [`HWND TRACKMOUSEEVENT.hwndTrack`](#api-facb196faaa32824)


```csharp
[FieldOffset(8)]
public HWND hwndTrack;
```




<a id="api-d5455266517dbad5"></a>

## `enum User32.TrackMouseEventFlags`



```csharp
[Flags]
public enum TrackMouseEventFlags : uint
{
    TME_HOVER = 0x00000001,
    TME_LEAVE = 0x00000002,
    TME_CANCEL = 0x80000000
}
```

<a id="api-adabd7cf43018e98"></a>

### [`TrackMouseEventFlags.TME_CANCEL`](#api-adabd7cf43018e98)


```csharp
TME_CANCEL = 0x80000000
```



<a id="api-3418861f6458c5ad"></a>

### [`TrackMouseEventFlags.TME_HOVER`](#api-3418861f6458c5ad)


```csharp
TME_HOVER = 0x00000001
```



<a id="api-c9064d9420d4565f"></a>

### [`TrackMouseEventFlags.TME_LEAVE`](#api-c9064d9420d4565f)


```csharp
TME_LEAVE = 0x00000002
```




<a id="api-da48aa80c3a4676b"></a>

## `class User32.Types`



```csharp
public static partial class Types
{
    [Flags]
    public enum SetWindowPosFlags : uint
    {
        SWP_NOSIZE = 0x0001,
        SWP_NOMOVE = 0x0002,
        SWP_NOZORDER = 0x0004,
        SWP_NOREDRAW = 0x0008,
        SWP_NOACTIVATE = 0x0010,
        SWP_FRAMECHANGED = 0x0020,
        SWP_SHOWWINDOW = 0x0040,
        SWP_HIDEWINDOW = 0x0080,
        SWP_NOCOPYBITS = 0x0100,
        SWP_NOOWNERZORDER = 0x0200,
        SWP_NOSENDCHANGING = 0x0400,
        SWP_DEFERERASE = 0x2000,
        SWP_ASYNCWINDOWPOS = 0x4000
    }
}
public static partial class Types
{
    [DebuggerDisplay("{Value}")]
    public partial struct HWND : IEquatable<HWND>
    {
        public static readonly HWND HWND_TOPMOST;
        public static readonly HWND HWND_NOTOPMOST;
        [LibraryImport(User32Lib)]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool ShowWindow(HWND hWnd, int nCmdShow);
        [LibraryImport(User32Lib)]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool UpdateWindow(HWND hWnd);
        [LibraryImport(User32Lib, EntryPoint = "SetWindowTextW")]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool SetWindowText(HWND hWnd, [MarshalAs(UnmanagedType.LPWStr)] string lpString);
        [LibraryImport(User32Lib, EntryPoint = "GetWindowTextW")]
        public static partial int GetWindowText(HWND hWnd, [MarshalAs(UnmanagedType.LPWStr)] out string lpString, int maxLength);
        [LibraryImport(User32Lib, EntryPoint = "SetWindowPos")]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, Types.SetWindowPosFlags uFlags);
        [LibraryImport(User32Lib, EntryPoint = "GetClientRect")]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool GetClientRect(HWND hWnd, out RECT rc);
        [LibraryImport(User32Lib, EntryPoint = "DefWindowProcW")]
        public static partial LRESULT DefWindowProc(HWND hWnd, WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
        [LibraryImport(User32Lib)]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool InvalidateRect(HWND hWnd, ref RECT rect, [MarshalAs(UnmanagedType.Bool)] bool erase);
        [LibraryImport(User32Lib)]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool InvalidateRect(HWND hWnd, nint rectPtr, [MarshalAs(UnmanagedType.Bool)] bool erase);
        [LibraryImport(User32Lib)]
        public static partial HDC BeginPaint(HWND hWnd, ref PAINTSTRUCT lpPaint);
        [LibraryImport(User32Lib)]
        public static partial BOOL EndPaint(HWND hWnd, ref PAINTSTRUCT lpPaint);
        [LibraryImport(User32Lib)]
        public static partial BOOL ScreenToClient(HWND hWnd, ref POINT lpPoint);
        [LibraryImport(User32Lib)]
        public static partial uint GetDpiForWindow(HWND hwnd);
        [LibraryImport(User32Lib, EntryPoint = "SetCapture")]
        public static partial HWND SetCapture(HWND hWnd);
        [LibraryImport(User32Lib, EntryPoint = "ReleaseCapture")]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool ReleaseCapture();
        [LibraryImport(User32Lib, EntryPoint = "GetWindowRect")]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool GetWindowRect(HWND hWnd, out RECT lpRect);
        [LibraryImport(User32Lib)]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static partial bool IsZoomed(HWND hWnd);
        public nint value;
        public HWND(nint value);
        public bool SetWindowText(string text);
        public int GetWindowText(out string text, int maxLength);
        public bool GetClientRect(out RECT rect);
        public void ShowWindow(int nCmdShow = 1);
        public bool UpdateWindow();
        public void Invalidate();
        public bool ScreenToClient(ref POINT point);
        public bool GetWindowRect(out RECT rect);
        public bool IsMaximized { get; }

        public LRESULT DefWindowProc(WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
        public HDC BeginPaint(ref PAINTSTRUCT lpPaint);
        public bool EndPaint(ref PAINTSTRUCT lpPaint);
        public nint Value { get; }

        public bool Equals(HWND other);
        public override bool Equals(object? obj);
        public override int GetHashCode();
        public static bool operator ==(HWND left, HWND right);
        public static bool operator !=(HWND left, HWND right);
        public uint DPI { get; }
        public NFloat DPIScale { get; }

        public HWND CaptureMouse();
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator nint(HWND v);
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static implicit operator HWND(nint v);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool ShowWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, int nCmdShow);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool UpdateWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool SetWindowText(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, string lpString);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial int GetWindowText(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, out string lpString, int maxLength);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool SetWindowPos(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWndInsertAfter, int X, int Y, int cx, int cy, global::Xui.Runtime.Windows.Win32.User32.Types.SetWindowPosFlags uFlags);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool GetClientRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, out global::Xui.Runtime.Windows.Win32.User32.RECT rc);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "DefWindowProcW", ExactSpelling = true)]
        public static extern partial global::Xui.Runtime.Windows.Win32.Types.LRESULT DefWindowProc(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, global::Xui.Runtime.Windows.Win32.User32.WindowMessage uMsg, global::Xui.Runtime.Windows.Win32.Types.WPARAM wParam, global::Xui.Runtime.Windows.Win32.Types.LPARAM lParam);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool InvalidateRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.RECT rect, bool erase);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool InvalidateRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, nint rectPtr, bool erase);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial global::Xui.Runtime.Windows.Win32.Types.HDC BeginPaint(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.PAINTSTRUCT lpPaint);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL EndPaint(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.PAINTSTRUCT lpPaint);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL ScreenToClient(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.POINT lpPoint);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "GetDpiForWindow", ExactSpelling = true)]
        public static extern partial uint GetDpiForWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hwnd);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetCapture", ExactSpelling = true)]
        public static extern partial global::Xui.Runtime.Windows.Win32.User32.Types.HWND SetCapture(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool ReleaseCapture();
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool GetWindowRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, out global::Xui.Runtime.Windows.Win32.User32.RECT lpRect);
    }
}
public static unsafe partial class Types
{
    public unsafe partial struct HWND
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        public static partial bool IsZoomed(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
    }
}
```


<a id="api-11f98628e25456d4"></a>

## `struct User32.Types.HWND`



```csharp
[DebuggerDisplay("{Value}")]
public partial struct HWND : IEquatable<HWND>
{
    public static readonly HWND HWND_TOPMOST;
    public static readonly HWND HWND_NOTOPMOST;
    [LibraryImport(User32Lib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool ShowWindow(HWND hWnd, int nCmdShow);
    [LibraryImport(User32Lib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool UpdateWindow(HWND hWnd);
    [LibraryImport(User32Lib, EntryPoint = "SetWindowTextW")]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool SetWindowText(HWND hWnd, [MarshalAs(UnmanagedType.LPWStr)] string lpString);
    [LibraryImport(User32Lib, EntryPoint = "GetWindowTextW")]
    public static partial int GetWindowText(HWND hWnd, [MarshalAs(UnmanagedType.LPWStr)] out string lpString, int maxLength);
    [LibraryImport(User32Lib, EntryPoint = "SetWindowPos")]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, Types.SetWindowPosFlags uFlags);
    [LibraryImport(User32Lib, EntryPoint = "GetClientRect")]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool GetClientRect(HWND hWnd, out RECT rc);
    [LibraryImport(User32Lib, EntryPoint = "DefWindowProcW")]
    public static partial LRESULT DefWindowProc(HWND hWnd, WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
    [LibraryImport(User32Lib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool InvalidateRect(HWND hWnd, ref RECT rect, [MarshalAs(UnmanagedType.Bool)] bool erase);
    [LibraryImport(User32Lib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool InvalidateRect(HWND hWnd, nint rectPtr, [MarshalAs(UnmanagedType.Bool)] bool erase);
    [LibraryImport(User32Lib)]
    public static partial HDC BeginPaint(HWND hWnd, ref PAINTSTRUCT lpPaint);
    [LibraryImport(User32Lib)]
    public static partial BOOL EndPaint(HWND hWnd, ref PAINTSTRUCT lpPaint);
    [LibraryImport(User32Lib)]
    public static partial BOOL ScreenToClient(HWND hWnd, ref POINT lpPoint);
    [LibraryImport(User32Lib)]
    public static partial uint GetDpiForWindow(HWND hwnd);
    [LibraryImport(User32Lib, EntryPoint = "SetCapture")]
    public static partial HWND SetCapture(HWND hWnd);
    [LibraryImport(User32Lib, EntryPoint = "ReleaseCapture")]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool ReleaseCapture();
    [LibraryImport(User32Lib, EntryPoint = "GetWindowRect")]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool GetWindowRect(HWND hWnd, out RECT lpRect);
    [LibraryImport(User32Lib)]
    [return: MarshalAs(UnmanagedType.Bool)]
    public static partial bool IsZoomed(HWND hWnd);
    public nint value;
    public HWND(nint value);
    public bool SetWindowText(string text);
    public int GetWindowText(out string text, int maxLength);
    public bool GetClientRect(out RECT rect);
    public void ShowWindow(int nCmdShow = 1);
    public bool UpdateWindow();
    public void Invalidate();
    public bool ScreenToClient(ref POINT point);
    public bool GetWindowRect(out RECT rect);
    public bool IsMaximized { get; }

    public LRESULT DefWindowProc(WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
    public HDC BeginPaint(ref PAINTSTRUCT lpPaint);
    public bool EndPaint(ref PAINTSTRUCT lpPaint);
    public nint Value { get; }

    public bool Equals(HWND other);
    public override bool Equals(object? obj);
    public override int GetHashCode();
    public static bool operator ==(HWND left, HWND right);
    public static bool operator !=(HWND left, HWND right);
    public uint DPI { get; }
    public NFloat DPIScale { get; }

    public HWND CaptureMouse();
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator nint(HWND v);
    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    public static implicit operator HWND(nint v);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool ShowWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, int nCmdShow);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool UpdateWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool SetWindowText(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, string lpString);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial int GetWindowText(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, out string lpString, int maxLength);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool SetWindowPos(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWndInsertAfter, int X, int Y, int cx, int cy, global::Xui.Runtime.Windows.Win32.User32.Types.SetWindowPosFlags uFlags);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool GetClientRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, out global::Xui.Runtime.Windows.Win32.User32.RECT rc);
}
public unsafe partial struct HWND
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "DefWindowProcW", ExactSpelling = true)]
    public static extern partial global::Xui.Runtime.Windows.Win32.Types.LRESULT DefWindowProc(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, global::Xui.Runtime.Windows.Win32.User32.WindowMessage uMsg, global::Xui.Runtime.Windows.Win32.Types.WPARAM wParam, global::Xui.Runtime.Windows.Win32.Types.LPARAM lParam);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool InvalidateRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.RECT rect, bool erase);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool InvalidateRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, nint rectPtr, bool erase);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial global::Xui.Runtime.Windows.Win32.Types.HDC BeginPaint(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.PAINTSTRUCT lpPaint);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL EndPaint(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.PAINTSTRUCT lpPaint);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial global::Xui.Runtime.Windows.Win32.Types.BOOL ScreenToClient(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, ref global::Xui.Runtime.Windows.Win32.User32.POINT lpPoint);
}
public unsafe partial struct HWND
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "GetDpiForWindow", ExactSpelling = true)]
    public static extern partial uint GetDpiForWindow(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hwnd);
}
public unsafe partial struct HWND
{
    [global::System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint = "SetCapture", ExactSpelling = true)]
    public static extern partial global::Xui.Runtime.Windows.Win32.User32.Types.HWND SetCapture(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool ReleaseCapture();
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool GetWindowRect(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd, out global::Xui.Runtime.Windows.Win32.User32.RECT lpRect);
}
public unsafe partial struct HWND
{
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "10.0.15.3008")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    public static partial bool IsZoomed(global::Xui.Runtime.Windows.Win32.User32.Types.HWND hWnd);
}
```

<a id="api-544f1d1baa681163"></a>

### [`HWND.HWND(nint value)`](#api-544f1d1baa681163)


```csharp
public HWND(nint value);
```



<a id="api-09fbd7d56584993d"></a>

### [`HDC HWND.BeginPaint(ref PAINTSTRUCT lpPaint)`](#api-09fbd7d56584993d)


```csharp
public HDC BeginPaint(ref PAINTSTRUCT lpPaint);
```



<a id="api-8235364f239bcbd8"></a>

### [`HDC HWND.BeginPaint(HWND hWnd, ref PAINTSTRUCT lpPaint)`](#api-8235364f239bcbd8)


```csharp
[LibraryImport(User32Lib)]
public static partial HDC BeginPaint(HWND hWnd, ref PAINTSTRUCT lpPaint);
```



<a id="api-51094f1f9aa46040"></a>

### [`HWND HWND.CaptureMouse()`](#api-51094f1f9aa46040)


```csharp
public HWND CaptureMouse();
```



<a id="api-0ddb707dbda35436"></a>

### [`uint HWND.DPI`](#api-0ddb707dbda35436)


```csharp
public uint DPI { get; }
```

Gets the DPI scale for this window. 1.0 = 100% DPI (96 DPI), 2.0 = 200% DPI (192 DPI).

<a id="api-968f3598ae39e0f6"></a>

### [`NFloat HWND.DPIScale`](#api-968f3598ae39e0f6)


```csharp
public NFloat DPIScale { get; }
```



<a id="api-5b706d86eb933fee"></a>

### [`LRESULT HWND.DefWindowProc(HWND hWnd, WindowMessage uMsg, WPARAM wParam, LPARAM lParam)`](#api-5b706d86eb933fee)


```csharp
[LibraryImport(User32Lib, EntryPoint = "DefWindowProcW")]
public static partial LRESULT DefWindowProc(HWND hWnd, WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
```



<a id="api-a9db381eb0ddeb7e"></a>

### [`LRESULT HWND.DefWindowProc(WindowMessage uMsg, WPARAM wParam, LPARAM lParam)`](#api-a9db381eb0ddeb7e)


```csharp
public LRESULT DefWindowProc(WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
```



<a id="api-657a23ee1ed72ad8"></a>

### [`bool HWND.EndPaint(ref PAINTSTRUCT lpPaint)`](#api-657a23ee1ed72ad8)


```csharp
public bool EndPaint(ref PAINTSTRUCT lpPaint);
```



<a id="api-d6a1ab77d2c73b25"></a>

### [`BOOL HWND.EndPaint(HWND hWnd, ref PAINTSTRUCT lpPaint)`](#api-d6a1ab77d2c73b25)


```csharp
[LibraryImport(User32Lib)]
public static partial BOOL EndPaint(HWND hWnd, ref PAINTSTRUCT lpPaint);
```



<a id="api-c951fedd358c67bb"></a>

### [`bool HWND.Equals(object? obj)`](#api-c951fedd358c67bb)


```csharp
public override bool Equals(object? obj);
```



<a id="api-a55a3705d966e76b"></a>

### [`bool HWND.Equals(HWND other)`](#api-a55a3705d966e76b)


```csharp
public bool Equals(HWND other);
```



<a id="api-4acb1cf5db052563"></a>

### [`bool HWND.GetClientRect(out RECT rect)`](#api-4acb1cf5db052563)


```csharp
public bool GetClientRect(out RECT rect);
```



<a id="api-5b1f0eebf36731c9"></a>

### [`bool HWND.GetClientRect(HWND hWnd, out RECT rc)`](#api-5b1f0eebf36731c9)


```csharp
[LibraryImport(User32Lib, EntryPoint = "GetClientRect")]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool GetClientRect(HWND hWnd, out RECT rc);
```



<a id="api-4632eb830a282ad6"></a>

### [`uint HWND.GetDpiForWindow(HWND hwnd)`](#api-4632eb830a282ad6)


```csharp
[LibraryImport(User32Lib)]
public static partial uint GetDpiForWindow(HWND hwnd);
```



<a id="api-d65d92e86d8111b2"></a>

### [`int HWND.GetHashCode()`](#api-d65d92e86d8111b2)


```csharp
public override int GetHashCode();
```



<a id="api-a0cd37b904f6a5e4"></a>

### [`bool HWND.GetWindowRect(out RECT rect)`](#api-a0cd37b904f6a5e4)


```csharp
public bool GetWindowRect(out RECT rect);
```



<a id="api-614284ee7e1f06f7"></a>

### [`bool HWND.GetWindowRect(HWND hWnd, out RECT lpRect)`](#api-614284ee7e1f06f7)


```csharp
[LibraryImport(User32Lib, EntryPoint = "GetWindowRect")]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool GetWindowRect(HWND hWnd, out RECT lpRect);
```



<a id="api-55390460e9e16a08"></a>

### [`int HWND.GetWindowText(out string text, int maxLength)`](#api-55390460e9e16a08)


```csharp
public int GetWindowText(out string text, int maxLength);
```



<a id="api-9b25d25d68af657b"></a>

### [`int HWND.GetWindowText(HWND hWnd, out string lpString, int maxLength)`](#api-9b25d25d68af657b)


```csharp
[LibraryImport(User32Lib, EntryPoint = "GetWindowTextW")]
public static partial int GetWindowText(HWND hWnd, [MarshalAs(UnmanagedType.LPWStr)] out string lpString, int maxLength);
```



<a id="api-e106aff4824bfab5"></a>

### [`HWND HWND.HWND_NOTOPMOST`](#api-e106aff4824bfab5)


```csharp
public static readonly HWND HWND_NOTOPMOST;
```



<a id="api-8f1415ad4346cbb1"></a>

### [`HWND HWND.HWND_TOPMOST`](#api-8f1415ad4346cbb1)


```csharp
public static readonly HWND HWND_TOPMOST;
```



<a id="api-dd6cd5074fa973d3"></a>

### [`void HWND.Invalidate()`](#api-dd6cd5074fa973d3)


```csharp
public void Invalidate();
```



<a id="api-f916620f5c9f6c54"></a>

### [`bool HWND.InvalidateRect(HWND hWnd, nint rectPtr, bool erase)`](#api-f916620f5c9f6c54)


```csharp
[LibraryImport(User32Lib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool InvalidateRect(HWND hWnd, nint rectPtr, [MarshalAs(UnmanagedType.Bool)] bool erase);
```



<a id="api-219bf11539dd28da"></a>

### [`bool HWND.InvalidateRect(HWND hWnd, ref RECT rect, bool erase)`](#api-219bf11539dd28da)


```csharp
[LibraryImport(User32Lib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool InvalidateRect(HWND hWnd, ref RECT rect, [MarshalAs(UnmanagedType.Bool)] bool erase);
```



<a id="api-cc272c1e5dc7cc5a"></a>

### [`bool HWND.IsMaximized`](#api-cc272c1e5dc7cc5a)


```csharp
public bool IsMaximized { get; }
```



<a id="api-eb81eee216b966b5"></a>

### [`bool HWND.IsZoomed(HWND hWnd)`](#api-eb81eee216b966b5)


```csharp
[LibraryImport(User32Lib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool IsZoomed(HWND hWnd);
```



<a id="api-550168f38dcf5261"></a>

### [`bool HWND.ReleaseCapture()`](#api-550168f38dcf5261)


```csharp
[LibraryImport(User32Lib, EntryPoint = "ReleaseCapture")]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool ReleaseCapture();
```



<a id="api-b7575450c979bd34"></a>

### [`bool HWND.ScreenToClient(ref POINT point)`](#api-b7575450c979bd34)


```csharp
public bool ScreenToClient(ref POINT point);
```



<a id="api-2cb26b8f0ccd8728"></a>

### [`BOOL HWND.ScreenToClient(HWND hWnd, ref POINT lpPoint)`](#api-2cb26b8f0ccd8728)


```csharp
[LibraryImport(User32Lib)]
public static partial BOOL ScreenToClient(HWND hWnd, ref POINT lpPoint);
```



<a id="api-1c17e0e57ecc2f8e"></a>

### [`HWND HWND.SetCapture(HWND hWnd)`](#api-1c17e0e57ecc2f8e)


```csharp
[LibraryImport(User32Lib, EntryPoint = "SetCapture")]
public static partial HWND SetCapture(HWND hWnd);
```



<a id="api-382ed1aa6bb35ae0"></a>

### [`bool HWND.SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, SetWindowPosFlags uFlags)`](#api-382ed1aa6bb35ae0)


```csharp
[LibraryImport(User32Lib, EntryPoint = "SetWindowPos")]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, Types.SetWindowPosFlags uFlags);
```



<a id="api-23aedd22a21fc8e1"></a>

### [`bool HWND.SetWindowText(string text)`](#api-23aedd22a21fc8e1)


```csharp
public bool SetWindowText(string text);
```



<a id="api-580ddb6a272cf3db"></a>

### [`bool HWND.SetWindowText(HWND hWnd, string lpString)`](#api-580ddb6a272cf3db)


```csharp
[LibraryImport(User32Lib, EntryPoint = "SetWindowTextW")]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool SetWindowText(HWND hWnd, [MarshalAs(UnmanagedType.LPWStr)] string lpString);
```



<a id="api-0593047996ef6200"></a>

### [`void HWND.ShowWindow(int nCmdShow = 1)`](#api-0593047996ef6200)


```csharp
public void ShowWindow(int nCmdShow = 1);
```



<a id="api-4eca7d53264aa0a2"></a>

### [`bool HWND.ShowWindow(HWND hWnd, int nCmdShow)`](#api-4eca7d53264aa0a2)


```csharp
[LibraryImport(User32Lib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool ShowWindow(HWND hWnd, int nCmdShow);
```



<a id="api-b366689f0e366019"></a>

### [`bool HWND.UpdateWindow()`](#api-b366689f0e366019)


```csharp
public bool UpdateWindow();
```



<a id="api-ac4d3601a6119efa"></a>

### [`bool HWND.UpdateWindow(HWND hWnd)`](#api-ac4d3601a6119efa)


```csharp
[LibraryImport(User32Lib)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool UpdateWindow(HWND hWnd);
```



<a id="api-83cab8a00d4688f6"></a>

### [`nint HWND.Value`](#api-83cab8a00d4688f6)


```csharp
public nint Value { get; }
```



<a id="api-d9ee575b6469e59a"></a>

### [`bool HWND.operator ==(HWND left, HWND right)`](#api-d9ee575b6469e59a)


```csharp
public static bool operator ==(HWND left, HWND right);
```



<a id="api-e5049356ee015dae"></a>

### [`HWND.implicit operator HWND(nint v)`](#api-e5049356ee015dae)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator HWND(nint v);
```



<a id="api-b473858081afeb08"></a>

### [`HWND.implicit operator nint(HWND v)`](#api-b473858081afeb08)


```csharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator nint(HWND v);
```



<a id="api-b267ba32ccc68236"></a>

### [`bool HWND.operator !=(HWND left, HWND right)`](#api-b267ba32ccc68236)


```csharp
public static bool operator !=(HWND left, HWND right);
```



<a id="api-91238b82d73df347"></a>

### [`nint HWND.value`](#api-91238b82d73df347)


```csharp
public nint value;
```




<a id="api-34911ca24ad1f425"></a>

## `enum User32.Types.SetWindowPosFlags`



```csharp
[Flags]
public enum SetWindowPosFlags : uint
{
    SWP_NOSIZE = 0x0001,
    SWP_NOMOVE = 0x0002,
    SWP_NOZORDER = 0x0004,
    SWP_NOREDRAW = 0x0008,
    SWP_NOACTIVATE = 0x0010,
    SWP_FRAMECHANGED = 0x0020,
    SWP_SHOWWINDOW = 0x0040,
    SWP_HIDEWINDOW = 0x0080,
    SWP_NOCOPYBITS = 0x0100,
    SWP_NOOWNERZORDER = 0x0200,
    SWP_NOSENDCHANGING = 0x0400,
    SWP_DEFERERASE = 0x2000,
    SWP_ASYNCWINDOWPOS = 0x4000
}
```

<a id="api-eca109bdb42222e1"></a>

### [`SetWindowPosFlags.SWP_ASYNCWINDOWPOS`](#api-eca109bdb42222e1)


```csharp
SWP_ASYNCWINDOWPOS = 0x4000
```



<a id="api-8011a976cbbf72c8"></a>

### [`SetWindowPosFlags.SWP_DEFERERASE`](#api-8011a976cbbf72c8)


```csharp
SWP_DEFERERASE = 0x2000
```



<a id="api-5d1b91f36723e7e5"></a>

### [`SetWindowPosFlags.SWP_FRAMECHANGED`](#api-5d1b91f36723e7e5)


```csharp
SWP_FRAMECHANGED = 0x0020
```



<a id="api-cd0e9eda8d780e73"></a>

### [`SetWindowPosFlags.SWP_HIDEWINDOW`](#api-cd0e9eda8d780e73)


```csharp
SWP_HIDEWINDOW = 0x0080
```



<a id="api-8e517f8a5e817b00"></a>

### [`SetWindowPosFlags.SWP_NOACTIVATE`](#api-8e517f8a5e817b00)


```csharp
SWP_NOACTIVATE = 0x0010
```



<a id="api-3918b90b1922afdd"></a>

### [`SetWindowPosFlags.SWP_NOCOPYBITS`](#api-3918b90b1922afdd)


```csharp
SWP_NOCOPYBITS = 0x0100
```



<a id="api-d8e0bd6d4498460a"></a>

### [`SetWindowPosFlags.SWP_NOMOVE`](#api-d8e0bd6d4498460a)


```csharp
SWP_NOMOVE = 0x0002
```



<a id="api-17517527a99a48ee"></a>

### [`SetWindowPosFlags.SWP_NOOWNERZORDER`](#api-17517527a99a48ee)


```csharp
SWP_NOOWNERZORDER = 0x0200
```



<a id="api-1a10547a5743ca76"></a>

### [`SetWindowPosFlags.SWP_NOREDRAW`](#api-1a10547a5743ca76)


```csharp
SWP_NOREDRAW = 0x0008
```



<a id="api-bad7d3b20b10f33c"></a>

### [`SetWindowPosFlags.SWP_NOSENDCHANGING`](#api-bad7d3b20b10f33c)


```csharp
SWP_NOSENDCHANGING = 0x0400
```



<a id="api-b6ad7ef10efbef6a"></a>

### [`SetWindowPosFlags.SWP_NOSIZE`](#api-b6ad7ef10efbef6a)


```csharp
SWP_NOSIZE = 0x0001
```



<a id="api-1df264d0bffa17af"></a>

### [`SetWindowPosFlags.SWP_NOZORDER`](#api-1df264d0bffa17af)


```csharp
SWP_NOZORDER = 0x0004
```



<a id="api-4627147669102490"></a>

### [`SetWindowPosFlags.SWP_SHOWWINDOW`](#api-4627147669102490)


```csharp
SWP_SHOWWINDOW = 0x0040
```




<a id="api-cb3656197bc68778"></a>

## `struct User32.WINDOWPOS`



```csharp
[StructLayout(LayoutKind.Sequential)]
public struct WINDOWPOS
{
    public nint hwnd;
    public nint hwndInsertAfter;
    public int x;
    public int y;
    public int cx;
    public int cy;
    public uint flags;
}
```

<a id="api-fc80ff4b2381cba8"></a>

### [`int WINDOWPOS.cx`](#api-fc80ff4b2381cba8)


```csharp
public int cx;
```



<a id="api-db2dbd265b91ffa6"></a>

### [`int WINDOWPOS.cy`](#api-db2dbd265b91ffa6)


```csharp
public int cy;
```



<a id="api-d1e3a9d47ba88983"></a>

### [`uint WINDOWPOS.flags`](#api-d1e3a9d47ba88983)


```csharp
public uint flags;
```



<a id="api-29f41fd4d9480071"></a>

### [`nint WINDOWPOS.hwnd`](#api-29f41fd4d9480071)


```csharp
public nint hwnd;
```



<a id="api-ea90e532853f61c2"></a>

### [`nint WINDOWPOS.hwndInsertAfter`](#api-ea90e532853f61c2)


```csharp
public nint hwndInsertAfter;
```



<a id="api-9fc99365c3459265"></a>

### [`int WINDOWPOS.x`](#api-9fc99365c3459265)


```csharp
public int x;
```



<a id="api-6e3da7b32a93c1d0"></a>

### [`int WINDOWPOS.y`](#api-6e3da7b32a93c1d0)


```csharp
public int y;
```




<a id="api-8833392ba2f995d7"></a>

## `struct User32.WNDCLASSEXW`

https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-wndclassexa

```csharp
[StructLayout(LayoutKind.Sequential)]
public struct WNDCLASSEXW
{
    public uint cbSize;
    public WindowClassStyles styles;
    public nint lpfnWndProc;
    public int cbClsExtra;
    public int cbWndExtra;
    public nint hInstance;
    public nint hIcon;
    public nint hCursor;
    public nint hbrBackground;
    public nint lpszMenuName;
    public nint lpszClassName;
    public nint hIconSm;
}
```

<a id="api-23856f8397525db5"></a>

### [`int WNDCLASSEXW.cbClsExtra`](#api-23856f8397525db5)


```csharp
public int cbClsExtra;
```



<a id="api-10862ab63eddae29"></a>

### [`uint WNDCLASSEXW.cbSize`](#api-10862ab63eddae29)


```csharp
public uint cbSize;
```



<a id="api-84e91c3e1984d933"></a>

### [`int WNDCLASSEXW.cbWndExtra`](#api-84e91c3e1984d933)


```csharp
public int cbWndExtra;
```



<a id="api-5c7b74734d1cf344"></a>

### [`nint WNDCLASSEXW.hCursor`](#api-5c7b74734d1cf344)


```csharp
public nint hCursor;
```



<a id="api-ade4780f9c28a652"></a>

### [`nint WNDCLASSEXW.hIcon`](#api-ade4780f9c28a652)


```csharp
public nint hIcon;
```



<a id="api-bd7c674ec586ba9e"></a>

### [`nint WNDCLASSEXW.hIconSm`](#api-bd7c674ec586ba9e)


```csharp
public nint hIconSm;
```



<a id="api-984540978e609acc"></a>

### [`nint WNDCLASSEXW.hInstance`](#api-984540978e609acc)


```csharp
public nint hInstance;
```



<a id="api-9360029fc9a3482e"></a>

### [`nint WNDCLASSEXW.hbrBackground`](#api-9360029fc9a3482e)


```csharp
public nint hbrBackground;
```



<a id="api-153ad434eecabde3"></a>

### [`nint WNDCLASSEXW.lpfnWndProc`](#api-153ad434eecabde3)


```csharp
public nint lpfnWndProc;
```



<a id="api-64e4f35bb83fc7d6"></a>

### [`nint WNDCLASSEXW.lpszClassName`](#api-64e4f35bb83fc7d6)


```csharp
public nint lpszClassName;
```



<a id="api-6612c7a470ccb3bb"></a>

### [`nint WNDCLASSEXW.lpszMenuName`](#api-6612c7a470ccb3bb)


```csharp
public nint lpszMenuName;
```



<a id="api-14acf62bf854b57e"></a>

### [`WindowClassStyles WNDCLASSEXW.styles`](#api-14acf62bf854b57e)


```csharp
public WindowClassStyles styles;
```




<a id="api-c613ae775004d512"></a>

## `delegate User32.WNDPROC`



```csharp
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate int WNDPROC(HWND hwnd, WindowMessage uMsg, WPARAM wParam, LPARAM lParam);
```


<a id="api-c64b345be67131a0"></a>

## `enum User32.WindowClassStyles`

https://learn.microsoft.com/en-us/windows/win32/winmsg/window-class-styles#constants

```csharp
[Flags]
public enum WindowClassStyles : uint
{
    CS_BYTEALIGNCLIENT = 0x1000,
    CS_BYTEALIGNWINDOW = 0x2000,
    CS_CLASSDC = 0x0040,
    CS_DBLCLKS = 0x0008,
    CS_DROPSHADOW = 0x00020000,
    CS_GLOBALCLASS = 0x4000,
    CS_HREDRAW = 0x0002,
    CS_NOCLOSE = 0x0200,
    CS_OWNDC = 0x0020,
    CS_PARENTDC = 0x0080,
    CS_SAVEBITS = 0x0800,
    CS_VREDRAW = 0x0001,
}
```

<a id="api-70a632461c2a9cdf"></a>

### [`WindowClassStyles.CS_BYTEALIGNCLIENT`](#api-70a632461c2a9cdf)


```csharp
CS_BYTEALIGNCLIENT = 0x1000
```



<a id="api-46c5a6efdc1e3764"></a>

### [`WindowClassStyles.CS_BYTEALIGNWINDOW`](#api-46c5a6efdc1e3764)


```csharp
CS_BYTEALIGNWINDOW = 0x2000
```



<a id="api-2eaf7016084b318d"></a>

### [`WindowClassStyles.CS_CLASSDC`](#api-2eaf7016084b318d)


```csharp
CS_CLASSDC = 0x0040
```



<a id="api-cc1040bb80e3d7f3"></a>

### [`WindowClassStyles.CS_DBLCLKS`](#api-cc1040bb80e3d7f3)


```csharp
CS_DBLCLKS = 0x0008
```



<a id="api-7a3244d2ece4b388"></a>

### [`WindowClassStyles.CS_DROPSHADOW`](#api-7a3244d2ece4b388)


```csharp
CS_DROPSHADOW = 0x00020000
```



<a id="api-108bc6e26e2f360d"></a>

### [`WindowClassStyles.CS_GLOBALCLASS`](#api-108bc6e26e2f360d)


```csharp
CS_GLOBALCLASS = 0x4000
```



<a id="api-200c015aa11f96e4"></a>

### [`WindowClassStyles.CS_HREDRAW`](#api-200c015aa11f96e4)


```csharp
CS_HREDRAW = 0x0002
```



<a id="api-d2f008dd49ab7ba1"></a>

### [`WindowClassStyles.CS_NOCLOSE`](#api-d2f008dd49ab7ba1)


```csharp
CS_NOCLOSE = 0x0200
```



<a id="api-e229c1f533c29bb7"></a>

### [`WindowClassStyles.CS_OWNDC`](#api-e229c1f533c29bb7)


```csharp
CS_OWNDC = 0x0020
```



<a id="api-7e6b6c30d2f414df"></a>

### [`WindowClassStyles.CS_PARENTDC`](#api-7e6b6c30d2f414df)


```csharp
CS_PARENTDC = 0x0080
```



<a id="api-7a0dae4d11ad0d0e"></a>

### [`WindowClassStyles.CS_SAVEBITS`](#api-7a0dae4d11ad0d0e)


```csharp
CS_SAVEBITS = 0x0800
```



<a id="api-64bc9448622d3f30"></a>

### [`WindowClassStyles.CS_VREDRAW`](#api-64bc9448622d3f30)


```csharp
CS_VREDRAW = 0x0001
```




<a id="api-1d8c1a9540aca005"></a>

## `enum User32.WindowColor`

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsyscolor#parameters

```csharp
public enum WindowColor : int
{
    COLOR_WINDOW = 5,
    COLOR_3DFACE = 15
}
```

<a id="api-caed6092c9d6eedb"></a>

### [`WindowColor.COLOR_3DFACE`](#api-caed6092c9d6eedb)


```csharp
COLOR_3DFACE = 15
```



<a id="api-d7f7ee704bf233c5"></a>

### [`WindowColor.COLOR_WINDOW`](#api-d7f7ee704bf233c5)


```csharp
COLOR_WINDOW = 5
```




<a id="api-6cab561d78a101e6"></a>

## `enum User32.WindowMessage`

https://learn.microsoft.com/en-us/windows/win32/winmsg/about-messages-and-message-queues#system-defined-messages

```csharp
public enum WindowMessage : uint
{
    WM_NULL = 0x0000,
    WM_CREATE = 0x0001,
    WM_DESTROY = 0x0002,
    WM_MOVE = 0x0003,
    WM_SIZE = 0x0005,
    WM_ERASEBKGND = 0x0014,
    WM_SETCURSOR = 0x0020,
    WM_ACTIVATEAPP = 0x001C,
    WM_CANCELMODE = 0x001F,
    WM_CHILDACTIVATE = 0x0022,
    WM_CLOSE = 0x0010,
    WM_COMPACTING = 0x0041,
    WM_ENABLE = 0x000A,
    WM_ENTERSIZEMOVE = 0x0231,
    WM_EXITSIZEMOVE = 0x0232,
    WM_GETICON = 0x007F,
    WM_GETMINMAXINFO = 0x0024,
    WM_INPUTLANGCHANGE = 0x0051,
    WM_INPUTLANGCHANGEREQUEST = 0x0050,
    WM_MOVING = 0x0216,
    WM_NCACTIVATE = 0x0086,
    WM_NCCALCSIZE = 0x0083,
    WM_NCCREATE = 0x0081,
    WM_NCDESTROY = 0x0082,
    WM_QUERYDRAGICON = 0x0037,
    WM_QUERYOPEN = 0x0013,
    WM_QUIT = 0x0012,
    WM_SHOWWINDOW = 0x0018,
    WM_SIZING = 0x0214,
    WM_STYLECHANGED = 0x007D,
    WM_STYLECHANGING = 0x007C,
    WM_THEMECHANGED = 0x031A,
    WM_USERCHANGED = 0x0054,
    WM_WINDOWPOSCHANGED = 0x0047,
    WM_WINDOWPOSCHANGING = 0x0046,
    WM_CAPTURECHANGED = 0x0215,
    WM_LBUTTONDBLCLK = 0x0203,
    WM_LBUTTONDOWN = 0x0201,
    WM_LBUTTONUP = 0x0202,
    WM_MBUTTONDBLCLK = 0x0209,
    WM_MBUTTONDOWN = 0x0207,
    WM_MBUTTONUP = 0x0208,
    WM_MOUSEACTIVATE = 0x0021,
    WM_MOUSEHOVER = 0x02A1,
    WM_MOUSEHWHEEL = 0x020E,
    WM_MOUSELEAVE = 0x02A3,
    WM_MOUSEMOVE = 0x0200,
    WM_MOUSEWHEEL = 0x020A,
    WM_NCHITTEST = 0x0084,
    WM_NCLBUTTONDBLCLK = 0x00A3,
    WM_NCLBUTTONDOWN = 0x00A1,
    WM_NCLBUTTONUP = 0x00A2,
    WM_NCMBUTTONDBLCLK = 0x00A9,
    WM_NCMBUTTONDOWN = 0x00A7,
    WM_NCMBUTTONUP = 0x00A8,
    WM_NCMOUSEHOVER = 0x02A0,
    WM_NCMOUSELEAVE = 0x02A2,
    WM_NCMOUSEMOVE = 0x00A0,
    WM_NCRBUTTONDBLCLK = 0x00A6,
    WM_NCRBUTTONDOWN = 0x00A4,
    WM_NCRBUTTONUP = 0x00A5,
    WM_NCXBUTTONDBLCLK = 0x00AD,
    WM_NCXBUTTONDOWN = 0x00AB,
    WM_NCXBUTTONUP = 0x00AC,
    WM_RBUTTONDBLCLK = 0x0206,
    WM_RBUTTONDOWN = 0x0204,
    WM_RBUTTONUP = 0x0205,
    WM_XBUTTONDBLCLK = 0x020D,
    WM_XBUTTONDOWN = 0x020B,
    WM_XBUTTONUP = 0x020C,
    WM_ACTIVATE = 0x0006,
    WM_APPCOMMAND = 0x0319,
    WM_CHAR = 0x0102,
    WM_DEADCHAR = 0x0103,
    WM_HOTKEY = 0x0312,
    WM_KEYDOWN = 0x0100,
    WM_KEYUP = 0x0101,
    WM_KILLFOCUS = 0x0008,
    WM_SETFOCUS = 0x0007,
    WM_SYSDEADCHAR = 0x0107,
    WM_SYSKEYDOWN = 0x0104,
    WM_SYSKEYUP = 0x0105,
    WM_UNICHAR = 0x0109,
    WM_DISPLAYCHANGE = 0x7E,
    WM_NCPAINT = 0x85,
    WM_PAINT = 0xF,
    WM_PRINT = 0x317,
    WM_PRINTCLIENT = 0x318,
    WM_SETREDRAW = 0xB,
    WM_SYNCPAINT = 0x88,
    WM_INITMENUPOPUP = 0x0117,
    WM_MENUCHAR = 0x0120,
    WM_MENUSELECT = 0x011F,
    WM_SYSCHAR = 0x0106,
    WM_SYSCOMMAND = 0x0112,
    WM_TIMER = 0x0113,
    WM_DPICHANGED = 0x02E0,
    WM_SETICON = 0x0080,
}
```

<a id="api-e5dd88e01b4417bc"></a>

### [`WindowMessage.WM_ACTIVATE`](#api-e5dd88e01b4417bc)


```csharp
WM_ACTIVATE = 0x0006
```



<a id="api-e7e70e2cb14413f9"></a>

### [`WindowMessage.WM_ACTIVATEAPP`](#api-e7e70e2cb14413f9)


```csharp
WM_ACTIVATEAPP = 0x001C
```



<a id="api-d967a50951206724"></a>

### [`WindowMessage.WM_APPCOMMAND`](#api-d967a50951206724)


```csharp
WM_APPCOMMAND = 0x0319
```



<a id="api-a077025022d49afc"></a>

### [`WindowMessage.WM_CANCELMODE`](#api-a077025022d49afc)


```csharp
WM_CANCELMODE = 0x001F
```



<a id="api-7938ad6b396f50bf"></a>

### [`WindowMessage.WM_CAPTURECHANGED`](#api-7938ad6b396f50bf)


```csharp
WM_CAPTURECHANGED = 0x0215
```



<a id="api-de1e478bdb9805f6"></a>

### [`WindowMessage.WM_CHAR`](#api-de1e478bdb9805f6)


```csharp
WM_CHAR = 0x0102
```



<a id="api-55c9e7e61ecf1375"></a>

### [`WindowMessage.WM_CHILDACTIVATE`](#api-55c9e7e61ecf1375)


```csharp
WM_CHILDACTIVATE = 0x0022
```



<a id="api-2cb2ec2112488014"></a>

### [`WindowMessage.WM_CLOSE`](#api-2cb2ec2112488014)


```csharp
WM_CLOSE = 0x0010
```



<a id="api-d8d2bdf1ed2925cd"></a>

### [`WindowMessage.WM_COMPACTING`](#api-d8d2bdf1ed2925cd)


```csharp
WM_COMPACTING = 0x0041
```



<a id="api-8fbd874fe333228d"></a>

### [`WindowMessage.WM_CREATE`](#api-8fbd874fe333228d)


```csharp
WM_CREATE = 0x0001
```



<a id="api-81157ac5ceccc8a1"></a>

### [`WindowMessage.WM_DEADCHAR`](#api-81157ac5ceccc8a1)


```csharp
WM_DEADCHAR = 0x0103
```



<a id="api-7b96bbbdb2dc6d55"></a>

### [`WindowMessage.WM_DESTROY`](#api-7b96bbbdb2dc6d55)


```csharp
WM_DESTROY = 0x0002
```



<a id="api-d74cfb21dacb4143"></a>

### [`WindowMessage.WM_DISPLAYCHANGE`](#api-d74cfb21dacb4143)


```csharp
WM_DISPLAYCHANGE = 0x7E
```



<a id="api-0cbab4059d9fcaa9"></a>

### [`WindowMessage.WM_DPICHANGED`](#api-0cbab4059d9fcaa9)


```csharp
WM_DPICHANGED = 0x02E0
```



<a id="api-f5ad499fc347a255"></a>

### [`WindowMessage.WM_ENABLE`](#api-f5ad499fc347a255)


```csharp
WM_ENABLE = 0x000A
```



<a id="api-e55579507fe12a28"></a>

### [`WindowMessage.WM_ENTERSIZEMOVE`](#api-e55579507fe12a28)


```csharp
WM_ENTERSIZEMOVE = 0x0231
```



<a id="api-28014d2117c728be"></a>

### [`WindowMessage.WM_ERASEBKGND`](#api-28014d2117c728be)


```csharp
WM_ERASEBKGND = 0x0014
```



<a id="api-796955aa7c401dc7"></a>

### [`WindowMessage.WM_EXITSIZEMOVE`](#api-796955aa7c401dc7)


```csharp
WM_EXITSIZEMOVE = 0x0232
```



<a id="api-efcbbae6c9f87456"></a>

### [`WindowMessage.WM_GETICON`](#api-efcbbae6c9f87456)


```csharp
WM_GETICON = 0x007F
```



<a id="api-7836f9a90cd632cf"></a>

### [`WindowMessage.WM_GETMINMAXINFO`](#api-7836f9a90cd632cf)


```csharp
WM_GETMINMAXINFO = 0x0024
```



<a id="api-805ea861a641c612"></a>

### [`WindowMessage.WM_HOTKEY`](#api-805ea861a641c612)


```csharp
WM_HOTKEY = 0x0312
```



<a id="api-c762159e3b0a057e"></a>

### [`WindowMessage.WM_INITMENUPOPUP`](#api-c762159e3b0a057e)


```csharp
WM_INITMENUPOPUP = 0x0117
```



<a id="api-8671b7d410909a5a"></a>

### [`WindowMessage.WM_INPUTLANGCHANGE`](#api-8671b7d410909a5a)


```csharp
WM_INPUTLANGCHANGE = 0x0051
```



<a id="api-a89aa5ae93f82377"></a>

### [`WindowMessage.WM_INPUTLANGCHANGEREQUEST`](#api-a89aa5ae93f82377)


```csharp
WM_INPUTLANGCHANGEREQUEST = 0x0050
```



<a id="api-ace75a49c5675479"></a>

### [`WindowMessage.WM_KEYDOWN`](#api-ace75a49c5675479)


```csharp
WM_KEYDOWN = 0x0100
```



<a id="api-d84edea2e22c4dd1"></a>

### [`WindowMessage.WM_KEYUP`](#api-d84edea2e22c4dd1)


```csharp
WM_KEYUP = 0x0101
```



<a id="api-eb1211abc01630a6"></a>

### [`WindowMessage.WM_KILLFOCUS`](#api-eb1211abc01630a6)


```csharp
WM_KILLFOCUS = 0x0008
```



<a id="api-bb4e2e966cc37e51"></a>

### [`WindowMessage.WM_LBUTTONDBLCLK`](#api-bb4e2e966cc37e51)


```csharp
WM_LBUTTONDBLCLK = 0x0203
```



<a id="api-c5bbbea9b87df394"></a>

### [`WindowMessage.WM_LBUTTONDOWN`](#api-c5bbbea9b87df394)


```csharp
WM_LBUTTONDOWN = 0x0201
```



<a id="api-59d3711cc4d54c7c"></a>

### [`WindowMessage.WM_LBUTTONUP`](#api-59d3711cc4d54c7c)


```csharp
WM_LBUTTONUP = 0x0202
```



<a id="api-78a8d7e6501f462e"></a>

### [`WindowMessage.WM_MBUTTONDBLCLK`](#api-78a8d7e6501f462e)


```csharp
WM_MBUTTONDBLCLK = 0x0209
```



<a id="api-e91e23be44ddc059"></a>

### [`WindowMessage.WM_MBUTTONDOWN`](#api-e91e23be44ddc059)


```csharp
WM_MBUTTONDOWN = 0x0207
```



<a id="api-ef39b713e1e7e661"></a>

### [`WindowMessage.WM_MBUTTONUP`](#api-ef39b713e1e7e661)


```csharp
WM_MBUTTONUP = 0x0208
```



<a id="api-f9af3634f36f2b63"></a>

### [`WindowMessage.WM_MENUCHAR`](#api-f9af3634f36f2b63)


```csharp
WM_MENUCHAR = 0x0120
```



<a id="api-d0eb3728ef5a43a9"></a>

### [`WindowMessage.WM_MENUSELECT`](#api-d0eb3728ef5a43a9)


```csharp
WM_MENUSELECT = 0x011F
```



<a id="api-69866b6ac4594545"></a>

### [`WindowMessage.WM_MOUSEACTIVATE`](#api-69866b6ac4594545)


```csharp
WM_MOUSEACTIVATE = 0x0021
```



<a id="api-77643c2ca61da97d"></a>

### [`WindowMessage.WM_MOUSEHOVER`](#api-77643c2ca61da97d)


```csharp
WM_MOUSEHOVER = 0x02A1
```



<a id="api-6e9efe08c1931772"></a>

### [`WindowMessage.WM_MOUSEHWHEEL`](#api-6e9efe08c1931772)


```csharp
WM_MOUSEHWHEEL = 0x020E
```



<a id="api-579ecf647ba6e9e7"></a>

### [`WindowMessage.WM_MOUSELEAVE`](#api-579ecf647ba6e9e7)


```csharp
WM_MOUSELEAVE = 0x02A3
```



<a id="api-244a4690859ef66c"></a>

### [`WindowMessage.WM_MOUSEMOVE`](#api-244a4690859ef66c)


```csharp
WM_MOUSEMOVE = 0x0200
```



<a id="api-987df0b967920873"></a>

### [`WindowMessage.WM_MOUSEWHEEL`](#api-987df0b967920873)


```csharp
WM_MOUSEWHEEL = 0x020A
```



<a id="api-7d245111c16007d4"></a>

### [`WindowMessage.WM_MOVE`](#api-7d245111c16007d4)


```csharp
WM_MOVE = 0x0003
```



<a id="api-0d9131ecb459661a"></a>

### [`WindowMessage.WM_MOVING`](#api-0d9131ecb459661a)


```csharp
WM_MOVING = 0x0216
```



<a id="api-5d0aca6f3ed17a8d"></a>

### [`WindowMessage.WM_NCACTIVATE`](#api-5d0aca6f3ed17a8d)


```csharp
WM_NCACTIVATE = 0x0086
```



<a id="api-c59d5da9a1f6f687"></a>

### [`WindowMessage.WM_NCCALCSIZE`](#api-c59d5da9a1f6f687)


```csharp
WM_NCCALCSIZE = 0x0083
```



<a id="api-a24a5264bead656a"></a>

### [`WindowMessage.WM_NCCREATE`](#api-a24a5264bead656a)


```csharp
WM_NCCREATE = 0x0081
```



<a id="api-aa49a367ff6c4515"></a>

### [`WindowMessage.WM_NCDESTROY`](#api-aa49a367ff6c4515)


```csharp
WM_NCDESTROY = 0x0082
```



<a id="api-3ae311255ce011df"></a>

### [`WindowMessage.WM_NCHITTEST`](#api-3ae311255ce011df)


```csharp
WM_NCHITTEST = 0x0084
```



<a id="api-28b661e6a3ea8042"></a>

### [`WindowMessage.WM_NCLBUTTONDBLCLK`](#api-28b661e6a3ea8042)


```csharp
WM_NCLBUTTONDBLCLK = 0x00A3
```



<a id="api-5837f4f9da0fa625"></a>

### [`WindowMessage.WM_NCLBUTTONDOWN`](#api-5837f4f9da0fa625)


```csharp
WM_NCLBUTTONDOWN = 0x00A1
```



<a id="api-dc07dffc380ce9ef"></a>

### [`WindowMessage.WM_NCLBUTTONUP`](#api-dc07dffc380ce9ef)


```csharp
WM_NCLBUTTONUP = 0x00A2
```



<a id="api-be0290e18c0fcc7b"></a>

### [`WindowMessage.WM_NCMBUTTONDBLCLK`](#api-be0290e18c0fcc7b)


```csharp
WM_NCMBUTTONDBLCLK = 0x00A9
```



<a id="api-921bce256582eb1f"></a>

### [`WindowMessage.WM_NCMBUTTONDOWN`](#api-921bce256582eb1f)


```csharp
WM_NCMBUTTONDOWN = 0x00A7
```



<a id="api-0e4ca2091b6a0d00"></a>

### [`WindowMessage.WM_NCMBUTTONUP`](#api-0e4ca2091b6a0d00)


```csharp
WM_NCMBUTTONUP = 0x00A8
```



<a id="api-bb0b23f12d32b9ab"></a>

### [`WindowMessage.WM_NCMOUSEHOVER`](#api-bb0b23f12d32b9ab)


```csharp
WM_NCMOUSEHOVER = 0x02A0
```



<a id="api-12d345d3fb496e69"></a>

### [`WindowMessage.WM_NCMOUSELEAVE`](#api-12d345d3fb496e69)


```csharp
WM_NCMOUSELEAVE = 0x02A2
```



<a id="api-9f6b6728ba8111e3"></a>

### [`WindowMessage.WM_NCMOUSEMOVE`](#api-9f6b6728ba8111e3)


```csharp
WM_NCMOUSEMOVE = 0x00A0
```



<a id="api-06d02ea906c060c0"></a>

### [`WindowMessage.WM_NCPAINT`](#api-06d02ea906c060c0)


```csharp
WM_NCPAINT = 0x85
```



<a id="api-4e36575eeb1d8e31"></a>

### [`WindowMessage.WM_NCRBUTTONDBLCLK`](#api-4e36575eeb1d8e31)


```csharp
WM_NCRBUTTONDBLCLK = 0x00A6
```



<a id="api-f6ff8f5b14874b6d"></a>

### [`WindowMessage.WM_NCRBUTTONDOWN`](#api-f6ff8f5b14874b6d)


```csharp
WM_NCRBUTTONDOWN = 0x00A4
```



<a id="api-9ad8b15dc3271153"></a>

### [`WindowMessage.WM_NCRBUTTONUP`](#api-9ad8b15dc3271153)


```csharp
WM_NCRBUTTONUP = 0x00A5
```



<a id="api-aa7d20094acc0216"></a>

### [`WindowMessage.WM_NCXBUTTONDBLCLK`](#api-aa7d20094acc0216)


```csharp
WM_NCXBUTTONDBLCLK = 0x00AD
```



<a id="api-5d6554fc4d086147"></a>

### [`WindowMessage.WM_NCXBUTTONDOWN`](#api-5d6554fc4d086147)


```csharp
WM_NCXBUTTONDOWN = 0x00AB
```



<a id="api-b610800e3e331c55"></a>

### [`WindowMessage.WM_NCXBUTTONUP`](#api-b610800e3e331c55)


```csharp
WM_NCXBUTTONUP = 0x00AC
```



<a id="api-094aaf51d650d992"></a>

### [`WindowMessage.WM_NULL`](#api-094aaf51d650d992)


```csharp
WM_NULL = 0x0000
```



<a id="api-ed698d14582cf42b"></a>

### [`WindowMessage.WM_PAINT`](#api-ed698d14582cf42b)


```csharp
WM_PAINT = 0xF
```



<a id="api-e2eca2139f2b9347"></a>

### [`WindowMessage.WM_PRINT`](#api-e2eca2139f2b9347)


```csharp
WM_PRINT = 0x317
```



<a id="api-492d0433fe8661a6"></a>

### [`WindowMessage.WM_PRINTCLIENT`](#api-492d0433fe8661a6)


```csharp
WM_PRINTCLIENT = 0x318
```



<a id="api-7dc47174ceb9532b"></a>

### [`WindowMessage.WM_QUERYDRAGICON`](#api-7dc47174ceb9532b)


```csharp
WM_QUERYDRAGICON = 0x0037
```



<a id="api-f21a2f8c15c50239"></a>

### [`WindowMessage.WM_QUERYOPEN`](#api-f21a2f8c15c50239)


```csharp
WM_QUERYOPEN = 0x0013
```



<a id="api-bb7748b2bfbcb259"></a>

### [`WindowMessage.WM_QUIT`](#api-bb7748b2bfbcb259)


```csharp
WM_QUIT = 0x0012
```



<a id="api-b2fa5c630537ef07"></a>

### [`WindowMessage.WM_RBUTTONDBLCLK`](#api-b2fa5c630537ef07)


```csharp
WM_RBUTTONDBLCLK = 0x0206
```



<a id="api-b3d7c7baec00bf4d"></a>

### [`WindowMessage.WM_RBUTTONDOWN`](#api-b3d7c7baec00bf4d)


```csharp
WM_RBUTTONDOWN = 0x0204
```



<a id="api-4f4cfa9a6b02ac84"></a>

### [`WindowMessage.WM_RBUTTONUP`](#api-4f4cfa9a6b02ac84)


```csharp
WM_RBUTTONUP = 0x0205
```



<a id="api-46bc7b7a187557d4"></a>

### [`WindowMessage.WM_SETCURSOR`](#api-46bc7b7a187557d4)


```csharp
WM_SETCURSOR = 0x0020
```



<a id="api-a528a894be1f6e8f"></a>

### [`WindowMessage.WM_SETFOCUS`](#api-a528a894be1f6e8f)


```csharp
WM_SETFOCUS = 0x0007
```



<a id="api-c7c8abefeebd9479"></a>

### [`WindowMessage.WM_SETICON`](#api-c7c8abefeebd9479)


```csharp
WM_SETICON = 0x0080
```



<a id="api-b5adc3856acc06c9"></a>

### [`WindowMessage.WM_SETREDRAW`](#api-b5adc3856acc06c9)


```csharp
WM_SETREDRAW = 0xB
```



<a id="api-14b28193bd757566"></a>

### [`WindowMessage.WM_SHOWWINDOW`](#api-14b28193bd757566)


```csharp
WM_SHOWWINDOW = 0x0018
```



<a id="api-ef29ffc9dec683bf"></a>

### [`WindowMessage.WM_SIZE`](#api-ef29ffc9dec683bf)


```csharp
WM_SIZE = 0x0005
```



<a id="api-f85b40eb7d39ba54"></a>

### [`WindowMessage.WM_SIZING`](#api-f85b40eb7d39ba54)


```csharp
WM_SIZING = 0x0214
```



<a id="api-0b21934ab9acb5d1"></a>

### [`WindowMessage.WM_STYLECHANGED`](#api-0b21934ab9acb5d1)


```csharp
WM_STYLECHANGED = 0x007D
```



<a id="api-3c856cb687366c68"></a>

### [`WindowMessage.WM_STYLECHANGING`](#api-3c856cb687366c68)


```csharp
WM_STYLECHANGING = 0x007C
```



<a id="api-00feab0deed81fe6"></a>

### [`WindowMessage.WM_SYNCPAINT`](#api-00feab0deed81fe6)


```csharp
WM_SYNCPAINT = 0x88
```



<a id="api-90e1da3c86c8b3ed"></a>

### [`WindowMessage.WM_SYSCHAR`](#api-90e1da3c86c8b3ed)


```csharp
WM_SYSCHAR = 0x0106
```



<a id="api-7a6642a3bac20d2a"></a>

### [`WindowMessage.WM_SYSCOMMAND`](#api-7a6642a3bac20d2a)


```csharp
WM_SYSCOMMAND = 0x0112
```



<a id="api-26213f9abd94c46d"></a>

### [`WindowMessage.WM_SYSDEADCHAR`](#api-26213f9abd94c46d)


```csharp
WM_SYSDEADCHAR = 0x0107
```



<a id="api-837bac2cac80b4d4"></a>

### [`WindowMessage.WM_SYSKEYDOWN`](#api-837bac2cac80b4d4)


```csharp
WM_SYSKEYDOWN = 0x0104
```



<a id="api-40a0d61f59af2052"></a>

### [`WindowMessage.WM_SYSKEYUP`](#api-40a0d61f59af2052)


```csharp
WM_SYSKEYUP = 0x0105
```



<a id="api-297f3129a9f666cb"></a>

### [`WindowMessage.WM_THEMECHANGED`](#api-297f3129a9f666cb)


```csharp
WM_THEMECHANGED = 0x031A
```



<a id="api-6d0717849c927b67"></a>

### [`WindowMessage.WM_TIMER`](#api-6d0717849c927b67)


```csharp
WM_TIMER = 0x0113
```



<a id="api-a38f29168a20f611"></a>

### [`WindowMessage.WM_UNICHAR`](#api-a38f29168a20f611)


```csharp
WM_UNICHAR = 0x0109
```



<a id="api-7090ab5baf148a55"></a>

### [`WindowMessage.WM_USERCHANGED`](#api-7090ab5baf148a55)


```csharp
WM_USERCHANGED = 0x0054
```



<a id="api-c740135f5a6053ba"></a>

### [`WindowMessage.WM_WINDOWPOSCHANGED`](#api-c740135f5a6053ba)


```csharp
WM_WINDOWPOSCHANGED = 0x0047
```



<a id="api-ecbea531d43a11d9"></a>

### [`WindowMessage.WM_WINDOWPOSCHANGING`](#api-ecbea531d43a11d9)


```csharp
WM_WINDOWPOSCHANGING = 0x0046
```



<a id="api-ebc2079db1584d78"></a>

### [`WindowMessage.WM_XBUTTONDBLCLK`](#api-ebc2079db1584d78)


```csharp
WM_XBUTTONDBLCLK = 0x020D
```



<a id="api-543eeaf3c9eb73c3"></a>

### [`WindowMessage.WM_XBUTTONDOWN`](#api-543eeaf3c9eb73c3)


```csharp
WM_XBUTTONDOWN = 0x020B
```



<a id="api-30ffba0505b6652e"></a>

### [`WindowMessage.WM_XBUTTONUP`](#api-30ffba0505b6652e)


```csharp
WM_XBUTTONUP = 0x020C
```




<a id="api-42fc39b0c62faed8"></a>

## `enum User32.WindowPosFlags`



```csharp
[Flags]
public enum WindowPosFlags : uint
{
    None = 0,
    NoSize = 0x0001,
    NoMove = 0x0002,
    NoZOrder = 0x0004,
    NoRedraw = 0x0008,
    NoActivate = 0x0010,
    FrameChanged = 0x0020,
    ShowWindow = 0x0040,
    HideWindow = 0x0080,
    NoCopyBits = 0x0100,
    NoOwnerZOrder = 0x0200,
    NoSendChanging = 0x0400,
    DeferErase = 0x2000,
    AsyncWindowPos = 0x4000,
}
```

<a id="api-794f8deb3c83f674"></a>

### [`WindowPosFlags.AsyncWindowPos`](#api-794f8deb3c83f674)


```csharp
AsyncWindowPos = 0x4000
```



<a id="api-09155b17cb4678e9"></a>

### [`WindowPosFlags.DeferErase`](#api-09155b17cb4678e9)


```csharp
DeferErase = 0x2000
```



<a id="api-fe94314e92e452ae"></a>

### [`WindowPosFlags.FrameChanged`](#api-fe94314e92e452ae)


```csharp
FrameChanged = 0x0020
```



<a id="api-80189f020e4b5a9b"></a>

### [`WindowPosFlags.HideWindow`](#api-80189f020e4b5a9b)


```csharp
HideWindow = 0x0080
```



<a id="api-fb67aff10ab66536"></a>

### [`WindowPosFlags.NoActivate`](#api-fb67aff10ab66536)


```csharp
NoActivate = 0x0010
```



<a id="api-55dfa746cede2217"></a>

### [`WindowPosFlags.NoCopyBits`](#api-55dfa746cede2217)


```csharp
NoCopyBits = 0x0100
```



<a id="api-4983d2ee32f610ab"></a>

### [`WindowPosFlags.NoMove`](#api-4983d2ee32f610ab)


```csharp
NoMove = 0x0002
```



<a id="api-9d1a07e97d5a8345"></a>

### [`WindowPosFlags.NoOwnerZOrder`](#api-9d1a07e97d5a8345)


```csharp
NoOwnerZOrder = 0x0200
```



<a id="api-89d78dd1a710a52d"></a>

### [`WindowPosFlags.NoRedraw`](#api-89d78dd1a710a52d)


```csharp
NoRedraw = 0x0008
```



<a id="api-be5b887716cd54bf"></a>

### [`WindowPosFlags.NoSendChanging`](#api-be5b887716cd54bf)


```csharp
NoSendChanging = 0x0400
```



<a id="api-af8ad5d67a297fce"></a>

### [`WindowPosFlags.NoSize`](#api-af8ad5d67a297fce)


```csharp
NoSize = 0x0001
```



<a id="api-497bdddd736d3495"></a>

### [`WindowPosFlags.NoZOrder`](#api-497bdddd736d3495)


```csharp
NoZOrder = 0x0004
```



<a id="api-55a8e7759dc07b86"></a>

### [`WindowPosFlags.None`](#api-55a8e7759dc07b86)


```csharp
None = 0
```



<a id="api-418b5fb89a38e039"></a>

### [`WindowPosFlags.ShowWindow`](#api-418b5fb89a38e039)


```csharp
ShowWindow = 0x0040
```




<a id="api-9a58e5b819a4ff76"></a>

## `enum User32.WindowStyles`

https://learn.microsoft.com/en-us/windows/win32/winmsg/window-class-styles#constants

```csharp
[Flags]
public enum WindowStyles : long
{
    WS_BORDER = 0x00800000L,
    WS_CAPTION = 0x00C00000L,
    WS_CHILD = 0x40000000L,
    WS_CHILDWINDOW = 0x40000000L,
    WS_CLIPCHILDREN = 0x02000000L,
    WS_CLIPSIBLINGS = 0x04000000L,
    WS_DISABLED = 0x08000000L,
    WS_DLGFRAME = 0x00400000L,
    WS_GROUP = 0x00020000L,
    WS_HSCROLL = 0x00100000L,
    WS_ICONIC = 0x20000000L,
    WS_MAXIMIZE = 0x01000000L,
    WS_MAXIMIZEBOX = 0x00010000L,
    WS_MINIMIZE = 0x20000000L,
    WS_MINIMIZEBOX = 0x00020000L,
    WS_OVERLAPPED = 0x00000000L,
    WS_OVERLAPPEDWINDOW = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX),
    WS_POPUP = 0x80000000L,
    WS_POPUPWINDOW = (WS_POPUP | WS_BORDER | WS_SYSMENU),
    WS_SIZEBOX = 0x00040000L,
    WS_SYSMENU = 0x00080000L,
    WS_TABSTOP = 0x00010000L,
    WS_THICKFRAME = 0x00040000L,
    WS_TILED = 0x00000000L,
    WS_TILEDWINDOW = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX),
    WS_VISIBLE = 0x10000000L,
    WS_VSCROLL = 0x00200000L,
}
```

<a id="api-a85c5fa96f1016ab"></a>

### [`WindowStyles.WS_BORDER`](#api-a85c5fa96f1016ab)


```csharp
WS_BORDER = 0x00800000L
```



<a id="api-5f706b5fe9c5b2af"></a>

### [`WindowStyles.WS_CAPTION`](#api-5f706b5fe9c5b2af)


```csharp
WS_CAPTION = 0x00C00000L
```



<a id="api-6daf82214b6336ca"></a>

### [`WindowStyles.WS_CHILD`](#api-6daf82214b6336ca)


```csharp
WS_CHILD = 0x40000000L
```



<a id="api-56815d12854b7343"></a>

### [`WindowStyles.WS_CHILDWINDOW`](#api-56815d12854b7343)


```csharp
WS_CHILDWINDOW = 0x40000000L
```



<a id="api-83f2faabeb250601"></a>

### [`WindowStyles.WS_CLIPCHILDREN`](#api-83f2faabeb250601)


```csharp
WS_CLIPCHILDREN = 0x02000000L
```



<a id="api-81665fb6de19f715"></a>

### [`WindowStyles.WS_CLIPSIBLINGS`](#api-81665fb6de19f715)


```csharp
WS_CLIPSIBLINGS = 0x04000000L
```



<a id="api-55d5a904c3a2c542"></a>

### [`WindowStyles.WS_DISABLED`](#api-55d5a904c3a2c542)


```csharp
WS_DISABLED = 0x08000000L
```



<a id="api-c91d479f9756e385"></a>

### [`WindowStyles.WS_DLGFRAME`](#api-c91d479f9756e385)


```csharp
WS_DLGFRAME = 0x00400000L
```



<a id="api-400bfb6c8cf4d87c"></a>

### [`WindowStyles.WS_GROUP`](#api-400bfb6c8cf4d87c)


```csharp
WS_GROUP = 0x00020000L
```



<a id="api-7cbf2502c3a9fc4b"></a>

### [`WindowStyles.WS_HSCROLL`](#api-7cbf2502c3a9fc4b)


```csharp
WS_HSCROLL = 0x00100000L
```



<a id="api-5c9f2a3f9ad67dc9"></a>

### [`WindowStyles.WS_ICONIC`](#api-5c9f2a3f9ad67dc9)


```csharp
WS_ICONIC = 0x20000000L
```



<a id="api-6855832e2d0c3ea4"></a>

### [`WindowStyles.WS_MAXIMIZE`](#api-6855832e2d0c3ea4)


```csharp
WS_MAXIMIZE = 0x01000000L
```



<a id="api-d2393428c0bf0abf"></a>

### [`WindowStyles.WS_MAXIMIZEBOX`](#api-d2393428c0bf0abf)


```csharp
WS_MAXIMIZEBOX = 0x00010000L
```



<a id="api-21c34179b7fcd246"></a>

### [`WindowStyles.WS_MINIMIZE`](#api-21c34179b7fcd246)


```csharp
WS_MINIMIZE = 0x20000000L
```



<a id="api-fc418c4ba23dd3ab"></a>

### [`WindowStyles.WS_MINIMIZEBOX`](#api-fc418c4ba23dd3ab)


```csharp
WS_MINIMIZEBOX = 0x00020000L
```



<a id="api-acf16440b3cf84ee"></a>

### [`WindowStyles.WS_OVERLAPPED`](#api-acf16440b3cf84ee)


```csharp
WS_OVERLAPPED = 0x00000000L
```



<a id="api-b2e7a30ae76113ac"></a>

### [`WindowStyles.WS_OVERLAPPEDWINDOW`](#api-b2e7a30ae76113ac)


```csharp
WS_OVERLAPPEDWINDOW = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
```



<a id="api-99cd301fd3df6a6c"></a>

### [`WindowStyles.WS_POPUP`](#api-99cd301fd3df6a6c)


```csharp
WS_POPUP = 0x80000000L
```



<a id="api-1276e49073ea6ddf"></a>

### [`WindowStyles.WS_POPUPWINDOW`](#api-1276e49073ea6ddf)


```csharp
WS_POPUPWINDOW = (WS_POPUP | WS_BORDER | WS_SYSMENU)
```



<a id="api-2f0d7222c122a686"></a>

### [`WindowStyles.WS_SIZEBOX`](#api-2f0d7222c122a686)


```csharp
WS_SIZEBOX = 0x00040000L
```



<a id="api-82c6bd60c3401d7b"></a>

### [`WindowStyles.WS_SYSMENU`](#api-82c6bd60c3401d7b)


```csharp
WS_SYSMENU = 0x00080000L
```



<a id="api-09331267e1e7522a"></a>

### [`WindowStyles.WS_TABSTOP`](#api-09331267e1e7522a)


```csharp
WS_TABSTOP = 0x00010000L
```



<a id="api-86c7c2f4f5136206"></a>

### [`WindowStyles.WS_THICKFRAME`](#api-86c7c2f4f5136206)


```csharp
WS_THICKFRAME = 0x00040000L
```



<a id="api-e261c44f659ebf53"></a>

### [`WindowStyles.WS_TILED`](#api-e261c44f659ebf53)


```csharp
WS_TILED = 0x00000000L
```



<a id="api-add8571207fcde5c"></a>

### [`WindowStyles.WS_TILEDWINDOW`](#api-add8571207fcde5c)


```csharp
WS_TILEDWINDOW = (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
```



<a id="api-0b8e6c37403c99b7"></a>

### [`WindowStyles.WS_VISIBLE`](#api-0b8e6c37403c99b7)


```csharp
WS_VISIBLE = 0x10000000L
```



<a id="api-f7bd7161a965a6d5"></a>

### [`WindowStyles.WS_VSCROLL`](#api-f7bd7161a965a6d5)


```csharp
WS_VSCROLL = 0x00200000L
```



