[DllImport("dwmapi.dll", PreserveSig = true)]
public static extern int DwmSetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE attr, ref int attrValue, int attrSize);
TODO
Use the DwmIsCompositionEnabled function to set the value of non-client rendering attributes for a window.