nsCOMPtr<nsIAppShellService> appShell(do_GetService(kAppShellServiceCID)); appShell->Initialize(nsnull, nsnull);   appShell->CreateTopLevelWindow(nsnull, nsnull, PR_FALSE, PR_FALSE, 0, 1, 1, getter_AddRefs(gHiddenWindow));
gtk_moz_embed_startup_xpcom(void){  nsresult rv;  // init our embedding  nsCOMPtr<nsILocalFile> binDir;    if (component_path) {    rv = NS_NewLocalFile(component_path, 1, getter_AddRefs(binDir));    if (NS_FAILED(rv))      return FALSE;  }      rv = NS_InitEmbedding(binDir, nsnull);  if (NS_FAILED(rv))    return FALSE;  gAppShell = do_CreateInstance(kAppShellCID);  NS_ENSURE_TRUE(gAppShell, NS_ERROR_FAILURE);  gAppShell->Create(0, nsnull);  gAppShell->Spinup();  return TRUE;}