Proxy setting
#1
Posted 19 March 2007 - 02:50 PM
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
#2
Posted 19 March 2007 - 03:31 PM
#3
Posted 19 March 2007 - 03:32 PM
#4
Posted 19 March 2007 - 04:02 PM
You can read some value options out of wininit.dll, for example if a proxy is used but not what server.
#5
Posted 19 March 2007 - 05:02 PM
#6
Posted 20 March 2007 - 07:23 AM
#7
Posted 20 March 2007 - 07:58 AM
#8
Posted 20 March 2007 - 09:05 AM
#9
Posted 20 March 2007 - 09:42 AM
Easier route: Ask your local administrator what the settings are?
#10
Posted 20 March 2007 - 09:50 AM
#11
Posted 20 March 2007 - 01:28 PM
this give you some basic Proxy settings info.
It' s a start
$strComputer = "." $objWMIService = ObjGet("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & $strComputer & _ "\root\cimv2\Applications\MicrosoftIE") $colIESettings = $objWMIService.ExecQuery _ ("Select * from MicrosoftIE_LANSettings") For $strIESetting in $colIESettings ConsoleWrite ("Autoconfiguration proxy: " & $strIESetting.AutoConfigProxy &@CR) ConsoleWrite ("Autoconfiguration URL: " & $strIESetting.AutoConfigURL &@CR) ConsoleWrite ("Autoconfiguration Proxy detection mode: " & _ $strIESetting.AutoProxyDetectMode()&@CR) ConsoleWrite ("Proxy: " & $strIESetting.Proxy &@CR) ConsoleWrite ("Proxy override: " & $strIESetting.ProxyOverride &@CR) ConsoleWrite ("Proxy server: " & $strIESetting.ProxyServer &@CR) Next
Enjoy !!
ptrex
#12
Posted 21 March 2007 - 04:06 PM
Information: http://en.wikipedia.org/wiki/Proxy_auto-config
#13
Posted 21 March 2007 - 04:19 PM
#14
Posted 21 March 2007 - 05:43 PM
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL (for auto proxy config script)
... and:
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer (for fixed proxy settings)
?
/edit: stupid copypaste error
Edited by SadBunny, 21 March 2007 - 05:44 PM.
#15
Posted 22 March 2007 - 07:42 AM
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
#16
Posted 22 March 2007 - 09:09 AM
.. everyone just completely ignored me..
Is the Pac file located directly on the computer itself?
#17
Posted 22 March 2007 - 09:38 AM
I hoped you could read it from wininet.dll because you can read if you are online and which connections is used...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





