Function Reference


_WinAPI_DwmIsCompositionEnabled

Determines whether Desktop Window Manager (DWM) composition is enabled

#include <WinAPIGdi.au3>
_WinAPI_DwmIsCompositionEnabled ( )

Return Value

Success: 1 - DWM composition is enabled.
0 - Otherwise.
Failure: 0 and sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

Remarks

This function requires Windows Vista or later.

See Also

Search DwmIsCompositionEnabled in MSDN Library.

Example

#include <MsgBoxConstants.au3>
#include <WinAPIGdi.au3>
#include <WinAPISys.au3>

If _WinAPI_GetVersion() < '6.0' Then
    MsgBox(BitOR($MB_ICONERROR, $MB_SYSTEMMODAL), 'Error', 'Require Windows Vista or later.')
    Exit
EndIf

Local $aState[2] = ['Disabled', 'Enabled']

ConsoleWrite('Aero is: ' & $aState[_WinAPI_DwmIsCompositionEnabled()] & @CRLF)