|
|
|
date: Mon, 19 Feb 2007 01:09:50 -0800,
group: microsoft.public.inetsdk.programming.webbrowser_ctl
back
Re: Ignore Proxy Settings and OfflineMode in CWebBrowser Applicati
Thanks Igor for the answers.
one is not working:
I've added this lines before my m_browser.navigate(....)
HINTERNET hInternet = InternetOpen("MyApp", INTERNET_OPEN_TYPE_DIRECT, NULL,
NULL, 0);
InternetSetOption(hInternet, INTERNET_OPTION_IGNORE_OFFLINE, NULL, dwSize);
InternetCloseHandle (hInternet);
but it shows the "Offline -> Stay Offline / Connect" Dialog...
Where is the mistake?
Thanks
xbromy
"Igor Tandetnik" wrote:
> "xbromy" wrote in message
> news:2B46E316-048C-4BE3-B1CB-49DEF67DDC6B@microsoft.com
> > i've an MCF 4 Application with VS 6.0 C++ which uses a CWebBrowser.
> > I've implemented an own IInternetSecurityManager ... at get rid of the
> > ZoneSettings of the IE. My application shows only local sites from an
> > dedicated webserver with bind on localhost. So i don't want that it
> > does'nt work if the IE on the Host System is set to "offline" and i
> > want to ignore the proxy setting (because i'm local but can't change
> > the settings in the host IE)...
>
> See KB article KB226473 "How to programmatically query and set proxy
> settings under Internet Explorer".
> See InternetSetOption(INTERNET_OPTION_IGNORE_OFFLINE)
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
>
>
>
date: Tue, 20 Feb 2007 02:38:05 -0800
author: xbromy
Re: Ignore Proxy Settings and OfflineMode in CWebBrowser Applicati
"xbromy" wrote in message
news:A2150A57-AD7E-4EB2-92EC-87FDD9DB604B@microsoft.com
> HINTERNET hInternet = InternetOpen("MyApp",
> INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
> InternetSetOption(hInternet, INTERNET_OPTION_IGNORE_OFFLINE, NULL,
> dwSize); InternetCloseHandle (hInternet);
>
> but it shows the "Offline -> Stay Offline / Connect" Dialog...
Try
BOOL ignore = TRUE;
InternetSetOption(NULL, INTERNET_OPTION_IGNORE_OFFLINE, &ignore,
sizeof(BOOL));
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
date: Tue, 20 Feb 2007 07:42:45 -0500
author: Igor Tandetnik
Re: Ignore Proxy Settings and OfflineMode in CWebBrowser Applicati
Hm,
does not work... !? Must do this at a special position in the application?
Or is there something to do before / after?
Thanks
xbromy
"Igor Tandetnik" wrote:
> "xbromy" wrote in message
> news:A2150A57-AD7E-4EB2-92EC-87FDD9DB604B@microsoft.com
> > HINTERNET hInternet = InternetOpen("MyApp",
> > INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
> > InternetSetOption(hInternet, INTERNET_OPTION_IGNORE_OFFLINE, NULL,
> > dwSize); InternetCloseHandle (hInternet);
> >
> > but it shows the "Offline -> Stay Offline / Connect" Dialog...
>
> Try
>
> BOOL ignore = TRUE;
> InternetSetOption(NULL, INTERNET_OPTION_IGNORE_OFFLINE, &ignore,
> sizeof(BOOL));
>
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
>
>
>
date: Tue, 20 Feb 2007 06:50:30 -0800
author: xbromy
|
|