return abSession->QueryInterface(nsCOMTypeInfo<nsIAutoCompleteSession>::GetIID(), aInstancePtrResult);
return abSession->QueryInterface(NS_GET_IID(nsIAutoCompleteSession), aInstancePtrResult);
nsresult NS_NewAbAutoCompleteSession(const nsIID &aIID, void ** aInstancePtrResult){	/* note this new macro for assertions...they can take a string describing the assertion */	NS_PRECONDITION(nsnull != aInstancePtrResult, "nsnull ptr");	if (aInstancePtrResult)	{		nsAbAutoCompleteSession * abSession = new nsAbAutoCompleteSession(); 		if (abSession)			return abSession->QueryInterface(nsCOMTypeInfo<nsIAutoCompleteSession>::GetIID(), aInstancePtrResult);		else			return NS_ERROR_OUT_OF_MEMORY; /* we couldn't allocate the object */	}	else		return NS_ERROR_NULL_POINTER; /* aInstancePtrResult was NULL....*/}