如何使用c#代码为所有Windows用户设置代理.. [英] how to set proxy for all user of windows using c# code..

查看:237
本文介绍了如何使用c#代码为所有Windows用户设置代理..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用c#代码为所有windows用户设置代理..

先生我想为所有窗口用户设置代理服务器而不是当前用户我正在使用以下代码但不是浏览器不接受..请帮助..





how to set proxy for all user of windows using c# code..
Sir i want to set proxy Server for all user of window not for current user i am using following code but its not browser not accept it.. please help ..


private void RegistrySetting()
{
    RegistryKey registry = Registry.LocalMachine.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\\Internet Settings", true);
    registry.SetValue("ProxyEnable",1);
    registry.SetValue("ProxyServer", txtipaddress.Text + ":8080");
    ProcessStart();
    MessageBox.Show("Please Wait Installation In Process ");
}

推荐答案

此处描述了应该做什么: http://support.microsoft.com/kb/819961 [ ^ ]。



-SA
What should be done is described here: http://support.microsoft.com/kb/819961[^].

—SA


这篇关于如何使用c#代码为所有Windows用户设置代理..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆