NAME

DPMSInfo - returns information about the current DPMS state

SYNOPSIS


cccc [ _f_l_a_g ... ] _f_i_l_e ... -llXXeexxtt [ _l_i_b_r_a_r_y ... ]
#include 
Status DPMSInfo
(
      Display _*_d_i_s_p_l_a_y,
      CARD16 _*_p_o_w_e_r___l_e_v_e_l,
      BOOL _*_s_t_a_t_e
);
     

ARGUMENTS

display
Specifies the connection to the X server
power_level
Specifies the current power level
state
Specifies the current DPMS state

DESCRIPTION

The DPMSInfo function returns information about the current Display Power Management Signaling (DPMS) state. The _s_t_a_t_e return parameter indicates whether or not DPMS is enabled (TRUE) or disabled (FALSE). The _p_o_w_e_r___l_e_v_e_l return parameter indicates the current power level (one of DPMSModeOn, DPMSModeStandby, DPMSModeSuspend, or DPMSModeOff.)

RETURN VALUES

TRUE
The DPMSInfo function returns TRUE, if values are returned.
FALSE
The DPMSInfo function returns FALSE, if no values are returned.

SEE ALSO

DPMSEnable(3)