How to control windows-ce 5.0 backlight?

Is there a way to control the backlight (DAP CE8800) using C #?

+3
source share
2 answers

It turns out that DAP supports backlight control on this tablet. I managed to get it working by adding DapServiceCS.dll and this code:

DsLightSensor lightSensor = new DsLightSensor();
if (DapServices.DS_EXECUTION_OK ==
    DapServices.DapService(DapServicesCode.DS_GET_LIGHT_SENSOR, lightSensor))
{
    lightSensor.dwIntensity = hScrollBarIntensity.Value;
    DapServices.DapService(DapServicesCode.DS_SET_LIGHT_SENSOR, lightSensor);
}
0
source

There is no standard mechanism defined by the OS for the backlight to work (intensity or active / inactive). Those devices that have software control (and not all) use their own APIs. Sometimes it is a driver call, sometimes a developer API, and sometimes more esoteric (for example, a CPL call).

SDK OEM-, .

+1

Source: https://habr.com/ru/post/1793976/


All Articles