Fabien
Tue Feb 19 04:17:44 CST 2008
hello,
You can use SetPowerRequirement (
http://msdn2.microsoft.com/en-us/
library/aa908456.aspx) with DeviceState=3DD0 (Full On / (
http://
msdn2.microsoft.com/en-us/library/bb201981.aspx)).
[DllImport("coredll.dll", SetLastError =3D true)]
private static extern IntPtr SetPowerRequirement
(
string pvDevice,
CEDEVICE_POWER_STATE DeviceState,
uint DeviceFlags,
IntPtr pvSystemState,
uint StateFlags
);
BR
Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ |
http://fabdecret.blogspot.com/
On 19 f=E9v, 10:30, Liberado27 <Liberad...@discussions.microsoft.com>
wrote:
> Hello!
>
> I'm developing a program in Windows mobile 5.0 with Compact Framework 2.0
> and Visual Studio 2005 that must be showing information to the user whitou=
t
> the user interaction.
>
> I use SystemIdleTimer to prevent the turn off but the brightness still "go=
> down" (I lose brightness). How can I prevent this?
>
> Thank you!