DwmIsCompositionEnabled
C# Signature:
[DllImport("dwmapi.dll")]
private static extern int DwmIsCompositionEnabled(out bool enabled);VB.NET Signature:
<DllImport("dwmapi.dll")> _
Private Shared Function DwmIsCompositionEnabled(ByRef enabled As Boolean) As Integer
End FunctionNotes:
Public Function AeroEnabled() As Boolean
If Environment.OSVersion.Version.Major < 6 Then Return False
Dim Enabled As Boolean
DwmIsCompositionEnabled(Enabled)
Return Enabled
End FunctionNotes:
Public Function AeroEnabled() As Boolean
If Environment.OSVersion.Version.Major < 6 Then Return False
DwmIsCompositionEnabled(AeroEnabled)
End FunctionIf you're using DevExpress components::
DevExpress.Utils.Drawing.Helpers.NativeVista.IsCompositionEnabled();Última actualización