How to disable screen swich off in WinCE6 ?

aquadiscount
Hello

on my wince6, screen switch off a few minutes after inactivity.

How to disable this functionnality, i want a screen always on !

thank you

mindee
hi,

you can see "Control Panel"->"Display"->"BackLight Setting"

regards

mindee

jeangr
What is the C# code to turn off the monitor?

jeangr
I found the display driver here: C: \ WINCE500 \ PLATFORM \ mini2440 \ Src
\ Drivers \ Backlight
but I can not put it into a program to try to turn off the display.
Has anyone any ideas (e.g. using .obj file already compiled)?

jeangr
[DllImport("backlight", SetLastError = true)]
        private static extern void BAK_PowerDown();
        [DllImport("backlight", SetLastError = true)]
        private static extern void BAK_Init(int i);

        private void button_Click(object sender, EventArgs e)
        {
            BAK_Init(0);
            BAK_PowerDown();
        }