man-pages/man3/DPMSQueryExtension.3.html
2021-03-31 01:06:50 +01:00

126 lines
2.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DPMSQueryExtension</TITLE>
</HEAD><BODY>
<H1>DPMSQueryExtension</H1>
Section: X FUNCTIONS (3)<BR>Updated: libXext 1.3.4<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
DPMSQueryExtension - queries the X server to determine the availability
of the DPMS Extension
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<PRE>
<B>cc</B> [ <I>flag</I> ... ] <I>file</I> ... -<B>lXext</B> [ <I>library</I> ... ]
#include &lt;<A HREF="file:///usr/include/X11/extensions/dpms.h">X11/extensions/dpms.h</A>&gt;
<DL COMPACT>
<DT id="1"><B>Bool DPMSQueryExtension</B>
(
<DD> Display <I>*display</I>,
<DD> int <I>*event_base</I>,
<DD> int <I>*error_base</I>
);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DL>
</PRE><A NAME="lbAD">&nbsp;</A>
<H2>ARGUMENTS</H2>
<DL COMPACT>
<DT id="2"><I>display</I>
<DD>
<DD>Specifies the connection to the X server
<DT id="3"><I>event_base</I>
<DD>
Specifies the return location for the assigned base event
<DT id="4"><I>error_base</I>
<DD>
Specifies the return location for the assigned base error
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
The
<I>DPMSQueryExtension</I>
function queries the X server to determine the availability of the
Display Power Management Signaling (DPMS)
Extension. If the extension is available, it returns TRUE, and the
<I>event_base</I>
and
<I>error_base</I>
are set to the base event and error numbers, respectively. Otherwise, the
return value is FALSE, and the
values of
<I>event_base</I>
and
<I>error_base</I>
are undefined.
<A NAME="lbAF">&nbsp;</A>
<H2>RETURN VALUES</H2>
<DL COMPACT>
<DT id="5">TRUE<DD>
The
<I>DPMSQueryExtension</I>
function returns TRUE if the extension is available,
and
<I>event_base</I>
and
<I>error_base</I>
are set to the base event number and base error number for the extension,
respectively.
<DT id="6">FALSE<DD>
The
<I>DPMSQueryExtension</I>
function returns FALSE if extension is not available, and the values of
<I>event_base</I>
and
<I>error_base</I>
are undefined.
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?3+DPMSGetVersion">DPMSGetVersion</A></B>(3)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="9"><A HREF="#lbAD">ARGUMENTS</A><DD>
<DT id="10"><A HREF="#lbAE">DESCRIPTION</A><DD>
<DT id="11"><A HREF="#lbAF">RETURN VALUES</A><DD>
<DT id="12"><A HREF="#lbAG">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:39 GMT, March 31, 2021
</BODY>
</HTML>