nsresult status = aDOMWindow->QueryInterface(kIScriptGlobalObjectIID, (void**)&temp0);
nsresult status = aDOMWindow->QueryInterface(NS_GET_IID(nsIScriptGlobalObject), (void**)&temp0);
Test06_nsIPtr_optimized( nsIDOMWindow* aDOMWindow, nsIWebShellWindow** aWebShellWindow )		// m400, w137	{//		if ( !aDOMWindow )//			return NS_ERROR_NULL_POINTER;		nsIScriptGlobalObject* temp0;		nsresult status = aDOMWindow->QueryInterface(kIScriptGlobalObjectIID, (void**)&temp0);		nsIScriptGlobalObjectPtr scriptGlobalObject = temp0;		nsIWebShell* temp1 = 0;		if ( scriptGlobalObject.IsNotNull() )			scriptGlobalObject->GetWebShell(&temp1);		nsIWebShellPtr webShell = temp1;		nsIWebShell* temp2 = 0;		if ( webShell.IsNotNull() )		//	status = webShell->GetRootWebShellEvenIfChrome(temp2);		nsIWebShellPtr rootWebShell = temp2;		nsIWebShellContainer* temp3 = 0;		if ( rootWebShell.IsNotNull() )			status = rootWebShell->GetContainer(temp3);		nsIWebShellContainerPtr webShellContainer = temp3;		if ( webShellContainer.IsNotNull() )			status = webShellContainer->QueryInterface(kIWebShellWindowIID, (void**)aWebShellWindow);		else			(*aWebShellWindow) = 0;//		return status;	}