I was wondering what is the native way to adjust the brightness in Windows? By native, I mean the method that also displays the brightness overlay in the top left corner in Windows 8, 8.1, and 10, as if the special brightness keys have been pressed. I was looking all [...] read more
I tried to get the brightness of the primary monitor using the following code: POINT monitorPoint = { 0, 0 }; HANDLE monitor = MonitorFromPoint(monitorPoint, MONITOR_DEFAULTTOPRIMARY); DWORD minb, maxb, currb; if (GetMonitorBrightness(monitor, &minb, &currb, &maxb) == FALSE) { std::cout << GetLastError() << std::endl; } But it fails and GetLastError() returns [...] read more