Programmatically change IE proxy settings

Discussion in 'ASP .Net' started by =?Utf-8?B?UmFtb24gZGUgS2xlaW4=?=, Jan 17, 2006.

  1. 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?

    --
    Greetings,
    Ramon de Klein
    =?Utf-8?B?UmFtb24gZGUgS2xlaW4=?=, Jan 17, 2006
    #1
    1. Advertising

  2. The function 'InternetSetOption' from WININET.DLL helps to do this.
    Unfortunately, it is pretty hard to access this from managed code :(

    --
    Greetings,
    Ramon de Klein
    =?Utf-8?B?UmFtb24gZGUgS2xlaW4=?=, Jan 17, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Siegfried Heintze
    Replies:
    0
    Views:
    2,272
    Siegfried Heintze
    Oct 24, 2005
  2. leeanne
    Replies:
    0
    Views:
    1,864
    leeanne
    Sep 24, 2008
  3. Replies:
    1
    Views:
    547
    Python Nutter
    Feb 12, 2009
  4. donet programmer
    Replies:
    3
    Views:
    1,538
    Gregory A. Beamer
    Nov 20, 2009
  5. iMath
    Replies:
    2
    Views:
    191
    Michael Torrie
    Feb 3, 2013
Loading...

Share This Page