Status XSetWMProtocols(display, w, protocols, count)
      Display *display;
      Window w;
      Atom *protocols;
      int count;
| display | Specifies the connection to the X server. | 
| w | Specifies the window. | 
| protocols | Specifies the list of protocols. | 
| count | Specifies the number of protocols in the list. | 
XSetWMProtocols() can generate BadAlloc and BadWindow errors.
| BadAlloc | The server failed to allocate the requested source or server memory. | 
| BadWindow | A value for a Window argument does not name a defined Window. |