rv = NS_NewGenericFactory(&fact, constr);
rv = NS_NewGenericFactory(&fact, info);
RegisterGenericFactory(nsIComponentManager* compMgr, const nsCID& cid, const char* className,                       const char *contractid, nsIGenericFactory::ConstructorProcPtr constr){    nsresult rv;    nsIGenericFactory* fact;    rv = NS_NewGenericFactory(&fact, constr);    if (NS_FAILED(rv)) return rv;    rv = compMgr->RegisterFactory(cid, className, contractid, fact, PR_TRUE);    NS_RELEASE(fact);    return rv;}