C# Class TrotiNet.SystemProxy

Utility class for setting the system proxy (i.e. the options you get from the 'Internet Options' panel)
Mostrar archivo Open project: Gizeta/Nekoxy-fiddler

Public Methods

Method Description
RefreshSettings ( ) : void

Notify WinInet applications that the proxy settings have changed

SetProxy ( bool ProxyEnable, string ProxyServer, string ProxyBypass ) : bool

Set the system proxy, as per the 'Internet Options' panel

Private Methods

Method Description
InternetSetOption ( IntPtr hInternet, INTERNET_OPTION dwOption, IntPtr lpBuffer, int dwBufferLength ) : bool

Method Details

RefreshSettings() public static method

Notify WinInet applications that the proxy settings have changed
public static RefreshSettings ( ) : void
return void

SetProxy() public static method

Set the system proxy, as per the 'Internet Options' panel
public static SetProxy ( bool ProxyEnable, string ProxyServer, string ProxyBypass ) : bool
ProxyEnable bool
ProxyServer string
ProxyBypass string
return bool