rv = QueryComplete (result);
rv = QueryResultStatus (nsnull, result,nsIAbDirectoryQueryResult::queryResultComplete);
nsresult nsAbQueryLDAPMessageListener::OnLDAPMessageSearchResult (nsILDAPMessage *aMessage,        nsIAbDirectoryQueryResult** result){    mDirectoryQuery->RemoveListener (mContextID);    nsresult rv;    PRInt32 errorCode;    rv = aMessage->GetErrorCode(&errorCode);    NS_ENSURE_SUCCESS(rv, rv);        if (errorCode == nsILDAPErrors::SUCCESS || errorCode == nsILDAPErrors::SIZELIMIT_EXCEEDED)        rv = QueryComplete (result);    else        rv = QueryError (result);    return rv;}