Bool XQueryExtension(display, name, major_opcode_return, first_event_return, first_error_return)
      Display *display;
      char *name;
      int *major_opcode_return;
      int *first_event_return;
      int *first_error_return;
| display | Specifies the connection to the X server. | 
| name | Specifies the extension name. | 
| major_opcode_return | Returns the major opcode. | 
| first_event_return | Returns the first event code, if any. | 
| Specifies the extension list. |