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

I came up with strange behavior if I changed the proxy settings in Windows 7 in

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

Google Chrome acts as if nothing had happened - even after a restart. However, when I start / restart Internet Explorer, it somehow β€œinforms” Chrome about the changes, and suddenly Chrome starts using the proxy settings - even without restarting Chrome.

What makes Internet Explorer "so" that Chrome marks this?

Something similar that IE Explorer does is achievable in C ++?

PS: RegNotifyChangeKeyValue does not seem like ...

+6
source share
1 answer

You must send a broadcast message WM_SETTINGCHANGE

update Parameters must be set as null: SendNotifyMessage (HWND_BROADCAST, WM_SETTINGCHANGE, (WPARAM) (0), (LPARAM) (0));

Or you can use InternetSetOption from the WinInet library as follows: InternetSetOption (NULL, INTERNET_OPTION_SETTINGS_CHANGED, NULL, 0);

+3
source

Source: https://habr.com/ru/post/978846/


All Articles