如何用C#写一段程序,自动设置一台机子上的代理服务器。运行该代码后,该机器上的
所有程序,包括(ie,qq.msn等等)都通过代码设置的代理服务器访问internet.恳请高手帮我解答。

解决方案 »

  1.   

    IE的
    http://blog.csdn.net/cnhgj/archive/2005/04/25/362534.aspx
      

  2.   

    Windows API:
    BOOL InternetSetOption(
      HINTERNET hInternet,
      DWORD dwOption,
      LPVOID lpBuffer,
      DWORD dwBufferLength
    );
      

  3.   

    设置IE的就可以,其他软件的把设置改成使用IE的代理设置
      

  4.   

    问一下,怎样截获本机上的程序访问INTERNET的请求。
      

  5.   

    WebProxy proxy = new WebProxy("msproxy.foundertech.com.cn",8084);
    proxy.Credentials =new NetworkCredential("name","password","region");
    proxy.BypassProxyOnLocal = true;
    HttpWebRequest httpwebRQ = (HttpWebRequest)WebRequest.Create("http://www.bluejoin.com");
    httpwebRQ.Proxy = proxy;