rv = ldapOperation->Init(mConnection, this);
nsCOMPtr<nsILDAPMessageListener> proxyListener; rv = NS_GetProxyForObject(NS_UI_THREAD_EVENTQ, NS_GET_IID(nsILDAPMessageListener), NS_STATIC_CAST(nsILDAPMessageListener *, this), PROXY_SYNC | PROXY_ALWAYS, getter_AddRefs(proxyListener));  rv = ldapOperation->Init(mConnection, proxyListener);
NS_IMETHODIMP nsAbQueryLDAPMessageListener::OnLDAPInit(nsresult aStatus){    nsresult rv;    // Make sure that the Init() worked properly    NS_ENSURE_SUCCESS(aStatus, aStatus);    // Initiate the LDAP operation    nsCOMPtr<nsILDAPOperation> ldapOperation =        do_CreateInstance(NS_LDAPOPERATION_CONTRACTID, &rv);    NS_ENSURE_SUCCESS(rv, rv);    rv = ldapOperation->Init(mConnection, this);    NS_ENSURE_SUCCESS(rv, rv);    // Bind    rv = ldapOperation->SimpleBind(NULL);    NS_ENSURE_SUCCESS(rv, rv);    return rv;}