Programmatically change IE proxy settings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to change the IE proxy settings from code. I know I can update the
registry directly (HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
Settings). The drawback of this option is that I need to restart IE to inform
that the settings have been changed.

The Control Panel applet "inetcpl.cpl" is also capable of changing the proxy
server without restarting IE. So I guess there is some kind of COM interface
or Windows message involved to change the proxy without restart. Anyone knows
how?
 
The function 'InternetSetOption' from WININET.DLL helps to do this.
Unfortunately, it is pretty hard to access this from managed code :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top