Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Modifying Proxy setting of IE

Modifying Proxy setting of IE

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ssudhaiyer
    wrote on last edited by
    #1

    Hi, I would like to change the proxy settings of IE for dial-up connection. In INTERNET_PER_CONN_OPTION_LIST structure how do I specify the type of connection ? If I specify the connection type as NULL it modifies the global settings. But, I would like to change for dial-up. -Thanks Sudha

    J J 2 Replies Last reply
    0
    • S ssudhaiyer

      Hi, I would like to change the proxy settings of IE for dial-up connection. In INTERNET_PER_CONN_OPTION_LIST structure how do I specify the type of connection ? If I specify the connection type as NULL it modifies the global settings. But, I would like to change for dial-up. -Thanks Sudha

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      I have no idea if this will help! I just did a quick seach of MSDN (for "dial up) and found "Dialing Up the Internet with RAS". INTP

      1 Reply Last reply
      0
      • S ssudhaiyer

        Hi, I would like to change the proxy settings of IE for dial-up connection. In INTERNET_PER_CONN_OPTION_LIST structure how do I specify the type of connection ? If I specify the connection type as NULL it modifies the global settings. But, I would like to change for dial-up. -Thanks Sudha

        J Offline
        J Offline
        Joaquin M Lopez Munoz
        wrote on last edited by
        #3

        The following snippet does what you want, I guess:

        char szConnection[]=...; //name of the dial-up connection
        char szProxy[]=...; // in format address:port

        INTERNET_PER_CONN_OPTION_LIST List;
        INTERNET_PER_CONN_OPTION Option[1];
        unsigned long nSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);

        Option[0].dwOption = INTERNET_PER_CONN_PROXY_SERVER;
        Option[0].Value.pszValue = (LPSTR)szProxy;

        List.dwSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
        List.pszConnection = (LPSTR)szConnection;
        List.dwOptionCount = 1;
        List.dwOptionError = 0;
        List.pOptions = Option;

        InternetSetOption(NULL, INTERNET_OPTION_PER_CONNECTION_OPTION, &List, nSize);

        The proxy is set for all protocols within the connection (HTTP, FTP, etc.) Hope this helps. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups