Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Reference
Functions
 DwmIsCompositionEnabled Function
DwmIsCompositionEnabled Function

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] The pointer that receives the value indicating whether DWM composition is enabled. TRUE if DWM composition is enabled; otherwise, FALSE.

Return Value

Returns S_OK if successful, or an error value otherwise.

Function Information

Minimum DLL Versiondwmapi.dll
Headerdwmapi.h
Import librarydwmapi.lib
Minimum operating systems Windows Vista
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Sample for C#      tehnolog   |   Edit   |  

//Alexander Klimoff (http://netsources.narod.ru)

// See also MSDN Magazine April 2007

[DllImport("dwmapi.dll", PreserveSig = false)]
public static extern bool DwmIsCompositionEnabled();

// Check to see if composition is Enabled
if (DwmIsCompositionEnabled())
{
MessageBox.Show("Aero Glass enabled");
}
else
{
MessageBox.Show("Aero Glass disabled");

}

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker