Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Internet Explorer do to notify other browsers about proxy settings change?

I've come to a strange behaviour, if I change proxy settings on Windows 7 in

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

Google Chrome acts like nothing happened - even after restarting it. However when I start/restart Internet Explorer, somehow it "tells" Chrome about the changes and suddenly Chrome starts to use the proxy settings - even without restarting Chrome.

What does Internet Explorer "do" so Chrome notices that?

Is something similar, something that IE Explorer do, achieveable in C++ ?

PS: RegNotifyChangeKeyValue does not seem to be the thing...

like image 448
jave.web Avatar asked Nov 28 '14 19:11

jave.web


People also ask

How do I automatically detect proxy settings in Internet Explorer?

On the Tools menu, click Internet Options, and then click Connections. Click Settings or LAN Settings. In the Automatic configuration area, check that you've chosen the Use automatic configuration script box, and that it has the correct location to your automatic configuration script or for your automatic proxy URL.

What does changing your proxy do?

A proxy server can change your IP address, so the web server doesn't know exactly where you are in the world. It can encrypt your data, so your data is unreadable in transit. And lastly, a proxy server can block access to certain web pages, based on IP address.


1 Answers

You must send broadcast message WM_SETTINGCHANGE

upd. Parameters must be set to null like this: SendNotifyMessage(HWND_BROADCAST,WM_SETTINGCHANGE,(WPARAM)(0),(LPARAM)(0));

Or you can use InternetSetOption fuction from WinInet library like this: InternetSetOption(NULL,INTERNET_OPTION_SETTINGS_CHANGED,NULL,0);

like image 87
Vadim Pashaev Avatar answered Sep 30 '22 09:09

Vadim Pashaev