Skip to content

A tiny C++ library that makes it easy to change proxy settings

License

Notifications You must be signed in to change notification settings

ironxu/ie_proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ie_proxy

A tiny C++ library that provides a simple API for querying Internet Proxy Settings. Unlike other libraries that set and retrieve proxy settings using registry, this one communicates directly with Windows API.

alt alt

Usage

#include "IEProxy.h";

using namespace ie_proxy;

int main(){

	ProxyConfig pc;

	// pc.auto_config_url = L"http://www.proxynova.com/proxy.pac";
	// pc.auto_detect_settings = true;
	// pc.bypass_domain_list = L"google.com; yahoo.com; bing.com;";
	pc.proxy_server = L"124.88.67.40:8080";
	
	// change proxy settings
	setProxyConfig(&pc);
	
	ProxyConfig pc2;
	
	// retrieve current proxy settings
	getProxyConfig(&pc2);
	
	//std::wcout << pc2.proxy_server << endl;

	return 0;
}

http://support.microsoft.com/kb/226473

About

A tiny C++ library that makes it easy to change proxy settings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%