Re: InternetErrorDlg does not save password

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



What bothers me even more: Internet Explorer (version 7 on Vista) displays
the same dialog and the password is saved*.

Probably because WinHTTP is used.

--
Volodymyr, blog: http://www.shcherbyna.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)
"Egon Kocjan" <egon@xxxxxxxxxxx> wrote in message
news:%23j3X4WtVJHA.3796@xxxxxxxxxxxxxxxxxxxxxxx
Hello,

I am using this code to ask user for web proxy password (error 407):

bool get_password(HWND wnd, HINTERNET handle)
{
DWORD ret = InternetErrorDlg(
wnd ? wnd : GetDesktopWindow(),
handle,
ERROR_INTERNET_INCORRECT_PASSWORD,
FLAGS_ERROR_UI_FILTER_FOR_ERRORS |
FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS |
FLAGS_ERROR_UI_FLAGS_GENERATE_DATA,
NULL);

return ret == ERROR_INTERNET_FORCE_RETRY;
}

It works ok, the next time I request to download something, WinInet
authenticates automatically, I don't get 407 at all anymore.

The problem is, even if I check the "Save password", the password is not
really saved. So, when I close and open my program again, the error dialog
will be empty and I have to enter the password again!

What bothers me even more: Internet Explorer (version 7 on Vista) displays
the same dialog and the password is saved*.

What do I have to do to have passwords saved like Internet Explorer?

* I've also checked with CredEnumerateW - it shows as
target=Microsoft_WinInet_PROXY/REALM

Thanks,
Egon


.



Relevant Pages

  • Re: OLDCMP Utility
    ... * This posting is provided "AS IS" with no warranties and confers no rights! ... > Internet Explorer ...
    (microsoft.public.windows.server.active_directory)
  • Re: Error Message after updating
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > has caused an error in PLOTWON.OCX Iexplore will close now. ...
    (microsoft.public.windowsupdate)
  • Re: Error Message after updating
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > has caused an error in PLOTWON.OCX Iexplore will close now. ...
    (microsoft.public.windowsupdate)
  • Re: connect ppc 2003 to lynksys router
    ... Al Jarvi (MS-MVP Windows Networking) ... This posting is provided "AS IS" with no warranties, and confers no rights... ... > internet explorer gives this message page can not be found. ...
    (microsoft.public.pocketpc.wireless)
  • Re: OLDCMP Utility
    ... * This posting is provided "AS IS" with no warranties and confers no rights! ... > Resource not allowed... ... >> Internet Explorer ...
    (microsoft.public.windows.server.active_directory)