I also use WinHttpGetIEProxyConfigForCurrentUserfriends to collect current proxy information when my application launches the same way as before each request seems to severely degrade performance, and this forces a few seconds to collect proxy data. Is there a way to determine when Windows proxy settings have changed so that I can cache information before it changes?
WinHttpGetIEProxyConfigForCurrentUser
Thanks J
Not sure if there is a better way, but you can always use the kernel option and use RegNotifyChangeKeyValue with HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
?
WinHttpGetIEProxyConfigForCurrentUser, non-main-UI.
WinHttpGetIEProxyConfigForCurrentUser , , , .
I'm not sure if it is generated with proxy settings changes or not, but a message may appear WM_SETTINGCHANGEthat you could handle.
WM_SETTINGCHANGE