nsIGenericFactory::ConstructorProcPtr constructor, nsIGenericFactory::DestructorProcPtr destructor)
nsModuleComponentInfo *info)
NS_NewGenericFactory(nsIGenericFactory* *result,                     nsIGenericFactory::ConstructorProcPtr constructor,                     nsIGenericFactory::DestructorProcPtr destructor){    nsresult rv;    nsIGenericFactory* fact;    rv = nsGenericFactory::Create(NULL, NS_GET_IID(nsIGenericFactory), (void**)&fact);    if (NS_FAILED(rv)) return rv;    rv = fact->SetConstructor(constructor);    if (NS_FAILED(rv)) goto error;    rv = fact->SetDestructor(destructor);    if (NS_FAILED(rv)) goto error;    *result = fact;    return rv;  error:    NS_RELEASE(fact);    return rv;}