Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enabling Proxy

Status
Not open for further replies.

AndyWatt

Programmer
Oct 24, 2001
1,288
GB
Hi All,

Can anyone tell me how to programatically check the "Use a proxy server" check box on the "Local Area Network Settings" dialog in Internet Properties. I want to write a Noddy program to flip-flop between proxy enabled and proxy disabled.

I've tried setting the "ProxyEnable" value in several different registry keys, but without success.

Many thanks.


Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
"A computer program does what you tell it to do, not what you want it to do." -- Greer's Third Law
 
Well we toggle ours using the group policy here, the registry value we use is:

Keyname: Software\Microsoft\Windows\CurrentVersion\Internet
Value Name: ProxyEnable

"1" for on, "0" for off.
 
Thanks for the replies. I discovered that the problem was in my code - I was checking the correct key (as per Grenage), but writing back to a different one.

Sorry for wasting your time. [blush]

Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
"A computer program does what you tell it to do, not what you want it to do." -- Greer's Third Law
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top