rv = reg->OpenDefault();
rv = reg->OpenWellKnownRegistry(nsIRegistry::ApplicationComponentRegistry);
NS_METHOD OutlookRegister(nsIComponentManager *aCompMgr,                                            nsIFile *aPath,                                            const char *registryLocation,                                            const char *componentType){	nsresult rv;    NS_WITH_SERVICE( nsIRegistry, reg, kRegistryCID, &rv);    if (NS_FAILED(rv)) {	    IMPORT_LOG0( "*** Import Outlook, ERROR GETTING THE Registry\n");    	return rv;    }        rv = reg->OpenDefault();    if (NS_FAILED(rv)) {	    IMPORT_LOG0( "*** Import Outlook, ERROR OPENING THE REGISTRY\n");    	return( rv);    }    	nsRegistryKey	importKey;		rv = GetImportModulesRegKey( reg, &importKey);	if (NS_FAILED( rv)) {		IMPORT_LOG0( "*** Import Outlook, ERROR getting Netscape/Import registry key\n");		return( rv);	}				    	nsRegistryKey	key;    rv = reg->AddSubtree( importKey, "Outlook", &key);    if (NS_FAILED(rv)) return( rv);        rv = reg->SetString( key, "Supports", kOutlookSupportsString);    if (NS_FAILED(rv)) return( rv);    char *myCID = kOutlookImportCID.ToString();    rv = reg->SetString( key, "CLSID", myCID);    delete [] myCID;    if (NS_FAILED(rv)) return( rv);  		return( rv);}