Obtains a value that indicates whether Desktop Window Manager (DWM) composition is enabled. Applications can listen for composition state changes by handling the WM_DWMCOMPOSITIONCHANGED notification.
Syntax
HRESULT DwmIsCompositionEnabled(
BOOL *pfEnabled
);
Parameters
- pfEnabled
-
[out] A pointer to a BOOL that receives TRUE if DWM composition is enabled; otherwise, FALSE.
Return Value
Returns S_OK if successful, or an error value otherwise.
Function Information
| Minimum DLL Version | dwmapi.dll |
|---|
| Header | dwmapi.h |
|---|
| Import library | dwmapi.lib |
|---|
| Minimum operating systems |
Windows Vista |
|---|