views:

483

answers:

1

Hi

How to increase/decrease screen brightness in C# for Windows Mobile 6.1? Also, how can we turn on/off screen to save battery while a particular application is running?

Is there any wrapper or API available to achieve that?

+2  A: 

You would use the power management APIs to change the backlight settings. Also the WinMo 5 SDKs ship with a sample application called Power Manager that demonstrates how to programmatically change the state of the backlight. It's in C, but is pretty straightforward to port.

ctacke
I have found that SetPowerRequirement function does not work with Windows Mobile 6.1, but it works with lower versions :(Any other way to achieve this?
ZHS