---
name: "DMXQueryExtension"
section: "3"
platform: "linux"
package: "libdmx-dev"
version: "1:1.1.4-2"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/DMXQueryExtension"
---

# DMXQueryExtension(3)

determine if DMX is available

## NAME

DMXQueryExtension - determine if DMX is available

## SYNOPSIS

**#include \<X11/extensions/dmxext.h\>**

```
Bool DMXQueryExtension(Display *dpy,
                       int *event_basep,
                       int *error_basep);
```

## DESCRIPTION

**DMXQueryExtension()** determines if the DMX protocol extension is available.  It will be available if the server is an [**Xdmx**(1)](/Xdmx/1.md) server.

## RETURN VALUE

If the DMX protocol extension is available, *event\_basep* and *error\_basep* will be set to the event and error bases, respectively, and **True** will be returned.  Otherwise, **False** will be returned.

## SEE ALSO

[**DMXQueryVersion**(3)](/DMXQueryVersion/3.md),  [**DMX**(3)](/DMX/3.md), [**Xdmx**(1)](/Xdmx/1.md)
