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.
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 int DwmIsCompositionEnabled(
ref bool refEnabled
)
<DllImportAttribute("DwmApi.dll">]
Public Shared Function DwmIsCompositionEnabled (
ByRef refEnabled As Boolean
) As Integer
Dim refEnabled As Boolean
Dim returnValue As Integer
returnValue = DwmApi.DwmIsCompositionEnabled(refEnabled)
public:
[DllImportAttribute(L"DwmApi.dll")]
static int DwmIsCompositionEnabled(
bool% refEnabled
)
[<DllImportAttribute("DwmApi.dll")>]
static member DwmIsCompositionEnabled :
refEnabled : bool byref -> int
No code example is currently available or this language may not be supported.
- refEnabled Boolean
-
A pointer to a value that, when this function returns successfully,
receives if DWM composition is enabled; otherwise, .
Int32
If this function succeeds, it returns
S_OK. Otherwise, it returns an
HResult error code.