Status XGetWMProtocols(display, w, protocols_return, count_return)
      Display *display;
      Window w;
      Atom **protocols_return;
      int *count_return;
| display | Specifies the connection to the X server. | 
| w | Specifies the window. | 
| protocols_return | Returns the list of protocols. | 
| count_return | Returns the number of protocols in the list. | 
XGetWMProtocols() can generate a BadWindow error.
| BadWindow | A value for a Window argument does not name a defined Window. |