return (*aFactory)->QueryInterface(nsIFactory::GetIID(),
return (*aFactory)->QueryInterface(NS_GET_IID(nsIFactory),
NSGetFactory(nsISupports *servMgr,	     const nsCID &aClass,	     const char *aClassName,	     const char *aProgID,	     nsIFactory **aFactory){  if (nsnull == aFactory) {    return NS_ERROR_NULL_POINTER;  }  *aFactory = new nsXlibWindowServiceFactory(aClass);    if (nsnull == aFactory) {    return NS_ERROR_OUT_OF_MEMORY;  }  return (*aFactory)->QueryInterface(nsIFactory::GetIID(),				     (void **)aFactory);}