DwmEnableComposition

[DllImport("dwmapi.dll", SetLastError = true)]
public static extern int DwmEnableComposition(
   bool fEnable
);

Microsoft documentation: Link

Last updated