Skip to content

Instantly share code, notes, and snippets.

@painejake
Created March 26, 2011 08:12
Show Gist options
  • Save painejake/888125 to your computer and use it in GitHub Desktop.
Save painejake/888125 to your computer and use it in GitHub Desktop.
Windows Aero class example
using System.Runtime.InteropServices;
/// <summary>
/// Code for Windows Aero effects on the Window
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct WindowsAero
{
public int cxLeftWidth;
public int cxRightWidth;
public int cyTopHeight;
public int cyButtomheight;
}
[DllImport("dwmapi.dll", PreserveSig = false)]
public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref WindowsAero pMarinset);
[DllImport("dwmapi.dll", PreserveSig = false)]
public static extern bool DwmIsCompositionEnabled();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment