if (NS_OK == l->QueryInterface(kIEventListenerManagerIID, (void**) aInstancePtrResult)) {
if (NS_OK == l->QueryInterface(NS_GET_IID(nsIEventListenerManager), (void**) aInstancePtrResult)) {
NS_HTML nsresult NS_NewEventListenerManager(nsIEventListenerManager** aInstancePtrResult) {  nsIEventListenerManager* l = new nsEventListenerManager();  if (nsnull == l) {    return NS_ERROR_OUT_OF_MEMORY;  }    if (NS_OK == l->QueryInterface(kIEventListenerManagerIID, (void**) aInstancePtrResult)) {    return NS_OK;  }  return NS_ERROR_FAILURE;}