DwmApiDwmGetColorizationColor Method

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

This value is based on the current color scheme and can be modified by the user.

Applications can listen for color changes by handling the WM_DwmColorizationColorChanged message.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("DwmApi.dll")]
public static HResult DwmGetColorizationColor(
	out uint refColor,
	out bool refOpaqueBlend
)

Parameters

refColor  UInt32
A pointer to a value that, when this function returns successfully, receives the current color used for glass composition.

The color format of the value is 0xAARRGGBB.

refOpaqueBlend  Boolean
A pointer to a value that, when this function returns successfully, indicates whether the color is an opaque blend.

if the color is an opaque blend; otherwise, .

Return Value

HResult
If this function succeeds, it returns S_OK. Otherwise, it returns an HResult error code.

Remarks

See Also