*username = mUser.ToNewUnicode(); *password = mPass.ToNewUnicode();
*username = ToNewUnicode(mUser); *password = ToNewUnicode(mPass);
NS_IMETHODIMP CPromptService::PromptUsernameAndPassword(nsIDOMWindow *parent,                                                        const PRUnichar *dialogTitle,                                                        const PRUnichar *text,                                                        PRUnichar **username,                                                        PRUnichar **password,                                                        const PRUnichar *checkboxMsg,                                                        PRBool *checkValue,                                                        PRBool *_retval){	CWebBrowserContainer *w = GetWebBrowser( parent );	PtMozillaWidget_t 			*moz = (PtMozillaWidget_t *) w->m_pOwner;	PtCallbackList_t 			*cb;	PtCallbackInfo_t 			cbinfo;	PtMozillaAuthenticateCb_t   auth;	nsString 					mTitle(dialogTitle);	nsString 					mRealm(checkboxMsg);/* ATENTIE */ printf( "CWebBrowserContainer::PromptUsernameAndPassword\n" );	if (!moz->auth_cb)	    return NS_OK;	cb = moz->auth_cb;	memset(&cbinfo, 0, sizeof(cbinfo));	cbinfo.reason = Pt_CB_MOZ_AUTHENTICATE;	cbinfo.cbdata = &auth;	memset(&auth, 0, sizeof(PtMozillaAuthenticateCb_t));	auth.title = mTitle.ToNewCString();	auth.realm = mRealm.ToNewCString();  if (PtInvokeCallbackList(cb, (PtWidget_t *)moz, &cbinfo) == Pt_CONTINUE)    {		nsCString	mUser(auth.user);		nsCString	mPass(auth.pass);		*username = mUser.ToNewUnicode();		*password = mPass.ToNewUnicode();    	*_retval = PR_TRUE;    }    else    	*_retval = PR_FALSE;	return NS_OK;}