Sorry i did not see your reply, a pac file can be localy but here it is an URL (example: http://www.domain.com/proxy.pac) I hoped you could read it from wininet.dll because you can read if you are online and which connections is used...
I want to HTTP tunnel information outside the network but we use a proxy.
The uto proxy config script is a PAC file which is a javascript like file which decidese what proxy to use (evey location has is own proxy and at home i do not have one). So i know the URL and can download the file but then i need to do the same check as Internet Explorer does.
So i need the proxy which is used by the running Internet Explorer...
THanx for all the info so far
Thank you very much ptrex, but if i use my PAC file to detect the proxy it does not give that back. A PAC is used when you set the AutoConfigURL and it is some sort of javascript to define a proxy. Information: http://en.wikipedia.org/wiki/Proxy_auto-config
The script can be different for every user and the script file is like a javascript with alot of if/else so it would be nicer if you can read it out.
You can read some value options out of wininit.dll, for example if a proxy is used but not what server.
How can i get the proxy settings (server, user, password) which are defined on a system?
Do not give the registry solution because that does not work when users have a script which defines the proxy.
I wanted to get it thru wininet.dll but i cannot get out any information out it with dllcall.
Suggestions are welcome