Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 May : WinInet, "Automatically detect settings", and SYSTEM account

www.cryer.info
Managed Newsgroup Archive

WinInet, "Automatically detect settings", and SYSTEM account

Subject:WinInet, "Automatically detect settings", and SYSTEM account
Posted by:pg.gup..@gmail.com
Date:8 May 2006 04:28:56

Hello,

I have a DHCP server using WPAD option (option code 252) to send out
PAC URLs (pointing to a proxy server pac file) to the clients.

I setup a XP VMWare image with DHCP enabled. I find that in IE,
Tools->Internet Options->Connections Tab->LAN Settings->"Automatically
Detect Settings" is checked! This is true for users that I create on
this VMWare image.

I have a XP machine (not VMWare image), and it is also showing the same
bahavior for all new local users that I create on this box.

On both machines, there is no
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
Settings\Connections\DefaultConnectionSettings value.

It seems that XP OS updated the default user profile with the above
setting after getting WPAD option in DHCP message.
[
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Connections\DefaultConnectionSettings value   ]

Is this the XP OS behavior?

Another question along the same lines:
I have a service running under a SYSTEM account. This service uses
WinInet to load proxy settings. When I run the service on the XP
machine above, WinInet returns "Automatically Detect Settings" as
Checked. It seems that WinInet reads Default User settings when it is
loaded by a process under SYSTEM account.

Is this the WinInet behavior?

Thanks.

Replies:

www.cryer.info
Managed Newsgroup Archive