//Peek at desktop [DllImport("dwmapi.dll")] public static extern int DwmIsCompositionEnabled(out bool enabled); public static bool AeroEnabled() { if (Environment.OSVersion.Version.Major < 6) return false; bool result; DwmIsCompositionEnabled(out result); return result; } public static WindowsPeekAtDesktop IsPeekAtDesktop() { return AeroEnabled() ? WindowsPeekAtDesktop.Enable : WindowsPeekAtDesktop.Disable; }
public List