Function Reference


_WinAPI_DwmGetColorizationColor

Retrieves the current color used for Desktop Window Manager (DWM) glass composition

#include <WinAPIGdi.au3>
_WinAPI_DwmGetColorizationColor ( )

Return Value

Success: The current color (0xAARRGGBB) used for glass composition, @extended flag indicates whether the color is an opaque blend:
    1 - The color is an opaque blend.
    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 DwmGetColorizationColor in MSDN Library.

Example

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

If Not _WinAPI_DwmIsCompositionEnabled() Then
    MsgBox(BitOR($MB_ICONERROR, $MB_SYSTEMMODAL), 'Error', 'Require Windows Vista or later with enabled Aero theme.')
    Exit
EndIf

Local $iColor = _WinAPI_DwmGetColorizationColor()
Local $iBlend = @extended

ConsoleWrite('Color for glass composition: 0x' & Hex($iColor) & @CRLF)
ConsoleWrite('Transparency: ' & (Not $iBlend) & @CRLF)