def is_dwm_compositing_enabled():
 import ctypes
 enabled = ctypes.c_bool()
 try:
  DwmIsCompositionEnabled = ctypes.windll.dwmapi.DwmIsCompositionEnabled
 except (AttributeError, WindowsError):
  return False
 rval = DwmIsCompositionEnabled(ctypes.byref(enabled))
 return ((rval == 0) and enabled.value)

def is_dwm_compositing_enabled ( ) : import ctypes enabled = ctypes . c_bool ( ) try : DwmIsCompositionEnabled = ctypes . windll . dwmapi . DwmIsCompositionEnabled except ( AttributeError , WindowsError ) : return False rval = DwmIsCompositionEnabled ( ctypes . byref ( enabled ) ) return ( ( rval == 0 ) and enabled . value )
is desktop window manager compositing enabled .