return it->QueryInterface(NS_GET_IID(nsIDOMEvent), (void **) aInstancePtrResult);
return CallQueryInterface(it, aInstancePtrResult);
nsresult NS_NewDOMUIEvent(nsIDOMEvent** aInstancePtrResult,                          nsIPresContext* aPresContext,                          const nsAString& aEventType,                          nsEvent *aEvent) {  nsDOMEvent* it = new nsDOMEvent(aPresContext, aEvent, aEventType);  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }    return it->QueryInterface(NS_GET_IID(nsIDOMEvent), (void **) aInstancePtrResult);}