Keep LCD Screen On

R

raidxx

Does anybody have some code that will prevent the LCD screen from
automatically turning off? No Backlight!

thnx.
 
R

raidxx

i'm using this code

[DllImport("coredll")]
extern static void SystemIdleTimerReset();

private void KeepOn()
{
SystemIdleTimerReset();
}

but it does not work..

do u have a any example..

:)
 
P

Paul G. Tobey [eMVP]

You can't call it *just once*! You have to call it often enough so that the
time-out period set by the user doesn't expire without at least one such
call being made.

Paul T.
 
R

raidxx

every 1sec. timer calls SystemIdleTimerReset() but does not work..

i think only support PPC,is it?

i need code sample for smartphone 2003.
 
W

WT

it's working

[DllImport("Aygshell.dll")]
private static extern void SHIdleTimerReset();

public void ResetSHIdleTimer()
{
SHIdleTimerReset();
}

thanks for u'r help Sergey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top