DwmExtendFrameIntoClientArea

[DllImport("dwmapi.dll", SetLastError = true)]
public static extern int DwmExtendFrameIntoClientArea(
   IntPtr hwnd,
   ref MARGINS pMarInset
);

Microsoft documentation: Link

Last updated