Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Mon, 19 Feb 2007 01:09:50 -0800,    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


Ignore Proxy Settings and OfflineMode in CWebBrowser Application   
Hi,

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)... 

Any ideas? Interfaces? Examples?

Thanks!

xbromy
date: Mon, 19 Feb 2007 01:09:50 -0800   author:   xbromy

Re: Ignore Proxy Settings and OfflineMode in CWebBrowser Application   
"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: Mon, 19 Feb 2007 10:48:38 -0500   author:   Igor Tandetnik

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

Re: Ignore Proxy Settings and OfflineMode in CWebBrowser Applicati   
xbromy  wrote:
> does not work... !? Must do this at a special position in the
> application? Or is there something to do before / after?

See if this helps:

http://groups.google.com/group/microsoft.public.inetsdk.programming.wininet/browse_frm/thread/f2583ec32b5e7bc9

-- 
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 11:05:37 -0500   author:   Igor Tandetnik

Re: Ignore Proxy Settings and OfflineMode in CWebBrowser Applicati   
Hmf,

.... i sounds so good... now i've to use a workaround...

Thanks Igor for the fast support.

xbromy


"Igor Tandetnik" wrote:

> xbromy  wrote:
> > does not work... !? Must do this at a special position in the
> > application? Or is there something to do before / after?
> 
> See if this helps:
> 
> http://groups.google.com/group/microsoft.public.inetsdk.programming.wininet/browse_frm/thread/f2583ec32b5e7bc9
> 
> -- 
> 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 08:37:15 -0800   author:   xbromy

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us