How to: Program Applications to Turn the Smartphone Backlight Off and On
An application should always explicitly turn off the backlight as soon as it is no longer needed. You use the Windows CE ReleasePowerRequirement function to turn off the backlight, as shown in the following code:
ReleasePowerRequirement(hPwrReq);
You use the Windows CE SetPowerRequirement function to turn on the backlight, as shown in the following code example:
See Also
How to: Determine Battery Status
How to: Prevent Automatic Power Down
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.