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...
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.
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.
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With