if( XpuGetOneLongAttribute(pdpy, pcontext, XPPageAttr, "default-printer-resolution", dpi_ptr) == 1 ) { return True; }
Bool XpuGetResolution( Display *pdpy, XPContext pcontext, long *dpi_ptr ){  if( XpuGetOneLongAttribute(pdpy, pcontext, XPDocAttr, "default-printer-resolution", dpi_ptr) == 1 )  {    return True;  }  return False;}