[DllImport("dwmapi.dll", SetLastError = true)] public static extern int DwmExtendFrameIntoClientArea( IntPtr hwnd, ref MARGINS pMarInset );
Microsoft documentation: Link
Last updated 1 year ago