Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect Windows (IE) proxy settings changes

I'm using WinHttpGetIEProxyConfigForCurrentUser and friends to gather the current proxy information when my app starts as doing it before each request seems to degrade performance greatly with it something sitting for a few seconds gathering the proxy data. Is there a way to detect when the Windows proxy settings have changed so I can cache the information until it changes?

Thanks, J

like image 930
JWood Avatar asked Jun 15 '26 17:06

JWood


1 Answers

Not sure if there is a better way, but you could always take the nuclear option and use RegNotifyChangeKeyValue with HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings.

like image 115
Luke Avatar answered Jun 18 '26 06:06

Luke