" #Hai" <Re**********@M ail.com> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Hi,
I want Internet Explorer to use localhost server (127.0.0.1) as proxy
server instead of connect directly to the ISP. How to do this (by
programming) ? Thanks
Here's an example in C++ to get you started:
http://www.codeproject.com/internet/changeproxy1.asp
Basically, you have to create an array of
INTERNET_PER_CO NN_OPTION objects and set their
various values to configure the proxy/connection
settings and pass it to the InternetSetOpti on function
in WININET.DLL.
In general, though, I'd recommend you not start messing with
your user's proxy settings as this has various security
implications and in fact, some virus/system scanners may try
to block you from doing it.
You should open the Internet Explorer settings dialog during
your setup and prompt the user to fill in the blanks.
I suppose you could have a msgbox asking the user whether
they wanted you to do it programmaticall y, that would be
ok.
But it looks like it's a pain in the butt to change the
settings using InternetSetOpti on.
-c