What keeps you from setting
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\
- "ProxyEnable" to 1 (enable usage of proxy)
- "AutoConfigURL" to a
*.pac
-file (can point to a file on localhost or distantserver)
?
Has the advantage that you can distribute one configuration-file which is easier to update than a binary when changes come up. *.pac
files are quite simple:
function FindProxyForURL(url,host) {return"SOCKS my.socksproxy.net:<proxyport>"}
Besides: There is an "official" way: Setting IE-Settings through the Group Policies-API, everything documented on the MSDN. Lets you configure a proxy for every protocol but is not as simple as my first suggestion.
HTH,
flokra