In reply to @ayex "hi there, with": The only potential problems I see: - [An LPCVOID is a 32-bit pointer to a constant of anytype](https://learn.micro soft.com/en-us/openspecs/windows_protocols/ms-dtyp/66996877-9dd4-477d-a811-30e6c 1a5525d), but you use mutable `var` for pvAttribute -https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwmwindo wattribute > DWMWA_USE_IMMERSIVE_DARK_MODE > This value is supported starting with Windows 11 Build 22000. When you're on Win10.