C# Class Nekoxy.WinInetUtil

WinINet関連ユーティリティ。
ファイルを表示 Open project: Gizeta/Nekoxy-fiddler Class Usage Examples

Public Methods

Method Description
SetProxyInProcess ( string proxy, string proxyBypass ) : void

urlmon.dllを用いて、プロセス内プロキシ設定を適用。

SetProxyInProcessForNekoxy ( int listeningPort ) : void

urlmon.dllを用いて、システムプロキシのhttpプロキシ設定をNekoxyに置換したプロキシ設定をプロセス内プロキシ設定に適用。

Private Methods

Method Description
GetProxyConfig ( int listeningPort ) : string

システムプロキシのhttpプロキシ設定をNekoxyに置換したプロキシ設定を取得。

GetSystemHttpProxy ( ) : string

システムプロキシに設定されたHTTPプロキシ設定を取得。

GetSystemHttpProxyHost ( ) : string

システムプロキシに設定されたHTTPプロキシのホスト名を取得。

GetSystemHttpProxyPort ( ) : int

システムプロキシに設定されたHTTPプロキシのポート番号を取得。

GetSystemHttpsProxy ( ) : string
GetSystemHttpsProxyHost ( ) : string
GetSystemHttpsProxyPort ( ) : int
WinHttpGetIEProxyConfigForCurrentUser ( ) : WinHttpCurrentUserIEProxyConfig

WinHTTPでIEプロキシ設定を取得。

Method Details

SetProxyInProcess() public static method

urlmon.dllを用いて、プロセス内プロキシ設定を適用。
public static SetProxyInProcess ( string proxy, string proxyBypass ) : void
proxy string プロキシサーバー
proxyBypass string バイパスリスト
return void

SetProxyInProcessForNekoxy() public static method

urlmon.dllを用いて、システムプロキシのhttpプロキシ設定をNekoxyに置換したプロキシ設定をプロセス内プロキシ設定に適用。
public static SetProxyInProcessForNekoxy ( int listeningPort ) : void
listeningPort int ポート
return void