4

I tried to override system brightness from my UWP app. But When I tried to get BrightnessOverride instance, the code breaks at the below line.

var bo = BrightnessOverride.GetDefaultForSystem();

It throws a generic exception

"System.Runtime.InteropServices.COMException: 'Error HRESULT E_FAIL has been returned from a call to a COM component.'"

I have check the 'System Management' capability in manifest.

Note: I am running the app on my local machine.

0 Answers0