Last updated 1 year ago
[DllImport("dwmapi.dll", SetLastError = true)] public static extern int DwmEnableComposition( bool fEnable );
Microsoft documentation: