private static bool IsDWMEnabled()
 {
     return(IsWindowsVistaOrGreater() && NativeFunctions.DwmIsCompositionEnabled());
 }