I am trying to write a C++/WinAPI code to change a monitor brightness. The code must be compatible with Windows XP so I can\'t use APIs like SetMonitorBrightness. So I thought t
You know that not all devices support this API, right? Your laptop probably supports it because it allows software adjustment of its screen brightness, perhaps even with function keys on the keyboard. Your other machine (the one running Windows 7) probably doesn't support it, so calling CreateHandle
with \\\\.\\LCD
doesn't get you anything useful. It has nothing to do with the operating system and everything to do with the hardware and/or the video drivers.