C++ code:
//Alexander Klimoff (http://netsources.narod.ru)
// See also MSDN Magazine April 2007
[DllImport("dwmapi.dll", PreserveSig = false)]
public static extern bool DwmIsCompositionEnabled();
public bool isAeroEnabled;
// Check to see if composition is Enabled
DwmIsCompositionEnabled(isAeroEnabled);
if (isAeroEnabled) {
MessageBox.Show("Aero Glass enabled");
}
else {
MessageBox.Show("Aero Glass disabled");
}
Something like that... note matty doesn't code in c++