backlight on

  • Thread starter Thread starter c_xyTopa
  • Start date Start date
C

c_xyTopa

hi all!

i want to stay backlight always on.
their are registry keys "HKEY_CU\ControlPanel\Backlight\BatteryTimeout
or ACTimeout".
But if i change the key values the backlight goes still off, that is
'cause i don't "push the ok button of the form", so the changings don't
take effect.

the other thing i've found is SetPowerRequirement and
ReleasePowerRequirement funktions of MSDN. but i don't no how to use
them from managed code.

please help!=)
 
Generally you'll need to look at the built-in drivers in the registry:-
HKEY_LOCAL_MACHINE\Drivers\BuiltIn\

It's usually called BackLight or FrontLight or similar. Then the Prefix and
Index will give you the name.

Peter
 
Peter said:
Generally you'll need to look at the built-in drivers in the registry:-
HKEY_LOCAL_MACHINE\Drivers\BuiltIn\

It's usually called BackLight or FrontLight or similar. Then the Prefix and
Index will give you the name.

Peter
thank you, that works.
i have two more questions=):

1.after calling SetPowerRequirement-fkt is there some reg key, wich
value had been changed?
2.do you know any resource(internet or book), wich shows how to use
p/invoke and especially parameters marshaling?

thanks once more
 
1. Nope, the SetPowerRequirement just says to Power Manager about new
power requirements. That means that after reset you should set it again.
See this link for more information:
http://msdn.microsoft.com/library/d...us/wceddk40/html/cxrefsetpowerrequirement.asp

2. These two articles would be helpful for you:

"An Introduction to P/Invoke and Marshaling on the Microsoft .NET
Compact Framework"
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/netcfintrointerp.asp

"Advanced P/Invoke on the Microsoft .NET Compact Framework"
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/netcfadvinterop.asp
 
You could just purchase BacklightOverride from www.MobileDynamo.com


Sergey Bogdanov said:
1. Nope, the SetPowerRequirement just says to Power Manager about new
power requirements. That means that after reset you should set it again.
See this link for more information:
http://msdn.microsoft.com/library/d...us/wceddk40/html/cxrefsetpowerrequirement.asp

2. These two articles would be helpful for you:

"An Introduction to P/Invoke and Marshaling on the Microsoft .NET Compact
Framework"
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/netcfintrointerp.asp

"Advanced P/Invoke on the Microsoft .NET Compact Framework"
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/netcfadvinterop.asp


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


c_xyTopa said:
thank you, that works.
i have two more questions=):

1.after calling SetPowerRequirement-fkt is there some reg key, wich value
had been changed?
2.do you know any resource(internet or book), wich shows how to use
p/invoke and especially parameters marshaling?

thanks once more
 
Back
Top