Important: The information in this document is obsolete and should not be used for new development.
DimmingControl
You can use theDimmingControlfunction to turn the automatic dimming feature on and off.
void DimmingControl(Boolean enableDimming);
enableDimming- A Boolean that specifies whether to enable the automatic dimming feature. Set this parameter to
 trueto enable automatic dimming.DESCRIPTION
TheDimmingControlfunction enables or disables the automatic dimming feature that causes the computer to dim the screen after a preset period of time. WhenenableDimmingis set totrue, the automatic dimming feature is enabled (this is the normal state). WhenenableDimmingis set tofalse, the computer will not dim the screen.SPECIAL CONSIDERATIONS
CallingDimmingControlwithenableDimmingset tofalsemultiple times increments the auto dimming disable level so that it requires the same number of calls toDimmingControlwithenableDimmingset totrueto reenable the auto dimming feature. If more than one piece of software makes this call, auto dimming may not be reenabled when you think it should be.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch($A09E). The selector value forDimmingControlis 31 ($1F) in the low word of register D0. The Boolean value is passed in the high word of register D0.SEE ALSO
You can use thePMFeaturesfunction (page 6-41) to determine whether the computer supports automatic dimming.