nsIAppShellService* appShell
nsIAppShellService* appShell;
nsComposeAppCore::NewMessage(const nsString& aUrl){	static NS_DEFINE_CID(kAppShellServiceCID, NS_APPSHELL_SERVICE_CID);	char *  urlstr=nsnull;	nsresult rv;	nsString controllerCID;	nsIAppShellService* appShell    rv = nsServiceManager::GetService(kAppShellServiceCID,                                      nsIAppShellService::GetIID(),                                      (nsISupports**)&appShell);    if (NS_FAILED(rv)) return rv;	nsIURL* url;	nsIWidget* newWindow;  	rv = NS_NewURL(&url, aUrl);	if (NS_FAILED(rv)) {	  goto done;	}	controllerCID = "6B75BB61-BD41-11d2-9D31-00805F8ADDDF";	appShell->CreateTopLevelWindow(nsnull,      // parent                                   url,                                   controllerCID,                                   newWindow,   // result widget                                   nsnull,      // observer                                   nsnull,      // callbacks                                   615,         // width                                   650);        // heightdone:	NS_RELEASE(url);    (void)nsServiceManager::ReleaseService(kAppShellServiceCID, appShell);	return NS_OK;}