nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1"));
nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService(NS_WINDOWWATCHER_CONTRACTID));
confirm_user(const PRUnichar *message){  PRBool confirmation = PR_FALSE;  nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1"));  nsCOMPtr<nsIPrompt> prompter;  if (wwatch)    wwatch->GetNewPrompter(0, getter_AddRefs(prompter));  if (prompter) {    prompter->Confirm(0, message, &confirmation);  }  return confirmation;}