I have Windows Server 2008 installed on a Sony laptop and the brightness control doesn’t work. I’d like to write a program to allow me to change it.
Currently what I have to do is open the Power control panel, click advanced settings, and fight through so many UAC boxes that anybody watching me must think I’m completely crazy.
I just want a simple little program to do it but i dont know what API to call
I looked up John Rudy‘s link to WmiSetBrightness in MSDN and came up with this:
Note:
ManagementClass,ManagementObjectCollection, andManagementObjectall implementIDisposable. You should callDispose()or use “using” to avoid leaking resources.