return nsRepository::RegisterComponent(kIGuiManagerFactoryIID, NULL, NULL, path, PR_TRUE, PR_TRUE);
nsresult rv;  nsCOMPtr<nsIServiceManager> servMgr(do_QueryInterface(aServMgr, &rv)); if (NS_FAILED(rv)) return rv;  nsIComponentManager* compMgr; rv = servMgr->GetService(kComponentManagerCID, nsIComponentManager::GetIID(), (nsISupports**)&compMgr); if (NS_FAILED(rv)) return rv;  rv = nsComponentManager::RegisterComponent(kIGuiManagerFactoryIID, NULL, NULL, path, PR_TRUE, PR_TRUE); (void)servMgr->ReleaseService(kComponentManagerCID, compMgr); return rv;
extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* serviceMgr, const char *path){  return nsRepository::RegisterComponent(kIGuiManagerFactoryIID,                                       NULL, NULL, path,                                       PR_TRUE, PR_TRUE);}