>    I need to check whether backlight is on or off.

the function Light I sent you earlier can do that:
just set switch = false, the function returns the
backlight state

static Boolean Light(Boolean switch, Boolean new)
{
Boolean old;
HwrDisplayAttributes(false, 0x12, &old);
if (switch && (old != new))
EvtEnqueueKey(vchrBacklight, 0, commandKeyMask);
return old;
}

Rudolf Polzer



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to