DwmApiDwmIsCompositionEnabled Method

Obtains a value that indicates whether Desktop Window Manager (DWM) composition is enabled.

Applications on machines running Windows 7 or earlier can listen for composition state changes by handling the WM_DWMCOMPOSITIONCHANGED notification.

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 int DwmIsCompositionEnabled(
	ref bool refEnabled
)

Parameters

refEnabled  Boolean
A pointer to a value that, when this function returns successfully, receives if DWM composition is enabled; otherwise, .

Return Value

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

Remarks

See Also