views:

112

answers:

3

Hi,

I have done changes in registry (proxy settings) via Windows programming code.

I have to restart (reopen) Internet Explorer each time I run the code to make those changes take effect.

Is there any API in Windows programming through which I can notify Internet Explorer or Windows that changes are made to the registry and there will not be any need to reopen Internet Explorer to make those changes take effect?

Thanks.

A: 

Try this:

Change Internet Explorer 7 Proxy Setting without Restarting Internet Explorer http://www.codeproject.com/KB/IP/Change_IE7_Proxy_Setting.aspx

Robert Harvey
A: 

Yes, with Shell apis (FAQ).
See on Win32 api group news://nntp.aioe.org/comp.os.ms-windows.programmer.win32

A: 

Thanks Robert, Sigma.

I could do it successfully with API InternetSetOption.

InternetSetOption(0, INTERNET_OPTION_SETTINGS_CHANGED, 0, 0);InternetSetOption(0, INTERNET_OPTION_REFRESH, 0, 0);