do_GetService(kAddrBookSessionCID, &rv);
do_GetService(NS_ADDRBOOKSESSION_CONTRACTID, &rv);
void DIR_SetFileName(char** fileName, const char* defaultName){	nsresult rv = NS_OK;	nsFileSpec* dbPath = nsnull;	nsCOMPtr<nsIAddrBookSession> abSession = 	         do_GetService(kAddrBookSessionCID, &rv); 	if(NS_SUCCEEDED(rv))		abSession->GetUserProfileDirectory(&dbPath);	if (dbPath)	{		(*dbPath) += defaultName;		dbPath->MakeUnique(defaultName);		char* file = nsnull;		file = dbPath->GetLeafName();        *fileName = nsCRT::strdup(file);		if (file)			nsCRT::free(file);      delete dbPath;	}}