return nsRepository::UnregisterFactory(kIGuiManagerFactoryIID, path);
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::UnregisterFactory(kIGuiManagerFactoryIID, path);  (void)servMgr->ReleaseService(kComponentManagerCID, compMgr); return rv;
extern "C" NS_EXPORT nsresult NSUnregisterSelf(nsISupports* serviceMgr, const char *path){  return nsRepository::UnregisterFactory(kIGuiManagerFactoryIID, path);}