NS_ENSURE_ARG_POINTER(searchDir); *searchDir = nsnull;  nsCOMPtr<nsIFile> aDir; nsresult rv = NS_GetSpecialDirectory(NS_APP_SEARCH_DIR, getter_AddRefs(aDir)); if (NS_FAILED(rv)) return rv;  *searchDir = aDir; NS_ADDREF(*searchDir); return NS_OK;
nsSpecialSystemDirectory	searchSitesDir(nsSpecialSystemDirectory::OS_CurrentProcessDirectory); searchSitesDir += "res"; searchSitesDir += "rdf"; searchSitesDir += "datasets"; spec = searchSitesDir; return(NS_OK);
InternetSearchDataSource::GetSearchFolder(nsIFile **searchDir){  NS_ENSURE_ARG_POINTER(searchDir);  *searchDir = nsnull;	  nsCOMPtr<nsIFile> aDir;  nsresult rv = NS_GetSpecialDirectory(NS_APP_SEARCH_DIR, getter_AddRefs(aDir));  if (NS_FAILED(rv)) return rv;    *searchDir = aDir;  NS_ADDREF(*searchDir);  return NS_OK;}