nsICollationFactory::GetIID(), (void**) &collationFactory);
NS_GET_IID(nsICollationFactory), (void**) &collationFactory);
nsresult nsCharsetMenu::GetCollation(nsICollation ** aCollation){  nsresult res = NS_OK;  nsCOMPtr<nsILocale> locale = nsnull;  nsICollationFactory * collationFactory = nsnull;    NS_WITH_SERVICE(nsILocaleService, localeServ, kLocaleServiceCID, &res);  if (NS_FAILED(res)) return res;  res = localeServ->GetApplicationLocale(getter_AddRefs(locale));  if (NS_FAILED(res)) return res;  res = nsComponentManager::CreateInstance(kCollationFactoryCID, NULL,       nsICollationFactory::GetIID(), (void**) &collationFactory);  if (NS_FAILED(res)) return res;  res = collationFactory->CreateCollation(locale, aCollation);  NS_RELEASE(collationFactory);  return res;}