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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("DwmApi.dll">]
Public Shared Function DwmGetColorizationColor (
<OutAttribute> ByRef refColor As UInteger,
<OutAttribute> ByRef refOpaqueBlend As Boolean
) As HResult
Dim refColor As UInteger
Dim refOpaqueBlend As Boolean
Dim returnValue As HResult
returnValue = DwmApi.DwmGetColorizationColor(refColor,
refOpaqueBlend)
public:
[DllImportAttribute(L"DwmApi.dll")]
static HResult DwmGetColorizationColor(
[OutAttribute] unsigned int% refColor,
[OutAttribute] bool% refOpaqueBlend
)
[<DllImportAttribute("DwmApi.dll")>]
static member DwmGetColorizationColor :
refColor : uint32 byref *
refOpaqueBlend : bool byref -> HResult
No code example is currently available or this language may not be supported.
- 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, .
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.