nsComponentManager::RegisterComponent(kNameSpaceManagerCID,      NULL, NULL, LAYOUT_DLL, PR_FALSE, PR_FALSE);
int main(){	nsINetService * pNetService;    nsCOMPtr<nsIEventQueue> queue;    nsresult result;    nsComponentManager::RegisterComponent(kNetServiceCID, NULL, NULL, NETLIB_DLL, PR_FALSE, PR_FALSE);    nsComponentManager::RegisterComponent(kEventQueueServiceCID, NULL, NULL, XPCOM_DLL, PR_FALSE, PR_FALSE);    nsComponentManager::RegisterComponent(kEventQueueCID, NULL, NULL, XPCOM_DLL, PR_FALSE, PR_FALSE);    nsComponentManager::RegisterComponent(kNntpUrlCID, NULL, NULL, NEWS_DLL, PR_FALSE, PR_FALSE);    nsComponentManager::RegisterComponent(kPrefCID, nsnull, nsnull, PREF_DLL, PR_TRUE, PR_TRUE);    nsComponentManager::RegisterComponent(kFileLocatorCID,  NULL, NULL, APPSHELL_DLL, PR_FALSE, PR_FALSE);	// make sure prefs get initialized and loaded..	// mscott - this is just a bad bad bad hack right now until prefs	// has the ability to take nsnull as a parameter. Once that happens,	// prefs will do the work of figuring out which prefs file to load...	NS_WITH_SERVICE(nsIPref, prefs, kPrefCID, &result);     if (NS_FAILED(result) || prefs == nsnull) {        exit(result);    }	// Create the Event Queue for this thread...	NS_WITH_SERVICE(nsIEventQueueService, pEventQService, kEventQueueServiceCID, &result);	if (NS_FAILED(result)) return result;    result = pEventQService->CreateThreadEventQueue();	if (NS_FAILED(result)) return result;	// ask the net lib service for a nsINetStream:	result = NS_NewINetService(&pNetService, NULL);	if (NS_FAILED(result) || !pNetService)	{		printf("unable to initialize net serivce. \n");		return 1;	}    result =        pEventQService->GetThreadEventQueue(PR_GetCurrentThread(),getter_AddRefs(queue));    if (NS_FAILED(result) || !queue) {        printf("unable to get event queue.\n");        return 1;    }    	// now register a mime converter....    //	NET_RegisterContentTypeConverter (MESSAGE_RFC822, FO_NGLAYOUT, NULL, MIME_MessageConverter);    //	NET_RegisterContentTypeConverter (MESSAGE_RFC822, FO_CACHE_AND_NGLAYOUT, NULL, MIME_MessageConverter);	// okay, everything is set up, now we just need to create a test driver and run it...	nsNntpTestDriver * driver = new nsNntpTestDriver(pNetService,queue);	if (driver)	{		NS_ADDREF(driver);		driver->RunDriver();		// when it kicks out...it is done....so delete it...		NS_RELEASE(driver);	}	// shut down:	NS_RELEASE(pNetService);        return 0;}