public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref MARGINS pMarInset);
private void ExtendFrameIntoClientArea() { if (!OsUtils.CompositionEnabled()) { return; } Marshal.ThrowExceptionForHR(NativeMethods.DwmExtendFrameIntoClientArea(this.Handle, ref this.glassMargins)); }