appDataDir->Append(NS_LITERAL_STRING("winembed"));
appDataDir->AppendNative(nsCString("winembed"));
nsresult StartupProfile(){	nsCOMPtr<nsIFile> appDataDir;	nsresult rv = NS_GetSpecialDirectory(NS_APP_APPLICATION_REGISTRY_DIR, getter_AddRefs(appDataDir));	if (NS_FAILED(rv))      return rv;    	appDataDir->Append(NS_LITERAL_STRING("winembed"));	nsCOMPtr<nsILocalFile> localAppDataDir(do_QueryInterface(appDataDir));	nsCOMPtr<nsProfileDirServiceProvider> locProvider;    NS_NewProfileDirServiceProvider(PR_TRUE, getter_AddRefs(locProvider));    if (!locProvider)      return NS_ERROR_FAILURE;    	rv = locProvider->Register();    if (NS_FAILED(rv))      return rv;    	return locProvider->SetProfileDir(localAppDataDir);}