rv = NS_NewNewsgroup(getter_AddRefs(newsgroup), nsnull , nsnull , PR_FALSE , nsnull , 1 );
rv = nsComponentManager::CreateInstance(kNNTPNewsgroupCID, nsnull, nsINNTPNewsgroup::GetIID(), getter_AddRefs(newsgroup));
nsresult nsNntpTestDriver::OnGetGroup(){	nsresult rv = NS_OK;	// first, prompt the user for the name of the group to fetch	rv = PromptForUserDataAndBuildUrl("Group to fetch: ");	// no prompt for url data....just append a '*' to the url data and run it...	m_urlString[0] = '\0';	PL_strcpy(m_urlString, m_urlSpec);	PL_strcat(m_urlString, "/");	PL_strcat(m_urlString, m_userData);	if (m_protocolInitialized == PR_FALSE) {		rv = InitializeProtocol(m_urlString);        if (NS_FAILED(rv) || (m_url == nsnull)) {            return rv;        }    }	else		m_url->SetSpec(m_urlString); // reset spec	nsCOMPtr<nsINNTPNewsgroup> newsgroup;    rv = NS_NewNewsgroup(getter_AddRefs(newsgroup), nsnull /* line */, nsnull /* set */, PR_FALSE /* subscribed */, nsnull /* host*/, 1 /* depth */);                   if (NS_SUCCEEDED(rv)) {        newsgroup->SetName(m_userData);    }	else {		return rv;	}    m_url->SetNewsgroup(newsgroup);    if (NS_SUCCEEDED(rv)) {        SetupUrl(m_userData);        printf("Running %s\n", m_urlString);		rv = m_nntpProtocol->LoadURL(m_url, nsnull /* displayStream */);	} // if user provided the data...	return rv;}