View Single Post
  #10 (permalink)  
Old 01-05-2010, 06:28 AM
chanppc chanppc is offline
Junior Member
 
Join Date: Sep 2009
Posts: 47
Default

Can I request to have domain name in the SetProxy? I noted I need to customize the dll when connect from company network which used some sort of AD authentication. Thanks.

public void SetProxy3(string Host, int PortNumber, bool BypassOnLocal, string Username, string Password, string Domain)
{
WebProxy w = new WebProxy(Host, PortNumber);
w.Credentials = new NetworkCredential(Username, Password, Domain);
w.BypassProxyOnLocal = BypassOnLocal;
GlobalProxySelection.Select = w;
}
Reply With Quote